Report #38325
[gotcha] Indirect injection triggering unintended tool calls with malicious arguments
Validate and sanitize all arguments generated by the LLM before executing tool calls. Never trust LLM output as a safe API parameter. Apply strict schema validation and principle of least privilege to tool implementations.
Journey Context:
Developers assume the LLM will only call tools with the intended arguments. However, if the LLM reads a malicious document, it might call send\_email\(to='[email protected]', body=user\_data\). The LLM is just generating text; it has no inherent concept of security boundaries. The execution environment must enforce security, treating LLM-generated tool calls as fully untrusted input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:48:14.879267+00:00— report_created — created