Quick Answer:
HalluSquatting turns an AI hallucination into a supply-chain attack. A model invents a plausible repository, package or skill name. An attacker predicts and registers that name. An agent with terminal access then retrieves the attacker-controlled resource and may follow its instructions or run its code. The July 2026 paper introducing adversarial hallucination squatting reports hallucinated resources in up to 85% of repository-cloning scenarios and up to 100% of skill-installation tests. Those are scenario results, not a universal compromise rate.
Update 16/11/2026:
Microsoft research published on 12/11/2026 shows backdoored models can make coding agents run attacker scripts, a related supply-chain risk. Read our analysis of the FAA ground stop and the week in AI agent security.
Update 19/11/2026:
We have added the paper's per-model, per-application and skill-installation results as charts and tables, each traced to a numbered table or section of the full text, plus the 2024 package-hallucination study that established the baseline. No conclusions have changed.
92.4%
Mean owner-hallucination rate on recent repositories
Against 0.9% on long-established ones; six models via API
99.1%
Clones hallucinated when Cursor CLI skipped web search
438 of 442 runs; 6.6% when it did search
127 of 140
Skill installs resolved to a squattable name
90.7% on OpenClaw with Sonnet 4.6
20% to 65%
End-to-end attack success on coding assistants
40% to 100% on skill-based personal assistants
Source: Spira et al., arXiv 2607.07433 (8 July 2026), Tables I, III, VIII and X
Nate B Jones on poisoned agent skills and securing the agents you run - the same attack surface HalluSquatting exploits.
How Does HalluSquatting Work?
A HalluSquatting attack starts with an AI agent's uncertainty. A user asks an agent to install a new tool, clone a trending repository or add a skill. If the model does not know the exact identifier, it may produce a name that looks right. Unlike a random typo, model hallucinations are often patterned. Models trained on similar data can converge on the same plausible substitution, owner name or repository structure.
The attacker samples those likely mistakes in advance. They then register the strongest candidates on GitHub, a package registry or a skill directory. The name now resolves, but resolution is not proof that the resource is genuine. An agent may treat existence as confirmation and proceed to read a malicious README, follow prompt-like instructions or run an installation script.
- Prediction: the attacker identifies popular resources and asks models for names likely to be hallucinated.
- Registration: the attacker claims a predicted repository, package or skill identifier.
- Retrieval: an agent invents the same identifier during a real task and locates the attacker-controlled resource.
- Execution: terminal or installation permissions allow instructions or software from that resource to affect the local system.
This is dangerous because the agent can be both the source of the mistake and the mechanism that acts on it. A human may never type the false name or inspect the page that supplied the instructions.
What Did the HalluSquatting Researchers Test?
The primary source is the paper Beware of Agentic Botnets: Scalable Untargeted Promptware Attacks via Universal and Transferable Adversarial HalluSquatting, published on 8 July 2026 by researchers from Tel Aviv University, Technion and Intuit.
The team studied whether hallucinated identifiers are frequent, predictable and transferable. Transfer matters because an attacker does not need to know the exact model or prompt used by a future victim. If likely mistakes recur across models and application layers, one registered lookalike can catch traffic from multiple systems.
The experiments covered repository cloning and skill installation, followed by practical demonstrations against production AI applications equipped with terminal tools. The paper reports remote tool execution and remote code execution in tested configurations. That finding establishes feasibility. It does not mean every agent can be remotely compromised without preconditions.
The preconditions are important: the agent must hallucinate a resource, the attacker must control that identifier, the application must retrieve it, and the permission model must permit a harmful next step. Removing any one link can stop the chain.
The scale is worth stating precisely. The full paper describes more than 14,000 runs across two settings. In the controlled setting, six models (Gemini 2.5 Flash, Gemini 2.5 Pro, GPT-5.1, GPT-5.2, Claude Sonnet 4.5 and Claude Opus 4.5) were each asked 100 times to print a clone command for 15 repositories: five created between 2013 and 2018 with more than 180,000 stars each, and ten trending repositories created in 2025. The split is the experiment. Models almost never got the old repositories wrong and almost always got the new ones wrong.
Share of clone commands naming the wrong repository owner, by model
Mean hallucination rate per model, 100 API queries per repository. Lower is better.
- 10 recent trending repositories (created 2025)
- 5 long-established repositories (created 2013 to 2018)
Gemini 2.5 Flash
Gemini 2.5 Pro
GPT-5.1
Claude Sonnet 4.5
GPT-5.2
Claude Opus 4.5
Show data table
| Benchmark | 10 recent trending repositories (created 2025) | 5 long-established repositories (created 2013 to 2018) |
|---|---|---|
| Gemini 2.5 Flash | 100% | 1.8% |
| Gemini 2.5 Pro | 100% | 3.9% |
| GPT-5.1 | 99.9% | 0% |
| Claude Sonnet 4.5 | 96.5% | 0% |
| GPT-5.2 | 85.7% | 0% |
| Claude Opus 4.5 | 72.3% | 0% |
Source: Spira et al., arXiv 2607.07433, Table III (mean rows)
Across the ten recent repositories the mean was 92.4%, and 53 of the 60 repository and model pairs produced the wrong owner every single time. For the five older repositories the mean was 0.9%, with 25 of 30 pairs at exactly zero. The authors attribute the gap to training data: a repository that became popular after a model's cut-off is one the model has to guess at, which is exactly when users are most likely to ask an agent to fetch it.
Not every wrong name is exploitable, because many hallucinated owners already exist. The paper counts a directly registrable name in 27% of the 6,000 recent-repository queries (1,602 runs), ranging from 2.8% to 58% depending on the repository.
How Does HalluSquatting Differ From Slopsquatting and Typosquatting?
Typosquatting predicts human typing errors. An attacker registers a domain or package with a missing, swapped or adjacent character. The victim supplies the wrong name.
Slopsquatting predicts package names that a language model may invent. A developer copies a suggested dependency into a package manager, so the model supplies the wrong name and the human executes it.
HalluSquatting extends the idea into agentic retrieval. The target may be a repository, skill or other resource, and the AI application can complete the retrieval and execution loop itself. The attack also uses transferability: hallucinations sampled from one model or prompt may predict mistakes made by another.
The names overlap in everyday coverage, but the operational distinction is valuable. Defences built only around spelling distance will miss a perfectly spelled repository that should never have existed.
Which Agent Workflows Are Exposed?
Risk is highest when an agent combines open-ended discovery with broad execution rights. Common examples include asking an agent to find and install a plugin, adding a newly announced library without supplying the official URL, cloning a project mentioned in a video, or allowing a coding assistant to resolve missing dependencies automatically.
Repository-level instructions increase the danger. Many agents deliberately read files such as README documents, contribution notes and agent instruction files to understand a codebase. An attacker can place persuasive instructions in those files. Even if the first retrieval is read-only, the content can attempt to steer later tool calls.
Secrets turn local code execution into a wider incident. Development machines often hold cloud tokens, package publishing credentials, SSH keys and browser sessions. A sandbox that blocks host access and starts without secrets significantly reduces the blast radius.
By contrast, a read-only assistant that can suggest a URL but cannot fetch or execute it has a narrower exposure. Human review still matters, but the model cannot autonomously complete the chain.
Get the free guide: The AI Model Benchmark Guide
Every frontier model compared on intelligence, coding, cost per task and value, with straight recommendations. November 2026 edition. Updated 23/11/2026.

