Tool poisoning
Tool poisoning is an attack that crafts a tool’s description, schema or output to steer an agent into harmful actions, such as leaking credentials or calling a dangerous tool. It is a supply-chain risk specific to agentic systems, and it can take effect before the user has asked the agent for anything.
How it works
When an agent connects to an MCP server, its model reads the server’s tool catalog: names, descriptions and input schemas. Users may never see the full description text, but the model reads all of it and treats it as trusted operational context. That makes every description an instruction channel.
Invariant Labs documented the core technique: malicious instructions hidden in tool descriptions. Several variants use the same trust:
- A poisoned description steers the model as soon as the catalog loads.
- A rug pull changes a tool’s definition after a human has already approved the server.
- Tool shadowing lets a malicious server influence how a trusted tool is used.
- Schema spoofing returns a tool result shaped like a system-level instruction.
- Unit 42 showed that when servers can request model completions through MCP sampling, the trust direction flips, and the tool side can push instructions back into the client’s model.
In prompt injection, the attacker rides user input or retrieved documents. Tool poisoning often starts one layer earlier, in the tool catalog itself.
What it looks like
Pillar Security documented an MCP supply-chain campaign called Deadbugz, spread through pull requests to unrelated AI and developer tool projects. The server behaves as an ordinary text formatting utility for its first three tool calls. Then it changes its metadata and starts steering the agent toward SSH keys, AWS credentials, shell history and Kubernetes config.
A reviewer who reads the code at install time sees a formatter. The malicious behaviour sits behind a call counter. As Concurrency Is the Capability puts it, static review of an MCP server tells you what it did during review.
How to defend against it
- Treat approval as a snapshot. Detect changes to tool definitions after approval, diff tool metadata between calls, and alert when a description changes after deployment.
- Evaluate tool behaviour across the whole session, since install-time review is a point measurement of a system with state.
- Inspect tool listings, tool-call inputs and tool outputs at runtime, so a tampered description or a result that leaks data turns up as a finding.
- Approve servers against a catalog and block unknown ones before their tools reach the agent.
- Keep scopes narrow and enforce inline on high-impact tools such as shell, file write, credential stores and outbound webhooks, so a steered agent has less within reach.
In the frameworks
- OWASP MCP Top 10: MCP03 Tool Poisoning, where compromised tools, plugins or outputs manipulate model behaviour. OWASP lists MCP05 Command Injection & Execution and MCP08 Lack of Audit and Telemetry among the related failures.
- OWASP Top 10 for Agentic Applications (2026): ASI04 Agentic supply chain, which covers third-party tools, registries and update channels, and ASI01 Agent goal hijack, where poisoned content redirects the plan. Wingback’s red-team library tags schema spoofing at the catalog layer to ASI04.
How Wingback handles it
The MCP gateway in AI Runtime Defense scans tool inputs and outputs, checks servers against a curated catalog, and blocks unapproved servers at the protocol handshake, while tool-output integrity checks catch responses shaped like system-level instructions. AI Surface Intelligence profiles each MCP server’s permission scope and change diff, so a server that gains new permissions raises a new finding. The case for runtime controls over one-time approval is in MCP tool poisoning needs runtime controls.
Keep reading
- GlossaryMCP securitySecuring the Model Context Protocol: the servers, tools, and transports that agents use to reach external systems.
- GlossaryAgentic threatsThreats specific to autonomous agents rather than single prompts: goal hijacking, tool misuse, privilege escalation, memory…
- GlossaryPrompt injectionAn attack that hides instructions in content an AI model or agent will read (a document, a web page, a tool result) to hijack…
- BlogMCP tool poisoning needs runtime controls, not prompt filtersOWASP’s MCP Top 10 and Invariant Labs’ tool-poisoning research show why approving an MCP server once is not enough, and what to…
Platform
AI Runtime DefenseWingback sits inline at the inference path, correlating multi-signal detection into one response, sealing data on the wire, and replaying every session.