← Catalog
Research high Attacks on AI discovered 2025-04-01

MCP Tool Poisoning: Hidden Instructions in Tool Descriptions

Malicious instructions hidden in an MCP tool's description — invisible to the user but visible to the model — steered an agent to read secrets such as ~/.ssh/id_rsa and exfiltrate them through an ordinary-looking tool argument, without the poisoned tool ever being called.

What happened

In April 2025, Invariant Labs (Luca Beurer-Kellner and Marc Fischer) demonstrated MCP tool poisoning: malicious instructions hidden in an MCP tool’s description, invisible to the user but visible to the model, steer the agent to read secrets — for example ~/.ssh/id_rsa — and exfiltrate them through an ordinary-looking argument to another tool. The poisoned tool itself never needs to be called; its description alone does the work, because the agent treats the description as part of its instructions.

Why it maps to ATLAS

  • AML.T0110 — AI Agent Tool Poisoning: a tool’s model-visible definition is poisoned so the agent’s behavior differs from the function the tool claims to perform.
  • AML.T0110.000 — Definition and Instructions: the poison lives in the tool’s description, schemas, and parameter documentation — the semantic interface the model reads.
  • AML.T0086 — Exfiltration via AI Agent Tool Invocation: the agent’s own authorized tool calls carry the stolen secret out.

Detection notes

The defender-visible signals per sub-technique, as described by Vectra, are a tool description changing without a version change, new outbound destinations or recipients from a known tool, and tool returns that contain instructions rather than data. The durable controls are tool pinning (hash descriptions at approval, refuse on change) and runtime scanning of descriptions and responses. No vendor SIEM rule for this attack is quoted in the cited sources.

Detection

Log sources

  • MCP tool-definition / approval audit (description hashes, version)
  • Agent tool-invocation + outbound-request logs
  • Tool-response logs (returns inspected for instructions, not just data)

Signals

  • A tool description changing without a version change
  • New outbound destinations or recipients from a previously known tool
  • Tool returns containing instructions rather than data

Mitigations

  • Pin tools at approval: hash descriptions and refuse to execute when the hash changes
  • Scan tool descriptions and runtime responses for embedded instructions
  • Treat all tool output as untrusted data, never as instructions