MAL-2026-11962

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/babel-plugin-linaria-css-to-undefined/MAL-2026-11962.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11962
Aliases
  • GHSA-277g-jjx3-xmwj
Published
2026-08-04T15:14:02Z
Modified
2026-08-05T08:51:17.089102804Z
Summary
Malicious code in babel-plugin-linaria-css-to-undefined (npm)
Details

npm/babel-plugin-linaria-css-to-undefined 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 (e5a7917a241ec4bdbaf5e017073cb4d8dbcdd703abb9a96e868103790a123448)

The package declares a preinstall hook (node setup.mjs) that runs on npm install. setup.mjs is obfuscator.io-style code (hex-named identifiers _0xNNNN, per-function string-lookup objects) that downloads a Bun runtime zip from github.com/oven-sh/bun/releases/download/bun-v<VER>/...zip, extracts and chmod+x's the bun binary, and then invokes it against a bundled sibling math_init.js — a single-line 727KB obfuscated Bun-cjs blob (opens with // @bun @bun-cjs followed by a large numeric string-array and decoder). The advertised purpose is a Babel plugin (lib/index.js contains the unobfuscated, legitimate ornikar plugin source and matches the author/repository metadata ornikar/babel-plugin-linaria-css-to-undefined); a Babel plugin has no need to pull an alternate language runtime at install time or execute a 700KB opaque payload. The install-time payload is executed via Bun specifically to evade scanners that only inspect Node-resolved code. The combination — lifecycle-hook fetch of a second runtime, obfuscated loader, opaque runtime-executed sibling, and legitimate library code wrapped around the dropper to disguise the tarball as the genuine ornikar plugin — is the shape of a compromised or typosquatted publish that runs attacker-controlled code on every installer's machine.

