Skip to content
AgentProv

2026-07-08 · 2026-Q3

"HalluSquatting" Weaponizes AI Package-Name Hallucinations

Primary layerL4 Code / PackageSecondary:L2 Instruction

Where did this code come from?

The question layer 4 asks, and failed here.
Fixable
Architectural
Vendor response
Unknown
In the wild
No
Actor
Attacker

Target

AI coding assistants Cursor, Windsurf, GitHub Copilot, Cline, Gemini CLI, and the OpenClaw family

Impact

Attackers register the fake package and repository names that models reliably invent, seed them with malicious code plus hidden prompt injection, and wait for an assistant to fetch the attacker version when a user asks for the "real" resource, chaining hallucination to code execution via the agent's terminal tool. Researchers measured an 85% consistency rate for the same incorrect repository names across phrasings and vendors and a 100% success rate for skill-install requests

Root cause

Structural LLM hallucination of plausible but non-existent artifacts combined with agents that fetch and run model-named resources without verification. Found by the Ben Nassi group (Tel Aviv University) with Stav Cohen (Technion) and Ron Bitton (Intuit)

Sources

Catalog

Cite this: AgentProv incident record: "HalluSquatting" Weaponizes AI Package-Name Hallucinations (2026-07-08). https://agentprov.com/incidents/2026-07-08-hallusquatting-weaponizes-ai-package-name-hallucinations