NeuralTrust has been recognized by Gartner → Read more
Back

MCP Tool Poisoning and Rug Pull Attacks

Roger Howroyd November 4, 2026
Share
MCP Tool Poisoning and Rug Pull Attacks

Last updated: November 4, 2026

What is MCP tool poisoning? MCP tool poisoning is an attack where a Model Context Protocol server hides malicious instructions in a tool's description, parameter schema or return values. The model reads that metadata as trusted context and follows it. Rug pulls and tool shadowing are close variants: one changes a tool after you approve it, the other uses one server to hijack another server's tools.

TL;DR: Key Takeaways

  • A November 2, 2026 study ran 9,720 tests across 12 frameworks and 18 models. Attack success was 22.9%, and 12.1% of vulnerable cases verifiably leaked a secret (Shaikh and Montaruli, 2026).
  • The same study found no intentional defense in any of the 12 frameworks, and a regex description scanner caught only 20 of 45 scenarios (Shaikh and Montaruli, 2026).
  • Microsoft (June 30, 2026) describes a silent description update to an approved MCP server that makes a finance agent leak invoices. It says the pattern was observed in 2026 against enterprise agents (Microsoft, 2026).
  • ShareLock (June 2026) splits one hidden instruction across several tool descriptions and reports an average attack success rate above 90% (Liu et al., 2026).
  • OWASP's MCP cheat sheet has 12 best-practice areas and asks you to hash the complete tool definition and review any change (OWASP).
  • The 2025 baseline: MCPTox reached 72.8% on o1-mini, and the highest-refusal model refused fewer than 3% of poisoned instructions (MCPTox, 2025).

At a glance: four MCP tool attacks compared

Quick Answer

How do you stop MCP tool poisoning and rug pulls?

Treat every tool definition as untrusted input. Review the full definition before approval, hash and pin it, and block or re-approve the tool whenever the hash changes. Stop one server's descriptions from referencing another server's tools. Then inspect tool outputs at runtime, because pinning cannot see changes in server code.

AttackWhat the attacker changesWhen it firesMain defense
Tool description injectionDescription, parameter names or schema textAs soon as the client loads the tool listFull definition review, instruction-pattern alerts, a vetted registry
Rug pullA tool definition or server that was already approvedAfter approval, on a later list update or package versionHash and pin the complete definition, re-consent on any change
Tool shadowingA malicious server's description that targets another server's toolsWhen the model uses the trusted toolPer-server isolation, block cross-server references, monitor cross-server data flows
Poisoned tool outputThe data a tool returnsAfter a call, when the model reads the resultTreat outputs as untrusted, runtime inspection, authorization in code

How we researched

On November 4, 2026 we reviewed the OWASP MCP cheat sheet and Top 10 and the MCP tools specification (2026-07-28). We also read three 2026 primary sources: Microsoft Incident Response, the November cross-framework study and the ShareLock paper. We checked the 2025 origin sources too. The tables and playbook are our synthesis, and we ran no new attack tests.

What is MCP tool poisoning?

MCP tool poisoning is a form of indirect prompt injection that lives in tool metadata instead of user input. OWASP defines it as malicious instructions hidden in tool descriptions, parameter schemas or return values that manipulate the model's behavior. It works because the model cannot tell a tool's documentation from an order.

The root cause is how MCP shares tools. A client asks each server for its tool list, and the client adds the names, descriptions and schemas to the model's context. According to Trail of Bits (2025), this lets a malicious server attack before any tool is invoked. It calls the flaw "line jumping." The OWASP MCP Top 10, still in beta, lists the risk as MCP03:2025 Tool Poisoning.

If you are new to the protocol, start with our MCP security guide. For the full list of risks, see our OWASP MCP Top 10 explainer, and for attacks that ride on tool output, our MCP prompt injection guide.

MCP tool poisoning in 2026: what the latest evidence shows

In 2026, MCP tool poisoning moved from proof of concept to measurement. A November study confirmed real execution and data theft across 12 agent frameworks, Microsoft documented the pattern against enterprise agents, and researchers showed that a split payload can evade scanners. Scanning and model alignment help, but neither is a control on its own.

SourceDateWhat it coversKey finding
Cross-framework study (Shaikh and Montaruli)November 2, 20269,720 tests: 12 frameworks, 18 models, 45 scenarios, real tool execution22.9% overall success, 12.1% of vulnerable cells verifiably leaked a secret, no framework with an intentional defense
Microsoft Incident ResponseJune 30, 2026An attack pattern on a finance agent with a third-party MCP serverA silent description update goes live where no re-approval is required, and the agent forwards invoice data
ShareLock (Liu et al.)June 25, 2026Multi-tool poisoning in four scenarios on two MCP clientsAverage success above 90% and better evasion of description-based detection than single-tool poisoning

