Report #45657
[gotcha] Unsanitized tool parameters passed to shell commands
Use parameterized execution \(e.g., arrays of arguments instead of concatenated strings\) and strict input validation on tool arguments.
Journey Context:
A tool runs a shell command like 'git log \{param\}'. If 'param' is user-controlled and unsanitized, an attacker can inject '; rm -rf /'. Because the LLM is the one passing the argument, developers mistakenly trust the LLM to sanitize the input. LLMs are not sanitizers; they will pass malicious strings verbatim if tricked by prompt injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:06:37.696585+00:00— report_created — created