Skip to content
Submit incident
AII-1000-30373
Well documentedThree or more independent publishers report the core facts.

HalluSquatting attack exploits AI coding assistants to install botnet malware

Researchers from Tel Aviv University, Technion, and Intuit demonstrated a cyberattack called HalluSquatting that exploits AI coding assistants' tendency to hallucinate fake package names. Attackers preemptively register the hallucinated names with malicious code, allowing them to infect developers' systems and create botnets when AI agents attempt to download the fake packages.

9 July 2026 Β· GitHub Copilot Β· Security and cyberattacks
9 July 2026
AII-1000-303735 sources ↓
Quick facts
Category
Security and cyberattacks
Country
Israel
Source
Ars Technica
Date
9 July 2026
Drafted by
Raidu Incident Detection

What happened

Researchers from Tel Aviv University, Technion, and Intuit published a paper on July 9 detailing a cyberattack called 'HalluSquatting,' which weaponizes the tendency of large language models to invent fake software packages. Attackers analyze trending repositories and probe LLM systems to identify likely hallucinated names, then preemptively register these fake resources with malicious code embedded within them.

When developers ask AI coding assistants to install a package or retrieve code, the models sometimes invent package names that do not exist. When the AI agent later hallucinates that exact attacker-controlled name and attempts to download it, the developer unknowingly pulls in malware.

Reported impact

Across various test scenarios, LLMs hallucinated incorrect repository names up to 85% of the time, with some tests targeting particular skill installations hitting 100% hallucination rates. The attack enabled remote code and tool execution across multiple platforms, effectively allowing attackers to install malware on users' systems and create botnets with remotely controllable compromised devices.

Index analysis

The danger emerges with agentic AI systems that execute commands rather than just suggest code. Tools like GitHub Copilot and other AI coding assistants increasingly have terminal access, meaning they can install packages and run code without a human double-checking each step.

Classification

Category
Security and cyberattacks
Industry
Digital security
Country
Israel
Harm status
Potential harm
Intent
Intentional
Timing
Post-deployment
Harm types
Economic or property
Harmed
Consumers, Business
Failure modes
Hallucination
AI systems
GitHub Copilot, Cursor

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

Ars Technica
Hackers can use 9 of the most popular AI tools to assemble massive botnets
8 July 2026
Crypto Briefing
Researchers warn AI agents could become botnets through hallucinations
9 July 2026
Cyber Security News
New HalluSquatting Attack Allows Hackers to Poison AI Coding Assistants Into Installing Botnet Malware
9 July 2026
Decrypt
AI Agents Could Be Turned Into Botnets Through Hallucinations, Researchers Warn
9 July 2026
SC Media
HalluSquatting: New AI attack method enables scalable botnets and large-scale infections
9 July 2026
Jul 2026GhostApproval Symlink Flaw Enables Remote Code Execution via AI Coding AssistantsConfirmedSecurity and cyberattacksIT Security News - cybersecurity, infosecurity newsInfoWorldApr 2026Cursor AI agent running Claude Opus 4.6 deleted PocketOS production databaseConfirmedSecurity and cyberattackscybersecuritynews.comtomshardware.comSep 2025Security risks in MCP-enabled AI systems due to identity fragmentationReportedSecurity and cyberattacksTechRadarBusinessday NGSep 2025Remote code execution flaw in Cursor AI code editor enables automatic malware executionWell documentedSecurity and cyberattacksCyber Security NewsIT Security News - cybersecurity, infosecurity newsZDNet+1Jul 2025Cursor IDE Remote Code Execution and Model Context Protocol VulnerabilitiesConfirmedSecurity and cyberattacksnet.zhiding.cniThome Online