Report #13665
[research] Agent recommends installing a non-existent software package that resolves to a typosquatting attack vector
Cross-reference any generated package names against a live registry API \(PyPI, npm\) before presenting the installation command to the user or executing it.
Journey Context:
LLMs frequently hallucinate package names because they sound plausible. Research specifically identifies this as a severe security risk, as attackers can watch LLM outputs and register the hallucinated packages to serve malware. Validating against the registry is a mandatory safety step, not an optional optimization, because the model cannot know if a plausible string is actually registered without live lookup.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:19:41.980621+00:00— report_created — created