Threat reportVulnerabilityTL-2026-1164
HalluSquatting: AI Coding Assistant Hallucinations Weaponized to Deliver Botnet Malware via Fake Package/Tool/Skill Names
Academic researchers (Tel Aviv University, Technion, Intuit) demonstrated 'HalluSquatting' (aka Adversarial Hallucination Squatting), a class of scalable, untargeted promptware attacks that exploit AI coding assistants' tendency to hallucinate plausible-but-nonexistent repository, package, and skill names.
Key facts
| Identifiers | TL-2026-1164 |
|---|---|
| Also known as | HalluSquatting, Adversarial Hallucination Squatting, Agentic Botnets |
| Severity | MEDIUM |
| Affected products | Anysphere Cursor; Anysphere Cursor CLI; Codeium (Windsurf) Windsurf; Microsoft/GitHub GitHub Copilot; Cline (open source) Cline; Google Gemini CLI; OpenClaw family OpenClaw; OpenClaw family ZeroClaw and 2 more |
| Weaknesses (CWE) | CWE-1021, CWE-345, CWE-494, CWE-829 |
| Tools | Cline, Cursor, Cursor CLI, GitHub Copilot, Google Gemini CLI, NanoClaw, OpenClaw, Windsurf, ZeroClaw |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1027 Obfuscated Files or Information, T1036.005 Match Legitimate Resource Name or Location, T1059 Command and Scripting Interpreter, T1059.009 Cloud API, T1071 Application Layer Protocol, T1105 Ingress Tool Transfer, T1195.002 Compromise Software Supply Chain, T1199 Trusted Relationship, T1204.002 Malicious File, T1496 Resource Hijacking, T1505.003 Web Shell and 6 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | technology, software-development, all-sectors-using-ai-coding-tools |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 12 cited sources |
Detection coverage
As of 2026-07-10, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1164 across Splunk SPL, Microsoft KQL and Sigma, covering 20 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: HalluSquatting — AI Coding Assistant Auto-Install of Unresolved Package/Repo Name
Detects a package-manager (npm/npx/pip) or git-clone child process spawned by an AI coding assistant/CLI (Cursor, Windsurf, Copilot, Cline, Gemini CLI, OpenClaw family) that targets a resource name not present in the org's known-dependency baseline — the Hallucination->Retrieval step of the HalluSquatting chain where the agent auto-fetches a hallucinated package/repo/skill name without human verification.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195.002, T1585, T1199
- Data sources: sysmon, windows_security, endpoint_edr_process_creation
- Severity: high
- Confidence: medium
Splunk SPL
index=endpoint sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1
| eval parent=lower(ParentImage), child=lower(Image)
| where match(parent, "cursor|windsurf|copilot|cline|gemini|openclaw|zeroclaw|nanoclaw")
| where match(child, "npm(\.cmd)?$|npx(\.cmd)?$|pip(3)?(\.exe)?$|git(\.exe)?$")
| rex field=CommandLine "(?:install|clone)\s+(?<pkg_name>[^\s\"']+)"
| lookup known_dependency_baseline.csv pkg_name OUTPUT is_known
| where isnull(is_known)
| eval risk_msg="AI-assistant-spawned package/repo fetch of unresolved name: ".pkg_name
| table _time, ComputerName, User, parent, child, CommandLine, pkg_name, risk_msg
| sort -_timeMicrosoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName has_any ("cursor", "windsurf", "copilot", "cline", "gemini", "openclaw", "zeroclaw", "nanoclaw")
| where FileName has_any ("npm.cmd", "npm", "npx.cmd", "npx", "pip.exe", "pip3.exe", "git.exe")
| extend ResolvedName = extract(@"(?:install|clone)\s+([^\s\"']+)", 1, ProcessCommandLine)
| join kind=leftanti (KnownDependencyBaseline | project ResolvedName) on ResolvedName
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, FileName, ProcessCommandLine, ResolvedName
| order by Timestamp descSigma
title: AI Coding Assistant Auto-Install of Unresolved Package or Repository Name
id: 7a1e2c3d-4f5b-4a6c-9d1e-2b3c4d5e6f70
status: experimental
description: Detects an AI coding assistant/CLI process spawning a package-manager or git-clone child process targeting a resource name that has not been previously vetted, consistent with the HalluSquatting hallucinated-resource auto-fetch technique.
references:
- https://thehackernews.com/2026/07/new-hallusquatting-attack-could-trick.html
- https://arxiv.org/abs/2607.07433v1
author: Threadlinqs Team
date: 2026-07-10
tags:
- attack.resource-development
- attack.t1585
- attack.initial-access
- attack.t1195.002
- attack.execution
- attack.t1059.009
- attack.tool.cursor
- attack.tool.gemini_cli
logsource:
category: process_creation
product: windows
detection:
selection_parent:
ParentImage|contains:
- 'cursor'
- 'windsurf'
- 'copilot'
- 'cline'
- 'gemini'
- 'openclaw'
- 'zeroclaw'
- 'nanoclaw'
selection_child:
CommandLine|contains:
- 'npm install '
- 'npx '
- 'pip install '
- 'git clone '
filter_known_good:
CommandLine|contains:
- 'jscodeshift'
- 'react-codemod'
condition: selection_parent and selection_child and not filter_known_good
falsepositives:
- Legitimate first-time installs of genuinely new, human-vetted packages
- Authorized CI/CD pipelines using AI-assisted dependency updates with change tickets
level: mediumKnown false positives:
- Legitimate first-time install of a genuinely new, human-reviewed dependency triggered through an AI assistant with human confirmation enabled
Tuning notes: Seed the known_dependency_baseline lookup / KnownDependencyBaseline table from the org's SBOM/lockfiles and refresh weekly; narrow the parent-process match list to the exact AI-assistant binaries actually deployed in the environment to reduce noise.
- HalluSquatting — Auto-Run/YOLO Mode Enabled on Agentic Coding Tool · unlock with TL Creds
- HalluSquatting — Scheduled Task / Cron / systemd Persistence Created by AI-Assistant Process Tree · unlock with TL Creds
- HalluSquatting — Data Staging/Exfil Read from Local System Following AI-Assistant-Triggered Install · unlock with TL Creds
- HalluSquatting — Fetched Skill/Plugin Manifest Executes Shell Command Within Seconds of AI-Assistant Install · unlock with TL Creds
- HalluSquatting — Near-Match Package/Repo Name Conflating Two Known Legitimate Projects · unlock with TL Creds
- HalluSquatting — Full Chain Correlation: Unresolved Install -> Auto-Exec -> Autostart -> Beacon Within 15 Minutes · unlock with TL Creds
- HalluSquatting — Registry Run-Key Persistence Written Immediately After AI-Assistant Install · unlock with TL Creds
- HalluSquatting — Low-and-Slow Beacon Traffic from AI-Assistant Process Tree After Novel Install · unlock with TL Creds
Indicators of compromise
As of 2026-07-10, Threadlinqs Intelligence tracks 20 indicators of compromise for TL-2026-1164.
Technical analysis
Attackers pre-register these predicted hallucinated names on GitHub, npm, and plugin marketplaces with embedded adversarial instructions; when a victim's AI assistant later hallucinates the same name and auto-fetches/installs it, the assistant's built-in terminal/tool-execution capability runs the attacker's planted commands, enabling remote code execution and scalable botnet-style device compromise.
HalluSquatting was disclosed by researchers Aya Spira, Stav Cohen, Elad Feldman, Ron Bitton, Avishai Wool, and Ben Nassi (Tel Aviv University, Technion, and Intuit), the same group behind prior work on self-spreading AI email worms (Morris II) and Google Gemini calendar-invite prompt injection. The attack targets nine widely used AI coding assistants and CLIs: Cursor, Cursor CLI, Windsurf, GitHub Copilot, Cline, Google Gemini CLI, OpenClaw, ZeroClaw, and NanoClaw.
The attack chain runs in six phases: (1) Preparation — attackers identify trending repositories, tools, or skills and repeatedly probe target LLMs across varied phrasings and multiple foundation models to calculate the highest-probability hallucinated identifier for a given resource; (2) Trigger — a legitimate user asks their AI assistant to clone a repository, install a package, or install a 'skill'/plugin; (3) Planning — the agentic framework's planner formulates the actions needed to satisfy the request; (4) Hallucination — the underlying LLM outputs an incorrect resource name/location that happens to match the name the attacker has already registered; (5) Retrieval — the assistant's tool-use layer fetches the attacker-controlled resource (git clone, npm install, marketplace install) without verifying it resolves to a legitimate, previously-known source; (6) Context Poisoning & Tool Invocation — adversarial instructions embedded in the fetched resource are read into the assistant's context and, combined with auto-run/auto-execute terminal access, are executed as commands, installing a persistent bot agent on the victim's device.
Measured hallucination consistency was high enough to make the attack reliable at scale: up to 85% for repository-clone requests and up to 100% for skill/plugin install requests, with hallucinations transferring across different foundation models and prompt phrasings — meaning a single pre-registered squatted name can trap users of many different assistants. Researchers used only harmless placeholder payloads (not functional malware) for ethical/responsible-disclosure reasons, and withheld precise reproduction steps and target-specific hallucinated names from the public write-up; findings were privately disclosed to affected vendors, foundation model providers, and marketplace maintainers ahead of publication. The paper appears on arXiv as 2607.07433v1 and was presented at RWAISec'26 and discussed in a BlackHat webinar.
HalluSquatting builds on and generalizes 'slopsquatting', an earlier and now actively-exploited-in-the-wild variant limited to package-manager names. The canonical real-world slopsquatting case is 'react-codeshift': a nonexistent npm package name invented by an LLM that conflated two real tools (jscodeshift and react-codemod). The hallucinated name first appeared, unreviewed, in a single commit of 47 LLM-generated Agent Skills on GitHub, then propagated to 237 repositories via forks and translation (including into Japanese) before Aikido Security researcher Charlie Eriksen discovered and pre-registered it defensively; AI coding agents continued to attempt `npx` installs of the name daily even after Eriksen's claim. Separately, Palo Alto Networks Unit 42 catalogued roughly 250,000 unregistered domains that AI models hallucinate ('phantom squatting'), representing a large pre-existing pool of squattable names beyond code repositories/packages.
HalluSquatting represents an architectural trust weakness rather than a single software flaw: agentic coding tools resolve resource names supplied by an LLM as if they were ground truth, and then couple that unverified resolution to auto-execution/auto-run terminal capability. No CVE applies because the weakness is systemic across the agentic-AI-tooling category rather than isolated to one implementation.
MITRE ATT&CK techniques by tactic:
Collection
Defense Evasion
T1027 Obfuscated Files or Information; T1036.005 Match Legitimate Resource Name or Location
Execution
T1059 Command and Scripting Interpreter; T1059.009 Cloud API; T1204.002 Malicious File
Command and Control
T1071 Application Layer Protocol; T1105 Ingress Tool Transfer
Initial Access
T1195.002 Compromise Software Supply Chain; T1199 Trusted Relationship; T1566 Phishing
Impact
Persistence
T1505.003 Web Shell; T1547 Boot or Logon Autostart Execution
Resource Development
T1583.008 Malvertising; T1585 Establish Accounts; T1586 Compromise Accounts; T1608.001 Upload Malware
Remediation
Immediate actions
- Disable auto-run / auto-approve modes on AI coding assistants (e.g., Claude Code's skip-permissions flag, Gemini CLI's YOLO mode) so terminal commands require human review before execution
- Treat AI-suggested repository, package, and skill/plugin names as unverified guesses, not facts — manually confirm the name resolves to a known, previously-established legitimate source before allowing clone/install
- Flag and gate high-risk agent actions (git clone, package install, plugin/skill install, curl|bash-style fetch-and-execute) behind explicit human confirmation regardless of assistant settings
- Audit recent AI-assisted commits and Agent Skill definitions for unreviewed, LLM-invented dependency or repository references
Workarounds
- Pin coding agents to explicit, human-vetted repository URLs, package names with lockfiles, and pre-approved skill/plugin manifests instead of natural-language resource requests
- Run AI coding assistants with restricted/sandboxed terminal execution and network egress controls to limit blast radius if a squatted resource is fetched
Longer-term hardening
- Adopt agent architectures that require the planner to search/verify a resource's existence and provenance before fetching it, rather than fetching on the LLM's first-guess name
- Deploy pre-execution safety layers that inspect and validate agent tool-invocations against an allowlist of known-good sources (e.g., Claude Code permission/auto modes, Gemini CLI Conseca-style guardrails)
- Package registries and code-hosting/plugin marketplaces should prevent re-registration or squatting of names that closely match well-known, high-trend repositories/packages, mirroring domain typosquatting defenses
- Registries/marketplaces should proactively pre-register or reserve high-probability AI-hallucinated names for popular projects before attackers can claim them
- Contribute telemetry on repeated hallucinated-name requests back to foundation model providers to reduce hallucination rates for high-trend resource names
Affected and fixed versions
- Anysphere — Cursor
Vulnerable versions: all versions tested with auto-run enabled, 2026 - Anysphere — Cursor CLI
Vulnerable versions: all versions tested with auto-run enabled, 2026 - Codeium (Windsurf) — Windsurf
Vulnerable versions: all versions tested with auto-run enabled, 2026 - Microsoft/GitHub — GitHub Copilot
Vulnerable versions: all versions tested with auto-run/agent mode enabled, 2026 - Cline (open source) — Cline
Vulnerable versions: all versions tested with auto-approve enabled, 2026 - Google — Gemini CLI
Vulnerable versions: all versions tested with YOLO/auto-accept mode enabled, 2026 - OpenClaw family — OpenClaw
Vulnerable versions: all versions tested, 2026 - OpenClaw family — ZeroClaw
Vulnerable versions: all versions tested, 2026 - OpenClaw family — NanoClaw
Vulnerable versions: all versions tested, 2026 - npm / GitHub / plugin marketplaces (ecosystem-wide) — Package/repository/plugin name-resolution trust model
Vulnerable versions: current registration model with no hallucinated-name reservation, 2026
Timeline
- The same core research group (Stav Cohen, Ron Bitton, Ben Nassi, Cornell Tech) publishes 'Here Comes The AI Worm' (arXiv 2403.02817), disclosing the Morris II zero-click generative-AI worm — prior foundational work establishing the researchers' track record on self-propagating/agentic-AI-exploiting attacks that HalluSquatting extends.
- Aikido Security researcher Charlie Eriksen discovers 'react-codeshift', a nonexistent npm package invented by an LLM, already spread to 237 repositories via unreviewed AI-generated Agent Skills; he defensively pre-registers the name.
- Cloud Security Alliance AI Safety Initiative (CSAI Foundation) publishes a research note on slopsquatting as an AI supply-chain risk.
- CSO Online / InfoWorld publish coverage on supply-chain attacks targeting AI coding agents broadly, framing the ecosystem-wide risk ahead of the HalluSquatting disclosure.
- Palo Alto Networks Unit 42 publishes 'Phantom Squatting: AI-Hallucinated Domains as a Software Supply Chain Vector', analyzing 913 global brands across 685,339 prompts and cataloguing ~250,000 unregistered hallucinated domains plus 13,229 confirmed-malicious URLs, including a Montana Empire phishing kit and a malicious APK campaign impersonating a national postal service — establishing the broader hallucinated-namespace attack surface HalluSquatting builds on.
- Tech Times covers findings that AI coding agents routinely skip package verification and that attackers are already exploiting the gap.
- Spira, Cohen, Feldman, Bitton, Wool, and Nassi publish the HalluSquatting / 'Agentic Botnets' research (arXiv 2607.07433v1) and stand up the accompanying research site, after completing responsible disclosure to affected vendors and marketplace maintainers.
- TL-Intel-Harness ingests the HalluSquatting story from The Hacker News RSS feed and opens threat TL-2026-1164 for tracking.
- The Hacker News and multiple security outlets (CyberSecurityNews, CyberPress, GBHackers, AI Chat Daily) publish coverage of the HalluSquatting attack, detailing the six-phase attack chain and 85%/100% hallucination consistency rates across nine AI coding assistants.
Sources cited
- Agentic Botnets — HalluSquatting research site sites.google.com · Research · 2026-07-01
- HalluSquatting / Agentic Botnets paper (arXiv 2607.07433v1) arxiv.org · Research · 2026-07-01
- Phantom Squatting: AI-Hallucinated Domains as a Software Supply Chain Vector Unit 42 · Research · 2026-06-30
- Here Comes The AI Worm: Unleashing Zero-click Worms that Target GenAI-Powered Applications (Morris II, arXiv 2403.02817) arxiv.org · Research · 2024-03-05
- Slopsquatting: The AI Package Hallucination Attack Already Happening aikido.dev · Blog · 2026-01-15
- New HalluSquatting Attack Could Trick AI Coding Assistants Into Installing Botnet Malware The Hacker News · News · 2026-07-08
- New HalluSquatting Attack Allows Hackers to Poison AI Coding Assistants Into Installing Botnet Malware cybersecuritynews.com · News · 2026-07-08
- Agentic Botnets Attack Uses HalluSquatting to Hijack AI Coding Assistants cyberpress.org · News · 2026-07-08
- HalluSquatting Attack Lets Hackers Turn AI Coding Assistants Into Botnet Installers gbhackers.com · News · 2026-07-08
- HalluSquatting attack turns 9 AI coding assistants into a botnet vector aichatdaily.com · News · 2026-07-08
- AI Coding Agents Skip Package Verification, and Attackers Are Exploiting It techtimes.com · News · 2026-07-01
- Supply-chain attacks take aim at your AI coding agents csoonline.com · News · 2026-06-15
Previous and next in vulnerability
Drafted by the Threadlinqs research pipeline from 12 sources; published ; last updated —.