目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%
← 返回恶意软件包
npm active

comander-lib

MAL-2026-14171
2026-08-18 23:57:46
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in comander-lib (npm)

安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcomander-lib1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"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