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

目标: 1000 元 · 已筹: 1359 元

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

ether-bn.js

MAL-2026-4779
2026-07-06 19:55:34
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in ether-bn.js (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmether-bn.js1.0.0
npmether-bn.js1.0.3
npmether-bn.js1.1.1
npmether-bn.js1.2.1
npmether-bn.js1.3.1
npmether-bn.js1.3.3
npmether-bn.js1.3.4
npmether-bn.js1.4.0
npmether-bn.js1.4.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-06T19:55:34Z","published":"2026-05-26T06:25:09Z","schema_version":"1.7.4","id":"MAL-2026-4779","aliases":["GHSA-v3j8-x82x-chvr"],"summary":"Malicious code in ether-bn.js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4cc5567869e3d616af151887f680ef13bf23f8a19fe5978343254b921c1c7c73)\nPackage name 'ether-bn.js' resembles the widely-used 'bn.js' big-number library, and the README directs users to install yet another name ('buffernumber.js'). The repository and homepage fields point at the legitimate indutny/bn.js project while the author field is unrelated. The shipped lib/bn.js is a near-verbatim copy of upstream bn.js with two non-upstream additions: a top-level `const uniqueString = require('unique-id-64');` (lib/bn.js:38) and a check `if (BN.isBN(number) && uniqueString(64)) { return number; }` inside the BN constructor (lib/bn.js:20). package.json adds `unique-id-64: ^1.0.0` to dependencies. The injected require is unconditionally evaluated when the module is loaded, and `uniqueString(64)` is invoked on every BN clone path, so any consumer that does `new BN(existingBn)` executes the third-party `unique-id-64` package's code. The injected dependency is unpinned (`^1.0.0`) and is not a legitimate transitive of bn.js — it is the payload-delivery vehicle for whatever the third-party package contains now or in the future. Installers expecting bn.js semantics silently take a runtime dependency on attacker-selected code reached through a confusingly-named lookalike package.\n\n## Source: ghsa-malware (7a4eeb107d1aebff802622b91caa1ef499047d41bd732883f86dbf0401f0eb32)\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":{"ecosystem":"npm","name":"ether-bn.js"},"versions":["1.4.0","1.4.1","1.3.4","1.3.3","1.3.1","1.2.1","1.1.1","1.0.3","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"},{"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":"lib/bn.js","sha256":"d6b7f7f510a0574745196d24515cc9f121560cc5755aa1afe1f9283351ba8d8c","tlsh":"e8938844abb720599a4b753c4faf60886a74e41b5847dd08bd8ce3e06f5502482fdffa"},{"path":"package.json","sha256":"cbbc438fa05f5350c7e7b503b7975447865e03c72373cfb9e272d00d8366486f","tlsh":"41114c58cc694ca32bd566e5489d600bb671885b4898fc0cb3e7521c4b5f16f11feabc"}],"package_integrity":[{"filename":"ether-bn.js-1.4.0.tgz","hashes":{"sha1":"c98f6b5e1991a17a64e421b2cc3e6ab5deeef1d7","sha512_sri":"sha512-s2MbqGoQUt4wUpUMfI/H6wWPXKVVld4nXaqOHjyGvdXkd1AIdNQv1fv7nQAYNzrsoBuTc1SPMIG1QqzURKBmhw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ether-bn.js/v/1.4.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ether-bn.js/v/1.4.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v3j8-x82x-chvr"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"4cc5567869e3d616af151887f680ef13bf23f8a19fe5978343254b921c1c7c73","import_time":"2026-05-26T06:26:14.140621251Z","id":"IN-MAL-2026-004851","modified_time":"2026-05-26T06:25:09Z","versions":["1.4.0"]},{"source":"amazon-inspector","sha256":"c00780a3026cf6886eb1c16dbfe7a20d9dea3ac9e12bd2de1a3856249df8d878","import_time":"2026-05-26T07:48:28.324713291Z","id":"IN-MAL-2026-004856","modified_time":"2026-05-26T07:09:54Z","versions":["1.4.1"]},{"source":"ghsa-malware","sha256":"7a4eeb107d1aebff802622b91caa1ef499047d41bd732883f86dbf0401f0eb32","import_time":"2026-07-06T19:53:47.98348547Z","id":"GHSA-v3j8-x82x-chvr","modified_time":"2026-07-06T18:55:06Z","versions":["1.4.1","1.4.0","1.3.4","1.3.3","1.3.1","1.2.1","1.1.1","1.0.3","1.0.0"]}]}}

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