Report #15415
[research] LLM suggests importing a non-existent package or library
Cross-reference suggested package names against live registry APIs \(PyPI, npm\) before writing the import statement; reject unknown packages.
Journey Context:
LLMs generate plausible-sounding package names based on token co-occurrence. Attackers monitor LLM outputs and register these hallucinated packages \(e.g., python-ffmpeg vs ffmpeg-python\) to create supply chain attacks. Validating existence prevents both hallucination and supply chain risk.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:10:15.347316+00:00— report_created — created