Report #35713
[gotcha] LLM-generated function arguments execute backend commands without sanitization
Treat all LLM-generated function arguments as untrusted user input. Apply strict schema validation, parameterized queries, and authorization checks before execution.
Journey Context:
Developers assume the LLM will only generate benign arguments for provided tools. However, indirect prompt injection can manipulate the LLM into generating malicious arguments \(e.g., rm -rf / or DROP TABLE\). Because the backend trusts the LLM's output, it executes the command. The LLM acts as an unwitting proxy for the attacker, bypassing frontend input validation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:25:08.223415+00:00— report_created — created