MAL-2026-11754

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/eslint-plugin-neverthrow/MAL-2026-11754.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11754
Aliases
  • GHSA-j378-3j38-8rg5
Published
2026-08-04T13:23:21Z
Modified
2026-08-05T03:20:09.233915178Z
Summary
Malicious code in @ornikar/eslint-plugin-neverthrow (npm)
Details

npm/@ornikar/eslint-plugin-neverthrow 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 (fa9a7028d5d013a020a2596e3a6cefa7f347e3a2adf181f140dabe7476a8b01f)

The package's declared purpose is an ESLint rule for the neverthrow library, but the tarball wires a preinstall hook (node setup.mjs) that downloads the Bun runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/ into a temp directory, chmods it executable, and invokes it against a shipped 727 KB single-line obfuscated CJS bundle math_init.js (header // @bun @bun-cjs, packed string/number array with a shuffled dispatcher). If bun is already on PATH it is used directly. Both setup.mjs and math_init.js are heavily obfuscated (obfuscator.io-style identifier mangling _0x488df8, per-call string-property dictionaries, rotator functions), preventing static inspection of the payload's behavior. An ESLint plugin has no legitimate need for an alternate language runtime or a large opaque install-time payload; the delivery mechanism itself — fetching a second runtime at install to execute a shipped obfuscated blob under it — evades Node-based static analysis and executes attacker-controlled code on the installer's machine as a side effect of npm install. The @ornikar scope publication with a legitimate-looking main: dist/src/index.js alongside the unrelated dropper is consistent with a scope hijack or malicious release under an established name.

Source: ghsa-malware (624410b3684b3319c5f06cac04538a03eb59617c3d15b2dc37dd2285114a461a)

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": [
        {
            "import_time": "2026-08-05T00:10:18.115859534Z",
            "modified_time": "2026-08-04T16:46:05Z",
            "sha256": "624410b3684b3319c5f06cac04538a03eb59617c3d15b2dc37dd2285114a461a",
            "id": "GHSA-j378-3j38-8rg5",
            "versions": [
                "1.3.12",
                "1.3.11",
                "1.3.10",
                "1.3.9",
                "1.3.7",
                "1.3.6",
                "1.3.5",
                "1.3.4",
                "1.3.3",
                "1.3.2",
                "1.3.1",
                "1.3.8"
            ],
            "source": "ghsa-malware"
        },
        {
            "import_time": "2026-08-05T03:11:29.282227605Z",
            "sha256": "be066edd2de33022597e85184ce90145c699c7949f24db35d7af6411f3148b17",
            "modified_time": "2026-08-05T02:05:20Z",
            "id": "IN-MAL-2026-011633",
            "versions": [
                "1.3.4"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T03:11:29.051441014Z",
            "modified_time": "2026-08-05T02:05:13Z",
            "sha256": "c366df31b8317aa94c26b881c009395c7d7ae0465519d9c6b93645a12e41fbff",
            "id": "IN-MAL-2026-011632",
            "versions": [
                "1.3.1"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T01:56:58Z",
            "sha256": "cebb0ec923dfb0a61df5dd15a55bf21b885bf7d4851a0b7b30301766cd2880ae",
            "id": "IN-MAL-2026-011573",
            "versions": [
                "1.3.11"
            ],
            "import_time": "2026-08-05T03:11:22.349526028Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:16:57Z",
            "sha256": "ee63f86d1adf5d81c9a0fd77f534581da5f0c2f0530f381b81e37ae97df2e36b",
            "id": "IN-MAL-2026-011713",
            "versions": [
                "1.3.10"
            ],
            "import_time": "2026-08-05T03:11:38.094552185Z"
        },
        {
            "import_time": "2026-08-05T03:11:49.244682991Z",
            "sha256": "fa9a7028d5d013a020a2596e3a6cefa7f347e3a2adf181f140dabe7476a8b01f",
            "modified_time": "2026-08-05T02:31:52Z",
            "id": "IN-MAL-2026-011818",
            "versions": [
                "1.3.12"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T03:11:35.661221573Z",
            "modified_time": "2026-08-05T02:13:40Z",
            "sha256": "2216a3d954b88fabfff055e1f9989f079cd68464a10005503cd7ddb559606466",
            "id": "IN-MAL-2026-011690",
            "versions": [
                "1.3.3"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:05:54Z",
            "sha256": "46e4cff67382f87ebede694c891829d4a8ddf669ed162f56c4755e723099f83d",
            "id": "IN-MAL-2026-011637",
            "versions": [
                "1.3.9"
            ],
            "import_time": "2026-08-05T03:11:29.961137676Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:16:22Z",
            "sha256": "4cff0a005733620741a9e9d9f2c9cc51345f0a4fd677877e53de72fff719a14f",
            "id": "IN-MAL-2026-011709",
            "versions": [
                "1.3.2"
            ],
            "import_time": "2026-08-05T03:11:37.716204474Z"
        },
        {
            "import_time": "2026-08-05T03:11:48.568542613Z",
            "modified_time": "2026-08-05T02:31:01Z",
            "sha256": "7e9aa5bb5729ec5df3a926601c43a4dbd63c5195c87851b1d50bd49752858f1c",
            "id": "IN-MAL-2026-011812",
            "versions": [
                "1.3.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:04:55Z",
            "sha256": "8bfd34b7ab080211a106bd12703cabb38df061abbb1002b49aec74f7bb0ed606",
            "id": "IN-MAL-2026-011630",
            "versions": [
                "1.3.8"
            ],
            "import_time": "2026-08-05T03:11:28.662544884Z"
        },
        {
            "import_time": "2026-08-05T03:11:48.928593018Z",
            "modified_time": "2026-08-05T02:31:26Z",
            "sha256": "984e31dc41810e2a4861954aa99b4f88423b9ead204cd84d38d6a812cd8991de",
            "id": "IN-MAL-2026-011815",
            "versions": [
                "1.3.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T03:11:49.040097261Z",
            "modified_time": "2026-08-05T02:31:33Z",
            "sha256": "b3e2688ffff91f127077a61656dc4d73db190a68d3cc850850c45044005d7fb3",
            "id": "IN-MAL-2026-011816",
            "versions": [
                "1.3.6"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @ornikar/eslint-plugin-neverthrow

Package

Name
@ornikar/eslint-plugin-neverthrow
View open source insights on deps.dev
Purl
pkg:npm/%40ornikar/eslint-plugin-neverthrow

Affected ranges

Affected versions

1.*
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.3.8
1.3.9
1.3.10
1.3.11
1.3.12

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",
        "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",
        "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",
        "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",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-cubnUlwztMJcinxMxBhZox/ewLvJUv6tGWVleg7u0XG5ZAHHBd7d1EyuR9wNf3mVOPGBEhKTHhjiUO9Jpwh7nw==",
                "sha1": "a6425f6fe75d9a3bf2a0c13d76effc26e1707e4f"
            },
            "filename": "eslint-plugin-neverthrow-1.3.4.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/eslint-plugin-neverthrow/MAL-2026-11754.json"