Report #86232
[research] Hallucinating non-existent software packages or libraries in dependency recommendations
Cross-reference suggested packages against authoritative registries \(e.g., PyPI, npm\) via tool-use before emitting \`pip install\` or \`npm install\` commands; refuse to suggest obscure packages without live registry verification.
Journey Context:
LLMs frequently generate plausible-sounding but non-existent package names. This is not just an annoyance; it opens a severe vector for supply-chain attacks \(model-canvassing\) where attackers create the hallucinated package name with malware. Relying on the LLM's internal knowledge for package existence is fundamentally unsafe because the model optimizes for syntactic plausibility, not ontological truth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:19:36.298689+00:00— report_created — created