commandor-cli (npm) · Malicious Code
Affects commandor-cliSource GCVE Database
Malicious package : remove commandor-cli and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:50 UTC
Malicious package
Published to npm · OSV MAL-2026-14172
What to do
Remove commandor-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
| Product | Affected | Fixed in |
|---|---|---|
| npmcommandor-cli | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package commandor-cli version 1.0.0 contains malicious code in its postinstall script. This script XOR-decodes a hardcoded URL to download a binary from a personal GitHub repository, writes it to the temporary directory, and executes it detached. On Windows Subsystem for Linux (WSL), it uses a PowerShell command to execute the binary on the Windows host, extending the attack surface. Additionally, the script sends an install beacon with platform information to a hardcoded IP address over unencrypted HTTP. The binary is unsigned and fetched from an untrusted source, and the payload URLs and commands are obfuscated using XOR encoding.