MAL-2026-11919

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/standalone-feature-flags/MAL-2026-11919.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11919
Aliases
  • GHSA-jxmw-q7p2-32f8
Published
2026-08-04T15:42:00Z
Modified
2026-08-05T06:35:36.499887536Z
Summary
Malicious code in @servicetitan/standalone-feature-flags (npm)
Details

npm/@servicetitan/standalone-feature-flags 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 (a458514ee0a4d3a8c664e2fc75cf20c12c30658fa16651f82ee1a8e2c27c2b8c)

Version 2.3.3 of this feature-flag SDK adds a preinstall hook (node setup.mjs) that downloads a Bun runtime binary from the Bun GitHub releases URL, marks it executable, and uses it via execFileSync to run a sibling file math_init.js shipped in the tarball. math_init.js is a ~728KB single-line file with a // @bun @bun-cjs header, a shuffled string/opcode array (WV8StW rotator) and hex-named identifiers (_0xNNNN, MmgoCP, etc.), with no plaintext URLs and no reference from dist/index.js or any exported entry point. The file's name and content have no relation to the package's advertised feature-flag purpose, and neither setup.mjs, math_init.js, nor the preinstall hook appear in CHANGELOG.md, whose latest documented release is v2.3.1 covering only feature-flag additions. The dist/ library code itself remains a thin OpenFeature/LaunchDarkly wrapper consistent with prior releases. Routing execution through a freshly-downloaded alternate runtime against an opaque, undocumented obfuscated payload on npm install is the alternate-runtime-dropper pattern and is consistent with a hijacked-maintainer republish injecting a dropper into an otherwise legitimate package.

Source: ghsa-malware (fe6cbddfd586b7367822ac55663b70d19e7a737145dba93e691795a85c2146f0)

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": [
        {
            "sha256": "fe6cbddfd586b7367822ac55663b70d19e7a737145dba93e691795a85c2146f0",
            "id": "GHSA-jxmw-q7p2-32f8",
            "import_time": "2026-08-05T00:10:18.132483419Z",
            "modified_time": "2026-08-04T16:41:50Z",
            "versions": [
                "2.3.8",
                "2.3.7",
                "2.3.6",
                "2.3.4",
                "2.3.3",
                "2.3.2"
            ],
            "source": "ghsa-malware"
        },
        {
            "sha256": "4c89f54a1fec6bcd71b0028c04310c3d5e9561806a803b59b02861682a82400d",
            "id": "IN-MAL-2026-012491",
            "import_time": "2026-08-05T04:38:16.561023434Z",
            "modified_time": "2026-08-05T04:07:09Z",
            "source": "amazon-inspector",
            "versions": [
                "2.3.7"
            ]
        },
        {
            "sha256": "84b3a5f1f276b6fed6043e3501ddef1990c46f0c4410cb829c86646cc384955d",
            "id": "IN-MAL-2026-012111",
            "import_time": "2026-08-05T04:37:31.689131684Z",
            "modified_time": "2026-08-05T03:13:10Z",
            "source": "amazon-inspector",
            "versions": [
                "2.3.6"
            ]
        },
        {
            "sha256": "d243b9e5e0ed87763d0cb84a6b5dff62983f5ea511ca60c20ff8e4e0c658f73f",
            "id": "IN-MAL-2026-012127",
            "import_time": "2026-08-05T04:37:33.541428898Z",
            "modified_time": "2026-08-05T03:15:26Z",
            "source": "amazon-inspector",
            "versions": [
                "2.3.2"
            ]
        },
        {
            "sha256": "da99db58ee3fb4d2bca15041ad4b46170acb3e618253c8eb06789b27b34d1f87",
            "id": "IN-MAL-2026-012125",
            "import_time": "2026-08-05T04:37:33.284800722Z",
            "modified_time": "2026-08-05T03:15:09Z",
            "source": "amazon-inspector",
            "versions": [
                "2.3.4"
            ]
        },
        {
            "sha256": "04077eee889e068c3028d75352432971b91b95301729a858b76b7884b74f197b",
            "id": "IN-MAL-2026-012304",
            "modified_time": "2026-08-05T03:40:14Z",
            "import_time": "2026-08-05T04:37:55.301827681Z",
            "source": "amazon-inspector",
            "versions": [
                "2.3.5"
            ]
        },
        {
            "sha256": "1202f18bff8ccf8b4861818d07862ceb3b0081834eab526281c75f8b2270dc17",
            "id": "IN-MAL-2026-012444",
            "import_time": "2026-08-05T04:38:11.188029592Z",
            "modified_time": "2026-08-05T04:00:31Z",
            "source": "amazon-inspector",
            "versions": [
                "2.3.8"
            ]
        },
        {
            "sha256": "a458514ee0a4d3a8c664e2fc75cf20c12c30658fa16651f82ee1a8e2c27c2b8c",
            "id": "IN-MAL-2026-012764",
            "import_time": "2026-08-05T06:00:01.575721585Z",
            "modified_time": "2026-08-05T04:45:46Z",
            "versions": [
                "2.3.3"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/standalone-feature-flags

Package

Name
@servicetitan/standalone-feature-flags
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/standalone-feature-flags

Affected ranges

Affected versions

2.*
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.3.7
2.3.8

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",
        "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",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/standalone-feature-flags/MAL-2026-11919.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "path": "setup.mjs"
        },
        {
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "path": "math_init.js"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "c19c006bf62616a934024e2c34622e075eb00b01",
                "sha512_sri": "sha512-MIYTO9b8FHWxDGmXZXzKmHSo39BlM7sVe75MtMBgCsEyculR0xkW9YCItKzEzjmclnuA735/CyU3XZ7ZuqoTdw=="
            },
            "filename": "standalone-feature-flags-2.3.7.tgz"
        }
    ]
}