MAL-2026-14171Malicious code in comander-lib (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | comander-lib | 1.0.0 |
{"modified":"2026-08-18T23:57:46Z","published":"2026-08-18T23:57:46Z","schema_version":"1.7.4","id":"MAL-2026-14171","summary":"Malicious code in comander-lib (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (19734d8bfb929b0c1049b6220271fabaa91603506cdcb6424e67988519da9a6e)\ncomander-lib@1.0.0 is a typosquat of `commander` with an empty index.js and no native sources. Its scripts/postinstall.js runs automatically on `npm install` and performs two hostile actions. First, it POSTs the installer's platform label as JSON to a hardcoded bare-IP C2 at http://193.70.34.101:20099/vote, with the host built via array-join (`['193','70','34','101'].join('.')`) to hide the literal. Second, it XOR-decodes (key `stf2026`) an attacker-controlled github.com URL and fetches an executable to `%TEMP%/main.exe`, then spawns it detached with `windowsHide:true` on Windows. On WSL/virtualized Linux it XOR-decodes a PowerShell bridge command and invokes it to execute the same payload on the Windows host, escaping the Linux sandbox. Addon URL, PowerShell launcher, and script fragments are all stored as XOR-encoded byte arrays decoded at runtime, concealing the destination and command surface. The package advertises itself as a native-addon mirror but ships no addon code, confirming a pure dropper cover story.\n","affected":[{"package":{"ecosystem":"npm","name":"comander-lib"},"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":"501f55031e612035020ef78940d5dc8ae7e740511c18a3a5270bf2b8b9c24074","tlsh":"d6d130c61ef5a035874bf96884cf9d13b2a6c207330e4a65ff8f42107f5792c85a69d6"}],"package_integrity":[{"filename":"comander-lib-1.0.0.tgz","hashes":{"sha1":"491d99fa83e8311cc32e95784b7bc54b74204ad1","sha512_sri":"sha512-TW1DTke01wSBc2J1xFcW972cQJeibwNK7Z9thHi0HGIqTXOBrFsnPlmC3ZsjSNyly8La+m3q3EB+yHBFEj7h/Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/comander-lib/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018240","import_time":"2026-08-19T00:21:12.158540691Z","modified_time":"2026-08-18T23:57:46Z","sha256":"19734d8bfb929b0c1049b6220271fabaa91603506cdcb6424e67988519da9a6e","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0