{"id":"MAL-2026-11645","summary":"Malicious code in @onereach/si-step-chooser (npm)","details":"npm/@onereach/si-step-chooser 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 (27919078dbe1f6fe2cda413a0d8777f0c95b8f99549ed092bb40c49cf0dc8c05)\n@onereach/si-step-chooser@0.4.4 is published as a Vue step-chooser UI component (module: lib/component.js) but ships a preinstall lifecycle hook that runs an alien-runtime dropper. package.json declares scripts.preinstall = 'node setup.mjs'. setup.mjs is obfuscated (identifiers like _0x...) and, at install time, downloads a platform-specific Bun 1.3.13 binary zip from github.com/oven-sh/bun/releases, extracts the Bun executable to a tempdir, chmods it 0755, and execFileSync's it against a sibling file math_init.js located in the package directory. math_init.js is a 727KB Bun-compiled bundle (// @bun @bun-cjs header) obfuscated with a custom string-array rotation (WV8StW shift routine) and a large charmap literal decoded at runtime by hc1jfK9. The filename 'math_init.js' has no relationship to the advertised Vue component purpose. The net effect is that npm install of this package fetches a second runtime and executes opaque author-controlled bytes on the installer's machine, bypassing Node-based inspection. The behavior is inconsistent with the package's declared purpose, and the payload's contents cannot be inspected without executing them under Bun.\n\n## Source: ghsa-malware (3a874b1628ec21f3bbe69d2052b932a5b15ff179e5ee281abe235e594f30ca0f)\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-3qj3-xwcr-573v"],"modified":"2026-08-05T08:50:25.314545845Z","published":"2026-08-04T15:23:10Z","database_specific":{"iocs":{"files":[{"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"],"source":"PACKAGE_ARCHIVE"},{"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":[{"modified_time":"2026-08-04T16:32:15Z","sha256":"3a874b1628ec21f3bbe69d2052b932a5b15ff179e5ee281abe235e594f30ca0f","source":"ghsa-malware","versions":["0.4.6","0.4.5","0.4.4"],"id":"GHSA-3qj3-xwcr-573v","import_time":"2026-08-05T00:10:17.863500713Z"},{"modified_time":"2026-08-05T07:13:41Z","sha256":"11602b355714414de4bfe0a671b4a48a851d849e74f0af5130dcd46c7098ebd5","source":"amazon-inspector","versions":["0.4.6"],"id":"IN-MAL-2026-013778","import_time":"2026-08-05T08:22:05.802601347Z"},{"import_time":"2026-08-05T08:22:28.481789611Z","modified_time":"2026-08-05T08:00:34Z","sha256":"27919078dbe1f6fe2cda413a0d8777f0c95b8f99549ed092bb40c49cf0dc8c05","source":"amazon-inspector","versions":["0.4.4"],"id":"IN-MAL-2026-014096"},{"modified_time":"2026-08-05T07:45:06Z","sha256":"2da1c35b42bb535cc6cb57154384f76d99b23411e651e12b738ec697a6bbc54f","source":"amazon-inspector","versions":["0.4.5"],"id":"IN-MAL-2026-013989","import_time":"2026-08-05T08:22:21.155364302Z"}]},"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/@onereach/si-step-chooser"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3qj3-xwcr-573v"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@onereach/si-step-chooser/v/0.4.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@onereach/si-step-chooser/v/0.4.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@onereach/si-step-chooser/v/0.4.5"}],"affected":[{"package":{"name":"@onereach/si-step-chooser","ecosystem":"npm","purl":"pkg:npm/%40onereach/si-step-chooser"},"versions":["0.4.4","0.4.5","0.4.6"],"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"},{"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.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be","path":"setup.mjs","sha256":"fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"},{"tlsh":"59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d","path":"math_init.js","sha256":"9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"}],"package_integrity":[{"filename":"si-step-chooser-0.4.6.tgz","hashes":{"sha1":"df704baea613ad8c97ac492617cd6a97300ad234","sha512_sri":"sha512-h6TUUXEGuq4TF9JS6EeE1Z7wTsjywjeG9E9oiLfjpQyEGJMOj0KIpHKEnC7EG7vZaibLw+enJj/pIabuGVm3ZQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/si-step-chooser/MAL-2026-11645.json"}}],"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"}]}