Cinderpoint › Books › SAFEMACHINE Scams by AI › Slopsquatting
Mechanism 9 of 17  ·  SAFEMACHINE Scams by AI

Slopsquatting

From SAFEMACHINE Scams by AI: 17 Ways People Use AI to Fake Trust  ·  Waydell D. Carvalho

Described in SAFEMACHINE Scams by AI by Waydell D. Carvalho.

Definition
A coding assistant names a software package that does not exist. An attacker registers that name first and fills it with harmful code.
How to Check
  • Trigger: An assistant suggests an unfamiliar package for an obscure problem, with full confidence.
  • Stress test: Before installing, check the registry for age, downloads and a real repository.
  • Failsafe: If the project's own docs do not list it, treat it as hostile; do not install.

Rule: A package name from an assistant is a prediction, not an address.

A coding assistant sometimes names a software package that does not exist. A developer who types the install command for that name gets whatever sits under it. Slopsquatting is the scam that fills that empty name with harmful code. The attacker only has to register the name first.

How often assistants invent names

Six researchers ran 16 large language models through hundreds of thousands of coding tasks. Of the packages the models recommended, 19.7 percent, nearly 1 in 5, did not exist. When a prompt that produced a made-up name was run 10 more times, the same name came back in all 10 runs 43 percent of the time. A name that repeats is a name an attacker can count on. Only about 13 percent of the invented names sat within 1 or 2 characters of a real package.

Bar Lanyado, then at Vulcan Cyber, tested the gap. In his 2023 test, a model named at least one package that did not exist for almost 30 percent of his questions. He uploaded an empty package under a name the models produced. In 3 months it had more than 30,000 authentic downloads. Several large companies used or recommended it, and install steps appeared in the README of an Alibaba research repository. His package held nothing, and his post reports no harm.

Why a name used to be trusted

A package name works like an address. The package manager turns the name into code and installs it. For years the name and the code matched. The older attack, typosquatting, needed a slip near a real name, so defenders watched the near misses. A model drops that limit, because an invented name can be any string. The usual defense also fails. A check that the name exists passes, since the attacker's sign-up made it exist.

Real attacks use the gap. Koi Security named one campaign PhantomRaven. The Hacker News reports that it began in August 2025 and grew to 126 npm libraries with more than 86,000 installs. Koi says the packages steal GitHub credentials and other secrets, and that the names were chosen through slopsquatting. The reports do not name who is behind it. The study's own authors held back their list of invented names, so that no one would misuse it.

The check comes before the install, because installing is what runs the code. Look the name up in the registry first. Is it new, are its downloads near zero, and does it point to a real, active repository? Then confirm the project's own documentation names it. If not, treat it as hostile and do not install it, even to test. The full case and the others are in Scams by AI.

This mechanism is examined in full in SAFEMACHINE Scams by AI: 17 Ways People Use AI to Fake Trust by Waydell D. Carvalho. All 17 Mechanisms are developed and connected in the complete book.
About the book
Cite this concept
Carvalho, W. D. (2026). Slopsquatting. Cinderpoint. https://cinderpoint.com/library/scams-by-ai/slopsquatting/