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

目标: 1000 元 · 已筹: 1336

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

mc-reg

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

Summary

Malicious code in mc-reg (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
40
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.3archivedVIP 下载
1.0.4unavailable
1.0.8unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmmc-reg*
npmmc-reg1.0.2
npmmc-reg1.0.3
npmmc-reg1.0.4
npmmc-reg1.0.5
npmmc-reg1.0.6
npmmc-reg1.0.7
npmmc-reg1.0.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-10637","published":"2026-07-15T00:01:17Z","modified":"2026-08-20T21:45:12.216166424Z","aliases":["GHSA-hvhc-6qpw-v5r9"],"summary":"Malicious code in mc-reg (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (93ca15954536abe30ea5c7f5bc5a06192f3946c98d74edef9d90edbc52cb9d95)\nmc-reg advertises itself as a Cosmos chain-registry data package (README shows chain-registry-style `assets`/`chains`/`ibc` API), but its main and ESM entrypoints do not expose that data. Instead, index.js lazy-imports and re-exports `PartnerVaultHttpProvider` from an unrelated runtime dependency `chain-sdk-js`, and esm/index.js statically imports it — so `require('mc-reg')` or `import { chains } from 'mc-reg'` transparently pulls chain-sdk-js into the consumer's dependency tree. The pulled dependency's `persistence/chain.js` contains a wallet-secret interception + exfiltration pattern: a hardcoded destination reconstructed from a char-code array (`ping`/`ping`/`ping` decode-and-join sequence at lines 320-322 / 322-324) and POST calls (lines 118/204 and 120/206) that ship data to a non-caller-configured host, matching the shape of BIP-39 mnemonic / private-key theft from a wallet/signing path. The mc-reg package itself is a lure whose only effect on install/import is to route consumers into the malicious chain-sdk-js code path under the guise of a benign chain-registry data package.\n\n## Source: ghsa-malware (7bc757c5a8198ec3a1d2e2be1f483da8abeaea6d5565febbb22ef1bf1e4eb6d0)\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":"mc-reg","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.3","1.0.4","1.0.8","1.0.6","1.0.5","1.0.7","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"},{"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":"index.js","sha256":"f477d128df56dc293d3371c1c6098b8b0a0c455e3a19db8a8432a0b6e5eada5e","tlsh":"39315baab8f350a1431b7ffc7e9d8d46e66c5553606c8968742e5330df83c248e942c6"}],"package_integrity":[{"filename":"mc-reg-1.0.3.tgz","hashes":{"sha1":"8e059358571565868f23c8278e1a79882966359b","sha512_sri":"sha512-/3SvtmOpjaLoU68Cfw03Vt7BQ/xzm6o/jXXe7g7XcowfQ7I4PJfocQSnAhv1bW0Naui41B5iItvdfKl0cLAHSA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-reg/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-reg/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-reg/v/1.0.8"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hvhc-6qpw-v5r9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-reg/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-reg/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-reg/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-reg/v/1.0.2"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010587","import_time":"2026-07-15T00:34:11.09941447Z","modified_time":"2026-07-15T00:01:17Z","sha256":"93ca15954536abe30ea5c7f5bc5a06192f3946c98d74edef9d90edbc52cb9d95","source":"amazon-inspector","versions":["1.0.3"]},{"id":"IN-MAL-2026-010588","import_time":"2026-07-15T00:34:11.18040322Z","modified_time":"2026-07-15T00:01:27Z","sha256":"da00efeec184136a983b9e22cbf2a5c575c77225c24fd288c7647107e29091c6","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-018404","import_time":"2026-08-19T08:48:53.399267424Z","modified_time":"2026-08-19T08:18:44Z","sha256":"4277e49b92cf69eefa2d78804027be9298bbd88fa60303de2c2fb3a10d8cf766","source":"amazon-inspector","versions":["1.0.8"]},{"id":"GHSA-hvhc-6qpw-v5r9","import_time":"2026-08-20T14:26:11.996434926Z","modified_time":"2026-08-20T14:22:53Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"7bc757c5a8198ec3a1d2e2be1f483da8abeaea6d5565febbb22ef1bf1e4eb6d0","source":"ghsa-malware"},{"id":"IN-MAL-2026-018470","import_time":"2026-08-20T21:43:25.892323809Z","modified_time":"2026-08-20T21:15:31Z","sha256":"3a6605880b501baad84cdb34d0f69eef64dbd9ba8601c92f03b8e76684a7054d","source":"amazon-inspector","versions":["1.0.6"]},{"id":"IN-MAL-2026-018468","import_time":"2026-08-20T21:43:25.730448622Z","modified_time":"2026-08-20T21:15:08Z","sha256":"53cee8bda8042156419bfa4b7ee64d461b22cf1a24f64abbd87c46a5875f0564","source":"amazon-inspector","versions":["1.0.5"]},{"id":"IN-MAL-2026-018458","import_time":"2026-08-20T21:43:24.799796514Z","modified_time":"2026-08-20T21:13:43Z","sha256":"7eb3ee5b82d7cf24e3b3ab7f3b2b814ae0def3e2e8fdf6b5d6e6fde3cdd002b4","source":"amazon-inspector","versions":["1.0.7"]},{"id":"IN-MAL-2026-018459","import_time":"2026-08-20T21:43:24.881006062Z","modified_time":"2026-08-20T21:13:55Z","sha256":"9b4d8833f0387bea78a43f3e30a3646f758b440a6f8f13d70de665a3897e6f63","source":"amazon-inspector","versions":["1.0.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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