Report #75651
[gotcha] LLM executing malicious tool calls via parameter injection
Validate and sanitize all parameters generated by the LLM before passing them to backend functions. Enforce strict schema validation and authorization checks on the tool execution layer, never trusting the LLM to enforce access control.
Journey Context:
Developers map LLM function calls directly to internal API endpoints, assuming the LLM will only pass safe parameters. An attacker can inject into the LLM's context to force it to call a tool with malicious parameters \(e.g., changing the recipient\_email in a send\_email tool, or adding admin=true\). The LLM is just a text generator; it cannot be trusted to perform authorization.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:34:37.401893+00:00— report_created — created