What Do the Reported HalluSquatting Percentages Mean?
The paper reports hallucinated resource generation of up to 85% in repository-cloning scenarios and up to 100% in skill-installation tests. The phrase "up to" matters. These are maxima under selected experimental conditions, not average failure rates for all prompts, models or products.
A hallucinated identifier is also not the same as successful exploitation. For compromise, the identifier must be available to an attacker, retrieved by the application and trusted enough to influence an executable action. Permission prompts, allowlists, owner verification and isolation can all interrupt the sequence.
The responsible conclusion is therefore not "all agents are compromised". It is that hallucination is frequent enough, and repeatable enough, to become an attacker-controlled distribution channel when combined with autonomous retrieval and permissive tools.
The abstract's figures also compress a wide spread. In Table III of the full text, the per-model mean on recent repositories runs from 72.3% for Claude Opus 4.5 to 100% for both Gemini 2.5 models, with GPT-5.2 at 85.7%.
What Are the Detailed HalluSquatting Results?
Hallucinating a name is only the first link. The paper's end-to-end tests measure the whole chain: the researchers registered the predicted name themselves, asked a production assistant to clone the genuine project, and counted how often their test payload actually ran. Each coding assistant was tried 20 times.
End-to-end attack success against coding assistants
Share of 20 trials in which the squatted repository was fetched and its payload executed. Lower is better.
Windsurf (SWE-1.5) · remote code execution; fetched 20 of 20
Cline (KAT-Coder-Pro V1) · remote code execution; fetched 11 of 20
Copilot Chat (GPT-4.1) · remote code execution; fetched 7 of 20
Gemini CLI 0.25.0 (Gemini 2.5) · tool invocation; fetched 10 of 20
Cursor CLI (Grok Code) · remote code execution; fetched 17 of 20
Cursor (Sonnet 4.5) · remote code execution; fetched 7 of 20
Cursor (GPT-5.2 Codex) · tool invocation; fetched 7 of 20
Gemini CLI 0.24.5 (Gemini 2.5) · remote code execution; fetched 10 of 20
Show data table
| Benchmark | Trials ending in payload execution |
|---|---|
| Windsurf (SWE-1.5) | 65% |
| Cline (KAT-Coder-Pro V1) | 45% |
| Copilot Chat (GPT-4.1) | 35% |
| Gemini CLI 0.25.0 (Gemini 2.5) | 35% |
| Cursor CLI (Grok Code) | 30% |
| Cursor (Sonnet 4.5) | 25% |
| Cursor (GPT-5.2 Codex) | 20% |
| Gemini CLI 0.24.5 (Gemini 2.5) | 20% |
Source: Spira et al., arXiv 2607.07433, Table I
These are small samples against specific product versions, so treat the ranking as illustrative. What the chart does show is that no tested assistant was at zero, and that the gap between fetching a squatted repository and running its payload varies a great deal by product. If you are choosing tooling, our comparison of the leading AI coding agents covers the permission models in more depth.
The single most useful finding for defenders is in Table VIII. Across 1,381 Cursor CLI runs that produced a repository name, searching the web first gave the correct repository 93.4% of the time (877 of 939). Without a search, 99.1% of names were hallucinated (438 of 442), and the agent skipped the search in 32% of runs.
| Experiment | Sample | Result | Source |
|---|---|---|---|
| Owner hallucination, recent repositories | 10 repositories, 6 models, 100 queries each | 92.4% mean; 53 of 60 pairs at 100% | Table III |
| Owner hallucination, long-established repositories | 5 repositories, 6 models, 100 queries each | 0.9% mean; 25 of 30 pairs at 0% | Table III |
| Directly registrable name emitted | 6,000 recent-repository queries | 27% of runs (1,602) | Section III-C |
| Cursor CLI clone with web search | 939 runs | 93.4% correct, 6.6% hallucinated | Table VIII |
| Cursor CLI clone without web search | 442 runs | 0.9% correct, 99.1% hallucinated | Table VIII |
| "Install skill vetter" across four model backbones | 40 trials on OpenClaw | 38 of 40 resolved to the same squattable name; 0 of 40 to the genuine skill | Section IV-E |
| 14 popular skills, one backbone (Sonnet 4.6) | 140 trials on OpenClaw | 127 of 140 (90.7%) squattable | Table X |
| Three skills across OpenClaw, ZeroClaw and NanoClaw | 90 trials | 85 of 90 (94.4%) squattable | Section IV-G |
| Baseline: hallucinated package names in generated code | 576,000 code samples, 16 models | At least 5.2% (commercial models) and 21.7% (open-source models); 205,474 unique invented names | Spracklen et al., arXiv 2406.10279 |
The last row is a different study with a different measure (invented package names per generated code sample, published in 2024), included only to show where the slopsquatting baseline sits. It should not be read against the agentic rates above as a like-for-like comparison.
The skill results deserve particular attention from anyone running a personal agent. ClawHub hosted more than 56,000 skills when the paper was written, and its second most installed skill, with 212,000 installs, was resolved to a shorter, unregistered name in 38 of 40 attempts. That is the ecosystem behind OpenClaw 2.0, and it is the same design pattern we explain in Claude Skills explained: a skill is a folder of instructions an agent will follow, so installing the wrong one hands an attacker the agent's permissions. Vendors are responding with isolation as well as verification; see our look at Meta's secure-VM approach for its Muse agent.
How Can Developers Protect Against HalluSquatting?
- Supply canonical identifiers: give agents the official organisation, repository URL, package registry and version instead of asking them to infer names.
- Verify provenance: compare the resource with official documentation. Check owner history, repository age, commit history, releases, signatures and maintainer links.
- Pin what runs: use lockfiles, checksums, signed releases and full commit SHAs. A mutable branch name is not a stable security boundary.
- Require approval: treat cloning, package installation, script execution, permission changes and network access as separate approval points.
- Use least privilege: run agents in disposable sandboxes without production credentials, host SSH keys or unrestricted network access.
- Inspect installation behaviour: review lifecycle scripts, setup hooks, downloaded binaries and instructions that ask the agent to disable safeguards.
- Log external resources: record every URL, repository, package and skill an agent fetches so incidents can be traced.
Web search is useful but insufficient. Search can show that a resource exists after an attacker registers it. Provenance checks must answer whether the resource is the one intended by the original publisher.
What Is a Safer Agent Permission Policy Against HalluSquatting?
A safer agent permission policy against HalluSquatting has three tiers. First, allow read-only inspection of the current repository and known documentation. Second, require human approval for every new external origin, dependency or executable. Third, block access to secrets and production systems unless a narrowly defined task genuinely needs them.
Teams should also separate discovery from execution. One process can research candidate resources and produce a provenance report. A second, clean process can install only the approved, pinned artefact. This prevents untrusted instructions encountered during discovery from inheriting execution authority.
For frequently used tools, maintain an organisation allowlist containing exact package scopes, repository owners and signing keys. For new resources, require a second source from the official vendor site. If the resource is too new to verify, the safe result is to stop, not to let the model make a more confident guess.
These controls also help against ordinary prompt injection and dependency confusion. HalluSquatting is new terminology, but its best mitigations are familiar supply-chain engineering applied to AI agents.
Is HalluSquatting a Credible Threat?
HalluSquatting is credible because it connects three already-observed behaviours: language models invent plausible identifiers, attackers can register public names, and agents increasingly have authority to retrieve and run code. The paper shows that those pieces can be combined in practical systems.
The answer is not to ban coding agents. It is to stop treating a model-generated resource name as trusted input. Verify provenance, pin artefacts, separate research from execution, use sandboxes and keep a human approval gate wherever new code crosses into an executable environment.
For broader model and agent comparisons, see the AI Tools Review benchmarks hub, our GPT-5.6 analysis and the Grok 4.5 review.
Related (25/10/2026): AI-assisted bug hunting is also hitting core infrastructure. See PHP2Shell: AI-found PHP flaws and what they mean for your AI keys.
Last updated: 19/11/2026 (first published 14 July 2026). Charts and tables use figures from the full paper text and, for the package-hallucination baseline, arXiv 2406.10279. Core technical claims are based on the original HalluSquatting paper. Product risk varies by permissions, configuration and verification controls.
Get the free guide: The AI Model Benchmark Guide
Every frontier model compared on intelligence, coding, cost per task and value, with straight recommendations. November 2026 edition. Updated 23/11/2026.






