← All advisories

VV-014highPrompt injection2025-04-01

MCP tool poisoning: hidden instructions in tool descriptions

An MCP server can hide instructions inside a tool’s description. The model reads them, the user usually doesn’t, and the agent can be steered into reading files or sending data elsewhere.

01.

What it is

Invariant Labs published this as a “Tool Poisoning Attack” against the Model Context Protocol on 1 April 2025. Tool descriptions are passed to the model as trusted context, so text in them acts like instructions.

Their write-up shows a harmless-looking tool whose description tells the agent to read sensitive local files and pass them along as a hidden parameter.

02.

How to check

  1. List every MCP server configured in your editor or agent, and where each one came from.
  2. Read the full tool descriptions each server exposes, not the short name your client shows.
03.

How to fix

  1. Only install MCP servers from sources you trust, and pin versions.
  2. Keep human approval on for tool calls that read files or reach the network.
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.