From Wikipedia, the free encyclopedia
Type of cybersquatting

Slopsquatting is a type of cybersquatting. It is the practice of registering a non-existent software package name that a large language model (LLM) may hallucinate in its output, whereby someone unknowingly may copy-paste and install the software package without realizing it is fake.[1] Attempting to install a non-existent package should result in an error, but some have exploited this for their gain in the form of typosquatting.[2]
The name is a portmanteau of “slop” and “typosquatting”.[3]
In 2023, security researcher Bar Lanyado noted that LLMs hallucinated a package named “huggingface-cli”.[4][5][6] While this name is identical to the command used for the command-line version of HuggingFace Hub, it is not the name of the package. The software is correctly installed with the code pip install -U "huggingface_hub[cli]"
. Lanyado tested the potential for slopsquatting by uploading an empty package under this hallucinated name. In three months, it had received over 30,000 downloads.[6] The hallucinated packaged name was also used in the README file of a repo for research conducted by Alibaba.[7]
In April 2025, the term was coined by Python Software Foundation Developer-in-Residence and security researcher Seth Larson and popularized by Andrew Nesbitt on Mastodon.[1][8]
In May 2025, the potential and prevalence of slopsquatting was detailed in the academic paper “We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs”.[1][9] Some of the paper’s main findings are that 19.7% of the LLM recommended packages did not exist, open-source models hallucinated far more frequently (21.7% on average, compared to commercial models at 5.2%), CodeLlama 7B and CodeLlama 34B hallucinated in over a third of outputs, and across all models, the researchers observed over 205,000 unique hallucinated package names.
To prevent being exploited by slopsquatting, package names should be manually verified and to never assume code that is AI-generated to be real or safe before deploying code to production environments.[8][10] Moreover, using dependency scanners, lock files, and hash ID verifications to known and trusted package versions can be used.
Feross Aboukhadijeh, CEO of security firm Socket, warns about software engineers who are practicing vibe coding may be susceptible to slopsquatting and either using the code without reviewing the code or the AI assistant tool installing the non-existent package.[2] There has not yet been a reported case where slopsquatting has been used as a cyberattack.
- ^ a b c “The Rise of Slopsquatting: How AI Hallucinations Are Fueling…” Socket. Retrieved 2025-04-14.
- ^ a b Claburn, Thomas (2025-04-12). “LLMs can’t stop making up software dependencies and sabotaging everything”. The Register. Retrieved 2025-04-14.
- ^ Cimpanu, Catalin. “Risky Bulletin: AI slopsquatting… it’s coming! – Risky Business Media”. www.risky.biz. Retrieved 2025-06-09.
- ^ Lanyado, Bar (2023-06-06). “Can you trust ChatGPT’s package recommendations?”. Vulcan. Archived from the original on 2023-06-12. Retrieved 2025-06-10.
- ^ Claburn, Thomas (2024-03-28). “AI hallucinates software packages and devs download them – even if potentially poisoned with malware”. The Register. Retrieved 2025-04-14.
- ^ a b “Lasso Research: AI Package Hallucinations”. www.lasso.security. Retrieved 2025-05-06.
- ^ “Project Init · alibaba/GraphTranslator@4394d72”. GitHub. Retrieved 2025-05-06.
- ^ a b “AI-hallucinated code dependencies become new supply chain risk”. BleepingComputer. Retrieved 2025-06-10.
- ^ Spracklen, Joseph; Wijewickrama, Raveen; Sakib, A. H. M. Nazmus; Maiti, Anindya; Viswanath, Bimal; Jadliwala, Murtuza (2025-03-02), We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs, arXiv:2406.10279
- ^ Zorz, Zeljka (2025-04-14). “Package hallucination: LLMs may deliver malicious code to careless devs”. Help Net Security. Retrieved 2025-06-10.