MAL-2026-11852

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/design-system/MAL-2026-11852.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11852
Aliases
  • GHSA-cjgc-69g5-x5qv
Published
2026-08-04T13:20:24Z
Modified
2026-08-05T05:05:00.924895663Z
Summary
Malicious code in @servicetitan/design-system (npm)
Details

npm/@servicetitan/design-system 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 (80c2193bdab5d1574395ab3691fb97c482c0b59e2767dad1b603a40af6774ebe)

The package's preinstall hook runs node setup.mjs, an obfuscated loader (obfuscator.io-style _0xNNNN identifiers with string-lookup indirection) that platform-detects, downloads the Bun runtime zip from https://github.com/oven-sh/bun/releases/download/bun-v<version>/<platform>.zip, extracts the bun binary to a temp directory, marks it executable, and invokes it against a sibling file math_init.js. math_init.js is a 727 KB heavily obfuscated JavaScript blob (// @bun @bun-cjs header, rotated string array n7gIxM, rotating decoder WV8StW) whose contents cannot be read statically. Neither setup.mjs nor math_init.js is listed in the manifest's files whitelist (["dist", "readme.md"]) — they ship as undeclared root-level tarball blobs and execute on npm install with the developer's privileges. The package presents itself as @servicetitan/design-system, a React UI component library whose declared homepage is https://v1.anvil.servicetitan.com; a UI component library has no need to fetch an alternate JavaScript runtime and execute a 700+ KB opaque payload under it. The combination — obfuscated loader, alt-runtime fetch used to evade Node-based scanners, obfuscated payload smuggled outside the declared file list, and name impersonation of a legitimate scoped ServiceTitan package — is characteristic of a malicious republish that runs attacker-controlled code on the installer's host at install time.

Source: ghsa-malware (e74ee06b998ea34ae2e79c8bcc54fc05c2cf0405d431fae63d7536725d1e22ee)

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.038108935Z",
            "sha256": "e74ee06b998ea34ae2e79c8bcc54fc05c2cf0405d431fae63d7536725d1e22ee",
            "modified_time": "2026-08-04T16:20:42Z",
            "id": "GHSA-cjgc-69g5-x5qv",
            "versions": [
                "14.5.9",
                "14.5.8",
                "14.5.7",
                "14.5.6",
                "14.5.5",
                "14.5.4",
                "14.5.10"
            ],
            "source": "ghsa-malware"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T00:11:41Z",
            "sha256": "65b9973b1f7ebcfdf05932780b0a74ab2e0c5a7d5518335e8b9fa23eb3a023ac",
            "id": "IN-MAL-2026-011410",
            "versions": [
                "14.5.9"
            ],
            "import_time": "2026-08-05T00:44:44.794729531Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:55:50Z",
            "sha256": "379e609dcf970aac092c37cb1a26d23edcdfae935fb9500e91d97384d4c0cd0d",
            "id": "IN-MAL-2026-011989",
            "versions": [
                "14.5.8"
            ],
            "import_time": "2026-08-05T03:12:07.144965727Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T01:44:53Z",
            "sha256": "80c2193bdab5d1574395ab3691fb97c482c0b59e2767dad1b603a40af6774ebe",
            "id": "IN-MAL-2026-011521",
            "versions": [
                "14.5.4"
            ],
            "import_time": "2026-08-05T03:11:17.080165496Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:56:12Z",
            "sha256": "969bf19d5c05db8120e572b9769072adb0d00b11ae4027d4742dca178fb5910f",
            "id": "IN-MAL-2026-011992",
            "versions": [
                "14.5.10"
            ],
            "import_time": "2026-08-05T03:12:07.522190194Z"
        },
        {
            "import_time": "2026-08-05T04:37:40.162675443Z",
            "modified_time": "2026-08-05T03:23:23Z",
            "sha256": "68277f28d8640ac4f0c4fb1210f1e6492664a4e40e2557f1fe3da0d1c58490c2",
            "id": "IN-MAL-2026-012183",
            "versions": [
                "14.5.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T04:37:41.72303709Z",
            "sha256": "aeae7aa331c67020a6fe9f8cddb9b8aefbd976ec0fe0db3b8a26e219dc394fba",
            "modified_time": "2026-08-05T03:25:16Z",
            "id": "IN-MAL-2026-012196",
            "versions": [
                "14.5.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T04:37:59.729896054Z",
            "sha256": "b6c1f6fefa121b4735ac98f1394efbfdd8bf9c05d27b4aa27ce18c8532fa5a1c",
            "modified_time": "2026-08-05T03:46:17Z",
            "id": "IN-MAL-2026-012344",
            "versions": [
                "14.5.6"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/design-system

Package

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

Affected ranges

Affected versions

14.*
14.5.4
14.5.5
14.5.6
14.5.7
14.5.8
14.5.9
14.5.10

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",
        "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",
        "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."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-W1Xeylo4kW8zF8K0kYcJkv4hr6KeGcYlA/BA9E9ZMhUDbSfUXq/+ijtJe9vavZsc0hKG6yq0gHK00st8ObF/7Q==",
                "sha1": "da1709d0e3760da369e8352a8ea8854d3b8dda8d"
            },
            "filename": "design-system-14.5.9.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        },
        {
            "path": "package.json",
            "sha256": "8ba1d229f268cc5c8d3bd5aaff38bd9f79f7d9dca87f3c61f61e6c8e9fa0fb85",
            "tlsh": "a6513769c8894de31acb14b828360142512da52f5e78749c37f1b15dcf2c3ef7176aae"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/design-system/MAL-2026-11852.json"