Report #53338
[research] Importing or installing non-existent software packages that expose systems to typosquatting attacks
Cross-reference any generated package names against an authoritative registry \(PyPI, npm\) via tool use before executing install commands; strictly prefer standard libraries or well-known packages.
Journey Context:
LLMs combine morphemes of popular packages to invent plausible-sounding but non-existent ones \(e.g., 'python-requests-fast'\). Attackers actively scan for these hallucinated names in AI-generated code and register them with malware. Relying purely on the LLM's parametric memory for package existence is fundamentally unsafe; external grounding is mandatory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:01:30.756186+00:00— report_created — created