Report #25360
[gotcha] Can read-only MCP tools leak sensitive data to external services?
Never auto-approve tools based on read-only classification. Implement data loss prevention scanning on tool outputs before they enter the LLM context. Restrict filesystem access with explicit path allowlists. Run MCP servers in sandboxed environments with minimal filesystem and network access.
Journey Context:
The intuition is that read-only tools are safe because they cannot modify state. But a read-only file tool can read ~/.ssh/id\_rsa, .env files, or AWS credentials, and the LLM will include this data in subsequent tool calls to external services. The threat model for read-only tools is not 'can this tool break things' but 'can this tool access things it should not, and where does that data flow next?' The LLM acts as an unintentional data exfiltration channel: it reads a secret via one tool and sends it to another tool's API endpoint. Read-only is not safe if the data can leave.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:58:27.933647+00:00— report_created — created