MCP Rug Pulls: When a Trusted Tool Turns Malicious
Picture this. You review an MCP server for an hour and it seems fine. You work with it for a few weeks, with 3 different clients. Then one of those clients tells you his customers' details, how much they pay him and their payment methods were stolen and posted online.
You ask yourself how this could happen, and what actually happened?
That's called a rug pull: an MCP server that seemed fine at approval but was later changed to do malicious things. As I said in my previous post on MCP tool poisoning, this type of attack is what keeps me up at night when using MCPs.
What is an MCP rug pull?
The whole evil genius of this attack is timing and simplicity.
Tool poisoning is the payload (the hidden instructions). A rug pull is when it shows up: after you reviewed, approved and trusted the tool. That's the timing.
It works because you reviewed the tool once, at install, but your agent re-reads its definitions every session. That's the simplicity.
The Cloud Security Alliance's May 2026 whitepaper describes it as a tool that "passed initial inspection" and is "subsequently modified." It also notes that clients typically don't verify that tool definitions stay the same between sessions, which makes this a known problem in the agent world, not a theory.
How does a tool change after you approve it?
MCP lets servers declare a listChanged capability. When their tool list changes, the server sends a notification and the client fetches the list again. That's a legitimate feature (servers add tools), but nothing in the protocol requires the user to approve the new version.
{
"jsonrpc": "2.0",
"method": "notifications/tools/list_changed"
}
That one message is all it takes to tell your client "my tools are different now."
The MCP specification's own safety guidance says clients SHOULD keep a human in the loop, and MUST treat tool annotations as untrusted unless the server is trusted. Whether a client asks you to re-approve changes is up to that client.
There are three ways a change can happen:
- Server-side swap: the easiest. A remote server simply starts returning different definitions. Nothing on your machine changes.
- Package update: the postmark case. A new version of an npm or pip package ships with malicious code.
- Delayed trigger: the ingenious one. The server behaves normally at first, then switches after a set number of uses or launches. This one is designed to fool reviewers (DeadBugz, the WhatsApp demo).
Now let's go through some real examples, newest first.
Real MCP rug pull cases (2025–2026)
DeadBugz: a server that turns malicious after three uses (August 2026)
The newest incident was published by Pillar Security on August 12, 2026. A malicious MCP server called productivity-suite was pushed through pull requests on public GitHub repos that added it to the project's MCP config. It offered two normal tools, format_text and summarize, which worked fine.
Behind the scenes it counted tool calls per client. After the third call, what it returned from tools/list changed to hidden instructions telling the agent to look for SSH keys, AWS credentials, shell history and Kubernetes config, and to hide all of this from the user.
Pillar calls the three-call threshold a research-evasion technique: a quick test only ever sees the clean version.
The campaign was 23 pull requests from one account, all created within a 74-minute window on August 10, 2026. At review time, none had been merged.
The scary part isn't the payload. It's that the server was built to pass a quick check.
postmark-mcp: 15 clean versions, then one bad line (September 2025)
Another incident, from September 2025, was reported by BleepingComputer. An unofficial postmark-mcp npm package shipped 15 clean versions. Then version 1.0.16 added one line that copied (BCC'd) every outgoing email to an address controlled by the developer.
It had about 1,500 weekly downloads, and Koi Security estimated around 300 organizations had integrated it. The developer removed the package the day after disclosure.
The trust was built over 15 releases. Then he hit the unsuspecting users.
The WhatsApp "sleeper" demo (April 2025)
On April 7, 2025, Invariant Labs published a research demonstration (not an attack in the wild) where a server offered a harmless tool, get_fact_of_the_day ("Get a random fact of the day"). It was built to switch only on its second launch, so the user never re-approved anything.
The new description told the agent to redirect WhatsApp messages to an attacker's number and attach the user's chat history, hidden so the confirmation dialog only showed "Hi."
Imagine that happening to you: business information or private conversations exposed. Unpleasant, to say the least.
Cursor's "approve once" gap (July 2025)
In July 2025, Check Point Research found that Cursor approved an MCP config once and never re-checked it when the config changed later (CVE-2025-54136, nicknamed "MCPoison"). Cursor fixed it in version 1.3, which now asks you to re-approve when the config changes.
So clients are starting to close the gap. Just not every client, and not every kind of change.
Why don't most setups catch this?
Industry reports from 2026 (Cloud Security Alliance, PipeLab) call cross-session drift detection a gap in the ecosystem. A one-time scan only sees what the server shows at that moment, and DeadBugz was built specifically to exploit that.
You review once, your agent re-reads every session. That's the most sensitive gap in the ecosystem, because a source-code review doesn't help with a remote server whose code you never see. That's what caught my attention.
How SkillForge handles rug pulls
We address the problem with SkillForge Protect.
When you approve a server, Protect fingerprints the tool's definitions, and every day it fetches them again and compares. If they changed since your approval, the server is flagged and stays flagged until someone re-approves it, so you can scan your config and know when anything shifts. The full process is in our security docs.
Now the honest part. One of the harder problems we ran into is an attack like DeadBugz, where a server holds back its malicious metadata until after several tool calls. A daily fingerprint check fetches the tool list but doesn't use the tools, so a server built like that can show a clean fingerprint every time. The same goes for the postmark case: if the definitions stay identical and only the code behind them changes, a fingerprint won't show it. Protect goes after that gap too. It's built for teams running MCP tools in production, and it runs behavioral probe scans on remote servers: we make several tool calls and re-check the definitions after each one, so a server that changes mid-session gets flagged as critical. When a tool you approved changes, your team gets an alert and a report of exactly what changed. Behavioral probing for local stdio servers is on the roadmap after that. Protect is live now.
How to protect yourself from MCP rug pulls
Here's a short checklist you can do yourself, so you'll feel (and be) safer:
- Pin versions. Install packages at an exact version (
@1.0.15, not@latest) and read the changelog before upgrading. - Prefer clients that ask you to re-approve changes. Check your client's settings; Cursor added this in 1.3.
- Save a snapshot of the definitions. Call
tools/listonce after install, save the output, and diff it after updates. While you're at it, check the descriptions for hidden characters. - Be suspicious of tools that ask for more than they need. A text formatter has no reason to read
~/.ssh. - Watch for config changes in PRs. DeadBugz arrived as a pull request that edited an MCP config file. Review those like you'd review a new dependency.
FAQ
What is the difference between tool poisoning and a rug pull?
Tool poisoning is the what: instructions hidden inside a tool's name, description or parameters that your AI reads and you don't. A rug pull is the when: those instructions show up after you've already reviewed and approved the tool. Most rug pulls deliver tool poisoning, they just wait until you've stopped looking.
Can an MCP server change its tools without me knowing?
Yes. A server can send a list-changed notification, or a remote server can simply start returning different definitions the next time your client asks. Whether you get asked to re-approve depends on your client, and most don't check by default.
Does pinning a package version protect me from a rug pull?
Partly. Pinning protects you from a malicious package update like postmark-mcp, because you won't get version 1.0.16 until you choose to upgrade. It does nothing against a remote server that changes what it returns, like DeadBugz, so you need both pinning and a check on the tool definitions themselves.
How often should I re-check MCP tools I've installed?
Every time a definition changes, ideally automatically, because you won't notice the change yourself. At the very least, re-check after every update and keep a saved copy of tools/list to compare against. A one-time review at install isn't enough.
I still install MCP tools all the time. I just stopped assuming that what I approved last month is what's running today.
SkillForge is the trust layer for MCP tools — verified before listing, monitored daily.
Missed part one?
MCP Tool Poisoning: What It Is and How to Detect ItSources: Pillar Security, "DeadBugz: currently active MCP supply chain campaign" (August 2026); Cloud Security Alliance, "MCP Tool Poisoning and Rug Pull Attacks" whitepaper (May 2026); PipeLab, "The State of MCP Security 2026" (April 2026); Koi Security's postmark-mcp disclosure, reported by BleepingComputer (September 2025); Invariant Labs, "WhatsApp MCP Exploited" (April 2025); Check Point Research, MCPoison / CVE-2025-54136 (July 2025); Model Context Protocol specification, Tools.