MAL-2026-11623

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/regex-helper/MAL-2026-11623.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11623
Aliases
  • GHSA-8pfj-q685-v7rh
Published
2026-08-04T15:23:20Z
Modified
2026-08-05T08:50:16.008173159Z
Summary
Malicious code in @onereach/regex-helper (npm)
Details

npm/@onereach/regex-helper 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 (20748c0900d13c09a63c38bf5f8c4156e7d6bcee54a8639d74c6128749a4bebd)

@onereach/regex-helper is declared as a Vue regex-helper component but its package.json preinstall hook runs setup.mjs, which downloads the Bun runtime from github.com/oven-sh/bun/releases (v1.3.13), extracts it to a temp directory, chmods it executable, and invokes it with a sibling file mathinit.js as its argument. mathinit.js is a ~720 KB single-line file with an @bun/@bun-cjs header, a string-array rotation loader (WV8StW shift-decoder), a large mixed constants array (n7gIxM), and hex-mangled identifiers, and its filename and content do not correspond to the package's stated Vue UI purpose. setup.mjs itself uses obfuscator.io-style _0xNNNNNN identifiers and per-function string-property tables wrapping calls to execFileSync, https.get, chmodSync, and readFileSync('/etc/os-release'). The chain — install-time fetch of an alternate runtime + execution of an opaque obfuscated payload under that runtime — bypasses Node-based inspection and runs arbitrary code on any machine that runs npm install for this package.

Source: ghsa-malware (b68eb8c2a2efa8a5de62739bc603ea9486ded022c56d08fd9a2a81f9d0d916c6)

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:24:38Z",
            "source": "ghsa-malware",
            "sha256": "b68eb8c2a2efa8a5de62739bc603ea9486ded022c56d08fd9a2a81f9d0d916c6",
            "import_time": "2026-08-05T00:10:17.986984923Z",
            "id": "GHSA-8pfj-q685-v7rh",
            "versions": [
                "0.5.18",
                "0.5.17",
                "0.5.16"
            ]
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-05T08:22:12.156826825Z",
            "sha256": "20748c0900d13c09a63c38bf5f8c4156e7d6bcee54a8639d74c6128749a4bebd",
            "modified_time": "2026-08-05T07:27:18Z",
            "id": "IN-MAL-2026-013870",
            "versions": [
                "0.5.18"
            ]
        },
        {
            "import_time": "2026-08-05T08:22:34.409663446Z",
            "modified_time": "2026-08-05T08:12:40Z",
            "sha256": "af1403e779ef170403226085b4cf40bbce21c058f79339c0f814eb11928b616c",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014178",
            "versions": [
                "0.5.16"
            ]
        },
        {
            "import_time": "2026-08-05T08:22:26.769363033Z",
            "modified_time": "2026-08-05T07:56:50Z",
            "sha256": "e207492227e27cf690d479486b00a3a3a6128394be97a28d98417c3c5e89c3f8",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014070",
            "versions": [
                "0.5.17"
            ]
        }
    ],
    "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."
            },
            {
                "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."
            }
        ]
    }
}
References
Credits

Affected packages

npm / @onereach/regex-helper

Package

Name
@onereach/regex-helper
View open source insights on deps.dev
Purl
pkg:npm/%40onereach/regex-helper

Affected ranges

Affected versions

0.*
0.5.16
0.5.17
0.5.18

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",
        "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."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "regex-helper-0.5.18.tgz",
            "hashes": {
                "sha512_sri": "sha512-t0+6f0+nI7VcZxHPPBR8v+A3qRq2Lcs9SP1t+DiF+K21jUyk5RgsGcK9wnsS1kVzr+mBk1WK9k+AvrIkW3AVug==",
                "sha1": "844eb4eedb3598e0be795247d7a23894408dc3d1"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "math_init.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/regex-helper/MAL-2026-11623.json"