MAL-2026-11985

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/rwc-client/MAL-2026-11985.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11985
Aliases
  • GHSA-64gv-7jmp-fphc
Published
2026-08-04T13:21:45Z
Modified
2026-08-05T08:51:23.711334005Z
Summary
Malicious code in rwc-client (npm)
Details

npm/rwc-client 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 (13cd18ae4959d51570646939f80302b3d8764bfb03096c24f7811658dda6c2df)

package.json declares scripts.preinstall = 'node setup.mjs'. setup.mjs is obfuscated with 0xXXXX identifiers and a dictionary/string-array decoder, and at install time it selects a platform-specific Bun archive, downloads it from github.com/oven-sh/bun/releases/download/bun-v1.3.13/<platform>.zip, extracts it, chmods 0755, and then execs the downloaded Bun binary against a sibling file mathinit.js with no hash or signature verification. math_init.js is a 727 KB Bun-compiled bundle (header '// @bun @bun-cjs') wrapped in a string-array cipher (numeric dictionary plus rotator and 90-char alphabet decoder), so its behavior is opaque to Node-based inspection and only observable by executing it under the freshly dropped Bun runtime. The package is published unscoped as 'rwc-client' with no author, publisher, or repository fields, while its README, main bundle name (richWebChat.umd.min.js) and internal dependencies (@onereach/rwc-components, @onereach/ws-client, @onereach/apps-client-web-sdk) point to OneReach.ai's Rich Web Chat, which lives under the @onereach npm scope — the unscoped name impersonates that product. A Vue chat client library has no legitimate reason to fetch a second JavaScript runtime at install time to execute an obfuscated bundled payload; this is the alternate-runtime dropper pattern, and it fires automatically on any npm install.

Source: ghsa-malware (d514411ed6ed547098e521974a6c66eb92c18ccba7c4eff53f5a312cf3b2c10e)

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:43:50Z",
            "sha256": "d514411ed6ed547098e521974a6c66eb92c18ccba7c4eff53f5a312cf3b2c10e",
            "id": "GHSA-64gv-7jmp-fphc",
            "versions": [
                "0.29.19",
                "0.29.17",
                "0.29.16",
                "0.29.12",
                "0.29.11",
                "0.29.10",
                "0.29.18"
            ],
            "import_time": "2026-08-05T00:10:17.933784991Z"
        },
        {
            "import_time": "2026-08-05T07:06:56.956975784Z",
            "modified_time": "2026-08-05T06:50:31Z",
            "sha256": "33123f534a22ec5585498ff775be186feac5c4960a90ec58872e23d2860988a2",
            "id": "IN-MAL-2026-013625",
            "versions": [
                "0.29.18"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T07:06:58.969061033Z",
            "modified_time": "2026-08-05T06:57:46Z",
            "sha256": "8165dc9e44137f696608065b97770d8d8d4f343db8054fc67616192646705c72",
            "id": "IN-MAL-2026-013673",
            "versions": [
                "0.29.12"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:17.191369946Z",
            "modified_time": "2026-08-05T07:36:22Z",
            "sha256": "88616f7e53d0bdfb37a90445c171019ea570075b685e7ce76b9f0d35fbeefb84",
            "id": "IN-MAL-2026-013932",
            "versions": [
                "0.29.15"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:14.901653394Z",
            "modified_time": "2026-08-05T07:32:01Z",
            "sha256": "ac2aea64d3a6ba5aac62e36003114f081d9723b9c75bf7d6cdbd1cf8998d44d5",
            "id": "IN-MAL-2026-013903",
            "versions": [
                "0.29.16"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T07:37:03Z",
            "sha256": "cc7cc418d3b76779a03fe6e46394fd92a28e3d2076c07f65d5baa7b2fbfda2fd",
            "id": "IN-MAL-2026-013936",
            "versions": [
                "0.29.13"
            ],
            "import_time": "2026-08-05T08:22:17.494659044Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T07:17:22Z",
            "sha256": "0000b23791e6fecae5ba0275819709176ccdb012edb33d3eb07274c0f94b5a33",
            "id": "IN-MAL-2026-013804",
            "versions": [
                "0.29.19"
            ],
            "import_time": "2026-08-05T08:22:07.433211918Z"
        },
        {
            "import_time": "2026-08-05T08:22:02.590109366Z",
            "modified_time": "2026-08-05T07:06:34Z",
            "sha256": "13cd18ae4959d51570646939f80302b3d8764bfb03096c24f7811658dda6c2df",
            "id": "IN-MAL-2026-013732",
            "versions": [
                "0.29.10"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:21.016014923Z",
            "sha256": "140d6311c6d2ae2f203c120e939b8bcbc40dd78e0f63bec1fec69e7a4e3a9e58",
            "modified_time": "2026-08-05T07:44:49Z",
            "id": "IN-MAL-2026-013987",
            "versions": [
                "0.29.11"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:14.829470269Z",
            "sha256": "37a9f720087469c96c18ccb042670fd05244a2995a0e88b51524979839b41a5e",
            "modified_time": "2026-08-05T07:31:50Z",
            "id": "IN-MAL-2026-013902",
            "versions": [
                "0.29.17"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:17.374367544Z",
            "modified_time": "2026-08-05T07:36:40Z",
            "sha256": "83dccd96aa3de142775acf04c02b6e319d07064285388124e83a5abc2e0afc2a",
            "id": "IN-MAL-2026-013934",
            "versions": [
                "0.29.14"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / rwc-client

Package

Affected ranges

Affected versions

0.*
0.29.10
0.29.11
0.29.12
0.29.13
0.29.14
0.29.15
0.29.16
0.29.17
0.29.18
0.29.19

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",
        "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",
        "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-LqGaSP96ReY1ieMqKDsJ/xYmSVQIyqG+P55NXC5O7YeRZTAff+f0+06mVRys7v7G6jfbXanoHD9ITw3HGcR4OA==",
                "sha1": "ca36bee032abfb15ec1623a21fd3f10ef5163558"
            },
            "filename": "rwc-client-0.29.18.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/rwc-client/MAL-2026-11985.json"