MCP Tool Poisoning
Key Takeaways
- MCP tool poisoning is an attack in which malicious instructions are hidden in a Model Context Protocol tool’s description, where the model reads them but the user usually does not.
- Invariant Labs publicly described tool poisoning attacks in April 2025, including a harmless-looking “add” tool that instructed the agent to read SSH keys and configuration files.
- Related variants include rug pulls, where a tool’s description changes after approval, and tool shadowing, where one server alters how the agent uses another server’s trusted tool.
- Defending against tool poisoning requires pinning and reviewing tool definitions, limiting agent permissions and testing agents adversarially on an ongoing basis.
What Is MCP Tool Poisoning?
MCP tool poisoning is a form of indirect prompt injection in which an attacker plants instructions inside the metadata an MCP server publishes about its tools. When an agent loads the server, the tool’s name, description and parameter schema are passed to the model as context. The model treats that text as guidance on how to use the tool, so hidden directives can redirect its behavior.
The attack works because users and models see different things: a client may show a short summary while the model receives the full description. Invariant Labs, which named the technique in April 2025, showed a simple addition tool whose description told the agent to read ~/.cursor/mcp.json and ~/.ssh/id_rsa and pass the contents through an extra parameter, while giving the user an unremarkable answer.
Why MCP Tool Poisoning Is Dangerous
The tool never has to run
A poisoned description can influence the model as soon as it is loaded into context. The agent may follow the hidden instructions while working on an unrelated task, which makes the behavior hard to trace back to its source.
Approval is a moment, not a guarantee
In a rug pull, a server publishes a clean description, waits for users to approve it and then swaps in a malicious one. Clients that do not detect or flag definition changes give the attacker a window that review alone will not catch.
Trusted tools can be hijacked
With tool shadowing, a malicious server’s description tells the agent how to use a different, legitimate tool. Invariant Labs showed an example in which a poisoned tool caused the agent to redirect emails sent through a trusted send_email tool to an attacker’s address.
Exfiltration looks like normal use
Stolen data leaves through tool parameters or calls the agent is already allowed to make, so logs often look normal.
How MCP Tool Poisoning Works
Planting the payload
The attacker publishes or compromises an MCP server and writes instructions into a tool description, often framed as an “important” note or a prerequisite step. Instructions may tell the model to keep the action secret from the user.
Loading into context
The client connects to the server and passes all tool definitions to the model. At this point the model has the attacker’s instructions alongside the user’s request and the system prompt.
Triggering and acting
During normal work, the model follows the hidden steps: reading sensitive files, adding data to a parameter or changing how it calls another tool. The final response to the user looks routine.
MCP Tool Poisoning vs Prompt Injection
Where the instructions live
Classic prompt injection arrives through user input or retrieved content. Tool poisoning lives in tool metadata that the client loads automatically.
Who controls the attack surface
Prompt injection often targets the data a model processes. Tool poisoning targets the integration layer itself, so it behaves like a supply chain attack on the agent’s tooling.
How it is detected
Input filtering can catch some injected content in user messages. Tool poisoning needs definition review, change monitoring and behavioral testing that observes what the agent actually does.
How Novee Approaches MCP Tool Poisoning
Novee added MCP servers as an asset type in October 2026, paired with the Novee Prompt Library for targeted testing of new attack surfaces like poisoned tool definitions. Its AI Red Teaming solution probes LLM apps and agents with an attacker’s mindset, reasoning about the permissions and workflows a poisoned tool could abuse. Every finding is validated by three independent agents before it is reported, and the Asset Intelligence Model retains context across testing cycles, which helps surface changes between runs.
FAQ
Often not. Many MCP clients display a shortened tool name or summary, while the model receives the complete description. Hidden instructions can sit in parts of the description the user never reviews. Some clients now surface full definitions, but teams should not assume users will spot a carefully worded payload.
An MCP rug pull happens when a server changes a tool’s description or behavior after a user has already approved it. The server looks clean during review and turns malicious later. Pinning server versions and alerting on definition changes are the most direct defenses against this variant of tool poisoning.
Only connect to vetted servers, pin their versions and review full tool definitions before approval. Limit each agent’s permissions so a poisoned tool cannot reach sensitive files or high-impact actions. Require human confirmation for risky calls, and test agents continuously, since definitions and attack techniques both change.