Source: ghsa-malware (16815fdd377119a459007dcd3f2846a700cc47b502c7172639040730ffdd6f75)

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": [
        {
            "source": "ghsa-malware",
            "modified_time": "2026-08-04T16:46:16Z",
            "sha256": "16815fdd377119a459007dcd3f2846a700cc47b502c7172639040730ffdd6f75",
            "id": "GHSA-277g-jjx3-xmwj",
            "versions": [
                "0.3.17",
                "0.3.16",
                "0.3.15",
                "0.3.14",
                "0.3.13",
                "0.3.12",
                "0.3.11",
                "0.3.10",
                "0.3.9",
                "0.3.8",
                "0.3.7",
                "0.3.6",
                "0.3.5",
                "0.3.4",
                "0.3.3",
                "0.3.2",
                "0.3.1"
            ],
            "import_time": "2026-08-05T00:10:17.826389223Z"
        },
        {
            "import_time": "2026-08-05T00:44:39.802360192Z",
            "modified_time": "2026-08-05T00:05:22Z",
            "sha256": "3bf0fcda950bbb67ad1e1acb361c3eab6116c59ea21f72badd837053f4eae3a2",
            "id": "IN-MAL-2026-011374",
            "versions": [
                "0.3.16"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T07:06:50.569626846Z",
            "modified_time": "2026-08-05T06:32:00Z",
            "sha256": "90e5269541a533977b964522e87151d132770cb2a744540d37292c444cd4b789",
            "id": "IN-MAL-2026-013499",
            "versions": [
                "0.3.8"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T06:39:37Z",
            "sha256": "a4b283a17cfacffec7597089ff6bde76529e5148350de2c879ba35e2bcfdcce8",
            "id": "IN-MAL-2026-013551",
            "versions": [
                "0.3.7"
            ],
            "import_time": "2026-08-05T07:06:53.393023912Z"
        },
        {
            "import_time": "2026-08-05T07:06:52.311678248Z",
            "modified_time": "2026-08-05T06:36:35Z",
            "sha256": "b09344a73008d2199ead0ba0087957c864455307f6f3f2bd4de03535d18e40e4",
            "id": "IN-MAL-2026-013530",
            "versions": [
                "0.3.12"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T06:30:59Z",
            "sha256": "c3cc136bf24aae3ac0f5ade93dc603b8f50764d13af00ba3216a48b23e0381c8",
            "id": "IN-MAL-2026-013492",
            "versions": [
                "0.3.17"
            ],
            "import_time": "2026-08-05T07:06:50.269764986Z"
        },
        {
            "import_time": "2026-08-05T07:06:56.549612528Z",
            "modified_time": "2026-08-05T06:49:13Z",
            "sha256": "dc61408af4c076ac251ca643a13ebd29fc6ff2b661414e278429f23fd87a14b2",
            "id": "IN-MAL-2026-013616",
            "versions": [
                "0.3.15"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T07:06:55.035760457Z",
            "modified_time": "2026-08-05T06:44:18Z",
            "sha256": "e5a7917a241ec4bdbaf5e017073cb4d8dbcdd703abb9a96e868103790a123448",
            "id": "IN-MAL-2026-013583",
            "versions": [
                "0.3.3"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T07:06:58.626810698Z",
            "modified_time": "2026-08-05T06:56:26Z",
            "sha256": "f22d56c6c06a5424dfc384232b4a3dbf52ec511dd7263a86a7eb3b095a63385b",
            "id": "IN-MAL-2026-013665",
            "versions": [
                "0.3.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T07:06:52.365764248Z",
            "sha256": "7cc11e747cbfd4549899ab06c3dd1a9a190a4c838e1776503553176fa56e2d68",
            "modified_time": "2026-08-05T06:36:43Z",
            "id": "IN-MAL-2026-013531",
            "versions": [
                "0.3.10"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T07:16:45Z",
            "sha256": "bfa06aa1bfa1dace08fc1b68c01d2d6e7b1ed5d212cbfcb854f7f7a163954e36",
            "id": "IN-MAL-2026-013800",
            "versions": [
                "0.3.11"
            ],
            "import_time": "2026-08-05T08:22:07.219386872Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T07:15:11Z",
            "sha256": "e83114abf494b9146da4f27ee82f22e03dcd6a34d609444f147f66159c9a3a32",
            "id": "IN-MAL-2026-013789",
            "versions": [
                "0.3.14"
            ],
            "import_time": "2026-08-05T08:22:06.461350241Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T07:59:35Z",
            "sha256": "3bb2d7f7e63a226ab89d1c277845c0699817e8966df0340519f8a6021b79e313",
            "id": "IN-MAL-2026-014089",
            "versions": [
                "0.3.4"
            ],
            "import_time": "2026-08-05T08:22:28.02700826Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T07:15:22Z",
            "sha256": "3d42250efef9105d30e8d60e7599429d8ed6a7f9f0005c26f976a4deee52ae32",
            "id": "IN-MAL-2026-013790",
            "versions": [
                "0.3.13"
            ],
            "import_time": "2026-08-05T08:22:06.575910951Z"
        },
        {
            "import_time": "2026-08-05T08:22:37.660263379Z",
            "modified_time": "2026-08-05T08:19:29Z",
            "sha256": "63b42395027759375b53d8e4f6d4b2f30d4366b4c3b546022ea2ef357e99fd5c",
            "id": "IN-MAL-2026-014225",
            "versions": [
                "0.3.1"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:15.545681775Z",
            "modified_time": "2026-08-05T07:33:08Z",
            "sha256": "63f271da0a69c6ad39749cffc9cf5c3d59d4e71eb8124425cfe3053036514c0b",
            "id": "IN-MAL-2026-013911",
            "versions": [
                "0.3.9"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:04.890985523Z",
            "sha256": "986c43bb4406559fe0f283e2c8041333cf07c98d611748c9551f2a961953221b",
            "modified_time": "2026-08-05T07:11:48Z",
            "id": "IN-MAL-2026-013766",
            "versions": [
                "0.3.2"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:28.21009437Z",
            "sha256": "a01284dac37fc11def8efa6438d3838c968a2425ff8d311a497b7cca58a3a481",
            "modified_time": "2026-08-05T08:00:00Z",
            "id": "IN-MAL-2026-014092",
            "versions": [
                "0.3.5"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / babel-plugin-linaria-css-to-undefined

Package

Name
babel-plugin-linaria-css-to-undefined
View open source insights on deps.dev
Purl
pkg:npm/babel-plugin-linaria-css-to-undefined

Affected ranges

Affected versions

0.*
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6
0.3.7
0.3.8
0.3.9
0.3.10
0.3.11
0.3.12
0.3.13
0.3.14
0.3.15
0.3.16
0.3.17

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",
        "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."
    },
    {
        "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",
        "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",
        "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-2RgCSMbEdCPXG9qkJgfrkSj+pGuAn7Ig6+UIYPxV5AvJHbRBedOQc5WbLhWZQXGcJHKEwBdrYJp3mrkVqb9pUA==",
                "sha1": "66e7974508206a03180be0fd3cfc5d7be9131f84"
            },
            "filename": "babel-plugin-linaria-css-to-undefined-0.3.16.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        },
        {
            "path": "package.json",
            "sha256": "369d61a790d5206011e8fc11da3d71c05e308df46811196f4a2cae1188a44669",
            "tlsh": "d4017b308a2cad7391d85b70903d514361274dab8a49fc0c73f3032c4b5d79624ba969"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/babel-plugin-linaria-css-to-undefined/MAL-2026-11962.json"