The missing npm audit for AI agents.
Static security scanner for MCP-connected AI agent pipelines. It finds misconfigurations, hardcoded secrets, tool poisoning, rug pulls, trust-boundary violations and tainted data flows across 11 agent platforms — and emits the compliance evidence an auditor asks for afterwards.
It runs fully offline. No account, no telemetry, no model in the loop.
pip install agent-audit-kit
agent-audit-kit scan .aak is installed as a shorthand for the same command.
As a pre-commit hook:
# .pre-commit-config.yaml
repos:
- repo: https://github.com/sattyamjjain/agent-audit-kit
rev: v0.6.22
hooks:
- id: agent-audit-kitIn CI:
# .github/workflows/agent-security.yml
- uses: sattyamjjain/agent-audit-kit@v0.6.22
with:
severity: medium
fail-on: high
upload-sarif: trueThe action writes SARIF; upload it with github/codeql-action/upload-sarif
to land findings in the GitHub Security tab. Full
GitHub Action reference ·
CLI reference ·
pre-commit hook.
| Category | Rules | What it detects |
|---|---|---|
| MCP Configuration | 67 | Missing auth, wildcard CORS, 0.0.0.0 binds, SSRF, OAuth 2.1 and RFC 9728 gaps |
| Supply Chain | 169 | Unpinned packages, typosquats, install scripts, and verified CVE version pins |
| Tool Poisoning | 30 | Invisible Unicode, prompt injection in tool and parameter descriptions, rug pulls |
| Secret Exposure | 18 | Provider keys, tokens in configs and env files, credentials in logs |
| Agent Config | 19 | Permission escalation, auto-approve, headless trust in CI |
| A2A Protocol | 13 | Missing mutual auth, unbounded delegation, transitive trust |
| Hook Injection | 16 | Hook RCE, exfiltration through lifecycle hooks |
| Taint Analysis | 14 | @tool parameters reaching shell, SQL, filesystem and network sinks |
| Transport Security | 15 | Cleartext transports, DNS rebinding, session and body-size limits |
| Legal Compliance | 19 | Copyleft licences, PII surface, and regional AI duties |
| Trust Boundaries | 18 | Project-scoped trust, untrusted workspace escalation |
| MCP Server Card | 4 | Static audit of SEP-1649 server cards |
| Composition | 3 | Risk that exists only between components, not in any one of them |
| Agentic Skills | 3 | OWASP Agentic Skills Top 10 surface in skill bundles |
Every finding carries severity, evidence, a file and line, and remediation. Full detail per rule is in the rule reference.
- Offline and deterministic. Your code and secrets never leave the machine, and the same input always yields the same findings — measured at 20/20 identical runs, 0% variance. A scanner with an LLM in the loop cannot promise that, which is what makes CI diffs and audit re-runs stable here.
- Auditor-ready evidence, not just findings. SARIF plus PDF evidence packs mapped to 14 frameworks, a CycloneDX/SPDX SBOM, and an OpenVEX document that joins to it on purl.
- Pin and verify.
pinfingerprints a tool surface at approval;verifyre-checks it afterwards. That is the only thing that catches a server which behaves until it does not — see the Deadbugz case study.
The hand-adjudicated
benign-slice false-positive rate
covers MCP server configs only. Instruction files (CLAUDE.md, AGENTS.md and
the like) are not in the slice, and an outside report on 930 repositories
(#771) is what
exposed AAK-AGENT-002 on them, fixed in
v0.6.8.
Instruction files now have
their own benign slice,
built from that report's corpus; it is pending adjudication, so it has no rate yet.
From the State of MCP Security 2026 report (how to cite):
- 2,303 distinct public MCP configs scanned.
- 50.6% (1,166) declare a remote server with **no authentication**.
- 0 reference RFC 9728 Protected-Resource-Metadata discovery in the config.
- 100% (424/424) of inline-auth remote configs **hardcode a static credential**.
These regenerate from results.json and are asserted in CI, so they cannot
drift from the report.
PDF and text evidence packs mapped to 14 frameworks, including two already in force that most scanners do not carry: EU AI Act Article 50 (transparency, since 2026-08-02) and Colorado SB 26-189 ADMT (effective 2027-01-01).
agent-audit-kit report . --framework eu-ai-act --format pdf
agent-audit-kit sbom . --format cyclonedx -o sbom.cdx.json
agent-audit-kit vex . -o vex.openvex.jsonEvery control row cites a real clause, and a row the scanner cannot evidence says so instead of printing a tick. Full list of the 408 rules mapped to 14 frameworks: compliance reference.
Against the OWASP Top 10 for Agentic Applications (Version 2026, December 2025), with OWASP's own titles. A rule is counted when it detects the risk, or the absence of a control the entry prescribes for it.
| ASI | Title | # rules |
|---|---|---|
| ASI01 | Agent Goal Hijack | 17 |
| ASI02 | Tool Misuse and Exploitation | 99 |
| ASI03 | Identity and Privilege Abuse | 105 |
| ASI04 | Agentic Supply Chain Vulnerabilities | 196 |
| ASI05 | Unexpected Code Execution (RCE) | 92 |
| ASI06 | Memory & Context Poisoning | 5 |
| ASI07 | Insecure Inter-Agent Communication | 24 |
| ASI08 | Cascading Failures | 9 |
| ASI09 | Human-Agent Trust Exploitation | 13 |
| ASI10 | Rogue Agents | 5 |
Per-entry rule lists, generated from the registry: Agentic Top 10 · MCP Top 10 (v0.1, 2025 edition) · Agentic Skills Top 10. Every MCP Top 10 entry has at least one rule, but not evenly; the MCP table labels the thin entries Partial and names their rules. The rule-by-rule NSA MCP CSI and OWASP Agentic view is the standards crosswalk.
A public leaderboard of scanned public MCP servers, with per-server grade cards and a 90-day disclosure policy: sattyamjjain.github.io/agent-audit-kit.
Last published snapshot: **2026-10-12** (10 snapshots in [`history.json`](https://sattyamjjain.github.io/agent-audit-kit/data/history.json)). The build fails if this date falls more than 10 days behind, so a stalled index reports itself.Newly disclosed MCP CVEs are triaged and turned into rules as they land, surfaced by an NVD watcher and logged in CHANGELOG.cves.md. The measured disclosure-to-rule latency is published in docs/cve-latency.md and regenerated from the ledger, not asserted.
103 scanner modules: AST-based taint analysis forPython, and regex dangerous-sink scanners for TypeScript/JavaScript and Rust.
4,325 test functions. 27 CLI commands. Releases are Sigstore-signedand ship a deterministic rule bundle.
Mechanical fix recipes cover 11 of 408 rules
(2.7%), applied by agent-audit-kit fix. That is a scope
decision, not a coverage gap: a recipe ships only where the remediation is
deterministic and one-line — exactly one correct edit, confirmable from the
diff. Everything else stays advisory on purpose, because a fix that needs
judgement is a fix that can be wrong silently. Why the rest stay
advisory.
sattyamjjain.github.io/agent-audit-kit/docs — the full documentation site,
built from docs/ by MkDocs and deployed alongside the MCP Security Index.
Getting started · CLI reference · Rule reference · CI/CD · Comparison with other scanners · All documentation
Issues and pull requests are welcome — see
CONTRIBUTING.md. Adding a rule means a rule definition, a
scanner, and fixtures in both directions; agent-audit-kit rule lint checks the
registry invariants.
Report vulnerabilities per SECURITY.md. AgentAuditKit publishes no fixed CVE-response SLA; it publishes the measured latency instead.
Apache-2.0. See LICENSE. Apache-2.0 carries an explicit patent grant, which the organisations that adopt a security tool tend to ask about.