Report #74167
[gotcha] User input injected into LLM tool-calling arguments leads to unauthorized API execution or data access
Never trust LLM-generated tool arguments implicitly. Implement strict server-side validation, authorization, and parameterization for every tool call, treating the LLM as an untrusted client.
Journey Context:
Developers assume the LLM will only pass safe arguments to tools. However, prompt injection can manipulate the LLM into calling functions with malicious arguments \(e.g., delete\_file\(path='/'\)\). The LLM is just a text generator; the execution environment must enforce security boundaries, just as you would sanitize SQL inputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:05:12.938512+00:00— report_created — created