MAL-2026-11814

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/ajax-handlers/MAL-2026-11814.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11814
Aliases
  • GHSA-m4gc-3wwq-vh6c
Published
2026-08-04T15:29:36Z
Modified
2026-08-05T06:34:52.324474628Z
Summary
Malicious code in @servicetitan/ajax-handlers (npm)
Details

npm/@servicetitan/ajax-handlers 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 (ebb118bea5bb178b0c51fb3f8b2fc8b09a57e379cfaeabfc705cfa7cb0ebd47f)

package.json declares "preinstall": "node setup.mjs". setup.mjs downloads the Bun runtime v1.3.13 from github.com/oven-sh/bun releases into a temp directory, unzips it, marks it executable, and invokes it via execFileSync(bunPath, [join(D, 'math_init.js')], { stdio: 'inherit', cwd: D }). The invoked sibling math_init.js is a ~727 KB Bun-CJS bundle (header // @bun @bun-cjs) with a shuffled string-array plus rotator (function WV8StW(...){...MmgoCP.push(MmgoCP.shift())...}) and single-letter mangled identifiers — the standard string-array obfuscator shape. The payload has no correspondence to an AJAX-handlers library and is not referenced from the declared main (dist/index.js); it exists solely to be executed by the freshly downloaded alternate runtime, evading Node-focused inspection of install-time behavior. Additionally, package.json declares "files": ["dist", "src"], but the published tarball also ships setup.mjs and math_init.js at the package root — the dropper artifacts sit outside the declared publish surface, consistent with content injected outside the maintainers' normal publish flow.

Source: ghsa-malware (f43fe3d11f9fddd74f7bf795ee1769d68a9b8b6b10e53398d9b21e84f2c827b4)

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.136157993Z",
            "modified_time": "2026-08-04T16:47:18Z",
            "sha256": "f43fe3d11f9fddd74f7bf795ee1769d68a9b8b6b10e53398d9b21e84f2c827b4",
            "source": "ghsa-malware",
            "id": "GHSA-m4gc-3wwq-vh6c",
            "versions": [
                "38.1.7",
                "38.1.6",
                "38.1.5",
                "38.1.4",
                "38.1.3",
                "38.1.2",
                "38.1.1"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T03:12:17.001976677Z",
            "sha256": "97de5dbd6ad866fcf6e9c4eb04fc5846c5e9404d6964ee22f08a4c6965d7817e",
            "modified_time": "2026-08-05T03:09:45Z",
            "id": "IN-MAL-2026-012088",
            "versions": [
                "38.1.2"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:24.787931833Z",
            "modified_time": "2026-08-05T04:16:38Z",
            "sha256": "846992d193def0e0913cf3e3ef53787555abaa5872dcad49ccedad7869961dfc",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012555",
            "versions": [
                "38.1.5"
            ]
        },
        {
            "import_time": "2026-08-05T04:37:49.568119845Z",
            "modified_time": "2026-08-05T03:34:05Z",
            "sha256": "8e6079cd098e06274aba181de098a7f6e76c2a4f8a2128fcaf26576feb79c559",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012259",
            "versions": [
                "38.1.6"
            ]
        },
        {
            "modified_time": "2026-08-05T03:28:00Z",
            "source": "amazon-inspector",
            "sha256": "acc3e46fe48f1f26c612c3dda6e99c2c3b1a9bdf88f427d0c1d3e73182c2e80b",
            "import_time": "2026-08-05T04:37:44.092295158Z",
            "id": "IN-MAL-2026-012215",
            "versions": [
                "38.1.7"
            ]
        },
        {
            "import_time": "2026-08-05T04:37:56.133697343Z",
            "modified_time": "2026-08-05T03:41:26Z",
            "sha256": "b77d9fdb9c38b238623dfd5cce969c2bcf0815802bcddc951859cd14c47c35b6",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012312",
            "versions": [
                "38.1.4"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T05:59:57.416969194Z",
            "sha256": "8683f7181e6c19f57c959b394b57b923fdbde0be6259fe613f9afc1e3883ed13",
            "modified_time": "2026-08-05T04:40:47Z",
            "id": "IN-MAL-2026-012729",
            "versions": [
                "38.1.3"
            ]
        },
        {
            "import_time": "2026-08-05T06:00:09.119066206Z",
            "modified_time": "2026-08-05T04:55:00Z",
            "sha256": "ebb118bea5bb178b0c51fb3f8b2fc8b09a57e379cfaeabfc705cfa7cb0ebd47f",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012827",
            "versions": [
                "38.1.1"
            ]
        }
    ],
    "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."
            },
            {
                "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."
            }
        ]
    }
}
References
Credits

Affected packages

npm / @servicetitan/ajax-handlers

Package

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

Affected ranges

Affected versions

38.*
38.1.1
38.1.2
38.1.3
38.1.4
38.1.5
38.1.6
38.1.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": "ajax-handlers-38.1.2.tgz",
            "hashes": {
                "sha512_sri": "sha512-WhvMa17UO1DHBK3rngSusEHp5Dk7wB7xOp8AOLr0m9q8+CZHBDdUOLNu3Odl3jWu/s35osAoFIEXzHN7hUOfOQ==",
                "sha1": "b671db51d8ba5f405c2929179298a87794d83141"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "math_init.js"
        },
        {
            "tlsh": "f3318d1cc1f98cb323d821f4583b054a9629880b4d18be1c33d6612d4f8d6af51ff6ae",
            "sha256": "e2d0eec6da1bb47c749fa9e6ef3f59e063036701c347bb852fc12385293f6f11",
            "path": "package.json"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/ajax-handlers/MAL-2026-11814.json"