MAL-2026-11589

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/billing-dto/MAL-2026-11589.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11589
Aliases
  • GHSA-6m2r-w4cc-322c
Published
2026-08-04T15:21:18Z
Modified
2026-08-05T08:50:00.374411121Z
Summary
Malicious code in @onereach/billing-dto (npm)
Details

npm/@onereach/billing-dto 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 (213407d7aee7322885aa430a28b140e6a3a976178bbe5a01e2bf88ad4e5334fb)

package.json declares preinstall: node setup.mjs. setup.mjs is obfuscated with _0x-style identifiers and downloads the Bun runtime from the oven-sh/bun GitHub releases, extracts it to a temporary directory, marks it executable, and uses that dropped runtime to execute a sibling file math_init.js shipped at the package root. math_init.js is a 727KB heavily-obfuscated bundle (// @bun @bun-cjs header, string-array rotator WV8StW, decoder hc1jfK9, ~1000-entry mixed numeric/string constants array, hex-mangled identifiers) that cannot be inspected by Node-based tooling and only runs under the dropped Bun runtime. The package advertises itself as a DTO/enums types library and its declared main (dist/index.js) is a small pure enums module; neither the manifest nor any documentation references setup.mjs or math_init.js, and a types-only library has no legitimate need for an alternate language runtime or a large obfuscated bundle. The alternate-runtime-dropper shape (fetch a second runtime specifically to execute a large obfuscated sibling on npm install) combined with the DTO/payload purpose mismatch and the on-disk obfuscation is a supply-chain attack fingerprint.

Source: ghsa-malware (669ca4e346719da873fc230ed5ccdc3c3a2213ca600df589230f1fb839f3d562)

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": [
        {
            "modified_time": "2026-08-04T16:25:12Z",
            "id": "GHSA-6m2r-w4cc-322c",
            "import_time": "2026-08-05T00:10:17.940757424Z",
            "versions": [
                "27.2.3",
                "27.2.2",
                "27.2.1"
            ],
            "source": "ghsa-malware",
            "sha256": "669ca4e346719da873fc230ed5ccdc3c3a2213ca600df589230f1fb839f3d562"
        },
        {
            "modified_time": "2026-08-05T06:30:51Z",
            "id": "IN-MAL-2026-013491",
            "import_time": "2026-08-05T07:06:50.212795508Z",
            "versions": [
                "27.2.3"
            ],
            "source": "amazon-inspector",
            "sha256": "213407d7aee7322885aa430a28b140e6a3a976178bbe5a01e2bf88ad4e5334fb"
        },
        {
            "modified_time": "2026-08-05T07:54:34Z",
            "id": "IN-MAL-2026-014055",
            "import_time": "2026-08-05T08:22:25.68508887Z",
            "versions": [
                "27.2.2"
            ],
            "source": "amazon-inspector",
            "sha256": "1915077c590ac0915436e5889f0930761a55d0206a96781e632c91601426c152"
        },
        {
            "modified_time": "2026-08-05T08:14:23Z",
            "id": "IN-MAL-2026-014190",
            "import_time": "2026-08-05T08:22:35.303644663Z",
            "versions": [
                "27.2.1"
            ],
            "source": "amazon-inspector",
            "sha256": "a1c4598453693b8e0ddd4b89b976592541109fc16ec2787c41ea2dac86bdc447"
        }
    ]
}
References
Credits

Affected packages

npm / @onereach/billing-dto

Package

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

Affected ranges

Affected versions

27.*
27.2.1
27.2.2
27.2.3

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
{
    "evidence_files": [
        {
            "path": "setup.mjs",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"
        },
        {
            "path": "math_init.js",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"
        },
        {
            "path": "package.json",
            "tlsh": "8df0653488286bb301c926d1987b8122d562889b44287c1937d7643d4badabf24be76e",
            "sha256": "ae1e8232d993a31afd91711f25cefab1dd43a647321a493d75993865c4550b1f"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/billing-dto/MAL-2026-11589.json"