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

目标: 1000 元 · 已筹: 1359 元

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

mchain-sdk

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

Summary

Malicious code in mchain-sdk (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmmchain-sdk*
npmmchain-sdk4.2.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T16:23:02Z","published":"2026-07-09T11:26:45Z","schema_version":"1.7.4","id":"MAL-2026-10012","aliases":["GHSA-frcx-7v83-jfwx"],"summary":"Malicious code in mchain-sdk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a5249b7e6ec4cba8f4a3b2d332ec69069c1ca39eabec04a1372500ea25952280)\npackage.json declares a postinstall hook `node./src/core/index.js`. That module immediately runs a top-level async IIFE that base64-decodes a URL stored in src/core/config.js under `MULTI_CHAIN_CONFIG.dev.apiKey` (decoding to https://jsonkeeper.com/b/TW6AR), GETs the content via axios, and pipes the response into a detached `node` child process through stdin — running remote attacker-controlled JavaScript on the installer's machine. The same payload also fires at library load time: src/index.js (the package main) imports `multiChainInterface` from./core/index.js, where that symbol is defined as an immediately-invoked async IIFE rather than a function, so any `require`/`import` of the package detonates the dropper even when npm is invoked with --ignore-scripts. The remote endpoint is an anonymous paste on jsonkeeper.com whose content is mutable and unverified. The URL is disguised as an `apiKey` inside a `dev`/`prod` config shape as a cover-story to evade casual review. The package clones the API surface, README, and wiki links of the legitimate uhop/stream-chain library and republishes it under the name mchain-sdk with the hostile payload appended — a typosquat/brand-clone repackage with an install- and import-time dropper.\n\n## Source: ghsa-malware (e0d5c2c37107e1a7d14258f9b9c256469d0fcf843bcb88419bf9a75dd38318bb)\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":"mchain-sdk"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["4.2.5"],"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":"src/core/index.js","sha256":"73dfc06c3dd44b2863eae62b22be71f75edce710c23b5623344badfcc5cc08cd","tlsh":"c25132d754ab212d0852606c81af262706218911f785f598ee793222ffd3049eb2eefd"},{"path":"src/core/config.js","sha256":"d23123ff15df7b933a1ccca715cb289dd1a5e390c7244e8a9c2a767e9a9ccf28","tlsh":"cad0a98aea229ec64cb023b0103a2746a72312bb7c980f0936ac409d0bb69520808f99"},{"path":"README.md","sha256":"cd5e03237be22e509dd952bdf154101a08b841285a13cacda8ab4c131875354a","tlsh":"46f1c7bf661023a60e4721edd2d9758dcb33d04be62004ec447ac4a4e7154eae67deaf"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-frcx-7v83-jfwx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mchain-sdk/v/4.2.5"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"e0d5c2c37107e1a7d14258f9b9c256469d0fcf843bcb88419bf9a75dd38318bb","import_time":"2026-07-09T13:22:08.526042258Z","id":"GHSA-frcx-7v83-jfwx","modified_time":"2026-07-09T11:26:46Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"a5249b7e6ec4cba8f4a3b2d332ec69069c1ca39eabec04a1372500ea25952280","import_time":"2026-07-09T16:20:41.254151617Z","id":"IN-MAL-2026-009106","modified_time":"2026-07-09T15:29:12Z","versions":["4.2.5"]}]}}

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