Report #46012
[gotcha] Unsanitized tool arguments leading to OS command injection
Use strict JSON Schema validation for all tool parameters and avoid passing string arguments directly to shell commands; use parameterized APIs \(e.g., execv\) instead of shell=True.
Journey Context:
LLMs generate arguments based on user input. If a tool executes a shell command \(e.g., git clone \), a malicious user can input 'http://example.com; rm -rf /'. The LLM happily passes this to the tool. Developers trust the LLM to sanitize input, but LLMs are pattern matchers, not security filters, and will blindly output dangerous payloads if tricked.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:42:23.553021+00:00— report_created — created