What is slopsquatting?
Updated
Slopsquatting is registering a package name that an AI coding assistant has invented, so that anyone who installs the suggestion gets the attacker's code instead of an error.
Why does it matter?
The name looks reasonable because a program chose it. The package is new, so nobody has reported it. You trust the suggestion and install without looking.
How do I stay safe?
- Search for the package yourself before you install an assistant's suggestion.
- Check how old it is and how many people download it.
- Look for a link to a code repository that matches the name.
- Install through
crowsnest install.
What this does not do
This page defines the term. It does not list invented names, and Crowsnest cannot stop a package it has no data on. A plain npm install is not checked.
Where do I read more?
Related terms: typosquatting and supply chain attack. Read the full post, What is slopsquatting?, or see the FAQ. Back to the glossary.
Related
- TyposquattingTyposquatting is publishing a package whose name is almost the same as a popular one, such as a missing letter or a moved hyphen, hoping someone mistypes an install command.
- Supply chain attackA supply chain attack is when an attacker harms you by tampering with something you rely on, such as a software package, instead of attacking you directly.
- What is slopsquatting?An AI assistant can suggest a package that does not exist. An attacker can make it exist.
- FAQAnswers to common questions about Crowsnest: what it is, whether it needs API keys, what it costs, what it can't see and what to do when it says Hold.