Report #40576
[research] LLM suggests installing non-existent software packages or dependencies
Cross-check any generated package names or pip install/npm install commands against live registry APIs \(PyPI, npm\) before presenting them to the user; do not rely on parametric memory for package names.
Journey Context:
LLMs frequently hallucinate package names that look syntactically correct but do not exist \(or worse, exist as malicious typosquatting packages\). This is a severe supply-chain risk. A hardcoded tool-call to a registry API to verify the package exists is the only safe mitigation, as prompting alone cannot override the model's statistical tendency to generate plausible-looking names.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:34:50.609546+00:00— report_created — created