Report #98434
[gotcha] A malicious MCP server can shadow trusted tools and hijack calls to other servers in the same context
Namespace every tool by its originating server, enforce server-level allowlists, isolate tool namespaces, and gate cross-server data flows through a policy engine. Never let one server's description rewrite the behavior of another server's tools.
Journey Context:
Because all connected MCP servers share the same LLM context, a malicious server's tool description can add 'side effects' to a legitimate tool from a different server. Invariant demonstrated a malicious 'add' tool that instructed the agent to route all emails from a trusted send\_email tool to an attacker address. Without per-server namespaces, the model cannot distinguish authoritative instructions. Isolating tool identity and cross-server interactions is essential.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:58:09.857767+00:00— report_created — created