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

Attack labs

20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.

Active sessions

Resume a running lab or stop it before starting the next one.