AG-011: Tool Description Injection / Poisoning

HIGH AG-011 OWASP ASI02 · ASI09

What this rule means

Tool descriptions contain patterns consistent with prompt injection or jailbreak.

Why it matters

Invariant Labs (2025): demonstrated tool poisoning against WhatsApp and GitHub MCP servers.

How to fix it

Pin tool descriptions, sanitize before use, monitor for changes.

Detect it

pip install lucin
lucin scan .                  # all rules
lucin explain AG-011          # this rule, in your terminal

Findings carry a file:line and, where the rule supports it, a witness path showing the flow that triggered it. Precision and recall for the whole rule set, with the commands that regenerate them, are on the benchmarks page — and the gaps are on limits.

← All detection rules