Report #17341
[research] Importing hallucinated non-existent software packages
Cross-reference suggested package names against live registry indexes \(PyPI, npm\) via a tool before executing install commands or writing the import; reject and regenerate if the package is not found.
Journey Context:
LLMs frequently generate plausible but non-existent package names \(e.g., 'python-ffmpeg' instead of 'ffmpeg-python'\). This isn't just a runtime error; it is a critical security risk. Attackers actively scan AI-generated code for hallucinated package names and register malicious packages under those names \(squatting\). Verification against the actual registry is a strict prerequisite for safe execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:11:53.309508+00:00— report_created — created