MAL-2026-11832

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/carto-charts-core/MAL-2026-11832.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11832
Aliases
  • GHSA-x592-gpm8-xqcp
Published
2026-08-04T15:29:30Z
Modified
2026-08-05T06:35:00.671663449Z
Summary
Malicious code in @servicetitan/carto-charts-core (npm)
Details

npm/@servicetitan/carto-charts-core 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 (ef33c47c55595ce3053aa96126249397e42f3c39df5ddc3f51666ed195f1eaca)

The package advertises itself as an ECharts theme layer under the @servicetitan scope, but its package.json declares scripts.preinstall = "node setup.mjs". setup.mjs is itself obfuscator.io-style code (0xNNNNNN identifiers, per-function string/method dictionaries) that, when bun is not present on PATH, downloads the Bun runtime archive from https://github.com/oven-sh/bun/releases/download/bun-v<version>/..., extracts it to a temp directory, chmods it executable, and invokes it via execFileSync to run a sibling file mathinit.js. mathinit.js is a 727 KB single-line obfuscated bundle with a string-array rotator (obfuscator.io / jsjiami shape). Neither setup.mjs nor mathinit.js is listed in package.json files (declared as ["dist","README.md"]), so the payload ships outside the declared file surface. The delivered code is executed under a freshly downloaded alternate JavaScript runtime rather than Node, which evades scanners that only inspect Node-resolved code, and the executed content is opaque due to obfuscation. This is the alternate-runtime dropper pattern: on npm install, an obfuscated payload of unknown behavior runs on the installer's machine, and the advertised chart-theme purpose does not require Bun or any preinstall-time execution. The @servicetitan scope and internal-looking README links (servicetitan.atlassian.net) give the package a first-party appearance.

Source: ghsa-malware (df2abb924a88a8033ff074ed27800c8b68039f17497b4670f06853fa5193562d)

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": [
        {
            "source": "ghsa-malware",
            "versions": [
                "0.0.8",
                "0.0.7",
                "0.0.6",
                "0.0.5",
                "0.0.4",
                "0.0.3",
                "0.0.2"
            ],
            "modified_time": "2026-08-04T16:40:24Z",
            "id": "GHSA-x592-gpm8-xqcp",
            "sha256": "df2abb924a88a8033ff074ed27800c8b68039f17497b4670f06853fa5193562d",
            "import_time": "2026-08-05T00:10:18.283868353Z"
        },
        {
            "source": "amazon-inspector",
            "versions": [
                "0.0.3"
            ],
            "modified_time": "2026-08-05T02:52:37Z",
            "id": "IN-MAL-2026-011967",
            "sha256": "a63dab1f18430b6077403ac5c8d0870c61b77b581fb41cc09c5baa1d9c59fe2b",
            "import_time": "2026-08-05T03:12:04.897291753Z"
        },
        {
            "source": "amazon-inspector",
            "versions": [
                "0.0.7"
            ],
            "import_time": "2026-08-05T04:37:32.34870627Z",
            "id": "IN-MAL-2026-012117",
            "sha256": "0cc5387fdf03f36bad604c6924d227b033e94103ba13ad47af4cdd6c0b3d5735",
            "modified_time": "2026-08-05T03:14:03Z"
        },
        {
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012581",
            "import_time": "2026-08-05T04:38:27.977349537Z",
            "modified_time": "2026-08-05T04:20:24Z",
            "sha256": "ad3b415589828d16fc6068ac8e33d0e7613669e90f323634b6edb5fda83572ed",
            "versions": [
                "0.0.6"
            ]
        },
        {
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012290",
            "import_time": "2026-08-05T04:37:53.615091589Z",
            "modified_time": "2026-08-05T03:38:19Z",
            "sha256": "e2784d7644c12d7793cfe6f6b5e0a2cfdf670ae8dde2347eeebe0ad26952443f",
            "versions": [
                "0.0.5"
            ]
        },
        {
            "source": "amazon-inspector",
            "versions": [
                "0.0.8"
            ],
            "modified_time": "2026-08-05T03:26:36Z",
            "id": "IN-MAL-2026-012206",
            "sha256": "ef33c47c55595ce3053aa96126249397e42f3c39df5ddc3f51666ed195f1eaca",
            "import_time": "2026-08-05T04:37:42.989423835Z"
        },
        {
            "source": "amazon-inspector",
            "versions": [
                "0.0.4"
            ],
            "import_time": "2026-08-05T05:59:55.455617406Z",
            "modified_time": "2026-08-05T04:38:28Z",
            "sha256": "aab29239ce8c070f054da7fffd20d40eb68ae25fce31dcb620cbf7c87ab4f756",
            "id": "IN-MAL-2026-012712"
        },
        {
            "source": "amazon-inspector",
            "versions": [
                "0.0.2"
            ],
            "import_time": "2026-08-05T06:00:13.680040351Z",
            "modified_time": "2026-08-05T05:00:39Z",
            "sha256": "e1c1191cb6684c404bcd567b6db7a899a12ffc8ef227086f2cb90e8ae5e07c67",
            "id": "IN-MAL-2026-012866"
        }
    ],
    "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."
            },
            {
                "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/carto-charts-core

Package

Name
@servicetitan/carto-charts-core
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/carto-charts-core

Affected ranges

Affected versions

0.*
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.8

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/carto-charts-core/MAL-2026-11832.json"
indicators
{
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "math_init.js"
        },
        {
            "tlsh": "1d113815c4a59ea321c826e1a86b0996567248470d447e0c33ca622c4f8d3db96ffadf",
            "path": "package.json",
            "sha256": "7e968b5bef23068304e0537076e5ae0ee883ada1d4c3609960fc28fdf92f6c5d"
        }
    ],
    "package_integrity": [
        {
            "filename": "carto-charts-core-0.0.3.tgz",
            "hashes": {
                "sha1": "5208ffbd4d4a2367a62d03b0ea68b11418d49e35",
                "sha512_sri": "sha512-vNK+7ju4ip4IQRBhP1dQeeBmKIkF4mHMPWJwvxcbZjRRSS9+IJI/WonRZOFy0YxeD7bfdbpA0yfPY/Ppzm3o4Q=="
            }
        }
    ]
}
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"
    }
]