Jan 15, 2024Unverified
Researchers prove slopsquatting: hallucinated 'huggingface-cli' package downloaded 30,000+ times once registered
AI loose in the worldMisinformationDERIVED
Approved by person, Oct 11, 2026. How entries are approved
Bar Lanyado of Lasso Security noticed LLMs repeatedly recommending a Python package that did not exist — 'huggingface-cli' (the real install is 'huggingface_hub[cli]'). He registered the hallucinated name on PyPI as an empty placeholder and watched it accumulate more than 30,000 authentic downloads in the following three months, including references in real GitHub projects' install instructions. The experiment proved an attacker can pre-register the package names AI assistants invent and let developers install malware themselves — a technique later named 'slopsquatting'.
What this means for youIf you or your team use AI coding assistants, check that any package they suggest exists on the official registry and matches the project's documented install command before running it. Businesses should require developers to verify dependencies instead of pasting AI-suggested install commands.
Sources
- Simon Willison (on Lasso Security research)https://simonwillison.net/2024/Apr/1/diving-deeper-into-ai-package-hallucinations/
Incident records from the AI Agent Incident Database by sipi.bot (https://sipi.bot/incidents/), licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).
Source data license: CC BY 4.0. Attribution to sipi.bot is required.
Covered by snapshot 45
da93f03b406f409940d0a6ef47b526607f82ebf457d98f69299b88aceede576a
This entry is record number 2391. It has not been edited since it was approved; the hash above would not match if it had. How to verify