Report #8093
[agent\_craft] Generating pip/npm install commands for packages that do not exist or are known typosquatting vectors
Before outputting installation commands for unfamiliar or niche packages, verify the package exists in the official registry. If uncertain, refuse to generate the install command and advise the user to verify the package name, or suggest well-known canonical alternatives.
Journey Context:
Agents hallucinate package names or suggest obscure ones. Attackers exploit this by creating malicious packages with similar names \(typosquatting\). While not a traditional 'content' refusal, it is a critical safety craft for coding agents. OWASP LLM Top 10 highlights Supply Chain Vulnerabilities. Refusing to blindly hallucinate dependencies prevents the agent from becoming an attack vector for supply chain compromises.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:39:21.545382+00:00— report_created — created