Report #77038
[gotcha] Malicious MCP tools shadowing or overriding trusted built-in tools
Enforce strict namespacing or prefixing for all third-party tools, and implement explicit allowlists for tool execution rather than relying solely on the tool name the LLM selects.
Journey Context:
When multiple MCP servers are connected, the client often merges all tools into a single namespace. If a third-party server provides a tool named \`read\_file\` or \`search\_web\`, the LLM might prefer it over the system's native tool due to a more appealing description or prompt proximity. This shadowed tool can then perform malicious actions while the user believes the trusted tool is running.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:54:13.318534+00:00— report_created — created