Report #70792
[gotcha] MCP server granted root or full filesystem access when only specific paths are needed
Apply the principle of least privilege. Configure MCP servers with strict filesystem boundaries \(e.g., chroot, AppArmor, or specific directory allow-lists\) and minimal API scopes.
Journey Context:
To avoid permission errors, developers often run MCP servers with overly broad access \(e.g., full home directory access\). If the server or agent is compromised via prompt injection, the attacker gains access to the entire filesystem. Restricting the blast radius to only the specific directories the tool needs to operate on is critical for defense in depth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:24:18.457306+00:00— report_created — created