npm/@onereach/content-builder-template-compiler 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.=-
@onereach/content-builder-template-compiler@0.0.5 declares scripts.preinstall = 'node setup.mjs' in package.json. setup.mjs downloads the Bun runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/<arch>.zip (or uses a pre-existing bun) and invokes it via execFileSync against a bundled sibling file, mathinit.js. mathinit.js is a 727KB single-line file using hex-mangled identifiers, a shuffled string-array cipher (WV8StW rotating via push/shift), a ~1500-entry constant table, and 'with' statements — canonical obfuscator.io-style transforms — and is prefixed '// @bun @bun-cjs' so it only runs under Bun. The package advertises itself as a small template compiler whose only legitimate dependency need is lodash; there is no engineering reason to fetch a full alternate JavaScript runtime and execute an obfuscated 727KB blob under it at install time. The alternate-runtime shape shifts execution off the Node interpreter that most scanners inspect, and the obfuscation conceals the payload's actual behavior. Installing this package causes the obfuscated payload to run on the installer's machine before any user code executes.
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": [
{
"modified_time": "2026-08-04T16:25:48Z",
"id": "GHSA-c399-6hx7-4r93",
"import_time": "2026-08-05T00:10:18.019609646Z",
"versions": [
"0.0.5",
"0.0.4",
"0.0.3"
],
"source": "ghsa-malware",
"sha256": "fa4e71a96e2f0400d3056877aaf30f88baf9ed401c7be7b02a2a0b489806c5ad"
},
{
"versions": [
"0.0.4"
],
"id": "IN-MAL-2026-014075",
"import_time": "2026-08-05T08:22:27.131094055Z",
"modified_time": "2026-08-05T07:57:38Z",
"source": "amazon-inspector",
"sha256": "5218f818e0a45c1d36877ce8c5979ef7d262b467fe84b3d5daff0758bd60ca01"
},
{
"versions": [
"0.0.3"
],
"id": "IN-MAL-2026-014194",
"import_time": "2026-08-05T08:22:35.581439562Z",
"modified_time": "2026-08-05T08:15:01Z",
"source": "amazon-inspector",
"sha256": "f462bbbd09371f76d5993e49215ee83752c3e60e3fa7b7a05db50368145c8537"
},
{
"versions": [
"0.0.5"
],
"id": "IN-MAL-2026-013848",
"import_time": "2026-08-05T08:22:10.509363135Z",
"modified_time": "2026-08-05T07:24:02Z",
"source": "amazon-inspector",
"sha256": "06ba173591d887f008baca7c5eed2e2507bf0f6afb7f859ae5ad391c6a7ad4d0"
}
]
}[
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-UNm7kcI3yvMNauWYanLNThgbhRKsp/ajd397V1+uWg4PncJn4duBoaElz/iIqPgXYmIxx1/bb6xsKWwqXItxOw==",
"sha1": "42e17d61e958c441da6029b39d086524b9e3a7f9"
},
"filename": "content-builder-template-compiler-0.0.4.tgz"
}
],
"evidence_files": [
{
"path": "setup.mjs",
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"
},
{
"path": "math_init.js",
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/content-builder-template-compiler/MAL-2026-11597.json"