Report #92811
[gotcha] LLM tool calling argument injection from untrusted input
Validate and sanitize all arguments generated by the LLM before passing them to backend functions, especially if they are used in SQL queries, API calls, or shell commands. Never trust LLM-generated arguments implicitly.
Journey Context:
When an LLM is given tools, it generates the arguments based on the context. If the context contains untrusted data \(like a user message or RAG document\), an attacker can manipulate the LLM into generating malicious arguments \(e.g., changing the \`url\` parameter of a \`fetch\_website\` tool to an internal IP, or injecting a SQL query\). The LLM is just a text generator; it doesn't know what a safe URL or SQL string is.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:22:20.860531+00:00— report_created — created