# Forget typosquatting; slopsquatting is the software supply chain threat created by AI coding tools

- Link: https://savannahherald.com/forget-typosquatting-slopsquatting-is-the-software-supply-chain-threat-created-by-ai-coding-tools/
- Published: 2026-07-11T23:39:38-04:00
- Author: Savannah Herald

**Tomorrow’s Tech, Today: Innovation That Moves Us Forward**

Slopsquatting represents an emerging supply chain threat made possible by AI hallucinations.
As developers increasingly rely on AI coding assistants, they unknowingly grant 
[cybercriminals](https://venturebeat.com/security/prompt-injection-is-exploiting-enterprise-ais-biggest-design-flaws-by-targeting-agents-rag-pipelines-and-model-routers)
access to their software from day one. 

## **Understanding what slopsquatting is**

Slopsquatting is a new type of supply chain attack that uses large language model(
LLM) [hallucinations to inject malicious code](https://www.captechu.edu/blog/ai-driven-threats-in-software-supply-chains)
into development workflows. The term combines “AI slop” and “typosquatting,” a deceptive
practice where attackers register misspelled or lookalike versions of popular domains
to prey on users who enter URLs incorrectly.

This novel attack vector exploits LLMs’ tendency to generate fictitious software
package names, which threat actors can then register and populate with malicious
code.

During AI-assisted coding, the model may generate fake open-source packages — bundled
collections of files, programs and installation tools. This alone is not necessarily
harmful. However, if an attacker registers that fake package name, they can inject
malware that gets incorporated directly into a developer’s codebase.

## **How AI creates a supply chain risk**

Traditionally, AI [safety risks stem from hallucinations](https://www.pivotpointsecurity.com/ai-security-and-ai-safety-how-do-they-relate/),
which can adversely affect users who treat misinformation as valid. However, those
same hallucinations have evolved into exploitable security vulnerabilities.

Typosquatting is a deceptive practice where a cybercriminal registers a mispelled
version of a popular package to trick developers. It has existed for decades, so
registries have built protections against it. 

However, AI has changed the [threat model](https://venturebeat.com/security/claude-mythos-exposed-a-hard-truth-your-enterprise-patching-process-is-way-too-slow).
It recommends fictitious packages that sound plausible rather than making simple
misspellings. Once attackers learn which hallucinated packages models tend to invent,
they can register malware-filled packages under those names.

Since the hallucinated packages are not simply typoed versions of popular libraries,
there are no protections against this practice at scale. For example, the registry
protects against an attacker publishing “crossenv,” a squat of the popular “cross-
env” package. However, it would not identify “mpn install cross-env file” or “cross-
env-extended” as threats.

### **Hallucinations are persistent and severe**

Even if many LLMs recommend the same hallucinated package, widespread compromise
is still possible. Malicious packages could remain undetected in production for 
months or even years, allowing threat actors to passively inject malware across 
countless environments. 

One research [team analyzed 31,267 vulnerabilities](https://arxiv.org/abs/2506.12995)
belonging to 14,675 packages across 10 programming languages. They discovered that
reported vulnerabilities are increasing at an annual rate of 98%, faster growth 
than the 25% annual increase in the number of open-source software packages. The
team also observed an 85% increase in the average lifespan of vulnerabilities, indicating
a decline in security.

### **Real-world dangers of AI hallucinations**

[Malicious actors](https://venturebeat.com/security/ai-tool-poisoning-exposes-a-major-flaw-in-enterprise-agent-security)
can create open-access packages under the same name as commonly hallucinated libraries.
Instead of standard code, they are filled with malware. The models believe they 
are referring to existing packages, so they often repeat the same hallucinated names.
Since the hallucinations are not random, attackers could theoretically register 
packages that trick tens of thousands of developers.

These packages appear legitimate. String similarity to real libraries makes them
recognizable. One-character typos suggest simple mistakes rather than malicious 
intent. Even fully fabricated names remain believable when the AI presents them 
in proper context. Detection is challenging, as developers trust their coding assistants
to recommend valid dependencies.

## **Why are LLMs hallucinating packages?**

LLMs generate the statistically most likely answer rather than prioritizing accuracy.
Hallucinations are relatively common as a result. One study found hallucination 
rates [range from 50% to 82%](https://www.nature.com/articles/s43856-025-01021-3),
depending on the model and prompting method. Even GPT-4o, the best-performing model,
goes no lower than 23%, even with prompt-based mitigation.

Adversarial hallucination attacks could worsen this problem. Threat actors can leverage
token-level manipulation or retrieval poisoning to force models to hallucinate in
ways they want, increasing the likelihood that models recommend their malicious 
packages.

## **Which LLMs are prone to slopsquatting?**

While all LLMs are prone to slopsquatting, some are more vulnerable than others.
The likelihood of producing hallucinated packages during code generation depends
on the model. Proprietary models are four times less likely to generate hallucinated
packages than open-source models.

One research group proved this by conducting 30 tests across 30 different systems.
Out of [the 576,000 code samples](https://arxiv.org/html/2406.10279v3) and 2.23 
million packages it produced, 19.7% were hallucinations. GPT-4.0 Turbo had a hallucination
rate of 3.59%, while DeepSeek 1B, the best-performing open-source model, reached
13.63%.

This research suggests that organizations relying on open-source AI tools for code
generation are roughly four times more exposed to slopsquatting attacks. That doesn’t
necessarily mean proprietary tools will always remain safer, though. Once attackers
realize this disparity, they may manipulate proprietary LLMs to take advantage of
perceived safety.

## **Vibe coding contributes to the problem**

Software developers who use AI tools estimate that [over 40 percent of the code](https://shiftmag.dev/state-of-code-2025-7978/)
they commit includes AI assistance. They expect that percentage will increase considerably
within the next few years. Already, 72% of those who have tried AI use it daily.

The uptick in vibe coding and AI-assisted coding amplifies the threat surface. As
more developers integrate AI tools into their workflows without implementing proper
verification processes, the attack surface for slopsquatting continues to expand.

For those using AI to assist with coding, double-checking output is essential. Verifying
that recommended packages actually exist in official repositories before incorporating
them into projects reduces risk.

## **Navigating AI-assisted development**

Implementing automated checks that validate package names against known registries
can help catch hallucinated packages before they enter production code. Security
teams should also monitor for unusual package installations and maintain up-to-date
threat intelligence on known slopsquatting campaigns.

_Zac Amos is the Features Editor at _[_ReHack_](https://rehack.com/)_._

Welcome to the VentureBeat community!

Our guest posting program is where technical experts share insights and provide 
neutral, non-vested deep dives on AI, data infrastructure, cybersecurity and other
cutting-edge technologies shaping the future of enterprise.

[Read the full article on the original site](https://venturebeat.com/security/forget-typosquatting-slopsquatting-is-the-software-supply-chain-threat-created-by-ai-coding-tools)

### Related Posts

 * [The ultimatesummer guide – Sincerely Jules](https://savannahherald.com/the-ultimatesummer-guide-sincerely-jules/)
 * [Hungary Shines As A24’s ‘Fatality Of A Unicorn’ Recording Place](https://savannahherald.com/hungary-shines-as-a24s-fatality-of-a-unicorn-recording-place/)
 * [Looter On Large Return Anticipated At Tonight’s WWE SmackDown In Savannah, GA.](https://savannahherald.com/looter-on-large-return-anticipated-at-tonights-wwe-smackdown-in-savannah-ga/)
 * [Atlanta Pride announces 2026 Grand Marshals](https://savannahherald.com/atlanta-pride-2026-grand-marshals-2/)

 * [Shiroug Idris: Illustrating Sudanese Folklore, Identity, and Resilience through Art](https://savannahherald.com/shiroug-idris-illustrating-sudanese-folklore-identity-and-resilience-through-art/)
 * [Panatics Steelband Marks 35 Years Of Music](https://savannahherald.com/panatics-steelband-marks-35-years-of-music/)
 * [A Crucial Genetics Acquired From Denisovans Aided Modern Human Beings Make It Through and Spread Out](https://savannahherald.com/a-crucial-genetics-acquired-from-denisovans-aided-modern-human-beings-make-it-through-and-spread-out/)
 * [It was a great political election for the environment](https://savannahherald.com/it-was-a-great-political-election-for-the-environment/)
