← All 96 breakdowns
AUDIT

Your MCP tools can carry hidden orders (the breakdown)

From Adam Rosler. The thing you commented AUDIT for.

What's happening

When you install an MCP server (a plug-in that gives your AI agent new tools), each tool arrives with a description: its "label". Your app shows you a name and maybe one line. Your agent's model gets the whole label, and it reads it as part of its instructions.

So a server can hide orders in a label. Invariant Labs published the classic example in April 2025: a harmless add(a, b) tool whose label also says, inside an <IMPORTANT> block, to first read ~/.cursor/mcp.json and ~/.ssh/id_rsa (your SSH private key), pass them in an extra parameter called sidenote, and not mention it to the user. In their test in Cursor, the agent did it, and the approval dialog didn't show the full parameter.

It isn't a one-off trick. The MCPTox benchmark (Wang et al., 2025) planted poisoned labels on 45 real MCP servers and tested 20 model setups: the worst followed the hidden orders 72.8% of the time, and the most careful model refused less than 3% of the time.

Why it matters

  • It works before you use the tool. The label is read when the agent starts, so it can steer everything the agent does, including how it uses your other tools.
  • Approving a tool doesn't freeze it. A server can change its labels after you've said yes, on its next start or mid-session. This is called a rug pull. Checking once, on install day, isn't enough.
  • A tool label is someone else's writing inside your agent's instructions. Treat it like code someone else wrote.

What to do

  1. Read the whole label. The official MCP Inspector can print exactly what each tool tells the model (npx @modelcontextprotocol/inspector --cli --config <your config> --server <name> --method tools/list). Look for orders aimed at the model ("before using this tool…", <IMPORTANT>), file paths and keys (~/.ssh, .env), secrecy ("don't tell the user"), and parameters the job doesn't need (an add tool with a sidenote).
  2. Seal it. Keep a fingerprint (a hash) of every tool's label and check it every session. If a label changes, stop and read the new one before your agent does. (My own small checker did exactly this in my test: it flagged the rug-pull server's new hidden block the next time it started.)
  3. Scan it. Cisco's open-source MCP Scanner, in its offline rule mode, flagged Invariant's example as HIGH ("credential harvesting") with no account; the same tool without the hidden block came back safe. A clean scan means "nothing known-bad", not "safe".
  4. Fewer, pinned servers. Install only what you need, and pin versions (never @latest) so nobody can quietly rewrite your agent's instructions tomorrow.
  5. Read the approval. If a tool call carries a long string your request didn't need, deny it.

Sources

  • Invariant Labs, "MCP Security Notification: Tool Poisoning Attacks", 1 April 2025.
  • Wang et al., "MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers", arXiv 2508.14925.
  • Model Context Protocol specification (2025-06-18): Server, Tools.
  • Cisco AI Defense, MCP Scanner (github.com/cisco-ai-defense/mcp-scanner).
  • My test runs (23 Nov 2026) are kept with the reel's project files.
FREE ONE-TIME UNLOCK

Unlock the full AUDIT breakdown

Drop your email once to read the complete step-by-step guide, grab the files, and unlock all 96 Reel breakdowns on this device forever.

✓ Instant reveal right here✓ No spam, unsubscribe any time