Skip to main content

Malicious code in mc-registry (npm)

0
High
Published: 08/19/2026 (08/19/2026, 08:22:22 UTC)
Source: GCVE Database
Product: mc-registry

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (50f3053643e65c63fa7d8e3d5c48ae3d659650bd0052137099cd8674232780bc) Package 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. ## Source: ghsa-malware (1a64395cf18ef215fa8debd38d127b7f163f4d347bc898101e13937d3df306bf) Any 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.

Affected software

npmghsa
mc-registry
Affected versions
=1.0.8=1.0.9

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 14:13:29 UTC

Technical Analysis

The mc-registry npm package publishes under the guise of 'Theta chain registry' but copies the legitimate chain-registry package's metadata to deceive users. Its shipped API differs by re-exporting HttpProvider from an unrelated third-party package, chain-analyze, which is not part of the chain-registry ecosystem. The top-level import of chain-analyze causes execution of its code in any consumer process importing mc-registry. Internal code references such as loadPartnerVaultHttpProvider and network communication patterns (ping/POST) suggest the package funnels consumers into unvetted HTTP providers, potentially enabling malicious network activity or data exfiltration.

Potential Impact

Users who install or import mc-registry versions 1.0.8 or 1.0.9 may unknowingly execute malicious code from the chain-analyze dependency. This can lead to unauthorized network communications initiated by the package, potentially exposing sensitive data or enabling further compromise of the consuming environment. The package's deceptive presentation increases the risk of inadvertent installation by developers expecting the legitimate chain-registry functionality.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or using the mc-registry package, especially versions 1.0.8 and 1.0.9. Verify package authenticity by using the legitimate hyperweb-io/chain-registry package instead. Monitor package sources carefully and prefer packages with verified provenance. Since this is a malicious package impersonation, removal from projects and dependency trees is recommended if mc-registry is detected.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14294
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4b3acd9273b4925150b

Added to database: 08/19/2026, 13:50:43 UTC

Last enriched: 08/19/2026, 14:13:29 UTC

Last updated: 10/02/2026, 13:51:40 UTC

Views: 22

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses