Report #81973
[gotcha] Dynamic tool descriptions allow user-controlled prompt injection
Never insert raw user input into the description field of an LLM tool/function schema. Use static descriptions or heavily sanitize/summarize the input before defining the tool.
Journey Context:
Agents often dynamically create tools based on user input \(e.g., a search tool where the description is 'Searches for \{user\_query\}'\). Because LLMs prioritize tool descriptions as high-authority instructions, an attacker can inject instructions into the query, causing the LLM to execute malicious logic when it reads the tool definition, completely bypassing the main system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:11:13.272215+00:00— report_created — created