NPM Typosquatting
ID |
typosquatting_npm |
Severity |
high |
Family |
Typosquatting |
Description
It occurs when the attacker creates a package with a name similar to a popular package, inducing users to install this package inadvertently. This attack strategy is generic and often used with different package managers, including npm.
A famous example was the crossenv malware incident: crossenv
(without dash) was a typo-squatting malicious package trying to be installed by developers referencing the popular cross-env
package.