Tool poisoning is an attack that hides a covert instruction inside a tool's description, the metadata an AI agent reads to decide when and how to use a tool. Because the agent parses and trusts that description while planning, the hidden instruction can run as if it were a legitimate part of the task. The user never asked for it and never sees it.
Why it works
No malicious binary is required. The attack lives in plain language, in a field most users and most code scanners never read. It is listed as MCP03 in the OWASP MCP Top 10.
Related attack: agent goal hijacking
Goal hijacking is related but distinct. Instead of poisoning a tool's own description, content the agent encounters mid-task steers it away from the user's objective, toward reconnaissance or tool calls the user never intended.
How to detect and prevent it
- Scan tool descriptions and other natural-language metadata, not only code.
- Pin approved tool descriptions by hash, so any later change triggers a new review.
- Watch for tool-call sequences that do not match the workflow the user's request implies.