MAL-2026-11876

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/hash-browser-router/MAL-2026-11876.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11876
Aliases
  • GHSA-9cf9-jhm6-8f97
Published
2026-08-04T15:26:25Z
Modified
2026-08-05T06:35:20.997859370Z
Summary
Malicious code in @servicetitan/hash-browser-router (npm)
Details

npm/@servicetitan/hash-browser-router 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 (af88d9552330f13cc827371209f5b6fdd0455890738a94aa2617fe2d16407c66)

The package advertises itself as a React hash-browser router but its package.json declares preinstall: node setup.mjs, which runs automatically on npm install. setup.mjs is heavily obfuscated (obfuscator.io-style hex identifiers _0x... and per-function proxy-object indirection wrapping every string). At install time it downloads the Bun runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/<platform>.zip, extracts it, and uses that alternate runtime to execute a sibling file math_init.js — a 727KB Bun-compiled cjs module carrying a rotating-string-array decoder (function WV8StW cycling a large numeric string array). Neither setup.mjs nor math_init.js is related to the advertised React router functionality, and neither is declared in the package's files field (which lists only dist and src); both are smuggled at the tarball root. Running the payload under Bun rather than Node bypasses Node-based resolvers and scanners. The combination of an obfuscated install-time dropper, an alternate-runtime execution step for an obfuscated blob unrelated to the package's stated purpose, and undeclared tarball contents in a vendor-looking scope is the alternate-runtime-dropper supply-chain attack pattern.

Source: ghsa-malware (12cf3aa770705924abc9f33532dbf97207f3d68c8bf6c0ddabf1514f0bec9693)

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.004668654Z",
            "sha256": "12cf3aa770705924abc9f33532dbf97207f3d68c8bf6c0ddabf1514f0bec9693",
            "modified_time": "2026-08-04T16:39:58Z",
            "id": "GHSA-9cf9-jhm6-8f97",
            "versions": [
                "38.1.7",
                "38.1.6",
                "38.1.5",
                "38.1.4",
                "38.1.3",
                "38.1.2",
                "38.1.1"
            ]
        },
        {
            "import_time": "2026-08-05T00:44:49.714120216Z",
            "modified_time": "2026-08-05T00:16:28Z",
            "sha256": "8bbe65e564519c1afa79574b8bdecf72fb465c611000e373c1ab0c5407313ab4",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-011442",
            "versions": [
                "38.1.5"
            ]
        },
        {
            "modified_time": "2026-08-05T03:42:12Z",
            "source": "amazon-inspector",
            "sha256": "8650d94f52de0613bfdc4e51963fa7aa6ab960bf4930d9a2205d91c311f49d79",
            "import_time": "2026-08-05T04:37:56.639101262Z",
            "id": "IN-MAL-2026-012317",
            "versions": [
                "38.1.3"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:04.255283864Z",
            "modified_time": "2026-08-05T03:52:07Z",
            "sha256": "a221b357e8bb22b349febabdef585c4d6a0cf2a33d25512719f9cdde6035036c",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012385",
            "versions": [
                "38.1.2"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:35.315292437Z",
            "modified_time": "2026-08-05T04:29:18Z",
            "sha256": "af88d9552330f13cc827371209f5b6fdd0455890738a94aa2617fe2d16407c66",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012646",
            "versions": [
                "38.1.4"
            ]
        },
        {
            "import_time": "2026-08-05T04:37:37.921082053Z",
            "modified_time": "2026-08-05T03:20:35Z",
            "sha256": "c4b5caf1e65da012163abdec6456dbb777b477f47039325477ee06524df377b6",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012164",
            "versions": [
                "38.1.7"
            ]
        },
        {
            "import_time": "2026-08-05T04:37:48.264748461Z",
            "modified_time": "2026-08-05T03:32:38Z",
            "sha256": "c971af388dc36f0a7085862ac8f7c046296cf950ca3f1e1fe36a52571671bf44",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012249",
            "versions": [
                "38.1.6"
            ]
        },
        {
            "import_time": "2026-08-05T06:00:09.567469839Z",
            "modified_time": "2026-08-05T04:55:36Z",
            "sha256": "63fbb123ca9bf71980b2e5d000459b11f1a99acf0708af1bae8758af5a73ddc1",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012831",
            "versions": [
                "38.1.1"
            ]
        }
    ],
    "iocs": {
        "files": [
            {
                "paths": [
                    "setup.mjs"
                ],
                "source": "PACKAGE_ARCHIVE",
                "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": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "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."
            }
        ]
    }
}
References
Credits

Affected packages

npm / @servicetitan/hash-browser-router

Package

Name
@servicetitan/hash-browser-router
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/hash-browser-router

Affected ranges

Affected versions

38.*
38.1.1
38.1.2
38.1.3
38.1.4
38.1.5
38.1.6
38.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."
    },
    {
        "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
{
    "package_integrity": [
        {
            "filename": "hash-browser-router-38.1.5.tgz",
            "hashes": {
                "sha512_sri": "sha512-3amTXpoA/JNAVPNPx4hvekFvH77iRjWWCh6dAtVOzKukab2mSqNTAIeK129gurlhWFWeHkENCg6YIy9+9f3BQg==",
                "sha1": "a6371bfbb18f7311b37c99c99540454ede4456b1"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "math_init.js"
        },
        {
            "tlsh": "14213a28c9a91df326da12e558771043611e840f4d4e3e8c37e3811e4b8e6af917a96e",
            "sha256": "254f09f984559bb64a9eceb7e26dc0057aaa3cdb7cdc48b64bfeb64ecf826af6",
            "path": "package.json"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/hash-browser-router/MAL-2026-11876.json"