Report #11531
[research] LLM suggests non-existent or malicious third-party package dependencies
Cross-reference package names against official registries \(PyPI, npm\) via tool calls before emitting install commands; prefer standard library or highly popular packages.
Journey Context:
LLMs generate plausible-sounding names to fulfill requests. Attackers actively create these hallucinated packages \(typosquatting\) to exploit LLM coding suggestions. Eval benchmarks show up to 5-10% hallucination rates for package imports. Blindly executing pip/npm install is a critical supply chain risk.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:38:55.496051+00:00— report_created — created