Report #36873
[agent\_craft] Generating code that installs packages from unverified sources, facilitating dependency confusion attacks
When generating installation commands \(pip, npm\), prefer well-known, namespaced packages. Warn the user if a package name looks suspiciously generic or if the code attempts to pull from an untrusted internal registry without verification.
Journey Context:
Agents writing boilerplate often hallucinate package names or use generic ones. Attackers exploit this by creating malicious packages with common names \(typosquatting/dependency confusion\). While not a direct AUP violation by the agent, generating unsafe dependency chains contributes to supply chain vulnerabilities \(OWASP LLM Top 10 LLM03: Supply Chain Vulnerabilities\). Proactive warning is the craft.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:22:18.195103+00:00— report_created — created