MAL-2026-11727

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@or-sdk/source/MAL-2026-11727.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11727
Aliases
  • GHSA-w3m5-4cxv-f6p7
Published
2026-08-04T15:24:38Z
Modified
2026-08-05T08:51:03.454279213Z
Summary
Malicious code in @or-sdk/source (npm)
Details

npm/@or-sdk/source 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 (86e2674b5bece91d3cf1fb80aad4ceda5609c1e6c6f0ab2f8fc031998e2a6315)

The package's declared preinstall script (node setup.mjs) auto-executes on npm install. setup.mjs is itself obfuscated (obfuscator.io-style _0xNNNNNN identifier mangling and per-function string-lookup objects) and performs one of two paths: if Bun is already installed on the host it invokes Bun on the shipped math_init.js; otherwise it fetches a pinned Bun release archive from github.com/oven-sh/bun/releases/download/bun-v<V>/...zip, extracts it to a temp directory, chmods the binary executable via execFileSync, and runs math_init.js under it. math_init.js is a ~727KB Bun-CJS bundle with a rotated string-array cipher (WV8StW shift routine over a >5000-entry mixed-literal array) and hex-numeric identifiers, making its behavior unreadable from source. Executing the sibling payload under a freshly-fetched, non-Node runtime bypasses Node-based inspection of what the code actually does at install time. The installed Bun binary itself is a legitimate runtime from its official publisher, but the pattern here is that the runtime is being used to run an opaque, heavily-obfuscated sibling script shipped inside the package tarball — not to build or run the package's declared source. The combination of install-time auto-execution, obfuscation of both the loader and the payload, and alternate-runtime execution to evade Node-based tooling matches the alternate-runtime-dropper attack shape.

Source: ghsa-malware (5f107e5abef2d12cdbdb1bed153e7905fef4217cae6f08551e53c917b0419f39)

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": [
        {
            "source": "ghsa-malware",
            "import_time": "2026-08-05T00:10:18.262024218Z",
            "sha256": "5f107e5abef2d12cdbdb1bed153e7905fef4217cae6f08551e53c917b0419f39",
            "modified_time": "2026-08-04T16:25:12Z",
            "id": "GHSA-w3m5-4cxv-f6p7",
            "versions": [
                "2.1.7",
                "2.1.6",
                "2.1.5"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T07:07:00.678730142Z",
            "sha256": "483b4048dd87091fbbb71a917a8ea8748c21321da232608f63b9f7e0cf4b3123",
            "modified_time": "2026-08-05T07:04:50Z",
            "id": "IN-MAL-2026-013721",
            "versions": [
                "2.1.6"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T08:22:28.606689654Z",
            "sha256": "86e2674b5bece91d3cf1fb80aad4ceda5609c1e6c6f0ab2f8fc031998e2a6315",
            "modified_time": "2026-08-05T08:00:50Z",
            "id": "IN-MAL-2026-014098",
            "versions": [
                "2.1.5"
            ]
        },
        {
            "import_time": "2026-08-05T08:22:11.722792958Z",
            "modified_time": "2026-08-05T07:26:23Z",
            "sha256": "928dd90efbf503f10a4ef0d292e25a86540aa982cabb2e4c7414e88873fc9fd8",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-013864",
            "versions": [
                "2.1.7"
            ]
        }
    ],
    "iocs": {
        "files": [
            {
                "source": "PACKAGE_ARCHIVE",
                "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."
            }
        ]
    }
}
References
Credits

Affected packages

npm / @or-sdk/source

Package

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

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": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@or-sdk/source/MAL-2026-11727.json"