MAL-2026-11585

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@nebula.js/test-utils/MAL-2026-11585.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11585
Aliases
  • GHSA-vfmh-xf35-6mj3
Published
2026-08-04T15:48:00Z
Modified
2026-08-05T07:20:04.972951465Z
Summary
Malicious code in @nebula.js/test-utils (npm)
Details

npm/@nebula.js/test-utils 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 (f7e3adfabac11abcb8e2f9b2b1a5a3a0c0c6b48a37a7b5f96ed6a7b72516f6a9)

The package declares a preinstall lifecycle hook (node setup.mjs) that downloads the Bun runtime from GitHub releases, extracts it to a temporary directory, marks it executable, and invokes it on math_init.js shipped alongside the tarball. math_init.js is a 727KB // @bun @bun-cjs bundle with heavy string-array/index obfuscation (shifted numeric constant tables, WV8StW-style array rotation, hex-mangled identifiers) that is not listed in package.json files (which only declares dist). The payload is not resolvable via Node and executes only under the freshly-downloaded Bun binary, evading tooling that inspects Node-reachable code. The published library body (dist/test-utils.js, 905 bytes) copies the legitimate @nebula.js/test-utils v0.6.0 header verbatim from QlikTech, while this version 0.6.1 grafts on the preinstall dropper and bundled payload — consistent with a scope hijack or account takeover of the Qlik @nebula.js scope. Installing this package auto-runs the obfuscated bundle against every installer under an alien runtime the package itself provisions.

Source: ghsa-malware (7b735cc584181567e8a99891f4bde91f7c6438586227252de0f80171bb29fd41)

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",
            "id": "GHSA-vfmh-xf35-6mj3",
            "modified_time": "2026-08-04T15:48:11Z",
            "sha256": "7b735cc584181567e8a99891f4bde91f7c6438586227252de0f80171bb29fd41",
            "versions": [
                "0.6.1"
            ],
            "import_time": "2026-08-05T00:10:18.247725788Z"
        },
        {
            "versions": [
                "0.6.1"
            ],
            "id": "IN-MAL-2026-013505",
            "modified_time": "2026-08-05T06:32:51Z",
            "sha256": "f7e3adfabac11abcb8e2f9b2b1a5a3a0c0c6b48a37a7b5f96ed6a7b72516f6a9",
            "source": "amazon-inspector",
            "import_time": "2026-08-05T07:06:50.973664527Z"
        }
    ],
    "iocs": {
        "files": [
            {
                "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.",
                "paths": [
                    "setup.mjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "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.",
                "paths": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "source": "PACKAGE_ARCHIVE"
            }
        ]
    }
}
References
Credits

Affected packages

npm / @nebula.js/test-utils

Package

Name
@nebula.js/test-utils
View open source insights on deps.dev
Purl
pkg:npm/%40nebula.js/test-utils

Affected ranges

Affected versions

0.*
0.6.1

Database specific

indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha1": "08850801fd86474f8a521165235b27b47ef57dda",
                "sha512_sri": "sha512-7bcJIJ2Qkn+Sjx8B719HtjAFxHlG/TjI0kpkvIsZweaUXq2mBo6pCsCxM1a/wdJsgD0KMLs7V+Oo8mopI43Pqw=="
            },
            "filename": "test-utils-0.6.1.tgz"
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "path": "math_init.js"
        },
        {
            "tlsh": "8df08120d935982312d822b05c3a0303b9624c07847cfc1c37c7511c475e1e384bd27d",
            "sha256": "3faac1c202880293f7082fce3a8776743862a2f62fe2d657cc44f82b74fd4978",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@nebula.js/test-utils/MAL-2026-11585.json"