AIShield is a local-first, zero-dependency security scanner and trust authority for the MCP / Agentic AI economy. It scans MCP servers, AI skills, and AI agent configurations for tool poisoning, prompt injection, secret leakage, sandbox misconfiguration, and supply-chain risk.
Yes. The core scanner is open-source (MIT) and free. The local CLI and MCP server have no usage limits. The hosted API at aishield.tools offers a free tier (1,000 scans/hour) and a Pro tier for higher limits.
Yes, MIT license. See <https://github.com/lm203688/aishield>.
No. This is the core invariant. AIShield is purely static — it reads files and analyzes patterns without spawning any processes. This is proven by scripts/prove_isolation.py, which patches all spawn functions and asserts zero invocations.
No. The local scanner runs entirely on your machine. No code, configuration, or scan results leave your environment unless you explicitly use the hosted API.
AIShield ships via npm with sigstore provenance. The npm package is a thin TypeScript wrapper around the Python scanner. You can also run the Python scanner directly without npm. The published channels are listed in distribution/published.json with source-of-truth links.
Three standards in parallel:
Plus sandbox hardening heuristics and Chinese-language prompt injection rules.
owasp_category field mean?The owasp_category field carries two namespaces:
MCP01–MCP10 are official OWASP MCP Top 10 codesASI01–ASI10 are AIShield's internal IDs (not official OWASP)AST01–AST10 are official OWASP Agentic Skills Top 10 codesOnly ASI01/ASI02/ASI03 coincide with the official OWASP Agentic AI Top 10 (2026). The machine-readable crosswalk is the internal_to_owasp_agentic field returned by compliance_summary().
AIShield treats Markdown as executable content. SKILL.md, AGENTS.md, CLAUDE.md, and any Markdown with name + description frontmatter is the program an LLM will follow. Scanners that downgrade .md findings to "documentation example" structurally miss the entire skill supply chain.
| Category | Count |
|---|---|
| MCP Top 10 (MCP01–MCP10) | 128 |
| Agentic AI Top 10 (ASI01–ASI10) | 75 |
| Agentic Skills Top 10 (AST01–AST10) | 23 |
| Sandbox hardening | 12 |
| Chinese prompt injection | 22 |
| Static total | 286 |
| Threat-intel generated | 8 |
| Radar-promoted | 19 |
| Total | 313 |
The authoritative number is always what GET /api/v1/health reports.
AST rules (AST01–AST10) are metadata-plane rules — they catch "what the skill claims about itself" (e.g. "this skill has no isolation", "this skill targets all platforms"). SKILL_EXTRA rules are execution-plane rules — they catch "what the skill tries to do" (e.g. "this skill runs curl | sh"). The two are complementary and do not double-count.
The scanner processes a single file in milliseconds. A full workspace scan of a typical project takes under 5 seconds. The bottleneck is I/O, not computation.
There is no hard limit. The scanner streams files line-by-line and does not load entire files into memory. For very large files, consider using --max-size to cap per-file processing.
An attestation is a cryptographically signed statement that an agent or MCP server has passed AIShield's security scan. It includes a trust score (0–100), a certification level (uncertified / verified / certified / trusted), and a validity period.
Every attestation is Ed25519-signed. The public key is published at https://aishield.tools/.well-known/jwks.json. You can verify any attestation offline with just the public key — no network call required.
AIShield uses did:key for agent identity. A did:key is a self-contained, portable identifier derived from a public key. It does not require a registry — anyone can verify the identity offline.
# GitHub Actions example
- name: Security scan
run: |
npx -y aishield-mcp-server --scan . --format sarif --output results.sarif
npx @sarif/sarif-tools check results.sarif --fail-on-critical
The scanner exits with code 1 if any critical or high findings are found, making it suitable as a CI gate.
Yes:
docker run --rm -v $(pwd):/workspace -w /workspace \
aishield/scanner scan --file .
The scanner never writes to paths derived from scanned content, so it is safe to run in a container with read-only filesystem mounts.
For npm: npm update aishield-mcp-server For Python: pip install -e . && pip install --upgrade . The live API at aishield.tools is always on the latest version.