MAL-2026-11937

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/titan-chat-ui-common/MAL-2026-11937.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11937
Aliases
  • GHSA-j5gf-8wxx-crfv
Published
2026-08-04T13:17:46Z
Modified
2026-08-05T06:35:42Z
Summary
Malicious code in @servicetitan/titan-chat-ui-common (npm)
Details

npm/@servicetitan/titan-chat-ui-common 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 Math_Symbol.js / math_init.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 (ad74029cad7641d09eeeb6e2c4f9a66945b1ba4dc19c3a56cc695d22e704fe02)

The package declares a preinstall hook (node setup.mjs) that downloads the Bun runtime from github.com/oven-sh/bun releases (v1.3.13), extracts it to a temporary directory, marks it executable, and then invokes it against a bundled sibling file math_init.js. math_init.js is a ~727KB file with obfuscator.io fingerprints — string-array rotation (a helper performing .push(.shift()) on a mixed-type constant table) and a per-string decoder built from a shuffled alphabet — with no plausible relation to the package's advertised chat-UI purpose. The setup script itself uses obfuscated identifiers (_0x488df8, etc.) to hide the dropper flow. Running the payload under Bun rather than Node bypasses Node-based supply-chain scanners, and the entire chain fires automatically on npm install before consumers can inspect the code. The package is published under the @servicetitan scope and its dist/ tree references servicetitan/titan-chatbot-client PRs, while the preinstall dropper and math_init.js appear grafted onto that otherwise-legitimate UI code — consistent with a scope-hijack or dependency-confusion upload rather than a first-party release.

Source: ghsa-malware (c9d8397be66009b373d58a4adacfd8e906ae0451652c5582effea4738d0c1d69)

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": [
            {
                "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": [
                    "setup.mjs"
                ],
                "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.",
                "paths": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "source": "PACKAGE_ARCHIVE"
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "id": "GHSA-j5gf-8wxx-crfv",
            "import_time": "2026-08-05T00:10:18.121257026Z",
            "modified_time": "2026-08-04T16:21:38Z",
            "sha256": "c9d8397be66009b373d58a4adacfd8e906ae0451652c5582effea4738d0c1d69",
            "source": "ghsa-malware",
            "versions": [
                "9.0.6",
                "9.0.5",
                "9.0.4",
                "9.0.3",
                "9.0.2",
                "9.0.1",
                "9.0.7"
            ]
        },
        {
            "id": "IN-MAL-2026-011447",
            "import_time": "2026-08-05T00:44:50.505123453Z",
            "modified_time": "2026-08-05T00:17:06Z",
            "sha256": "a0232e887c8649545cddbdee1473fe3b2a537040dbaf8e958fb05ba764ce3f04",
            "source": "amazon-inspector",
            "versions": [
                "9.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-011461",
            "import_time": "2026-08-05T00:44:52.404378421Z",
            "modified_time": "2026-08-05T00:19:05Z",
            "sha256": "bf1085385ad7a39fe8e839598406d7d64c0a90b3dd273852e091a3176688d00e",
            "source": "amazon-inspector",
            "versions": [
                "9.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-012085",
            "import_time": "2026-08-05T03:12:16.759198184Z",
            "modified_time": "2026-08-05T03:09:20Z",
            "sha256": "f0ddff96b0113e79107fb35980ad3f6f14ae8fdbb4608ee4d83e7a70fe2b7d29",
            "source": "amazon-inspector",
            "versions": [
                "9.0.7"
            ]
        },
        {
            "id": "IN-MAL-2026-012632",
            "import_time": "2026-08-05T04:38:33.860904386Z",
            "modified_time": "2026-08-05T04:27:22Z",
            "sha256": "ad74029cad7641d09eeeb6e2c4f9a66945b1ba4dc19c3a56cc695d22e704fe02",
            "source": "amazon-inspector",
            "versions": [
                "9.0.4"
            ]
        },
        {
            "id": "IN-MAL-2026-012486",
            "import_time": "2026-08-05T04:38:15.885866756Z",
            "modified_time": "2026-08-05T04:06:28Z",
            "sha256": "e7fd1192635d254b2d15d7555e49317f4216a6f55e36aa03f0c7a2140eaae035",
            "source": "amazon-inspector",
            "versions": [
                "9.0.6"
            ]
        },
        {
            "id": "IN-MAL-2026-012842",
            "import_time": "2026-08-05T06:00:10.911702445Z",
            "modified_time": "2026-08-05T04:57:09Z",
            "sha256": "26b5af54d62f38c76f2aa354f39d8107c81ecddc2a7f6742e3ecdecd0b23bfa4",
            "source": "amazon-inspector",
            "versions": [
                "9.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-012793",
            "import_time": "2026-08-05T06:00:04.861487877Z",
            "modified_time": "2026-08-05T04:49:52Z",
            "sha256": "63b353bae2efbdda020c8ae919aecbb260c2bec8f13229299a02e0bd8129565f",
            "source": "amazon-inspector",
            "versions": [
                "9.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/titan-chat-ui-common

Package

Name
@servicetitan/titan-chat-ui-common
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/titan-chat-ui-common

Affected ranges

Affected versions

9.*
9.0.1
9.0.2
9.0.3
9.0.4
9.0.5
9.0.6
9.0.7

Database specific

cwes
[
    {
        "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"
    },
    {
        "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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        }
    ],
    "package_integrity": [
        {
            "filename": "titan-chat-ui-common-9.0.5.tgz",
            "hashes": {
                "sha1": "4de44f4ae0834839cef126202577e7073ed79158",
                "sha512_sri": "sha512-wEByRXqknO9MLGDaj8wDNbIzpzfnLBXUEXSJIfIxUZJb0dmxpUisxlrLlN68Dvj8V19Wz07eL8d2eDpnCBGPuA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/titan-chat-ui-common/MAL-2026-11937.json"