npm/@onereach/step-run-snowflake-query 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.=-
package.json declares a preinstall hook node setup.mjs. setup.mjs is obfuscator.io-style minified code that resolves a platform-specific Bun runtime archive URL under github.com/oven-sh/bun/releases, downloads and extracts the bun binary to a temp directory, chmods it executable, and then invokes it via execFileSync to run the sibling file mathinit.js. mathinit.js is a 727KB Bun-compiled CJS blob (// @bun @bun-cjs) protected by a large string-array + rotation cipher, so its real behavior is unreadable without runtime decoding. The package advertises itself as "Logic for running Snowflake query step" and its declared entry point ./dist/index.mjs is not shipped in the tarball; math_init.js has no relation to Snowflake and is not reachable from the declared library API. Fetching an unrelated language runtime at install time solely to execute an obfuscated sibling script sidesteps Node-based install-time inspection and matches the alternate-runtime-dropper pattern. Installing this package causes attacker-controlled, obfuscated code to run on the installer's machine via the preinstall lifecycle hook.
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.
{
"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": [
{
"import_time": "2026-08-05T00:10:18.226263812Z",
"modified_time": "2026-08-04T16:36:13Z",
"sha256": "060fbd79df25b319702aadd100b395c232c06f677ae76ea61661e29c19609179",
"id": "GHSA-rqmm-m5qr-4r23",
"versions": [
"0.1.3",
"0.1.2",
"0.1.1"
],
"source": "ghsa-malware"
},
{
"import_time": "2026-08-05T07:06:57.337282951Z",
"modified_time": "2026-08-05T06:51:52Z",
"sha256": "43fa9089f4ce3dd73beb329285a2eaa4d86d9a7760e45bb22860e7500d622dde",
"id": "IN-MAL-2026-013633",
"versions": [
"0.1.3"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T07:06:59.997227688Z",
"modified_time": "2026-08-05T07:01:46Z",
"sha256": "68d478a6cc88e97d474eaf64571eb9971bf5dbacc511a996ab3ef26aa2cbfc8f",
"id": "IN-MAL-2026-013700",
"versions": [
"0.1.2"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T07:06:56.428977168Z",
"sha256": "f74df777e14db915827ba7b21f3f35a1a313a29ad6c8afe20101f9645ce59a2b",
"modified_time": "2026-08-05T06:48:45Z",
"id": "IN-MAL-2026-013613",
"versions": [
"0.1.1"
],
"source": "amazon-inspector"
}
]
}[
{
"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"
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-zuXFKOqqtqlZI/vhZo4d0yqBa885w0a4UO9uKFs5SIVSearZX5eryTOkFJhMrdS0zGIackQ0x9TFUU8v1iJiHA==",
"sha1": "ced8407d14d56bdd5c3b205595c2e2f88ee064d4"
},
"filename": "step-run-snowflake-query-0.1.3.tgz"
}
],
"evidence_files": [
{
"path": "setup.mjs",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
},
{
"path": "math_init.js",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
},
{
"path": "package.json",
"sha256": "426172d7b29264b494ce71a4d0c3e0873736a1442c2ea9a5fd769d012216aa69",
"tlsh": "0711a824c9a8cdb310dd21a15825811392b6c903a994fd187bc76b2c0f3d2bf217e73e"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/step-run-snowflake-query/MAL-2026-11654.json"