Two details matter for defenders. The November study reports that resistance is model-level. Model success rates ranged from 0.4% to 49.7%, while nine core frameworks clustered between 23% and 26%, so switching framework does not fix the problem. The authors also report that all five coordinated disclosures to four vendors were rejected, so plan controls outside the framework.

Microsoft describes its finance case as an attack pattern and names no affected organization. It credits Invariant Labs with first disclosing the technique in April 2025.

How tool description injection works

Tool description injection hides instructions in text the user rarely reads but the model always reads. The poisoned field can be the description, a parameter name, a parameter description or a nested schema. A typical payload tells the model to read a sensitive file, add data to a call, or keep the action secret from the user.

Here is a simplified, illustrative poisoned definition. The visible purpose is harmless, and the hidden instruction is the attack.

Copied!

Three things make this hard to catch:

  1. Interfaces often summarize. OWASP tells clients to show full parameters and the exact command without truncation, because a short summary can hide a long block of instructions.
  2. The schema is attack surface too. OWASP says to treat the entire tool schema as a potential injection surface, not just the description. An extra optional parameter such as notes gives the model a quiet place to leak data.
  3. Capable models comply. According to MCPTox (2025), more capable models are often more susceptible, because the attack exploits their stronger instruction following.

Poison can also be split. ShareLock (2026) spreads one hidden instruction across several tool descriptions as benign-looking pieces, then plants a trigger during a server update that reassembles them. Scan the combined tool list, not each tool alone.

The defense starts before approval. Reject schemas that accept undeclared fields, and alert on text such as "ignore," "do not tell the user" or credential paths. OWASP is clear, in its guidance on tool return values, that tag stripping and pattern detection are only extra alerting measures. They cannot show that the remaining text is safe.

Try our AI Gateway today for free

Rug pull attacks: when an approved tool changes after approval

A rug pull happens when a server changes its tool definitions after initial user approval, turning a trusted tool malicious. The server behaves well during review, earns its place on the allowlist, then swaps in a poisoned description, a new parameter or a flipped annotation later. Your approval was for a tool that no longer exists.

The protocol makes change normal, which is why it needs control. According to the MCP tools specification (2026-07-28), a server that declares listChanged should notify subscribed clients when its tool list changes. The list may also vary with the authorization presented. A client that silently accepts the new list has no approval boundary at all.

Two details make rug pulls worse than they look:

  • Annotations change behavior without changing text. OWASP notes that a flipped readOnlyHint or destructiveHint can change client approval behavior with no visible description change.
  • Code can change behind a stable definition. Hashing detects metadata changes, not changes to server code, so a server can keep the same description and return poisoned output.

These patterns are documented outside the lab, from a 2026 enterprise pattern to two named 2025 cases:

CaseWhat changed after approvalLesson
Microsoft finance-agent pattern (June 30, 2026)An approved third-party enrichment server pushed an update that silently rewrote a tool description, and the agent began forwarding invoice summariesRequire re-approval on any description change and treat descriptions like system prompts
Cursor, CVE-2025-54136 (versions up to 1.2.4, fixed in 1.3)An already trusted MCP configuration could be swapped for a malicious command with no re-promptBind approval to the exact configuration and ask again on any change
postmark-mcp 1.0.16 (September 17, 2025)A one-line code change added a hidden BCC to every email the server sentDefinition hashes miss code changes, so verify package versions too

According to Microsoft (2026), where description changes do not trigger re-approval, the new instructions go live without additional review, and no alert may fire in default configurations. According to the National Vulnerability Database (2025), the Cursor flaw scores 8.8 (high) on CVSS 3.1, while GitHub as CNA scores it 7.2. According to Qualys (2025), reports put postmark-mcp at about 1,500 downloads a week before the maintainer removed it.

OWASP's rule of thumb is blunt: do not assume a tool approved yesterday is the same tool today. Re-prompt for consent when definitions change, and verify package integrity with checksums or code signing. Our guide to an MCP registry and allowlist shows how to build that approval flow.

Tool shadowing: when one MCP server hijacks another's tools

Tool shadowing, also called cross-origin escalation, is when a malicious server's tool description manipulates how the agent behaves with tools from other, trusted servers. The attacker never needs its own tool to be called. It only needs its description in the same context window as your email, payments or code tools.

A shadowing description might say that whenever the agent sends an email, it must also copy an external address. The trusted tool does the damage, and its logs look normal.

OWASP's controls for multi-server setups target this directly:

  • Treat each MCP server as an untrusted, independent security domain.
  • Prevent tool descriptions from one server from referencing or modifying the behavior of tools from another server.
  • Monitor for cross-server data flows, such as credentials from server A appearing in calls to server B, and enforce isolation through an MCP proxy or gateway.

How to detect MCP tool poisoning and rug pulls

