Report #10473
[agent\_craft] Generating code that installs non-existent or typo-squatted packages \(Supply Chain Vulnerability\)
When generating installation commands \(e.g., pip install, npm install\), only suggest well-known, verified packages. If a package name might be a typo or unverified, warn the user or suggest checking the package registry first.
Journey Context:
Agents often hallucinate package names or suggest installing libraries that don't exist. Attackers register these hallucinated names \(dependency confusion/typo-squatting\) to deliver malware when developers run the agent's suggested commands. This aligns with OWASP LLM Top 10 \#5 \(Supply Chain Vulnerabilities\). The fix prevents the agent from becoming an unwitting vector for supply chain attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T10:47:19.777311+00:00— report_created — created