AIShield is an agent-native, local-first security scanner and trust authority for the MCP / Agentic AI economy.
Every MCP server is arbitrary code. When an agent loads an MCP server, it reads the server's tools/list — which typically requires starting the server process. Any scanner that spawns the config it inspects has already executed arbitrary code under the guise of a "security check." AIShield refuses to do that: the scanner reads configurations and source statically, and never spawns or executes anything from what it scans.
This is not a soft guideline. scripts/prove_isolation.py patches subprocess.Popen, os.system, and subprocess.run to raise on any call, then loads the scanner against a hostile-looking config and asserts zero spawn invocations. If this invariant ever breaks, the scanner has been compromised.
AIShield ships with rule sets for both standards in parallel:
| Standard | Coverage | Rules |
|---|---|---|
| OWASP MCP Top 10 (2025 v0.1) | MCP01–MCP10 | 128 |
| OWASP Agentic AI Top 10 (ASI01–ASI10, AIShield internal) | ASI01–ASI10 | 75 |
| OWASP Agentic Skills Top 10 (AST01–AST10, 2026-08) | AST01–AST10 | 23 |
| Sandbox / host-escape heuristics | — | 12 |
| Chinese-language prompt injection | — | 22 |
| Skill execution-plane extras | — | 26 |
| Static subtotal | 286 | |
| Threat-intel generated (daily radar) | — | 8 |
| Radar-promoted (weekly) | — | 19 |
| MCP-type total | 313 | |
| Skill-type total | 340 |
The authoritative number is always what GET /api/v1/health reports as rules_breakdown. Every other number in the repo is derived from that.
Note onASI0xlabels. Theowasp_categoryfield carries two namespaces:MCP01–MCP10are official OWASP MCP Top 10 codes;ASI01–ASI10are AIShield's internal IDs. OnlyASI01/ASI02/ASI03coincide with the official OWASP Agentic AI Top 10 (2026). Most Agentic scanners emitMCP0xand miss the internalASI0xfindings. The machine-readable crosswalk is theinternal_to_owasp_agenticfield returned bycompliance_summary(); source of truth isscanner/compliance.py.
scanner/engine.py is the entry point. It loads scanner/rules.py (286 static + dynamic rule sets from data/), runs the neuro-symbolic probe (scanner/neuro_symbolic_probe.py — symbolic layer as constitution, semantic layer as recall enhancer only, never self-escalates), and produces a scored report. api/server.py wraps this as an HTTP service; mcp-server/src/index.ts wraps it as an MCP server; both call the same engine. There is no duplicate logic.
cryptography and pyyaml are optional for advanced features (Ed25519 signing, YAML parsing) but not for the core scan path.DeterministicHeuristicBackend requires nothing and is sufficient for production.AIShield signs its own outputs. Every attestation is Ed25519-signed (JWKS published at /.well-known/jwks.json), and the identity is a portable did:key. Third parties can verify any attestation offline with just the public key.
The scanner also verifies itself: distribution/published.json is a public ledger of every channel AIShield is published on, with source-of-truth links back to the repo.