Skip to content

AAK-MCP-010: MCP server config allows arbitrary filesystem root access

Severity
HIGH
Category
MCP Configuration (mcp-config)
Scanner
agent_audit_kit/scanners/mcp_config.py
Auto-fixable
No.
SARIF name
McpFilesystemRootAccess

What it detects

An MCP server is configured with filesystem root (/) or home directory access, allowing unrestricted file operations.

How to fix

Restrict filesystem access to specific project directories only.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-010

Limitations

Fires when an argument is exactly /, ~, /home, /Users, /etc or /var. A home directory written as a specific path (/Users/alice), as ~/ or as ${HOME} is not matched.

References

  • OWASP MCP Top 10: MCP02:2025 (Privilege Escalation via Scope Creep)
  • OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation)
  • Adversa AI MCP Top 25 (AAK-defined ids): ADV-SCOPE-02 (Filesystem Root Access)

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-MCP-010.md: the page then shows that text, with the registry reference appended under it.