Agent Systems · Advanced · about 25 min
Tool Definition Poisoning
Poison dynamic tool metadata so the agent violates its own restricted-tool rules.
What you practise
Poison tool metadata and steer agent behavior. You run the attack yourself on a live model in a private sandbox set up for you, then capture the flag. Nothing to install and no API key.
The system prompt is a template, and the template has inputs
Developers think of the system prompt as static configuration. In agent frameworks, it's actually a template that interpolates tool descriptions, retrieved docs, memory, and user profiles. Every one of those interpolation points is an injection vector if its source isn't trusted. Treat tool descriptions, plugin manifests, and MCP server metadata the same way you'd treat raw user input, because once they're concatenated into the prompt, they're indistinguishable from it.
Where this has happened
- MCP tool description injection (2024-2025): Multiple researchers (Invariant Labs, others) showed MCP servers' tool descriptions could embed instructions that overrode the host agent's behavior, 'tool poisoning' is now its own bug class.
- LangChain tool descriptions (2023): Early LangChain demos passed tool docstrings into the prompt directly; community examples showed injecting instructions via the docstring of a registered tool.
- OpenAI GPTs Actions (2024): OpenAPI specs for custom GPT Actions were shown to influence GPT behavior beyond their stated purpose, the spec's descriptions became part of the prompt.
Sign in to launch this lab Learn the theory in the Academy
More Agent Systems labs
- Agentic Email Attack: Social engineer an email AI agent into forwarding confidential data.
- Multi-Agent Chain Attack: Exploit the trust boundary between a planning agent and an execution agent.
- LLM-as-a-Judge Bypass: Sneak policy-violating content past an LLM moderator even though a deterministic checker rejects it.
- LLM Authorization Bypass: Bypass role-based access controls enforced by an LLM gatekeeper.
- Markdown Image Exfiltration: Exfiltrate data via LLM-generated markdown images rendered in the browser.
Catalog
Attack labs
20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.
Sessions
Active sessions
Resume a running lab or stop it before starting the next one.