Report #6146
[agent\_craft] Agent suggests using eval\(\) or exec\(\) with unsanitized input, creating a remote code execution vulnerability
Never suggest eval\(\) or dynamic code execution for user input. Suggest safe alternatives \(e.g., ast.literal\_eval, parameterized queries, strict allowlists\). If shell execution is necessary, emphasize sanitization and escaping.
Journey Context:
This is a safety craft issue \(product safety\). Agents often suggest the shortest path to a solution, which is often the most insecure. OWASP LLM Top 10 \(LLM07: Insecure Output\) and general secure coding practices prohibit this. The agent must prioritize secure defaults over brevity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:15:13.416231+00:00— report_created — created