MAL-2026-11944

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/tokens/MAL-2026-11944.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11944
Aliases
  • GHSA-vh4p-xw5q-qc5f
Published
2026-08-04T13:18:47Z
Modified
2026-08-05T06:35:46.182760743Z
Summary
Malicious code in @servicetitan/tokens (npm)
Details

npm/@servicetitan/tokens 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 (53d62d9f6b168d0a3a3344683018039bbbd7db87f06b6504b5d24a51c518a351)

The tarball ships two root-level files not declared in package.json's files whitelist (which lists only core/, ember/, sapphire/, jade/, dist/): an obfuscated setup.mjs and a 727KB math_init.js. package.json declares preinstall: node setup.mjs, causing setup.mjs to run automatically on npm install. setup.mjs is obfuscated (mangled identifiers such as _0x488df8, string-array indirection) and constructs a URL of the form https://github.com/oven-sh/bun/releases/download/bun-v<version>/<archive>.zip, downloads and extracts the Bun runtime, chmods it executable, and invokes bun math_init.js on the sibling payload. math_init.js carries the // @bun @bun-cjs header and an obfuscator.io-style shuffled string array (WV8StW rotating n7gIxM) in a 727KB single-line body — a Bun-compiled obfuscated single-file bundle whose contents are never resolved by Node-based tooling because execution occurs under the freshly-downloaded Bun binary. A design-tokens package has no legitimate need for a second language runtime or a 727KB compiled payload at install time; the files' absence from the files manifest is consistent with a malicious republish of the @servicetitan/tokens scope rather than a normal author release. Installing this version causes attacker-authored code to execute on the installer's machine via a runtime that bypasses Node-oriented static scanners.

Source: ghsa-malware (4129254d732c12b6ac3e2115bf56842863b7bd793a2cf9874a10e404cf179370)

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"
            },
            {
                "paths": [
                    "package/setup.mjs"
                ],
                "note": "stage-1 install-time loader, 11017 bytes",
                "digests": {
                    "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"
                }
            },
            {
                "paths": [
                    "package/math_init.js"
                ],
                "note": "stage-2 Bun-bundled payload, 727680 bytes",
                "digests": {
                    "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"
                }
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-05T00:10:18.252288636Z",
            "modified_time": "2026-08-04T16:21:01Z",
            "sha256": "4129254d732c12b6ac3e2115bf56842863b7bd793a2cf9874a10e404cf179370",
            "id": "GHSA-vh4p-xw5q-qc5f",
            "versions": [
                "12.9.6",
                "12.9.5",
                "12.9.4",
                "12.9.3",
                "12.9.2",
                "12.9.1",
                "12.9.7"
            ],
            "source": "ghsa-malware"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T00:14:50Z",
            "sha256": "73f232a2d0ac7ddef8c6fd83dc66cb32ccceef271e34e5b66ba357d68c9d2f9d",
            "id": "IN-MAL-2026-011432",
            "versions": [
                "12.9.5"
            ],
            "import_time": "2026-08-05T00:44:47.361230058Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:27:13Z",
            "sha256": "17591d94fcaffd98446e5f0cb142d0fe6c7112e61abf5f936a775ab9bacf1a3b",
            "id": "IN-MAL-2026-012210",
            "versions": [
                "12.9.7"
            ],
            "import_time": "2026-08-05T04:37:43.452098123Z"
        },
        {
            "import_time": "2026-08-05T04:37:57.939087111Z",
            "modified_time": "2026-08-05T03:43:49Z",
            "sha256": "53d62d9f6b168d0a3a3344683018039bbbd7db87f06b6504b5d24a51c518a351",
            "id": "IN-MAL-2026-012328",
            "versions": [
                "12.9.3"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T04:38:00.598637597Z",
            "modified_time": "2026-08-05T03:47:29Z",
            "sha256": "680454c3f00460133adc2a7405d261492dcdf5677cfb104656ed29364c1c2492",
            "id": "IN-MAL-2026-012352",
            "versions": [
                "12.9.2"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T04:38:14.902866848Z",
            "modified_time": "2026-08-05T04:05:20Z",
            "sha256": "e498d043d0c4f3193aadab35878a422655d218c50351b8d10cdb82911f557a70",
            "id": "IN-MAL-2026-012478",
            "versions": [
                "12.9.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:38:12Z",
            "sha256": "fe6b75931fa70fe72fc6a8187d17b9975d135482936007f0daf127155556a506",
            "id": "IN-MAL-2026-012289",
            "versions": [
                "12.9.4"
            ],
            "import_time": "2026-08-05T04:37:53.523288987Z"
        },
        {
            "import_time": "2026-08-05T06:00:08.653229281Z",
            "sha256": "09c3ce993ccd55c02eb3e1f2d7e938551d6dedd49087da4d6c1bbccdf1bd7b7e",
            "modified_time": "2026-08-05T04:54:29Z",
            "id": "IN-MAL-2026-012823",
            "versions": [
                "12.9.1"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/tokens

Package

Name
@servicetitan/tokens
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/tokens

Affected ranges

Affected versions

12.*
12.9.1
12.9.2
12.9.3
12.9.4
12.9.5
12.9.6
12.9.7

Database specific

cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "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."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-9aqmHpatY7lo9WHZIMCIPAmCpmKVly8JKQPeRDm3/av4sXwc3yIhb0FsFa9j8HEZXdSKwnvGZZooIKHxTVJELQ==",
                "sha1": "c744fc3d78266af8534ea3b7be99eaa15bcca960"
            },
            "filename": "tokens-12.9.5.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/tokens/MAL-2026-11944.json"