5 Sources
[1]
AI threats in software development revealed
UTSA researchers recently completed one of the most comprehensive studies to date on the risks of using AI models to develop software. In a new paper, they demonstrate how a specific type of error could pose a serious threat to programmers that use AI to help write code. Joe Spracklen, a UTSA
[2]
AI code suggestions sabotage software supply chain
The rise of AI-powered code generation tools is reshaping how developers write software - and introducing new risks to the software supply chain in the process. AI coding assistants, like large language models in general, have a habit of hallucinating. They suggest code that incorporates software
[3]
LLMs can't stop making up software dependencies and sabotaging everything
The rise of LLM-powered code generation tools is reshaping how developers write software - and introducing new risks to the software supply chain in the process. These AI coding assistants, like large language models in general, have a habit of hallucinating. They suggest code that incorporates
[4]
AI-hallucinated code dependencies become new supply chain risk
A new class of supply chain attacks named 'slopsquatting' has emerged from the increased use of generative AI tools for coding and the model's tendency to "hallucinate" non-existent package names. The term slopsquatting was coined by security researcher Seth Larson as a spin on typosquatting, an
[5]
"Slopsquatting" attacks are using AI-hallucinated names resembling popular libraries to spread malware
Security researchers have warned of a new method by which Generative AI (GenAI) can be abused in cybercrime, known as 'slopsquatting'. It starts with the fact that different GenAI tools, such as Chat-GPT, Copilot, and others, hallucinate. In the context of AI, "hallucination" is when the AI simply
Share
Copy Link
Researchers uncover a significant security risk in AI-assisted coding: 'package hallucinations' where AI models suggest non-existent software packages, potentially leading to a new type of supply chain attack called 'slopsquatting'.

Researchers from the University of Texas at San Antonio (UTSA) have uncovered a significant security vulnerability in AI-assisted software development. Their study, accepted for publication at the USENIX Security Symposium 2025, reveals that large language models (LLMs) frequently generate insecure code, particularly through a phenomenon known as "package hallucination"
1
.Package hallucinations occur when an AI model recommends or generates code that includes non-existent third-party software libraries. This seemingly simple error can lead to serious security risks, as explained by Joe Spracklen, the lead researcher:
"It doesn't take a convoluted set of circumstances... It's just typing in one command that most people who work in those programming languages type every day. That's all it takes."
1
The study's findings are alarming:
1
This vulnerability has given rise to a new type of supply chain attack dubbed "slopsquatting" by Seth Michael Larson of the Python Software Foundation
2
. Malicious actors can exploit these hallucinations by:3
The threat is not merely theoretical. Feross Aboukhadijeh, CEO of security firm Socket, warns:
"With AI tools becoming the default assistant for many, 'vibe coding' is happening constantly. Developers prompt the AI, copy the suggestion, and move on. Or worse, the AI agent just goes ahead and installs the recommended packages itself."
2
Related Stories
The problem is further exacerbated by search engines. When developers search for these hallucinated package names, they may encounter AI-generated summaries that lend false legitimacy to the non-existent or malicious packages
2
.To combat this emerging threat, experts recommend:
4
The Python Software Foundation and other organizations are working to make package abuse more difficult, but this requires time and resources
2
. Meanwhile, the UTSA researchers have disclosed their findings to major AI model providers including OpenAI, Meta, DeepSeek, and Mistral AI1
.As AI continues to reshape software development practices, the industry must remain vigilant against these new forms of supply chain attacks. The challenge lies in balancing the productivity gains of AI-assisted coding with robust security measures to protect against increasingly sophisticated threats.
Summarized by
Navi
[1]
[2]
[4]
1
Technology

2
Policy and Regulation

3
Technology
