MAL-2026-11774

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/rollup-config/MAL-2026-11774.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11774
Aliases
  • GHSA-r3f9-rm63-mpcm
Published
2026-08-04T15:17:48Z
Modified
2026-08-05T03:19:55.513438269Z
Summary
Malicious code in @ornikar/rollup-config (npm)
Details

npm/@ornikar/rollup-config 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 (817adace607d2da2e5f1bc1e3c5b52160080cc61ffffd0d8c1c9ffd322672438)

The package declares a preinstall script node setup.mjs. setup.mjs is obfuscated (obfuscator.io-style _0xNNNN identifiers and per-function string-lookup shims such as _0x19328d.YCZJE(execFileSync,...)) despite being a small downloader. It fetches the Bun runtime from https://github.com/oven-sh/bun/releases/download/bun-v<VER>/<archive>.zip, extracts and chmods the Bun binary, then execFileSyncs it against the sibling file math_init.js — a 727 KB // @bun @bun-cjs compiled bundle carrying string-array + control-flow obfuscation (WV8StW, hc1jfK9 shuffle/decoder over a large numeric/string constant array). The package's declared main (createRollupConfig.js) is an unrelated Rollup configuration and never references math_init.js; the obfuscated Bun bundle is only reachable via the preinstall path. Both the filename (math_init.js) and the use of an alternate runtime are unrelated to the package's stated purpose of providing a Rollup configuration, and the executed payload is opaque bytes shipped in the tarball rather than the Bun installer's own code. This pattern — obfuscated install-time execution of an unrelated opaque bundle under a freshly-downloaded alternate runtime — matches the install-time RCE / dropper shape rather than a legitimate build hook.

Source: ghsa-malware (d904a808bdf4cb8bc2cf94f7caf58003df467b5e1f79d3aff3ee5472b4cbbaac)

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": [
        {
            "modified_time": "2026-08-04T16:47:39Z",
            "source": "ghsa-malware",
            "sha256": "d904a808bdf4cb8bc2cf94f7caf58003df467b5e1f79d3aff3ee5472b4cbbaac",
            "import_time": "2026-08-05T00:10:18.212259731Z",
            "id": "GHSA-r3f9-rm63-mpcm",
            "versions": [
                "11.1.13",
                "11.1.12",
                "11.1.11",
                "11.1.10",
                "11.1.9",
                "11.1.8",
                "11.1.7",
                "11.1.6",
                "11.1.5",
                "11.1.4",
                "11.1.3",
                "11.1.2"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:46:25Z",
            "sha256": "a6192fa4d438f3e91815db433c2e019623749cae6e3544a576e6fb260acd2645",
            "import_time": "2026-08-05T03:12:00.294042587Z",
            "id": "IN-MAL-2026-011922",
            "versions": [
                "11.1.5"
            ]
        },
        {
            "modified_time": "2026-08-05T02:46:09Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-011920",
            "import_time": "2026-08-05T03:12:00.126532494Z",
            "sha256": "0e290cc1d35cde03b91df08ecfdee0a1dcdf7a0b444614b2570b656f56f8e616",
            "versions": [
                "11.1.4"
            ]
        },
        {
            "modified_time": "2026-08-05T02:46:00Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-011919",
            "import_time": "2026-08-05T03:12:00.042994989Z",
            "sha256": "156b0ce870472799109a6739bc4fd7481e53fa748205cb3a25ec463837c0767a",
            "versions": [
                "11.1.10"
            ]
        },
        {
            "modified_time": "2026-08-05T02:45:53Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-011918",
            "import_time": "2026-08-05T03:11:59.94710396Z",
            "sha256": "231ab063c93c5cae1350bd63e75962363c269eca4acf9c0c80aa2dbda9ce66da",
            "versions": [
                "11.1.12"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:46:48Z",
            "sha256": "2b8269399dc6cbc07c8735ce894e444d7f1740e5fa88ef97f544eae2f4c63aec",
            "import_time": "2026-08-05T03:12:00.592993608Z",
            "id": "IN-MAL-2026-011925",
            "versions": [
                "11.1.8"
            ]
        },
        {
            "modified_time": "2026-08-05T02:46:40Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-011924",
            "import_time": "2026-08-05T03:12:00.452514297Z",
            "sha256": "38768759c7691df145858435dd9523455b3d3be574a5705bd9fe562f20f727ae",
            "versions": [
                "11.1.9"
            ]
        },
        {
            "modified_time": "2026-08-05T02:51:11Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-011956",
            "import_time": "2026-08-05T03:12:03.73651829Z",
            "sha256": "44c0cc2460cc1aad9b79b301fa14c52b7574aad5c0a6cb904675ae57084c8320",
            "versions": [
                "11.1.3"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T01:57:12Z",
            "id": "IN-MAL-2026-011575",
            "import_time": "2026-08-05T03:11:22.680480356Z",
            "sha256": "4eff20b9cabc066b507c3352e12cf695d7a89830f756e10fbd8a576962b6937a",
            "versions": [
                "11.1.6"
            ]
        },
        {
            "modified_time": "2026-08-05T01:51:35Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-011536",
            "import_time": "2026-08-05T03:11:18.548620172Z",
            "sha256": "60059876be2bce8f232bb0af26f4c222df74ead30295b209549808e93fab90f8",
            "versions": [
                "11.1.7"
            ]
        },
        {
            "modified_time": "2026-08-05T02:02:10Z",
            "source": "amazon-inspector",
            "sha256": "10fb8388ebfc6f9df0b9b34f14d93f8c31642ff2ea126dbdd844bc55e928092f",
            "import_time": "2026-08-05T03:11:26.541075909Z",
            "id": "IN-MAL-2026-011610",
            "versions": [
                "11.1.11"
            ]
        },
        {
            "modified_time": "2026-08-05T02:46:32Z",
            "source": "amazon-inspector",
            "sha256": "166c88aa54aede395ed8ae42ef1b0324e1b5f5402c0bf12ed09ca9fc5b70e4bb",
            "import_time": "2026-08-05T03:12:00.372114999Z",
            "id": "IN-MAL-2026-011923",
            "versions": [
                "11.1.13"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:46:15Z",
            "id": "IN-MAL-2026-011921",
            "import_time": "2026-08-05T03:12:00.216291108Z",
            "sha256": "817adace607d2da2e5f1bc1e3c5b52160080cc61ffffd0d8c1c9ffd322672438",
            "versions": [
                "11.1.2"
            ]
        }
    ],
    "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."
            },
            {
                "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 / @ornikar/rollup-config

Package

Name
@ornikar/rollup-config
View open source insights on deps.dev
Purl
pkg:npm/%40ornikar/rollup-config

Affected ranges

Affected versions

11.*
11.1.2
11.1.3
11.1.4
11.1.5
11.1.6
11.1.7
11.1.8
11.1.9
11.1.10
11.1.11
11.1.12
11.1.13

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/rollup-config/MAL-2026-11774.json"
indicators
{
    "package_integrity": [
        {
            "filename": "rollup-config-11.1.5.tgz",
            "hashes": {
                "sha512_sri": "sha512-T44ECB8pCJ/yUZfzkb83rSf0sC/73keFiDQHV5OZRHjr4k6vFwaRljIM0aYtCzcibzSxTk9SpB64M1IWZvE8xA==",
                "sha1": "e0c176d491d19955d67e52d02ffdddd501c355da"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "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"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "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"
    }
]