Report #25030
[gotcha] LLM executing attacker-controlled function arguments blindly
Implement strict validation, sanitization, and authorization checks on all function call arguments generated by the LLM before execution. Never trust LLM-generated parameters to be safe or within expected bounds.
Journey Context:
When LLMs are given tool access, an indirect injection can cause them to call functions with malicious arguments \(e.g., send\_email\(to="[email protected]", body="secret"\)\). Developers often validate user input but fail to validate LLM-generated tool inputs, assuming the LLM acts as a benign intermediary. The LLM is simply fulfilling a synthesized instruction; it has no inherent concept of authorization boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:25:23.361052+00:00— report_created — created