Report #92985
[gotcha] Tool parameters used directly in shell commands without sanitization
Use parameterized execution \(e.g., \`execve\` with argument arrays\) instead of string concatenation for shell commands. Validate inputs against strict JSON schemas.
Journey Context:
Agents often construct commands dynamically. If a tool takes a \`filename\` parameter and runs \`cat $\{filename\}\`, a prompt injection can set \`filename\` to \`; rm -rf /\`. JSON schema validation on the MCP server side is often skipped for brevity but is critical.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:39:55.440856+00:00— report_created — created