MAL-2026-11936

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/titan-chat-ui-anvil2/MAL-2026-11936.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11936
Aliases
  • GHSA-4vgm-vjfw-7x8q
Published
2026-08-04T15:31:13Z
Modified
2026-08-05T06:35:42.011931063Z
Summary
Malicious code in @servicetitan/titan-chat-ui-anvil2 (npm)
Details

npm/@servicetitan/titan-chat-ui-anvil2 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 (66ea960cf1d5ebebb5bcb649893af7e4c0ef81d74f4d5715b1f0263272862110)

Version 9.0.3 of this React chat-UI library adds an install-time dropper absent from prior releases. package.json declares preinstall: node setup.mjs. setup.mjs downloads the Bun runtime (bun v1.3.13) from GitHub releases into a temp directory, extracts and chmod +x's it, then execFileSyncs the Bun binary with a sibling math_init.js (~727KB) as its argument. mathinit.js is a single-line, heavily obfuscated blob using a rotating string-array (WV8StW), a mixed hex/string lookup table (n7gIxM), and a custom-alphabet base decoder (hc1jfK9) — a loader shape, not the readable React component code the package advertises. A chat-UI library has no legitimate need to fetch a second JavaScript runtime at install and execute an opaque payload under it; running the payload under Bun bypasses Node-based static analysis. CHANGELOG.md documents versions only up to v8.0.0 and describes the package as a pure React UI library with no native/runtime dependencies — the preinstall hook, setup.mjs, and mathinit.js are undocumented additions in 9.0.3, consistent with a hijacked publish rather than a maintainer-authored release.

Source: ghsa-malware (dd6eb7428e3dccea78904b88ddc669e836c4af7e3351aba836d34754e5cf4cc8)

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:17.893371183Z",
            "sha256": "dd6eb7428e3dccea78904b88ddc669e836c4af7e3351aba836d34754e5cf4cc8",
            "modified_time": "2026-08-04T16:42:18Z",
            "id": "GHSA-4vgm-vjfw-7x8q",
            "versions": [
                "9.0.7",
                "9.0.6",
                "9.0.5",
                "9.0.4",
                "9.0.3",
                "9.0.2",
                "9.0.1"
            ],
            "source": "ghsa-malware"
        },
        {
            "import_time": "2026-08-05T00:44:47.508277654Z",
            "modified_time": "2026-08-05T00:15:06Z",
            "sha256": "11129599ae35194f495d770012b0650bad9e599bacad7d486bc5b3c3c593d2d3",
            "id": "IN-MAL-2026-011433",
            "versions": [
                "9.0.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T03:12:10.703547853Z",
            "sha256": "ebb92f1b53b80a7664aa1ebeedef5422d2ef70822fa6e87fbf15a282ea59e539",
            "modified_time": "2026-08-05T03:00:16Z",
            "id": "IN-MAL-2026-012021",
            "versions": [
                "9.0.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T04:37:58.646804494Z",
            "sha256": "66ea960cf1d5ebebb5bcb649893af7e4c0ef81d74f4d5715b1f0263272862110",
            "modified_time": "2026-08-05T03:44:50Z",
            "id": "IN-MAL-2026-012334",
            "versions": [
                "9.0.3"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T04:24:14Z",
            "sha256": "a6ac291ebd671459023ab98ec57e67a545ed9ec6b0a5e76afae43ba9d4b5ebb4",
            "id": "IN-MAL-2026-012609",
            "versions": [
                "9.0.4"
            ],
            "import_time": "2026-08-05T04:38:31.389310079Z"
        },
        {
            "import_time": "2026-08-05T04:37:48.526052121Z",
            "modified_time": "2026-08-05T03:32:55Z",
            "sha256": "d2f70c3284869991d937f9364d10e08048bccbb89e59708cbfc371e3912fc7e9",
            "id": "IN-MAL-2026-012251",
            "versions": [
                "9.0.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T06:00:12.658769127Z",
            "modified_time": "2026-08-05T04:59:17Z",
            "sha256": "2d02e377f3aa2c75b99f5a724a817e310168e9c8ec03319963322fb61f9ed02d",
            "id": "IN-MAL-2026-012857",
            "versions": [
                "9.0.1"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T06:00:05.494541409Z",
            "modified_time": "2026-08-05T04:50:25Z",
            "sha256": "4baadd662b4a64ebb24d3aa5c85bf07867fee965bfc42d70ecf8f52f00def548",
            "id": "IN-MAL-2026-012797",
            "versions": [
                "9.0.2"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

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

Package

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

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