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

目标: 1000 元 · 已筹: 1359 元

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

ledger-lib

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

Summary

Malicious code in ledger-lib (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmledger-lib1.0.0
npmledger-lib1.0.1
npmledger-lib1.0.2
npmledger-lib1.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-12068","published":"2026-08-05T01:47:38Z","modified":"2026-08-05T07:08:53.710303466Z","summary":"Malicious code in ledger-lib (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (440db517e7261bf345aa374ab2afb8d91698929115a8d3d67abd9fbf7018362e)\nThe npm package ledger-lib@1.0.0 presents itself as a Ledger hardware wallet library but ships no wallet functionality (index.js is empty). Its package.json declares a postinstall hook that runs postinstall.js on every npm install. postinstall.js reads a hardcoded list of installer-owned secret files including ~/.env variants, ~/.npmrc, ~/.aws/credentials, ~/.ssh/id_rsa, and ~/.ssh/id_ed25519, then enumerates dotdirectories under the user's home and reads any file whose name matches wallet, key, secret, seed, mnemonic, keystore, or private, truncating each to 8KB. The collected contents are POSTed via https.request to the hardcoded host enxhcjpo5ev.x.pipedream.net at path /c, a Pipedream request bin acting as the attacker's collection endpoint. The stated Ledger purpose is cover for credential and wallet-seed theft executed automatically at install time.\n\n## Source: ossf-package-analysis (5b623fc6d2442970b8576d251252a68520b6b027d42fd9357051f8405769cc9d)\nThe OpenSSF Package Analysis project identified 'ledger-lib' @ 1.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","affected":[{"package":{"name":"ledger-lib","ecosystem":"npm"},"versions":["1.0.0","1.0.1","1.0.3","1.0.2"],"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"cb89d25cb941a6c4f7b12d049518b8756e9a4ce84ddaedb89c225795487ca171","tlsh":"f54134d505df162154476bd8862b31107277e2d7344aa9c43e9c6b198f1d8384a5affc"}],"package_integrity":[{"filename":"ledger-lib-1.0.1.tgz","hashes":{"sha1":"348d871d9cb5a05d09df13cf8620237e88a76302","sha512_sri":"sha512-+TVbxhRq8venXoqlyI20Bd+MtZmZKdpFt38Tydwe67q04Fs3XBGnfJ2926mTsU2gQ2vu+/3RkHY4QAkLhq9Wrw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ledger-lib/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ledger-lib/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ledger-lib/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ledger-lib/v/1.0.2"}],"database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T03:11:11.344733391Z","modified_time":"2026-08-05T01:47:38Z","sha256":"5b623fc6d2442970b8576d251252a68520b6b027d42fd9357051f8405769cc9d","source":"ossf-package-analysis","versions":["1.0.0"]},{"id":"IN-MAL-2026-013416","import_time":"2026-08-05T07:06:46.550541623Z","modified_time":"2026-08-05T06:20:01Z","sha256":"3df67fb31684dc6802cbe046ba5e34767ecddc648e0f0954fb5f1c2876c92b14","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-013425","import_time":"2026-08-05T07:06:46.989052467Z","modified_time":"2026-08-05T06:21:19Z","sha256":"440db517e7261bf345aa374ab2afb8d91698929115a8d3d67abd9fbf7018362e","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-013399","import_time":"2026-08-05T07:06:45.600647226Z","modified_time":"2026-08-05T06:17:32Z","sha256":"8d7d2eec38e7a938c95279befcdb7cbef97e5b141873ccc50c9ed1921121fd02","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-013400","import_time":"2026-08-05T07:06:45.639685584Z","modified_time":"2026-08-05T06:17:42Z","sha256":"a999337fcc7050a79eb806c8bfde421fb7147508ceacce03ce7ad597dabbda36","source":"amazon-inspector","versions":["1.0.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}

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