MAL-2026-14294Malicious code in mc-registry (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.0.8 | archived | — | — | VIP 下载 |
1.0.9 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | mc-registry | * |
| npm | mc-registry | 1.0.8 |
| npm | mc-registry | 1.0.9 |
{"schema_version":"1.7.4","id":"MAL-2026-14294","published":"2026-08-19T08:22:22Z","modified":"2026-08-25T11:26:33.561558775Z","aliases":["GHSA-73h8-3qpw-h3wv"],"summary":"Malicious code in mc-registry (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (50f3053643e65c63fa7d8e3d5c48ae3d659650bd0052137099cd8674232780bc)\nPackage publishes as `mc-registry` with description 'Theta chain registry', but its README, badges, homepage layout, and package listing copy the legitimate hyperweb-io/chain-registry npm package. The README instructs users to `npm install theta-registry` and `import { assets, chains, ibc } from 'theta-registry'`, while the shipped name is `mc-registry` and the shipped API diverges from chain-registry by re-exporting `HttpProvider` from an unrelated third-party dependency `chain-analyze` (`^1.0.4`). The ESM entry `esm/index.js` performs `import { HttpProvider } from 'chain-analyze';` at top level, so any consumer that does `import 'mc-registry'` loads and executes `chain-analyze` code in the installer/consumer process. `chain-analyze` is not part of the chain-registry ecosystem and has no relationship to the advertised 'chain registry' data purpose. The internal accessor is named `loadPartnerVaultHttpProvider`, further indicating the module funnels callers into an unvetted HTTP provider from the injected dependency. Files `esm/mainnet/persistence/chain.js` and `mainnet/persistence/chain.js` contain `ping`/`POST` network patterns co-located with chain persistence logic.\n\n## Source: ghsa-malware (1a64395cf18ef215fa8debd38d127b7f163f4d347bc898101e13937d3df306bf)\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-registry","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.8","1.0.9"],"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":"esm/index.js","sha256":"0e0c6a0f9a3af293ced975f45c23172e492df0a72ef1f474c33de360dcc3df02","tlsh":"bcd012f7080dd75492d15bca291e8992d3149762b951662876730674ebca80eb8309ab"},{"path":"README.md","sha256":"d50eb587c5a5e08406f25323fa3528616df365d4d9a045b9022de67bfb635a40","tlsh":"8042a5e7de04529f0791d9ddb81670ecea32a12ee784849cba6d42b4d3445e7c23fb48"}],"package_integrity":[{"filename":"mc-registry-1.0.8.tgz","hashes":{"sha1":"7c2a4eceecc5f493fcc784f21b3aa9d05a08377c","sha512_sri":"sha512-qCwxk0Wf87ECMCYUsxNrn2grlyDffimidUZtRil8XabcnVNl8J6lIYZx3wZxKT93358puysHvzeKOydl1agNmw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-registry/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mc-registry/v/1.0.9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-73h8-3qpw-h3wv"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018406","import_time":"2026-08-19T08:48:53.554795424Z","modified_time":"2026-08-19T08:22:31Z","sha256":"1a249161c1ee8043be99d6317f1bcaf40a72cf1321ef67e05692caf8829de9f9","source":"amazon-inspector","versions":["1.0.8"]},{"id":"IN-MAL-2026-018405","import_time":"2026-08-19T08:48:53.487116752Z","modified_time":"2026-08-19T08:22:22Z","sha256":"50f3053643e65c63fa7d8e3d5c48ae3d659650bd0052137099cd8674232780bc","source":"amazon-inspector","versions":["1.0.9"]},{"id":"GHSA-73h8-3qpw-h3wv","import_time":"2026-08-25T11:24:46.544758362Z","modified_time":"2026-08-25T11:15:33Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"1a64395cf18ef215fa8debd38d127b7f163f4d347bc898101e13937d3df306bf","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0