MAL-2026-11831

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/assist-utils/MAL-2026-11831.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11831
Aliases
  • GHSA-559v-vqrh-229w
Published
2026-08-04T15:28:06Z
Modified
2026-08-05T06:35:00.400406393Z
Summary
Malicious code in @servicetitan/assist-utils (npm)
Details

npm/@servicetitan/assist-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 (15ce25fa85b51470e84a1310292c93f27a5815f501c699a52854389ae7b91d6f)

The package declares scripts.preinstall = "node setup.mjs", which fires automatically on npm install. setup.mjs is heavily obfuscated (obfuscator.io-style _0xNNNN identifiers with string-dictionary indirection) and downloads the Bun runtime (bun-v1.3.13) from github.com/oven-sh/bun/releases, extracts the bun binary into a temp directory, chmods it executable, and invokes it via execFileSync(bunPath, [<path to math_init.js>]) against the package-local math_init.js — a 727 KB Bun-format payload with rotating string-array obfuscation (WV8StW shift/rotate, mangled identifiers, opaque char-code table). The package presents itself as a React/MobX host-MFE utility library (main:./dist/index.js, CHANGELOG referencing servicetitan/ti-assist-fe), a purpose entirely inconsistent with pulling an alternate language runtime at install time to execute an obfuscated sibling bundle. The Bun runtime is used specifically to run code that is not Node-resolvable, evading scanners that only inspect JavaScript reachable from main. The pattern is the canonical alternate-runtime-dropper: legitimate runtime fetched from its official source, then used to execute attacker-controlled obfuscated bytes bundled with the package. Combined with the obfuscation of the preinstall script itself and the mismatch with the package's advertised purpose, this indicates either compromise of the @servicetitan publishing credentials or a scope-hijack publish.

Source: ghsa-malware (d9651f3c0b907a7d2ed4b8b8c66c7ac09f79d8d350cad2ee1154795458a42328)

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": [
        {
            "source": "ghsa-malware",
            "modified_time": "2026-08-04T16:36:23Z",
            "sha256": "d9651f3c0b907a7d2ed4b8b8c66c7ac09f79d8d350cad2ee1154795458a42328",
            "id": "GHSA-559v-vqrh-229w",
            "versions": [
                "1.1.8",
                "1.1.7",
                "1.1.6",
                "1.1.5",
                "1.1.4",
                "1.1.3",
                "1.1.2"
            ],
            "import_time": "2026-08-05T00:10:17.900167617Z"
        },
        {
            "import_time": "2026-08-05T00:44:51.384090056Z",
            "modified_time": "2026-08-05T00:17:51Z",
            "sha256": "1b60814bd5ba48f192e0125abe540c910d5d8f9a061c439ca6106d8fb40d7bea",
            "id": "IN-MAL-2026-011452",
            "versions": [
                "1.1.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:01:33Z",
            "sha256": "c6887a994bb329f04061f09586bce740fa772efdb8a94413b5f6d031f6dcc38b",
            "id": "IN-MAL-2026-012030",
            "versions": [
                "1.1.7"
            ],
            "import_time": "2026-08-05T03:12:11.686577482Z"
        },
        {
            "import_time": "2026-08-05T04:37:36.2906165Z",
            "modified_time": "2026-08-05T03:18:35Z",
            "sha256": "9f5cac776300c2bda0f48886330c077cdecbecf88e484e3ddbf07f121ca956cc",
            "id": "IN-MAL-2026-012150",
            "versions": [
                "1.1.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:53:56Z",
            "sha256": "e645a32f5d544e7da7526e0c0e8a0525c1318dde0ebb30956a410d28820660af",
            "id": "IN-MAL-2026-012398",
            "versions": [
                "1.1.2"
            ],
            "import_time": "2026-08-05T04:38:05.902022605Z"
        },
        {
            "import_time": "2026-08-05T04:38:13.024849343Z",
            "modified_time": "2026-08-05T04:03:00Z",
            "sha256": "15ce25fa85b51470e84a1310292c93f27a5815f501c699a52854389ae7b91d6f",
            "id": "IN-MAL-2026-012461",
            "versions": [
                "1.1.8"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T04:37:58.037586368Z",
            "sha256": "83c482fc99fc9975d009e363f92631c9206c0f4a12eb93d07f46c48e9b7a55e3",
            "modified_time": "2026-08-05T03:44:01Z",
            "id": "IN-MAL-2026-012329",
            "versions": [
                "1.1.4"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T06:00:01.778633746Z",
            "sha256": "98799e3581d52c1e4d119b39dafa1b8f46a9442deb6aed47f1f373ce656193f8",
            "modified_time": "2026-08-05T04:46:04Z",
            "id": "IN-MAL-2026-012766",
            "versions": [
                "1.1.3"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/assist-utils

Package

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

Affected ranges

Affected versions

1.*
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8

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",
        "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",
        "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-WOqiUO+Pva1eun1a1u8S8iyauNpYKxX8ysaC/el25O/UzZfgagM0BbfRlj7+smTMmu1xGADVEarTJci9ta2/rw==",
                "sha1": "d864c739ac53c07b7337a967b25550ef903e74bb"
            },
            "filename": "assist-utils-1.1.5.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        },
        {
            "path": "package.json",
            "sha256": "2ba807f0a779797f314ce2297d0eec2e975a7c0811f161c48f5e148b7d8f4e2d",
            "tlsh": "c401f550ca564df316de12f4683701026a6a450b0d59be6c23e2a31d074cbeea07fa7c"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/assist-utils/MAL-2026-11831.json"