top of page

Echo Finds 79 Unclaimed npm Packages Exposed by Flag Typosquatting

1 hour ago
1 min read

Echo researchers found that leaving two dashes out of a developer command could redirect an installation toward an unclaimed npm package name and create a path for attackers to run code inside company systems.


There are multiple known ways for an npm package to execute code unknown to the user, including lifecycle scripts and bin linking. If an attacker controlled the mistaken package name, that code could run inside automated build systems and steal passwords, cloud keys and other credentials.


Researchers at Echo identified 79 unclaimed npm package names that could exploit the pattern and secured them before attackers could. GitHub’s Trust & Safety team subsequently locked all 79 packages, and npm replaced them with security placeholders.


The issue is a form of flag typosquatting: a developer intends to pass a command-line option, but a missing dash causes the package manager to interpret part of the command as a package name. The discovery illustrates how small command-line mistakes can create software supply-chain risk when package namespaces remain unclaimed.

bottom of page