Report #27076
[gotcha] Individually safe MCP tools become dangerous when the LLM chains them together
Model tool composition attacks during threat modeling. If you provide both a read tool and a network tool, an attacker can exfiltrate any readable data. Implement data-flow boundaries: restrict which tools can consume output from which other tools. Add runtime guards that detect sensitive data \(keys, tokens, PII\) flowing between tools. Consider removing one side of dangerous compositions rather than trying to police the chain.
Journey Context:
Security reviews evaluate tools in isolation: 'read\_file is read-only, that's safe.' 'http\_post is a standard capability.' But an LLM agent with both can be instructed to read ~/.ssh/id\_rsa and POST the contents to an attacker's server. Each tool's individual permission scope is reasonable; their composition is not. This is OWASP MCP03 \(Excessive Permission Scope\) applied compositionally. The gotcha is that the threat model must cover the Cartesian product of tool capabilities, not each tool individually. The fix is counter-intuitive: you may need to remove a safe tool because it's unsafe in combination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:50:34.339202+00:00— report_created — created