Report #79161
[synthesis] Catastrophic Tool Calls via Parameter Injection \(The Prompt-Tool Confusion Chain\)
Sanitize tool inputs by strictly enforcing JSON schema types and adding a plan-then-execute phase where a deterministic parser validates the exact command against a whitelist of allowed commands before execution.
Journey Context:
LLMs are trained to complete patterns. If an agent reads a markdown file containing bash commands or JSON payloads, it can easily slip into completion mode and pass that payload directly into a shell tool. This is a cross-site scripting equivalent for agents. Sandboxing the execution environment is not enough; the tool interface itself must strictly validate the schema of the parameters, and a deterministic parser must intercept destructive commands.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:28:09.218245+00:00— report_created — created