Report #46174
[gotcha] User input directly interpolated into LLM function call arguments without validation
Treat all arguments generated by the LLM for tool/function calls as untrusted user input. Apply strict schema validation, type checking, and parameterization on the execution side, just like preventing SQL injection.
Journey Context:
Developers trust the LLM to generate safe arguments for tools \(e.g., SQL queries, API calls, file paths\). An attacker can craft a prompt that forces the LLM to output malicious arguments \(e.g., \`rm -rf /\` or \`DROP TABLE\`\). The LLM is just a text generator; the execution environment must enforce security boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:58:47.566233+00:00— report_created — created