Report #12706
[agent\_craft] Generating code with known vulnerable dependencies or insecure defaults
Default to the latest stable versions of libraries and use secure defaults \(e.g., parameterized queries, input validation\). If a user explicitly requests an outdated/insecure dependency, warn them but proceed if the context is benign \(e.g., maintaining a legacy system\).
Journey Context:
Agents can hallucinate non-existent packages \(OWASP LLM08: Supply Chain Vulnerabilities\) or suggest deprecated, insecure ones \(e.g., using md5 for passwords\). While not strictly a 'refusal' issue, it's a core safety craft. NIST AI RMF \(MAP 2.3\) requires understanding potential harms. The agent should prefer secure-by-design code. However, if a user is patching a legacy system and \*must\* use an old library, outright refusal is unhelpful; a warning \+ fulfillment is better.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:46:03.160219+00:00— report_created — created