MAL-2026-11811

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/acquisition-functions/MAL-2026-11811.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11811
Aliases
  • GHSA-v9p9-cgq5-55jp
Published
2026-08-04T15:28:06Z
Modified
2026-08-05T05:05:04.901055049Z
Summary
Malicious code in @servicetitan/acquisition-functions (npm)
Details

npm/@servicetitan/acquisition-functions 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 (e59907547c7329166bb0cf29f1b21b535611e4a295bfd0e380097f3a836df8ec)

This package's declared preinstall script (node setup.mjs) auto-executes on npm install. setup.mjs is itself obfuscated with hex-mangled identifiers and wrapper-call indirection (e.g., import _0x488df8 from "fs", YCZJE: function(fn,a,b,c){return fn(a,b,c)}) and performs the following sequence: download the Bun runtime from github.com/oven-sh/bun/releases/download/bun-v1.3.13/<platform>.zip into a temp directory, extract it, chmod it executable, then invoke that freshly downloaded Bun binary via execFileSync to run the sibling file mathinit.js. mathinit.js is a 727KB single-line // @bun @bun-cjs bundle whose entire body is string-array-rotation obfuscation (rotator function WV8StW cycling a large constants array, hex-mangled globals, no readable strings). The payload is executable only through the fetched alternate runtime and cannot be reviewed statically. This is the alternate-runtime dropper pattern: a Node lifecycle hook fetches a second language runtime specifically to execute an opaque, obfuscated, package-controlled payload with it, bypassing Node-based supply-chain scanners. The @servicetitan scope is a well-known company scope, and this shape is inconsistent with a legitimate ServiceTitan library — consistent with a scope compromise or lookalike publish. Installing this package grants arbitrary code execution on the installer's host at npm install time.

Source: ghsa-malware (428f91fb98457eecd8d0065f68175c6910b74d1cafbc22d960308a19e7eb7845)

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"
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-05T00:10:18.245423003Z",
            "sha256": "428f91fb98457eecd8d0065f68175c6910b74d1cafbc22d960308a19e7eb7845",
            "modified_time": "2026-08-04T16:41:36Z",
            "id": "GHSA-v9p9-cgq5-55jp",
            "versions": [
                "5.22.7",
                "5.22.6",
                "5.22.5",
                "5.22.4",
                "5.22.3",
                "5.22.2",
                "5.22.1"
            ],
            "source": "ghsa-malware"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T00:14:40Z",
            "sha256": "141c171fc1fb104ba1654e138a120608d8d6db0e3be4c07a47297c7e2dac768c",
            "id": "IN-MAL-2026-011431",
            "versions": [
                "5.22.5"
            ],
            "import_time": "2026-08-05T00:44:47.271232186Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:55:35Z",
            "sha256": "9f7f4ac5d0f0bf3065fa04b989efeae7855b33e8a4ff4c78b4a3db381d8b9b8b",
            "id": "IN-MAL-2026-011987",
            "versions": [
                "5.22.2"
            ],
            "import_time": "2026-08-05T03:12:06.920223512Z"
        },
        {
            "import_time": "2026-08-05T04:38:33.046410973Z",
            "modified_time": "2026-08-05T04:26:20Z",
            "sha256": "d5815451e59257b1f86ad1161fff7add39e7438d590fb586e89927d6c07867c8",
            "id": "IN-MAL-2026-012624",
            "versions": [
                "5.22.4"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:54:40Z",
            "sha256": "e59907547c7329166bb0cf29f1b21b535611e4a295bfd0e380097f3a836df8ec",
            "id": "IN-MAL-2026-012403",
            "versions": [
                "5.22.1"
            ],
            "import_time": "2026-08-05T04:38:06.518362956Z"
        },
        {
            "import_time": "2026-08-05T04:38:15.001966594Z",
            "sha256": "f1cb4f7a9a11683b41f2404f3c5b3fe5b8b139655f429477264ff2d1cbcce4db",
            "modified_time": "2026-08-05T04:05:28Z",
            "id": "IN-MAL-2026-012479",
            "versions": [
                "5.22.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:25:00Z",
            "sha256": "02b5c382e150d8153c126e0d121fdbb913f34a78c74a79db27f34a1f090e3a0c",
            "id": "IN-MAL-2026-012194",
            "versions": [
                "5.22.3"
            ],
            "import_time": "2026-08-05T04:37:41.50323348Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:31:32Z",
            "sha256": "04d7b1f25e0ad439a178e03fd1fca6b9664705e302a68edbe0bac29e88d3cf82",
            "id": "IN-MAL-2026-012241",
            "versions": [
                "5.22.6"
            ],
            "import_time": "2026-08-05T04:37:47.383047372Z"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/acquisition-functions

Package

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

Affected ranges

Affected versions

5.*
5.22.1
5.22.2
5.22.3
5.22.4
5.22.5
5.22.6
5.22.7

Database specific

cwes
[
    {
        "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",
        "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",
        "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",
        "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"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-pmNvSc5mqZ2eUEXhi6Z3axGwi1EHLnnClZRSEJMs5M9ruL0yd1DOVMSooJEMDLFXbiQQyHFwPwJgmlqfWdXk4w==",
                "sha1": "c1fb2df7b5a34b70bea331c4dadda54aa7e6bbe6"
            },
            "filename": "acquisition-functions-5.22.5.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        },
        {
            "path": "package.json",
            "sha256": "e890b28b65eb838bd99d80722cb2e1aabec98f17e01fc3b64c221a579251e730",
            "tlsh": "4bf04600c124ee2320d822fa9c7f0162953648674968be1c33c6611e0b4c2af20bb6ad"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/acquisition-functions/MAL-2026-11811.json"