# Nemesis Shield - SDKs [![Protected by Nemesis](https://nemesislabs.xyz/api/badge)](https://nemesislabs.xyz/shield) Official, open-source SDKs for [**Nemesis Shield**](https://shield.nemesislabs.xyz) - the unified runtime security platform (application/API/LLM shield, telemetry correlation, network/DNS, response, and compliance). Drop one into your app and Nemesis **learns your app's normal behavior**, then flags - and, in enforce mode, blocks - anything that deviates. It's a positive-security (allow-list) model: instead of guessing at generic attack signatures, it enforces *"this app only ever behaves in these ways."* > **Building with an AI assistant?** Two ways to make your agent add Nemesis Shield **as it builds**: > 1. **[MCP server](mcp/)** - gives Cursor, Claude Code/Desktop and Windsurf 17 callable tools > (`nemesis_protect`, `nemesis_scan`, `nemesis_explain`, plus Omniguard fraud scoring and standalone > identity/AML screening via `nemesis_omniguard_verify`) so the agent adds security, scans a site, > screens identities, and explains coverage without leaving the editor. > 2. **[AI editor rule pack](ai-rules/)** (AGENTS.md, Cursor, Windsurf, Claude Code) - drop-in rules > that tell the agent to add the one-line SDK by default. > > Both are one line per stack, safe by default (observe mode). Full verified reference: > [`ai-rules/AGENTS.md`](ai-rules/AGENTS.md). **Privacy by design:** the SDKs ship only behavioral *metadata* - HTTP method, the *shape* of the path (`/orders/123` → `/orders/{int}`), status code, and whether the caller was authenticated. They never send your request bodies, responses, secrets, or source code. Every SDK is **fail-open**: if Nemesis is unreachable, your app is completely unaffected. > **New app? Finish learning in minutes with [Nemesis Learn](learn/).** Drop in an SDK (observe mode), > then run one command and the agent exercises every route of your app in dev/staging - endpoints, > forms, uploads, CRUD flows - so the baseline completes without waiting on real traffic. It's > language- and framework-agnostic (drives your app over HTTP), runs offline, can read your repo to > find routes, and reports coverage back so the console shows exactly when you're ready to enforce. > ```bash > npx @nemesis-shield-autogon/learn --target http://localhost:3000 --app-token nsk_… --repo . > ``` | Language | Package | Integration | |---|---|---| | **Node.js** | `@nemesis-shield-autogon/sentinel` | One-line Express/Connect middleware → [`node/`](node/) | | **Python** | `nemesis-shield` | ASGI/WSGI middleware (FastAPI/Starlette/Flask) → [`python/`](python/) | | **Go** | `github.com/eobi/nemesis_shield_sdks/go` | `net/http` middleware → [`go/`](go/) | | **Ruby** | `nemesis_shield.rb` | Rack middleware (Rails/Sinatra) → [`ruby/`](ruby/) | | **PHP** | `composer require nemesislabs/sentinel` | Laravel auto-discovery / `register_shutdown_function` → [`php/`](php/) | | **WordPress** | drop-in plugin | Behavioral firewall (front end, REST & admin-ajax) **+ brute-force lockout, malware / file-integrity scan & vulnerability alerts** → [`wordpress/`](wordpress/) | | **Java** | `io.github.eobi:sentinel` | Servlet filter / Spring Boot (JDK 11+) → [`java/`](java/) | | **.NET / C#** | `dotnet add package NemesisShield` | ASP.NET Core middleware (net8.0 + netstandard2.0) → [`dotnet/`](dotnet/) | | **Rust** | `cargo add nemesis-shield` | axum (tower) / actix-web middleware → [`rust/`](rust/) | | **Edge / Supabase** (Deno TS) | `@nemesis-shield-autogon/edge` (npm) · `@nemesis-shield/edge` (JSR) | `withShield()` for Supabase Edge / Deno / CF Workers / Vercel Edge / Next.js → [`edge/`](edge/) | | **Supabase direct DB API** | Cloudflare Worker | reverse-proxy that guards `supabase.from()` (PostgREST) - off-baseline table/verb/auth blocked before your DB → [`cloudflare-supabase-proxy/`](cloudflare-supabase-proxy/) | ### Front-end (browser) The back-end SDKs above protect the server. The **browser SDK** protects the *other* half - the client-side attacks a WAF and a backend never see. Built **checkout-grade** for payment / e-commerce pages: it blocks card-skimming **data exfiltration across every channel** (fetch, XHR, beacon, image beacons, WebSocket, EventSource), **Magecart/injected scripts**, and **form-jacking**; detects inline tampering, field injection, and **clickjacking**; and maps directly to **PCI DSS 4.0.1 §6.4.3 & §11.6.1** (script inventory, authorization, tamper alerting). A learned CSP you approve in the console. | Front-end | Package | Integration | |---|---|---| | **React · Angular · Vue · jQuery · plain JS** | `@nemesis-shield-autogon/browser` | one `