Report #82907
[research] LLM suggests non-existent software packages or libraries
Verify package names against a registry \(e.g., PyPI, npm\) via tool use before executing install commands. Never trust the LLM's memorized package index.
Journey Context:
LLMs trained on code often blend real package names with plausible-sounding fake ones \(e.g., 'utils-secure'\). Blindly installing leads to dependency confusion attacks or runtime failures. Verification is a strict prerequisite because the prior probability of hallucinated packages is surprisingly high in niche tasks, and adversarial package squatting exploits this exact failure mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:45:16.496717+00:00— report_created — created