MAL-2026-11925

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/startup-mfe-compat/MAL-2026-11925.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11925
Aliases
  • GHSA-9xw4-632p-2r25
Published
2026-08-04T15:42:22Z
Modified
2026-08-05T06:35:38.858460939Z
Summary
Malicious code in @servicetitan/startup-mfe-compat (npm)
Details

npm/@servicetitan/startup-mfe-compat 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 (73e1030d5996ba19e714b9ceed02a15cae1b9e5ccc297a4eb40b529c51479f2f)

Package @servicetitan/startup-mfe-compat@0.5.2 declares a preinstall script node setup.mjs that fires automatically on npm install. setup.mjs downloads the Bun runtime from the Bun GitHub releases, extracts it to a temp directory, chmods it executable, and invokes it against the sibling file mathinit.js via execFileSync(bunPath, [math_init.js], {stdio:'inherit'}). mathinit.js is a ~730KB single-line Bun-cjs bundle whose body is driven by a character-code array and a string-array decoder (identifiers hc1jfK9, WV8StW, _0x...), with no relation to the package's advertised MFE-compat purpose (dist/index.js is a thin re-export of utilities). setup.mjs itself uses obfuscator.io-style name mangling and dictionary-property indirection. The package publishes under the @servicetitan scope with homepage docs.st.dev and repo servicetitan/anvil-uikit-contrib, but the shipped preinstall dropper and opaque Bun payload are inconsistent with a first-party ServiceTitan micro-frontend helper, indicating scope impersonation. The alternate-runtime-dropper shape (fetch an alien runtime, then execute an obfuscated payload under it) is used to evade Node-based install-time scanners; the executed code is opaque to inspection without deobfuscating a 730KB bundle.

Source: ghsa-malware (b94dcab498205478369e38a8ee799239bc901c83359ce09661ee8e0098a538d4)

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": [
        {
            "import_time": "2026-08-05T00:10:18.017811377Z",
            "modified_time": "2026-08-04T16:43:50Z",
            "sha256": "b94dcab498205478369e38a8ee799239bc901c83359ce09661ee8e0098a538d4",
            "source": "ghsa-malware",
            "id": "GHSA-9xw4-632p-2r25",
            "versions": [
                "0.5.7",
                "0.5.6",
                "0.5.5",
                "0.5.4",
                "0.5.3",
                "0.5.2",
                "0.5.1"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:24.538027256Z",
            "modified_time": "2026-08-05T04:16:23Z",
            "sha256": "09153486e76584a4d9f0806080fab9f0533d17a1c8fe0e7298808166987d5eb7",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012553",
            "versions": [
                "0.5.5"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:19.609919839Z",
            "modified_time": "2026-08-05T04:10:57Z",
            "sha256": "84f8df2a86f0a3213da4093ffbd7f85cbef93823d535934a9c6a5aafebc04afe",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012515",
            "versions": [
                "0.5.6"
            ]
        },
        {
            "modified_time": "2026-08-05T03:58:05Z",
            "source": "amazon-inspector",
            "sha256": "88d243df99088c155021355093adb327669255c7c8939c96be7ab7bd20f8cea5",
            "import_time": "2026-08-05T04:38:09.227329693Z",
            "id": "IN-MAL-2026-012427",
            "versions": [
                "0.5.7"
            ]
        },
        {
            "modified_time": "2026-08-05T03:15:19Z",
            "source": "amazon-inspector",
            "sha256": "a990da55989112ca7c07ed86336a1a22e0697e29ba32f601e8f754143109e93f",
            "import_time": "2026-08-05T04:37:33.425560991Z",
            "id": "IN-MAL-2026-012126",
            "versions": [
                "0.5.3"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:30.465326136Z",
            "modified_time": "2026-08-05T04:23:10Z",
            "sha256": "b51649e1b7a571c7770b8bbaf6d16f59044a32ec8c45420db4e44fac19c86266",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012601",
            "versions": [
                "0.5.4"
            ]
        },
        {
            "import_time": "2026-08-05T06:00:07.696301892Z",
            "modified_time": "2026-08-05T04:53:14Z",
            "sha256": "21bd4787695905eb325b3a9b63e8db926c76d4875e1227f94fa7ba5d77191ba5",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012815",
            "versions": [
                "0.5.1"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T06:00:02.674336508Z",
            "sha256": "73e1030d5996ba19e714b9ceed02a15cae1b9e5ccc297a4eb40b529c51479f2f",
            "modified_time": "2026-08-05T04:47:11Z",
            "id": "IN-MAL-2026-012774",
            "versions": [
                "0.5.2"
            ]
        }
    ],
    "iocs": {
        "files": [
            {
                "source": "PACKAGE_ARCHIVE",
                "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."
            },
            {
                "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-mfe-compat

Package

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

Affected ranges

Affected versions

0.*
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.5.6
0.5.7

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/startup-mfe-compat/MAL-2026-11925.json"
indicators
{
    "package_integrity": [
        {
            "filename": "startup-mfe-compat-0.5.5.tgz",
            "hashes": {
                "sha512_sri": "sha512-rGuS1oP3RbH3dvf2DZImMzvFS98xufEqLxX6g1mKBXGh5gXfRBs3ZyWbP17ovbiCJMf3NHLVJbA1+LMr8sqs7w==",
                "sha1": "9ab2a4abe62175cb6e0737c1a2937e40da5000b5"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "math_init.js"
        }
    ]
}
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."
    }
]