Report #61522
[research] Importing non-existent software packages or libraries
Cross-reference generated import statements against a live package registry \(PyPI, npm\) or a curated allowlist before executing or presenting the code.
Journey Context:
LLMs frequently generate highly plausible but non-existent package names \(e.g., importing a fake utility library\). If an agent executes this, it halts; if a human runs it, it breaks. Worse, attackers actively watch for these hallucinations to deploy typosquatting malicious packages. Parametric memory cannot be trusted for namespace availability; external verification is mandatory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:45:08.725246+00:00— report_created — created