MAL-2026-14174Malicious code in commandorjs (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | commandorjs | 1.0.0 |
{"modified":"2026-08-18T23:56:56Z","published":"2026-08-18T23:56:56Z","schema_version":"1.7.4","id":"MAL-2026-14174","summary":"Malicious code in commandorjs (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bdd905d058d1f6d1d32c380316559a38d52610dc95295528c85ccf990df9b51b)\ncommandorjs@1.0.0 is a dropper disguised as an npm library. Its index.js exports an empty object; the only functional code is scripts/postinstall.js, which runs automatically on npm install. The postinstall script POSTs a JSON payload with platform/arch/node info to a hardcoded plain-HTTP endpoint at 193.70.34.101:20099/vote (host assembled from a split integer array). It then XOR-decodes obfuscated blobs (ADDON_ENC, BRIDGE_LAUNCHER_ENC, BRIDGE_SCRIPT_PRE_ENC, BRIDGE_SCRIPT_POST_ENC) using the 7-byte key 'stf2026' to reconstruct a github.com download URL and shell launcher commands. On Windows it downloads the decoded binary to %TEMP%/main.exe and launches it detached; on WSL/virtualized Linux it executes a decoded PowerShell-style bridge command to run the Windows payload on the host. URL and shell-command obfuscation, bare-IP plain-HTTP telemetry, write-to-temp with detached exec, and a WSL-to-Windows-host bridge together form an install-time remote-code-execution dropper.\n","affected":[{"package":{"ecosystem":"npm","name":"commandorjs"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"scripts/postinstall.js","sha256":"777c4e70080eed1c90b8d542c12e57fb18392c12f61328bc84553f125b4a3a4d","tlsh":"12d13fc61ef59035874bf96884cf9d13b2a6c207330e4a65ff8f42107f5792c85a69ea"}],"package_integrity":[{"filename":"commandorjs-1.0.0.tgz","hashes":{"sha1":"71e332f6ffa9e4a396156ac8997ef9a35a90ee8a","sha512_sri":"sha512-KRlZNdtB1Qn6UfIxTW1kiqSDRv4oxiYZ7kkxKEGcY+ezgvPqjJADrsnM7kwSwo5A4k3PjzkiiwGOmgHtTcYLOA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/commandorjs/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018235","import_time":"2026-08-19T00:21:11.630713223Z","modified_time":"2026-08-18T23:56:56Z","sha256":"bdd905d058d1f6d1d32c380316559a38d52610dc95295528c85ccf990df9b51b","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0