Skip to main content
MalwarePublished

comander-cli (npm) · Malicious Code

Affects comander-cliSource GCVE Database

0

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

Data as of 19 Aug 2026, 14:52 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14170

What to do

Remove comander-cli 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-cliAffected
  • =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-cli npm package is a malicious typosquat of the legitimate 'commander' package. It exports no functional code but runs a post-install script that downloads and executes a Windows executable payload. The script uses obfuscation techniques, including XOR decoding and split-array IP construction, to evade detection. It also attempts to escape Windows Subsystem for Linux (WSL) boundaries to infect the underlying Windows host. Additionally, the package sends an unencrypted beacon to a hardcoded IP address after installation.

References

Community reviews

Loading reviews…