AAK-TRUST-001: enableAllProjectMcpServers is true
- Severity
- CRITICAL
- Category
- Trust Boundaries (
trust-boundary) - Scanner
agent_audit_kit/scanners/trust_boundary.py- Auto-fixable
- Yes.
agent-audit-kit fixcan apply it. - SARIF name
EnableAllProjectMcpServers
What it detects
Auto-approves ALL MCP servers in .mcp.json without user consent. A compromised repo can ship arbitrary MCP servers that execute immediately.
How to fix
Set to false. Use enabledMcpjsonServers to whitelist specific servers by name.
agent-audit-kit fix can apply this change for you; add --dry-run to preview it.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-TRUST-001
Limitations
Reads .claude/settings.json and .claude/settings.local.json at the root of the scanned directory. The same flag in the settings file of a subdirectory (packages/web/.claude/settings.json) is not read.
References
- CVE: CVE-2026-21852
- OWASP MCP Top 10: MCP09:2025 (Shadow MCP Servers)
- OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities), ASI09 (Human-Agent Trust Exploitation)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-TRUST-01 (Auto-Enable All Servers)
- CSA AI Controls Matrix (AICM): IAM-16
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-TRUST-001.md: the page then shows that text, with the registry reference appended under it.