MAL-2026-10637

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mc-reg/MAL-2026-10637.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10637
Aliases
  • GHSA-hvhc-6qpw-v5r9
Published
2026-07-15T00:01:17Z
Modified
2026-08-20T22:01:44Z
Summary
Malicious code in mc-reg (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (93ca15954536abe30ea5c7f5bc5a06192f3946c98d74edef9d90edbc52cb9d95)

mc-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.

Source: ghsa-malware (7bc757c5a8198ec3a1d2e2be1f483da8abeaea6d5565febbb22ef1bf1e4eb6d0)

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.

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"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / mc-reg

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8

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=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mc-reg/MAL-2026-10637.json"