Report #74778
[gotcha] Dynamic tool descriptions allow attackers to hijack LLM agent behavior
Treat tool names and descriptions as immutable, trusted system prompts. Never interpolate untrusted user input into tool descriptions or function schemas.
Journey Context:
In agentic systems, the LLM decides which tool to call based on the tool's description. If a developer dynamically builds tool descriptions using user input \(e.g., 'Search for \{user\_query\}'\), an attacker can inject instructions into the description, causing the LLM to call a different tool or exfiltrate data via the tool arguments.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:07:01.282123+00:00— report_created — created