MCP rug pull
An attack in which an MCP server changes its tool descriptions or behavior after the user approved it, turning a trusted tool into a malicious one.
Most AI clients ask you to approve an MCP server or tool once. A rug pull exploits that: the server looks harmless at install time and later changes what it sends, for example by updating a tool description with hidden instructions. Invariant Labs described it in April 2025 together with tool poisoning: the client keeps trusting the approved tool while the model reads the new text.
The same risk exists for any dependency that updates itself, which makes it a variant of a software supply chain attack. Invariant’s recommended defense is pinning: store a hash of each tool description you approved, and block or ask again when it changes. Also pin the server version, prefer servers you build or review, and treat a remote MCP server run by a third party as code you do not control.
Sources
- Invariant Labs: MCP Security Notification: Tool Poisoning Attacks invariantlabs.ai
Related terms
- Tool poisoning (MCP): An attack that hides instructions in a tool’s name, description or output, so an agent using that tool follows the attacker instead of the user.
- MCP (Model Context Protocol): An open protocol for plugging tools and data into AI apps: write a server once, use it from any client.
- Software supply chain attack: Compromising software through what it is built from: a package, a build tool, a CI action or a maintainer’s account.
- Agent tool misuse: When an AI agent uses a tool it was legitimately given in a harmful way, such as deleting data, overspending or leaking files, after manipulation or a bad plan.
- AI agent authorization: How an AI agent gets and proves permission to act for a user: delegated, scoped, short-lived tokens checked by the API it calls, never by the model.
