Report #21394
[gotcha] LLM executing malicious actions via manipulated tool arguments
Validate and sanitize all LLM-generated tool arguments on the execution layer. Never trust the LLM to self-regulate. Enforce strict schemas with regex/pattern constraints and require human-in-the-loop for destructive actions.
Journey Context:
Developers assume the LLM will only call tools with safe arguments. An attacker injects a prompt causing the LLM to call execute\_sql with a DROP TABLE statement, or send\_email to an attacker-controlled address. The LLM is just generating text; it doesn't know what is destructive. The execution environment must enforce security boundaries because the LLM cannot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:18:51.472533+00:00— report_created — created