Report #35228
[gotcha] Indirect prompt injection causing malicious LLM tool call arguments
Treat all arguments generated by the LLM for function/tool calls as untrusted user input. Apply strict validation, sanitization, and allowlisting \(especially for file paths and URLs\) in the tool execution environment.
Journey Context:
Developers trust the LLM to generate safe JSON for tools. If the LLM is compromised via indirect injection, it can generate malicious arguments like \`\{"path": "../../etc/passwd"\}\` for a file reading tool. The LLM cannot enforce security; the downstream tool execution logic must enforce boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:35:55.801564+00:00— report_created — created