MCP rug pulls: how to detect when an MCP server changes its tools · Axium Lab

axium-lab.com17 min read

An MCP rug pull occurs when an MCP server changes its tool definitions after approval to inject instructions that trick the model into exfiltrating private data or manipulating other servers. The author explains the mechanics of this attack and builds a dependency-free JavaScript detector that hashes canonical tool definitions, diffs every field, and highlights invisible characters to catch unauthorized changes. Open article →

More on this topic