Language models generate plausible package names that do not exist. Attackers claim those names on PyPI and npm, waiting for developers or agents to install them.
Slopsquatting happens when attackers register package names that language models invent. When developers or autonomous coding agents ask for a library to solve a specific task, models frequently suggest plausible package names that do not exist. Attackers monitor these repeated hallucinations, publish malicious packages under those exact names on npm or PyPI, and wait for machines or humans to install them.
This mechanism differs from older registry attacks. Typosquatting waits for a person to misspell a real package name like lodash. Dependency confusion exploits build tools that mix private corporate registries with public ones. Slopsquatting targets the predictable token guesses of language models.