MAL-2026-11600
Dashboard / Malicious Package / MAL-2026-11600
MAL-2026-11600
Summary: Malicious code in @onereach/get-version-data (npm)
Details: npm/@onereach/get-version-data 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 Math_Symbol.js / math_init.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. Source: amazon-inspector (8cdb664e01de857d6efd99a83f022f9acea3eb3a60079e6090899b0c5359f0e1) package.json declares scripts.preinstall = 'node setup.mjs'. setup.mjs (itself obfuscated with _0x-style identifiers) selects a platform-specific Bun build, downloads it from github.com/oven-sh/bun/releases at pinned v1.3.13, extracts the archive, chmods the binary executable, and then execFileSyncs Bun to run the sibling file math_init.js at install time. math_init.js is a 727KB file sitting at the tarball root, marked '// @bun @bun-cjs', and uses a large numeric/string constant array with a shift-shuffle initializer and character-lookup decoder to hide its behavior. The file is not declared in package.json files:["src"] (i.e., it is shipped outside the author's declared publish manifest) yet is invoked by the preinstall hook. The package advertises itself as a JSON version-data CLI whose stated purpose does not require a second language runtime or an opaque bundle. The combination of a fetched alternate runtime executing an undeclared, heavily obfuscated sibling payload at preinstall gives arbitrary code execution on every installer's machine, with behavior hidden from static inspection. Source: ghsa-malware (360c3c073c570dc3b90e5a0a6ade499c3bcf690276d1cb97e5222b1c3bb0fbea) 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.
References: https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain, https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack, https://safedep.io/keyv-npm-supply-chain-compromise/, https://www.npmjs.com/package/@onereach/get-version-data, https://github.com/advisories/GHSA-7vcg-ff6h-mhph, https://www.npmjs.com/package/@onereach/get-version-data/v/3.1.2, https://www.npmjs.com/package/@onereach/get-version-data/v/3.1.3, https://www.npmjs.com/package/@onereach/get-version-data/v/3.1.4
Affected packages
Package
Name: @onereach/get-version-data
Purl: pkg:npm/%40onereach/get-version-data
Affected ranges
Type: N/A
Events:
