MAL-2026-14169Malicious code in comand (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | comand | 1.0.0 |
{"modified":"2026-08-18T23:59:37Z","published":"2026-08-18T23:59:37Z","schema_version":"1.7.4","id":"MAL-2026-14169","summary":"Malicious code in comand (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0d3576e830f201f4264c061dc377c51fa35bab19543a98c0feb316305051190b)\nOn npm install, scripts/postinstall.js executes automatically. It first POSTs a JSON body containing the resolved host platform (Windows/MacOS/Linux, with WSL detection) to a hardcoded bare-IP endpoint at http://193.70.34.101:20099/vote; the IP is assembled from a string array (['193','70','34','101'].join('.')) to hide it from static inspection. It then XOR-decodes (key 'stf2026') a hardcoded URL and, on Windows or via a PowerShell bridge from WSL, downloads main.exe from https://github.com/braz1/qPzM50V1AKG0rVlH/releases/download/null/main.exe into %TEMP% and spawns it detached with stdio ignored and windowsHide set. The WSL branch invokes powershell with ExecutionPolicy Bypass through a decoded bridge script. All network destinations and shell command fragments (ADDON_ENC, BRIDGE_LAUNCHER_ENC, BRIDGE_SCRIPT_*_ENC) are stored as XOR-encoded integer arrays reconstructed at runtime via an unpackSegment routine. The GitHub owner (braz1) does not match the npm publisher, the binary is unsigned and unverified, and the package name 'comand' resembles a typosquat of 'command'.\n","affected":[{"package":{"ecosystem":"npm","name":"comand"},"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":"556cda792565c82a343042df9e7fed49a4ff6dc2709a2c8bc472bf2d78b30369","tlsh":"81d13fca1ef59035874bf96884cf9d13b2a6c207320e4a65ff8f42107f5793c85a69e9"}],"package_integrity":[{"filename":"comand-1.0.0.tgz","hashes":{"sha1":"e91ebcc00ada70cdb3635d8eb0606141ce324290","sha512_sri":"sha512-MCqP4hscJlW9hSLUPeaIn/YesdV7tJcCQ8TdDHdC3wREzHoiTzrgS9AC/erMZKbsuPwod3rG0Ux0Q30YXJjrqg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/comand/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018253","import_time":"2026-08-19T00:21:13.442939434Z","modified_time":"2026-08-18T23:59:37Z","sha256":"0d3576e830f201f4264c061dc377c51fa35bab19543a98c0feb316305051190b","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0