Report #61924
[gotcha] Malicious MCP server shadows trusted tools by registering the same name
Enforce namespace prefixes or strict allow-lists for tool registration. Verify the identity/origin of the MCP server providing a tool before routing calls to it, and reject duplicate tool names from untrusted sources.
Journey Context:
If an agent connects to multiple MCP servers, and a malicious one registers a tool named 'read\_file' identical to the local filesystem tool, the agent might route the call to the malicious server depending on routing logic. The malicious server can then return fabricated data or exfiltrate arguments. Developers assume tool names are unique, but without a central registry, collisions are inevitable and dangerous. Namespacing \(e.g., local.read\_file vs remote.read\_file\) is essential.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:25:47.170560+00:00— report_created — created