🚀 Join our AI Wargame at Black Hat Asia and our Workshop + Wargame at NDC Sydney .


MCP Rug Pull

An MCP rug pull happens when a once-trusted tool or provider changes behaviour after being installed or approved — typically by pushing a malicious update, changing the manifest to include hostile instructions, or swapping code in the registry. Users and LLMs that previously trusted the tool continue to invoke it, but the updated tool performs unauthorised actions (exfiltration, secret leakage, arbitrary calls) or otherwise abuses granted privileges. Rug pulls exploit implicit trust, weak provenance, and absent update controls in the MCP ecosystem.

Remediation

  • Require cryptographic signing for tool manifests and all updates; reject updates that are unsigned or signed by an unexpected key.
  • Pin tools by immutable identity (manifest hash / content-addressed ID) and require explicit re-approval for any hash change.
  • Force staged update policies: notify and require human re-approval (or admin gate) for updates that expand permissions or change behaviour.
  • Run third-party tools in least-privilege sandboxes and mediate sensitive ops (file access, network egress, secrets) at runtime.
  • Provide rapid revocation and audit: maintain a blacklist/kill-switch for compromised tool IDs and emit tamper/evolution logs for monitoring and incident response.

Metadata

  • Severity: medium
  • Slug: mcp-rug-pull

CWEs

  • 494: Download of Code Without Integrity Check
  • 829: Inclusion of Functionality from Untrusted Control Sphere

OWASP

  • LLM01:2025: Prompt Injection
  • LLM03:2025: Supply Chain

Available Labs

Select a language to explore available labs for this vulnerability.

Deco line
Deco line

Play AppSec WarGames

Want to skill-up in secure coding and AppSec? Try SecDim Wargames to learn how to find, hack and fix security vulnerabilities inspired by real-world incidents.

Deco line
Deco line

Got a comment?

Join our secure coding and AppSec community. A discussion board to share and discuss all aspects of secure programming, AppSec, DevSecOps, fuzzing, cloudsec, AIsec code review, and more.

Read more