LLM Package Hallucinations Fuel Slopsquatting Supply-Chain Attacks
Supply Chain Risk · 2 sources · Updated 5mo ago · First seen Jul 16, 2026

Researchers and security vendors warned that slopsquatting has evolved into a practical software supply-chain threat as code-generating LLMs repeatedly recommend nonexistent package names that attackers can register and weaponize. An arXiv study, We Have a Package for You!, found that 19.7% of packages suggested by tested code-generation models did not exist, reinforcing earlier demonstrations that hallucinated names are often stable enough to be predicted and abused rather than being purely random errors.
The threat has expanded from misleading human developers to compromising AI coding agents and automated workflows. Reporting cited the spread of the hallucinated npm package react-codeshift across 237 repositories, continued downloads of a malicious package named unused-imports, and a newer HalluSquatting technique that combines hallucinated resources with prompt injection to steer AI-assisted development tools into fetching and executing attacker-controlled code.
Why it matters
Impact assessment
Slopsquatting is a practical software supply-chain exposure affecting organizations that use AI-assisted coding, code-generation copilots, or autonomous coding agents in development workflows. The highest-risk populations are software engineering teams, CI/CD environments, and enterprises consuming npm and PyPI packages based on LLM-generated recommendations, especially where package installation is automated.
The impact can range from developer workstation compromise to CI/CD pipeline abuse and downstream software supply-chain contamination if attacker-registered packages are installed and executed. Exposure is potentially widespread rather than narrowly targeted because hallucinated package names recur across prompts and repositories, and there are reported real-world cases of package adoption and continued downloads.
Supporting details
- Affected environments:
- AI-assisted software development workflows
- Autonomous or semi-autonomous coding agents
- npm and Python package consumers
- CI/CD systems that automatically resolve or install dependencies
- Severity drivers:
- Potential remote code execution through malicious package install scripts or imported code
- Risk of credential theft, source-code theft, build tampering, and lateral movement from developer or build environments
- Reputational and operational impact if poisoned dependencies are shipped downstream
- Scope indicators:
- 19.7% of packages suggested by tested code-generation models did not exist in the cited study
- More than 205,000 unique hallucinated package names were logged across tested models
- 43% of hallucinated package names reportedly recurred in every run across repeated identical prompts
- Known in-the-wild indicators:
- Hallucinated npm package
react-codeshiftappeared across 237 repositories - Malicious package
unused-importscontinued to receive about 233 weekly downloads in early 2026 - Earlier demonstration package
huggingface-clireceived more than 30,000 downloads within three months after publication as an empty package proof of concept
- Hallucinated npm package


