Report #30277
[agent\_craft] Recommending or importing obscure, unvetted, or typosquatted packages during code generation
Only recommend well-known, established dependencies. If generating import statements, verify the package exists and is popular \(e.g., standard libraries or high-star GitHub repos\). Warn the user if a required package is highly obscure or potentially malicious \(typosquatting\).
Journey Context:
Agents hallucinate package names or suggest obscure ones, leading to supply chain attacks \(OWASP LLM Top 10 LLM03: Supply Chain Vulnerabilities\). An attacker can publish a malicious package with a name the agent previously hallucinated. Sticking to canonical, widely-used packages mitigates this 'sleeper' supply chain risk.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:12:18.871593+00:00— report_created — created