MAL-2026-11817

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/anvil-icon/MAL-2026-11817.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11817
Aliases
  • GHSA-3q3h-xxpq-cprg
Published
2026-08-04T15:31:16Z
Modified
2026-08-05T06:34:53.827879641Z
Summary
Malicious code in @servicetitan/anvil-icon (npm)
Details

npm/@servicetitan/anvil-icon 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 (8dc1692b094a11a8579fab84d7377fe65631b140909ec27559c13ac8675aa9c8)

The package declares itself as a Material Design icon SVG library but ships a preinstall script (setup.mjs, invoked via package.json scripts.preinstall) that downloads the Bun runtime binary from a GitHub release into a temporary directory, chmods it executable, and then uses it to run a sibling file mathinit.js against the installer's host. mathinit.js is a 727 KB blob whose header is // @bun @bun-cjs, obfuscated with a shuffled string-array plus alphabet-decoder pattern so its behavior cannot be resolved statically. setup.mjs itself is obfuscated with hex-style identifiers (_0x488df8, _0x19328d.YCZJE(...) wrappers around calls such as execFileSync('ldd',...)), matching the obfuscator.io style. Fetching a second language runtime and using it to execute an opaque bundled script at npm install time has no relationship to distributing icon SVGs; the alternate runtime bypasses Node-based inspection and the obfuscation of both the driver and the payload is consistent with deliberate evasion. Installing this package results in execution of attacker-staged, unreadable code on the installer's machine before any consumer code runs.

Source: ghsa-malware (a8cc79f4cc10fbf1480118b148c8a0afd7a6e644fa6b888e09c96c233f36d182)

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",
            "import_time": "2026-08-05T00:10:17.862552106Z",
            "sha256": "a8cc79f4cc10fbf1480118b148c8a0afd7a6e644fa6b888e09c96c233f36d182",
            "modified_time": "2026-08-04T16:41:42Z",
            "id": "GHSA-3q3h-xxpq-cprg",
            "versions": [
                "0.5.7",
                "0.5.6",
                "0.5.5",
                "0.5.4",
                "0.5.3",
                "0.5.2",
                "0.5.1"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:37:50.497964996Z",
            "sha256": "1259127409f68eceac2608de88b6d69e369d8a0d27205b6df0c7b97d81ac7706",
            "modified_time": "2026-08-05T03:35:02Z",
            "id": "IN-MAL-2026-012266",
            "versions": [
                "0.5.5"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:10.754046757Z",
            "modified_time": "2026-08-05T04:00:01Z",
            "sha256": "6f53e6258e90fd3bc5a893fe2c5a89677ade610739c27752f81d2d615516e998",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012440",
            "versions": [
                "0.5.7"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:37:36.667003339Z",
            "sha256": "8c0d2fcb0bd8a2ad974484a9c0ba473bca073f38c064325d2fd4424b84925bd0",
            "modified_time": "2026-08-05T03:19:00Z",
            "id": "IN-MAL-2026-012153",
            "versions": [
                "0.5.1"
            ]
        },
        {
            "import_time": "2026-08-05T04:37:54.049460604Z",
            "modified_time": "2026-08-05T03:38:51Z",
            "sha256": "8dc1692b094a11a8579fab84d7377fe65631b140909ec27559c13ac8675aa9c8",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012294",
            "versions": [
                "0.5.4"
            ]
        },
        {
            "import_time": "2026-08-05T04:38:18.700123514Z",
            "modified_time": "2026-08-05T04:09:55Z",
            "sha256": "9389cb11b90a604d7133a25b6313f8374b309e6c8372a14730b27a977198a9d5",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-012509",
            "versions": [
                "0.5.6"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:38:38.385199825Z",
            "sha256": "ca88baefc8f9fe1e4ee292e09d73561288e098a3478826bf191ca7d305f663ba",
            "modified_time": "2026-08-05T04:33:15Z",
            "id": "IN-MAL-2026-012675",
            "versions": [
                "0.5.3"
            ]
        },
        {
            "modified_time": "2026-08-05T04:42:47Z",
            "source": "amazon-inspector",
            "sha256": "aa56f95c672ac6c29192b216b250f63548069d6728a4cd38d92827c234b6026a",
            "import_time": "2026-08-05T05:59:59.047679279Z",
            "id": "IN-MAL-2026-012743",
            "versions": [
                "0.5.2"
            ]
        }
    ],
    "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."
            },
            {
                "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/anvil-icon

Package

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

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/anvil-icon/MAL-2026-11817.json"
indicators
{
    "package_integrity": [
        {
            "filename": "anvil-icon-0.5.5.tgz",
            "hashes": {
                "sha512_sri": "sha512-0qiN4d/lFPuk4sLIY7Xa5KL7TlKb2r/5za0PCG8uLh7d/tKH2mkQqOMQtlmyFE+OAe2foR1E+Qdzd+AQQHl2bQ==",
                "sha1": "6c148be58d8647b1d54fa2316af84a0cea74e709"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "math_init.js"
        },
        {
            "tlsh": "86e0c050cc99086327dc15f2042e445259656d07c478fc1833c7122c875c24b103f57a",
            "sha256": "e0a361021cb43a7dbf2055fbf8ba72e720f46712049f35df3b525a2d3dee25b7",
            "path": "package.json"
        }
    ]
}
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."
    }
]