Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in commandorjs (npm)

commandorjs@1.0.0 on npm is a malicious dropper that executes remote code during installation via a postinstall script. The package exfiltrates system information and downloads and executes a binary payload, with special handling for Windows and WSL environments.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or system that installed commandorjs@1.0.0 from npm.
Ecosystems
Attack vectors
Affected entities
  • commandorjs · 1.0.0

commandorjs@1.0.0 is a malicious npm package designed to act as a dropper. The package exports an empty object in its main index.js, but contains functional malicious code in scripts/postinstall.js that executes automatically during npm install.\n\nThe postinstall script performs reconnaissance by POSTing a JSON payload containing platform, architecture, and Node.js version information to a hardcoded plain-HTTP endpoint at 193.70.34.101:20099/vote. It then XOR-decodes obfuscated binary blobs using the 7-byte key 'stf2026' to reconstruct a GitHub download URL and shell launcher commands.\n\nOn Windows systems, the decoded binary is downloaded to %TEMP%/main.exe and executed with detached process creation. On WSL or virtualized Linux environments, the package executes a decoded PowerShell-style bridge command to run the Windows payload on the host system. The combination of install-time execution, obfuscation, bare-IP telemetry, and cross-platform payload delivery makes this a sophisticated remote-code-execution dropper.\n\nThe package was identified and credited to the OpenSSF malicious-packages project.", <parameter name="remediation">["Immediately uninstall commandorjs from all systems where it was installed", "Audit npm install logs and dependency trees to identify all affected projects and installations", "Assume any system that installed commandorjs@1.0.0 may be compromised; perform forensic analysis for signs of payload execution", "Review outbound network connections from affected systems for communication to 193.70.34.101:20099", "Regenerate any credentials or secrets that may have been exposed on affected systems", "Update npm to the latest version and clear the npm cache", "Use npm audit to check for other malicious packages in your dependency tree"]

Indicators of compromise

Packages
  • commandorjs@1.0.0
IPs
  • 193.70.34.101

Remediation

  • Review the linked advisory; remove or upgrade the affected component and rotate any exposed credentials.

Sources

  1. GitHub Advisory GHSA-57x2-cfpp-9hm6 · GitHub Advisory Database

Cite this entry

"Malicious code in commandorjs (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-commandorjs-npm-1qotyg

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. containedcritical

    Malicious code in 3-buildsight-web (npm)

    The npm package 3-buildsight-web contains malicious code that fetches and executes arbitrary JavaScript from a remote Bitbucket URL on module load, granting full page privileges to an unverified third party.

    npmCompromised package
  2. resolvedcritical

    Malicious code in @usaa-grp-personal-profile/personal-profile-common (npm)

    Malicious package @usaa-grp-personal-profile/personal-profile-common version 999.0.0 published to public npm as a dependency-confusion attack targeting an organization's internal registry. The package contains preinstall and postinstall hooks that exfiltrate hostname, username, and working directory to an attacker-controlled OAST endpoint on every install.

    npmDependency confusionCompromised package
  3. resolvedcritical

    Malicious code in create-coin (npm)

    create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.

    npmCompromised packageTyposquatting
  4. resolvedcritical

    Malicious code in @syncraft-labs/vue (npm)

    The npm package @syncraft-labs/vue version 0.4.1 contained malicious obfuscated code in its ESM build that implements a blockchain-hosted C2 dropper (EtherHiding pattern), enabling remote code execution on any consumer importing the package.

    npmCompromised package