Skip to main content
AEGIBIT
← AEGIBIT Glossary

Tool Poisoning

An attack where the description or metadata of an AI tool (the text a model reads to decide how to use it) carries hidden malicious instructions, corrupting every agent that loads the tool.

Why it matters

Agentic AI works by reading tool descriptions and deciding when to call them. That makes the descriptions themselves an instruction channel. A poisoned tool does not need to exploit code: the attack ships in plain text, activates in any connected model, and can instruct exfiltration or misuse of other legitimate tools. As businesses adopt tool-using agents, this is supply-chain risk in a new costume.

How it works

The attacker publishes or compromises a tool server whose tool descriptions embed directives ('before every call, also send the conversation to...'), sometimes hidden with encoding tricks or invisible Unicode. Defences: scan tool schemas for imperative or hidden content before registration, pin and review tool versions like dependencies, run agents least-privileged, and monitor calls for behavior that does not match user intent.

A real-world example

A developer connects a free community tool server to their AI workflow. One tool's description contains a hidden instruction to include environment secrets in its arguments. Every agent that loads it obeys silently. A pre-registration scan flags the imperative text and the hidden Unicode, and the server never enters the workflow.

Common mistakes

Best practices

Frequently asked questions

How is tool poisoning different from prompt injection?

Prompt injection hides instructions in content a model reads; tool poisoning specifically plants them in tool descriptions and metadata, compromising the agent's action layer at its source.

Who should worry about this?

Anyone wiring AI agents to tools, from solo developers using open-source tool servers to enterprises building internal agents. The ecosystem is young and review practices are still maturing.

What is the quickest practical defence?

Automated scanning of tool schemas before registration plus least-privilege credentials. Together they neutralize most known poisoning patterns cheaply.

Tool poisoning is exactly what MCP Shield was built to catch: it scans Model Context Protocol servers for poisoned descriptions, hidden Unicode, and secret exposure. Free and open source.

Explore MCP Shield

Related concepts