MAL-2026-11730

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@or-sdk/store/MAL-2026-11730.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11730
Aliases
  • GHSA-hrcw-453c-rqf9
Published
2026-08-04T15:23:00Z
Modified
2026-08-05T08:51:04.694189995Z
Summary
Malicious code in @or-sdk/store (npm)
Details

npm/@or-sdk/store is affected by the large-scale, self-propagating npm supply-chain worm of 2026-08-04 (the "Shai-Hulud: Here We Go Again" wave) — the same campaign that began with the compromise of the keyv and cacheable maintainer account. The listed version(s) were trojanized and republished by the worm after it reached an npm publish token belonging to a maintainer in this namespace; the payload enumerates every package a stolen token controls and republishes each with the same hook, so many packages under this scope were poisoned in the same short window. Every poisoned release adds a preinstall hook ("preinstall": "node setup.mjs") that runs on a bare npm install, before any project code. setup.mjs downloads a standalone Bun runtime and runs a byte-identical, heavily obfuscated ~728 KB second-stage credential stealer (shipped as MathSymbol.js / mathinit.js). It harvests GitHub, npm, AWS, GCP, Azure, HashiCorp Vault and Kubernetes credentials plus generic secrets and private keys (TruffleHog-style sweep), reads CI/CD secrets and identifies build runners, then republishes further packages the stolen token can reach. Rather than a fixed command-and-control host, it exfiltrates stolen findings to attacker-created GitHub repositories (descriptions reading "Shai-Hulud: Here We Go Again") and over DNS. Treat any environment that installed an affected version (with install scripts enabled) as compromised: rotate and revoke all reachable credentials (npm and GitHub tokens, cloud keys, Vault/Kubernetes secrets, and CI org/repo secrets). Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.


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

Source: amazon-inspector (e5a31e231001513f3a0a26b5b0eee73954300cf20133959475264b1376c85706)

The package advertises itself as a data-store SDK exporting a Store class (main entry dist/cjs/index.js is ordinary TypeScript output). Its package.json declares "preinstall": "node setup.mjs". setup.mjs downloads the Bun runtime from https://github.com/oven-sh/bun/releases/...zip, extracts it to a temporary directory, chmods 0o755, and then invokes it via execFileSync(bunPath, ['math_init.js']) (falling back to a system bun if already installed). The executed file math_init.js is a 727KB Bun-compiled bundle (// @bun @bun-cjs header) heavily obfuscated with a string-array rotator (function WV8StW(...) { for (...) MmgoCP.push(MmgoCP.shift()); return MmgoCP }) and a ~1000-entry mixed hex/string decoding dictionary n7gIxM=[...]. The obfuscated payload is not referenced by the library's main and has no relationship to the advertised Store SDK functionality. The install path routes execution through a freshly-downloaded alternate runtime specifically so Node-based install-time scanners do not analyze the code that actually runs on the installer's machine. Fetching an alternate runtime to execute an obfuscated, purpose-mismatched bundle at install time constitutes install-time remote code execution of opaque attacker-controlled logic.

Source: ghsa-malware (6453b7b558736692a65acbf779a86ef8a76a36c31d30bc893aeea6d3740878ff)

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
{
    "iocs": {
        "files": [
            {
                "paths": [
                    "setup.mjs"
                ],
                "note": "Stage 1 loader added to the package tarball and run via the preinstall script 'node setup.mjs'. Downloads a standalone Bun runtime and executes the second stage under it.",
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "paths": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "note": "Stage 2 payload: byte-identical, heavily obfuscated ~728 KB Bun-bundle credential stealer, shipped in the tarball as Math_Symbol.js and executed at runtime as math_init.js.",
                "source": "PACKAGE_ARCHIVE"
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-04T16:32:00Z",
            "id": "GHSA-hrcw-453c-rqf9",
            "import_time": "2026-08-05T00:10:18.110156218Z",
            "versions": [
                "2.1.7",
                "2.1.6",
                "2.1.5"
            ],
            "source": "ghsa-malware",
            "sha256": "6453b7b558736692a65acbf779a86ef8a76a36c31d30bc893aeea6d3740878ff"
        },
        {
            "versions": [
                "2.1.6"
            ],
            "id": "IN-MAL-2026-013705",
            "import_time": "2026-08-05T07:07:00.139852136Z",
            "modified_time": "2026-08-05T07:02:30Z",
            "source": "amazon-inspector",
            "sha256": "b2f2e0c218a4cae847ef46d078788b4534c5c6c28bc1e5da36cf8501fd11ceb7"
        },
        {
            "modified_time": "2026-08-05T07:25:56Z",
            "id": "IN-MAL-2026-013861",
            "import_time": "2026-08-05T08:22:11.490818853Z",
            "versions": [
                "2.1.7"
            ],
            "source": "amazon-inspector",
            "sha256": "ca2545826de6abe64e788ece060c1a36da1d33b27508bfb40ae77e243e3b7595"
        },
        {
            "modified_time": "2026-08-05T08:08:35Z",
            "id": "IN-MAL-2026-014151",
            "import_time": "2026-08-05T08:22:32.521234643Z",
            "versions": [
                "2.1.5"
            ],
            "source": "amazon-inspector",
            "sha256": "e5a31e231001513f3a0a26b5b0eee73954300cf20133959475264b1376c85706"
        }
    ]
}
References
Credits

Affected packages

npm / @or-sdk/store

Package

Name
@or-sdk/store
View open source insights on deps.dev
Purl
pkg:npm/%40or-sdk/store

Affected ranges

Affected versions

2.*
2.1.5
2.1.6
2.1.7

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "setup.mjs",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"
        },
        {
            "path": "math_init.js",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"
        },
        {
            "path": "CHANGELOG.md",
            "tlsh": "9982be32b215ac7a3e1393e26361f024df329d06ee7261cc7c66f718c660bf19b251a5",
            "sha256": "1b9c4ecf0d2daae79f1c54d202538a13d49a6670f8a9ccf5daedfe475015b93e"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@or-sdk/store/MAL-2026-11730.json"