MAL-2026-11924

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/startup-jest/MAL-2026-11924.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11924
Aliases
  • GHSA-2w9r-jxr5-frfq
Published
2026-08-04T15:27:49Z
Modified
2026-08-05T06:35:38.218564242Z
Summary
Malicious code in @servicetitan/startup-jest (npm)
Details

npm/@servicetitan/startup-jest 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 (d692cfe7c4899f23f9d8687fcd2527607a8ba71396baa3890729cc529875483d)

The package's preinstall hook (scripts.preinstall = "node setup.mjs") downloads the Bun runtime (v1.3.13) from the oven-sh releases, extracts it to a temporary directory, chmods it executable, and then invokes it against a locally-shipped 727KB obfuscated file mathinit.js (execFileSync(bun, [path.join(D,'mathinit.js')])). math_init.js is a single-line 727KB body using a string-array rotation cipher (function WV8StW rotating a large mixed-type constant array n7gIxM) with hex-mangled identifiers and no readable strings; the filename does not correspond to any math API surface. The package's declared purpose is a Jest startup helper (main./dist/index.js is a 532-byte re-export of./jest, peer-depends on @servicetitan/startup) — a Jest helper has no functional need to fetch a second language runtime at install time in order to execute a large obfuscated sibling file. Using an alternate runtime (Bun) to execute the obfuscated payload also evades Node-focused install-time inspection. The combination of a lifecycle-triggered alternate-runtime launcher, a heavily obfuscated 727KB payload with a deceptive filename, and a purpose mismatch with the advertised @servicetitan/startup-jest scope is consistent with a supply-chain compromise / dropper release.

Source: ghsa-malware (09e009b71cf6f31908e106d0c931000e212e73db77ee534f4174935dd41ac9bd)

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:17.840993235Z",
            "sha256": "09e009b71cf6f31908e106d0c931000e212e73db77ee534f4174935dd41ac9bd",
            "modified_time": "2026-08-04T16:41:10Z",
            "id": "GHSA-2w9r-jxr5-frfq",
            "versions": [
                "2.2.7",
                "2.2.6",
                "2.2.4",
                "2.2.3",
                "2.2.2",
                "2.2.1"
            ]
        },
        {
            "modified_time": "2026-08-05T03:55:49Z",
            "source": "amazon-inspector",
            "sha256": "42e23730a5e863f9bd5b687ab2a14e9cc5279e25485dfdef4bf1a8eed027ac4b",
            "import_time": "2026-08-05T04:38:07.365961119Z",
            "id": "IN-MAL-2026-012411",
            "versions": [
                "2.2.1"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:25.503979736Z",
            "modified_time": "2026-08-05T04:17:30Z",
            "sha256": "76b4f051639ca215d5a2ea65c305ab76b0d5ee18b491ac28cf59dc15cd759128",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012561",
            "versions": [
                "2.2.5"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:38:40.372176008Z",
            "sha256": "a4e7ed19a58a8934f4107b5f3704c21836e82c85a8b9b5c399fa0a6525ab9c2b",
            "modified_time": "2026-08-05T04:35:47Z",
            "id": "IN-MAL-2026-012693",
            "versions": [
                "2.2.3"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:38:34.585721566Z",
            "sha256": "c4593279a2df1f70d6f98ed278ee88913f8edc71cb24dee45b148633f3657676",
            "modified_time": "2026-08-05T04:28:21Z",
            "id": "IN-MAL-2026-012639",
            "versions": [
                "2.2.4"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:38:10.447251573Z",
            "sha256": "d692cfe7c4899f23f9d8687fcd2527607a8ba71396baa3890729cc529875483d",
            "modified_time": "2026-08-05T03:59:38Z",
            "id": "IN-MAL-2026-012437",
            "versions": [
                "2.2.7"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:38:21.896160629Z",
            "sha256": "eb47f8a446977c1ed67e41b967da49a76271dff8cedb1227c19119d3a95f05fd",
            "modified_time": "2026-08-05T04:13:32Z",
            "id": "IN-MAL-2026-012532",
            "versions": [
                "2.2.6"
            ]
        },
        {
            "import_time": "2026-08-05T06:00:00.861684241Z",
            "modified_time": "2026-08-05T04:45:00Z",
            "sha256": "19f6c8c410dd3a147c3d665b18de12b1b99a73887f57f3fea97c0570cd64b98d",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012758",
            "versions": [
                "2.2.2"
            ]
        }
    ],
    "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/startup-jest

Package

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

Affected ranges

Affected versions

2.*
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
2.2.6
2.2.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": "startup-jest-2.2.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-ZwbA7erkOL/q9VSN6x1Tkelz0p9/+FZKmC2CjgEFHpwN8OmL31+/T0hrqAixEL5qh9LekHWFtIz8f1rNqC0qXw==",
                "sha1": "141c0353308c895f4e678d82617041b6d1f1d0b6"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "math_init.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/startup-jest/MAL-2026-11924.json"