Skip to main content
MalwarePublished

comander-lib (npm) · Malicious Code

Affects comander-libSource GCVE Database

0

Malicious package : remove comander-lib and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:50 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14171

What to do

Remove comander-lib 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
npmcomander-libAffected
  • =1.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 comander-lib@1.0.0 package on npm is a typosquatting malicious package impersonating the legitimate 'commander' library. It contains no legitimate code but runs a post-install script that sends system platform information to a hardcoded command-and-control server and downloads and executes a hidden payload on Windows systems. It also includes mechanisms to escape Linux sandbox environments via WSL by invoking PowerShell commands on the Windows host. The malicious payload and command URLs are XOR-encoded to evade detection. This package acts as a pure dropper under the guise of a native-addon mirror but ships no native code.

References

Community reviews

Loading reviews…