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.