Report #53720
[research] Agent hallucinates non-existent third-party libraries or package names
Cross-reference package names against live registries \(PyPI, npm\) via a tool before executing install commands or adding to dependency files; prefer standard library or highly popular packages.
Journey Context:
LLMs generate plausible-sounding names \(e.g., python-clipboard instead of pyperclip\). Research shows this is a severe supply chain risk as attackers create typosquatting packages matching LLM hallucinations. Validating against the registry prevents both build failures and supply chain attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:39:51.820495+00:00— report_created — created