{"id":"MAL-2026-11992","summary":"Malicious code in workbench-browser-server (npm)","details":"npm/workbench-browser-server 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.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (20c1f8bf7caae194f76bd32a0751db508ac6767d66857928ba97b16d10c03161)\nThe package's preinstall hook runs setup.mjs, which downloads a Bun runtime binary (bun-v1.3.13) from github.com/oven-sh/bun/releases, unpacks it to a temp directory, marks it executable, and invokes it against a sibling file math_init.js. math_init.js is a 727KB single-line, heavily obfuscated bundle (rotated string-array with an array-shift rotator function, mangled identifiers, `// @bun @bun-cjs` header) that is not human-readable. The package presents itself as a React/Redux 'Workbench Client server' — a role that has no need for Bun — and setup.mjs itself is written with hex-mangled identifiers and per-function string-property aliasing to obscure the download-and-exec flow. The result is that `npm install workbench-browser-server` fetches a second language runtime and executes an opaque payload on the installer's machine before any application code runs.\n\n## Source: ghsa-malware (4c80e352caa91f82fab1aec66a0e67e18240b693a26e95b41d9c4b8c7deb3671)\nAny 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.\n","aliases":["GHSA-63m5-c696-rwrc"],"modified":"2026-08-05T08:51:26.140104097Z","published":"2026-08-04T16:02:22Z","database_specific":{"iocs":{"files":[{"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.","paths":["setup.mjs"]},{"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.","paths":["Math_Symbol.js","math_init.js"],"source":"PACKAGE_ARCHIVE"}]},"malicious-packages-origins":[{"versions":["0.0.2"],"id":"GHSA-63m5-c696-rwrc","import_time":"2026-08-05T00:10:17.92917842Z","modified_time":"2026-08-04T16:02:23Z","sha256":"4c80e352caa91f82fab1aec66a0e67e18240b693a26e95b41d9c4b8c7deb3671","source":"ghsa-malware"},{"modified_time":"2026-08-05T07:37:56Z","sha256":"20c1f8bf7caae194f76bd32a0751db508ac6767d66857928ba97b16d10c03161","source":"amazon-inspector","versions":["0.0.2"],"id":"IN-MAL-2026-013942","import_time":"2026-08-05T08:22:17.827190595Z"}]},"references":[{"type":"WEB","url":"https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain"},{"type":"WEB","url":"https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack"},{"type":"WEB","url":"https://safedep.io/keyv-npm-supply-chain-compromise/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/workbench-browser-server"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-63m5-c696-rwrc"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/workbench-browser-server/v/0.0.2"}],"affected":[{"package":{"name":"workbench-browser-server","ecosystem":"npm","purl":"pkg:npm/workbench-browser-server"},"versions":["0.0.2"],"database_specific":{"cwes":[{"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"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/workbench-browser-server/MAL-2026-11992.json","indicators":{"evidence_files":[{"sha256":"fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb","tlsh":"9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be","path":"setup.mjs"},{"path":"math_init.js","sha256":"9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc","tlsh":"59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"}],"package_integrity":[{"filename":"workbench-browser-server-0.0.2.tgz","hashes":{"sha512_sri":"sha512-+dOSrOukuU6GKEEjtmV+qqPJv/Z77zvl3OoR0iEXp9LXRL2XXXbsZEHutyTBJ5eX88N2v8vdKJlIjCcyjQ7LBA==","sha1":"9306d87fe81b344092a2750fc488111c807720e2"}}]}}}],"schema_version":"1.8.0","credits":[{"name":"Aikido Security","contact":["https://www.aikido.dev"],"type":"FINDER"},{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"},{"name":"Socket Threat Research Team","contact":["https://socket.dev"],"type":"FINDER"}]}