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

目标: 1000 元 · 已筹: 1359 元

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

anhn-cli

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

Summary

Malicious code in anhn-cli (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.1.4archived——VIP 下载
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmanhn-cli*
npmanhn-cli1.1.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-14290","published":"2026-08-19T08:37:09Z","modified":"2026-09-23T00:58:58.173718553Z","aliases":["GHSA-7fvf-fgwq-85q6"],"summary":"Malicious code in anhn-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7b0f11f74231c27bd3e3ac41dea5290466f042224f64547d88a328d6b87cf657)\nbin/install/install.js appends a heavily obfuscated top-level IIFE (obfuscator.io-style rotated string array `_0x240a`/`_0x4963` with arithmetic index decoding) after the benign install() helper. The payload queries public Ethereum RPCs and etherscan.io for transactions from the hardcoded sender address 0xa322E5f3..., decodes the transaction `to` field as an IPv4 address, fetches an XOR-encrypted body from that host, and executes it via `eval(prefix+xor(body))` and a detached `spawn('node', ['-e',...], {detached:true}).unref()`. The package's main entry (bin/index.js) unconditionally requires./install/install, so the IIFE runs whenever the package is required or the CLI is invoked. The attacker controls the fetched payload by publishing new Ethereum transactions from the sender address; there is no version pinning, no signature check, and the destination host rotates on-chain. Decoded strings inside the string array include `eth_getBlockByNumber`, `etherscan.io`, `eval`, and `spawn`.\n\n## Source: ghsa-malware (a8979748c94e778d47d8dbcb6df6c726c12f8a6200827263e7d425e5f0781ba5)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"anhn-cli","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.4"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"bin/install/install.js","sha256":"edd592deaa4eb1924b0eeaee130c299c39b7d6617e515432037206b75296aacd","tlsh":"08e23284a7d0a440034b6abbbb1bf4e5e96a0cac75844ac7f11dbd84f766327e4f1531"}],"package_integrity":[{"filename":"anhn-cli-1.1.4.tgz","hashes":{"sha1":"93dac554ac1d931f434c3786f202b1522f42c703","sha512_sri":"sha512-KYigpzpMwqd5ehpwRrIA4K34sZd/md0hak//yjK3nhQeE+LivicgeeXKJ210JFBwoK3RLxHofeCnhefmzztksA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/anhn-cli/v/1.1.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7fvf-fgwq-85q6"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018413","import_time":"2026-08-19T08:48:53.993969046Z","modified_time":"2026-08-19T08:37:09Z","sha256":"7b0f11f74231c27bd3e3ac41dea5290466f042224f64547d88a328d6b87cf657","source":"amazon-inspector","versions":["1.1.4"]},{"id":"GHSA-7fvf-fgwq-85q6","import_time":"2026-09-23T00:57:12.941429094Z","modified_time":"2026-09-23T00:24:45Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"a8979748c94e778d47d8dbcb6df6c726c12f8a6200827263e7d425e5f0781ba5","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

数据来源:OpenSSF Malicious Packages · Apache-2.0