Detection works in layers: inspect definitions before approval, verify them on every refresh, and watch behavior at runtime. No single layer is enough. Pre-approval review misses rug pulls, pinning misses code changes, and runtime monitoring alone misses quiet metadata swaps.

LayerWhat to checkSignal that should block or alert
Before approvalFull description, parameter names, every schema field, annotations, publisher and package nameInstruction-like text, hidden tags, credential or file paths, undeclared fields, typosquatted package names
On every connectionHash of the complete definition against the approved pinAny hash mismatch, new tools, removed tools, changed annotations
Across serversReferences in one server's descriptions to another server's toolsCross-server mentions, duplicate or near-duplicate tool names
At runtimeTool arguments and tool outputsSecrets or personal data in arguments, injected instructions in outputs, data from one server flowing to another

The specification asks clients to show tool inputs before calling a server, validate results before passing them to the model and log tool usage for audit. OWASP adds alerts on new tools, admin-level queries and abnormal call frequency. Treat description scanning as one signal: the regex scanner in the November study missed 25 of 45 scenarios.

Validation belongs in code, not in the prompt. OWASP advises strict JSON Schema for tool parameters, with additionalProperties: false, which closes the "extra field" trick from the example above.

Pinning tool definitions: what it catches and what it misses

Pinning means recording a cryptographic hash of each reviewed tool definition and refusing to use the tool if the live definition no longer matches. It is the core defense against rug pulls, and OWASP recommends verifying the pin before each execution. Done well, it turns a silent change into a visible approval request.

To make pinning work in practice:

  1. Hash the complete definition. Include name, title, description, inputSchema, outputSchema and annotations. Hashing only the description misses schema and annotation swaps.
  2. Normalize before hashing. A canonical JSON form stops harmless key reordering from triggering false alerts.
  3. Store the pin with context: server, version, credential scope, reviewer and date. A server may return different tools for different authorization, so it can have more than one pin.
  4. Re-check on every refresh and fail closed. On a mismatch, block the tool and request re-approval.
  5. Pin the code too. Verify package versions with checksums or signatures, as OWASP advises.
Pinning catchesPinning misses
Edited descriptions and hidden instructions added laterMalicious logic in server code behind an unchanged definition, as in postmark-mcp
A server update that plants or reassembles split instructions, as in ShareLockSplit instructions already spread across tools at the first review
New, removed or renamed parametersPoisoned data in tool outputs
Flipped readOnlyHint or destructiveHint annotationsAttacks that were present before the first review
New tools added to an approved serverShadowing text that was approved by mistake

That right-hand column is why pinning needs runtime inspection beside it. Our MCP security best practices checklist places pinning alongside sandboxing, least privilege and logging.

Security and governance: stopping tool poisoning at runtime

Tool poisoning is a runtime problem. The poisoned text arrives when the agent loads the tool list, the rug pull lands on a later update, and the shadowing instruction fires when a trusted tool runs. Policies written in a wiki do not see those moments. A control point in the path of every MCP connection does.

According to Microsoft (2026), citing IDC, active enterprise AI agents are projected to grow from 28.6 million in 2025 to more than 2.2 billion by 2030. The November 2026 study found no intentional defense in the 12 frameworks it audited. Both facts point the same way: the control has to sit outside the framework and outside the model. MCPTox (2025) adds a baseline, so retest on the model you run.

DefenseWhere it is enforced
Approved servers and versions onlyGateway in front of every MCP server
Pinned definitions and change blockingGateway or client, on every connection and list update
Cross-server isolationGateway policy between servers
Injection checks on tool outputsRuntime inspection before the model sees the result
Secrets and personal data in argumentsRuntime inspection and data masking
Audit trail of every callCentral logs, exported to your SIEM

NeuralTrust approaches this as a Runtime Security Mesh. The Agent Gateway (TrustGate) puts model, MCP server, tool and agent calls behind one gateway. It adds per-agent and per-tool RBAC, end-user identity on every hop and cryptographic audit trails. Agent Runtime Security (TrustGuard) inspects requests and responses inline, including poisoned tool results, and can allow, block or transform them. AI Red Teaming (TrustTest) tests agents for indirect injection and tool abuse before release. The Free plan covers TrustGate and TrustGuard for 100,000 requests a month.

Which defense should you start with?

Start where your exposure is highest. Teams installing third-party servers need review and pinning first. Teams running many servers in one agent need isolation. Teams in regulated industries need the audit trail that proves the other controls worked. Most teams end up needing all three.

If you areStart withThen add
A developer using MCP servers in an IDEFull definition review, sandboxed local serversPinning with change alerts, approved registry
A platform team running agents at scaleCentral gateway, allowlist, pinned definitionsCross-server isolation, runtime output inspection
A security team in a regulated industryHuman approval for sensitive tools, full audit logsRed teaming against poisoning and rug pulls

