Skip to content

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 fix can 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


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.