Report #47088
[research] ModuleNotFoundError from hallucinated pip/npm packages
Cross-reference package names against official registries \(PyPI, npm\) via tool-use before suggesting or installing; default to standard libraries if uncertain.
Journey Context:
LLMs predict statistically likely package names, often blending concepts into non-existent packages \(e.g., python-requests-fast\). Attackers exploit this by creating malicious packages matching LLM hallucinations \(squatting\). Blind installation is a security and factuality failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:30:29.425957+00:00— report_created — created