Skip to main content
MalwarePublished

black-spindle-2 (npm) · Malicious Code

Affects black-spindle-2Source GCVE Database

0

Malicious package : remove black-spindle-2 and rotate any secrets on hosts that installed it.

Data as of 29 Oct 2026, 18:52 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-18376

What to do

Remove black-spindle-2 from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmblack-spindle-2Affected
  • =301.0.0
  • =100.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The black-spindle-2 npm package contains malicious code in its postinstall script. This script executes automatically upon installation and makes an HTTP request to an anonymous ngrok-free.app URL, embedding shell command substitution. This behavior can confirm installation on the host and potentially exfiltrate environment or host data. The package's main code is an empty stub, indicating the postinstall script is the primary malicious component.

References

Community reviews

Loading reviews…