MAL-2026-11553
Dashboard / Malicious Package / MAL-2026-11553
MAL-2026-11553
Summary: Malicious code in @arv-bedrock/auth (npm)
Details: npm/@arv-bedrock/auth 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 (6dbb4ed9f7f6ad9fe50c5fcfdb3b7bc38164cf83a2a07b0c560a8596c5b85e7f) @arv-bedrock/[email protected] declares a `preinstall` hook that runs `node setup.mjs`. setup.mjs downloads the Bun runtime from `github.com/oven-sh/bun/releases`, unpacks it to a tempdir, chmods it executable, and uses it to execute a sibling file `math_init.js` at the package root. math_init.js is a 727KB single-line heavily obfuscated Bun-CJS bundle (string-array rotation via a `WV8StW`-style decoder, `_0xNNNN` identifier renaming, opaque numeric/string tables) with no clear-text URLs or symbols; its behavior cannot be resolved statically. The package's stated purpose is an auth wrapper around axios and does not require the Bun runtime or a large obfuscated blob. Both `setup.mjs` and `math_init.js` sit at the tarball root and are outside the `"files": ["dist/**/*"]` allowlist declared in package.json, so they are shipped outside the author's declared publish surface. Installing this package on `npm install` fetches an alternate language runtime and uses it to execute opaque code that Node-based tooling cannot inspect — an alternate-runtime dropper against the installer. Source: ghsa-malware (860ea116a229f81f21c19b356cb6dd9df987856fe3fe3d617e4afe72c2426aaa) 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/@arv-bedrock/auth, https://github.com/advisories/GHSA-2939-wm9h-8gh5, https://www.npmjs.com/package/@arv-bedrock/auth/v/1.1.7, https://www.npmjs.com/package/@arv-bedrock/auth/v/1.1.8
Affected packages
Package
Name: @arv-bedrock/auth
Purl: pkg:npm/%40arv-bedrock/auth
Affected ranges
Type: N/A
Events:
