What is an MCP rug pull attack?

An MCP rug pull attack is when an MCP server, after users or administrators review and approve it, changes a tool description or behaviour to add harmful instructions; named after pulling the rug from under someone, it turns a server that looked safe on first review malicious later.

Unlike tool poisoning, where the harmful instruction is in the description from the start, here a clean description is poisoned after approval. One-time approval is therefore not enough; the server must be monitored continuously, like any software supply chain component.

Topic
AI security
Also known as
Rug pull, post-approval definition change

How an MCP rug pull attack works

  1. The attacker publishes a useful, harmless-looking MCP server; the organisation reviews and approves it.
  2. Later the server is updated, or a remotely run server silently changes a tool description.
  3. The new description holds hidden instructions steering the model to exfiltrate data or act harmfully.
  4. If the client does not ask for re-approval, the change goes into use unnoticed.

In more detail

Delayed (sleeper) rug pull attacks

In documented rug pull demonstrations, an MCP server does not even need to wait for a software update or reconnect: it can behave safely for the first few calls and then silently swap descriptions in a later 'tools/list' response. Clients must therefore re-verify definition hashes on every 'tools/list' refresh, not solely at initial startup.

Behavioural rug pulls without metadata changes and egress control

Cryptographic hashing of tool metadata only catches changes to names, descriptions and JSON schemas. If an attacker compromises a remote server or pushes an unpinned dependency update that preserves the exact tool schema while silently exfiltrating tool arguments inside server-side code, metadata hashes still match. Defences must combine schema pinning with immutable container digest pinning, SBOM verification and strict egress network filtering.

Showing a diff on re-approval and alert fatigue

Human re-approval UIs must display an explicit visual diff between the previously approved tool definition and the new version rather than a generic 'Server updated, allow?' prompt. Without highlighting added parameters or altered description text, alert fatigue leads administrators and users to rubber-stamp malicious changes.

Commonly confused terms

TermHow it differs
Tool poisoningIn tool poisoning, malicious instructions are embedded in a tool's description from initial publication; in an MCP rug pull attack, the server initially presents benign, clean definitions to pass review and only injects malicious definitions or behaviour after approval.
Software supply chain compromiseTraditional supply chain attacks compromise source dependencies, build pipelines or container images before deployment; an MCP rug pull can additionally mutate live tool metadata dynamically at runtime over an already-trusted remote connection without any package reinstallation.
Cross-server tool shadowingCross-server tool shadowing occurs when a second malicious server's description alters how the LLM invokes a separate, legitimate server's tool; a rug pull describes the temporal shift of a single server from benign to malicious post-approval.

Why an MCP rug pull attack matters for on-premises AI

MCP servers often come from package registries or remote addresses and are updated, making them part of the software supply chain. Controls: pinning server versions in an internal repository, storing hashes of approved tool definitions and checking them on every connection, disabling changed tools until re-approved and avoiding remotely changeable servers for critical work. Air-gapped environments use only reviewed versions.

ON-PREMISES EXAMPLE

An energy company stores hashes of its approved MCP servers' tool definitions; when an update changes a file tool's description, the gateway spots the difference and disables the tool until the security team approves the new definition.

Common questions

What is an MCP rug pull attack?

An approved MCP server later changing a tool definition or behaviour harmfully. A server that looked safe on review turns malicious.

How do you guard against it?

Pin server versions, store and compare hashes of approved definitions and disable a tool until re-approved when its definition changes.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.