Conclusion

MCP tool poisoning turns tool metadata into a command channel. Description injection plants the instruction, rug pulls deliver it after approval, and tool shadowing aims it at your most trusted tools. The 2026 evidence adds that no tested framework defends by default and that scanners alone miss split payloads. Review full definitions, hash and pin them, fail closed on change, isolate servers and inspect outputs at runtime, at the point where every MCP connection passes.

Secure MCP Tools in Production with NeuralTrust

Put every MCP tool call behind one gateway with per-tool access control, runtime inspection and a full audit trail.

Try our AI Gateway today for free

Related Comparisons

FAQs about MCP Tool Poisoning

1. What is MCP tool poisoning?

MCP tool poisoning is an indirect prompt injection where malicious instructions hide in a tool's description, parameter schema or return values. The client puts that metadata in the model's context when it loads the tool list, so the attack can work even if the tool is never called.

2. What is an MCP rug pull attack?

A rug pull is when an MCP server changes a tool after you approved it, turning a trusted tool malicious. The change can be hidden text, a new parameter, a flipped annotation or new code. Hash and pin the approved definition, block the tool until someone re-approves any change, and verify package versions.

3. What is MCP tool shadowing?

Tool shadowing is when a malicious server's tool description changes how the agent uses tools from other, trusted servers. For example, it can tell the agent to copy an extra recipient on every email. The trusted tool performs the harmful action, so per-server isolation and cross-server monitoring are the key controls.

4. Does tool pinning stop all MCP tool poisoning?

No. Pinning detects changes to tool metadata after review, which stops definition-level rug pulls. It does not detect malicious server code behind an unchanged definition, poisoned tool outputs or a bad definition approved by mistake. Combine it with pre-approval review, verified package versions and runtime inspection.

5. Can the model itself refuse poisoned tool instructions?

Rarely. In the November 2026 study, attack success ranged from 0.4% to 49.7% depending on the model, and no framework added a defense. In MCPTox (2025), the model with the highest refusal rate refused fewer than 3% of attacks. Treat model behavior as a bonus, not a control, and enforce authorization in trusted code outside the model.

6. How is tool poisoning different from prompt injection in tool output?

Tool poisoning lives in the tool definition, which the model reads before it picks a tool. Prompt injection in tool output lives in the data a tool returns after a call, such as a web page or email. Treat both definitions and outputs as untrusted.

7. Is MCP tool poisoning happening in real enterprise deployments?

Yes, according to Microsoft (2026), which says the attack pattern was observed in 2026 against a growing range of enterprise agents but names no victims. The named public cases are older: Cursor CVE-2025-54136 and postmark-mcp both date from 2025. Treat the risk as live and review every tool description change like a code change.

About the Author

Roger Howroyd is Head of Global SEO and AI at NeuralTrust, where he leads the company's search strategy across SEO, AEO, GEO, and LLM optimization. He specializes in AI-powered search, content strategy, and SEM. Connect on LinkedIn.

NeuralTrust is the leading platform for securing and scaling AI agents. Named a Pioneer in the Gartner Emerging Market Quadrant for AI Application Security 2026, recognized across four Gartner Hype Cycle reports in 2026, and featured in the Gartner Market Guide for Guardian Agents 2026, the Gartner Market Guide for AI Gateways 2025 and the KuppingerCole Leadership Compass for Generative AI Defense 2025. Headquartered in Barcelona with offices in London and New York. ISO 27001 certified.

Sources

Accessed on November 4, 2026.

  1. OWASP Cheat Sheet Series, "MCP Security Cheat Sheet".
  2. OWASP, "MCP Top 10" (2025 beta).
  3. Model Context Protocol, "Tools" (spec version 2026-07-28), 2026.
  4. Microsoft Defender Experts, Incident Response, "Securing AI agents: When AI tools move from reading to acting", Microsoft Security Blog, June 30, 2026.
  5. Shaikh and Montaruli, "MCP Tool Poisoning in Agentic AI Frameworks: A Cross-Framework Measurement Study", arXiv, November 2, 2026.
  6. Liu et al., "ShareLock: A Stealthy Multi-Tool Threshold Poisoning Attack Against MCP", arXiv, June 25, 2026.
  7. Trail of Bits, "Jumping the line: How MCP servers can attack you before you ever use them", April 21, 2025.
  8. Wang et al., "MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers", arXiv, August 2025, revised September 29, 2026.
  9. NIST National Vulnerability Database, "CVE-2025-54136", published August 2, 2025.
  10. Qualys ThreatPROTECT, "Malicious MCP Server on npm postmark-mcp Exploited in Attack", September 30, 2025.

Subscribe to our newsletter

Share

Join the leaders securing the agent ecosystem

Get a Demo