npm/@or-sdk/library-types-v2 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.=-
The package declares a preinstall hook (node setup.mjs) that fires automatically on npm install. setup.mjs is variable-obfuscated (identifiers of the form _0xNNNN), detects platform/architecture (including Alpine musl), downloads the Bun runtime zip from github.com/oven-sh/bun/releases/download/bun-v1.3.13/, extracts the bun/bun.exe binary to a temp directory, chmods it executable, and invokes it against the sibling file math_init.js. math_init.js is a ~700 KB single-line file marked // @bun @bun-cjs using obfuscator.io-style transforms: a large mixed numeric/string constant array with a rotating shuffler and char-code reconstruction via String.fromCodePoint, plus machine-generated identifiers. The obfuscated payload is executed by the freshly downloaded alien runtime, bypassing Node-based scanners. The package advertises itself as SDK type definitions and has no legitimate need to pull a second language runtime at install time. The files allowlist in package.json (./dist/browser, ./dist/nest, CHANGELOG.md) does not list setup.mjs or math_init.js, yet both ship at the tarball root — consistent with a payload added outside the normal publish flow.
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:17.847809966Z",
"sha256": "474de00f3e37acd5f39ab6c71a09abefd02c3feb5e0a40323567267a8ffd08af",
"modified_time": "2026-08-04T15:54:01Z",
"id": "GHSA-3475-v8pg-87p7",
"versions": [
"9.0.2",
"9.0.1",
"9.0.3"
],
"source": "ghsa-malware"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T07:20:08Z",
"sha256": "8b8ff0aae1753662cfccd2be166d6e9bd7ffb3ce3a790947fe8058c1554f1270",
"id": "IN-MAL-2026-013822",
"versions": [
"9.0.3"
],
"import_time": "2026-08-05T08:22:08.5657806Z"
},
{
"source": "amazon-inspector",
"modified_time": "2026-08-05T08:04:20Z",
"sha256": "eac52fff795eb03fd08a67c177db24d032cb2c1ffd47203bb7dc0b9434fae731",
"id": "IN-MAL-2026-014121",
"versions": [
"9.0.1"
],
"import_time": "2026-08-05T08:22:30.139428249Z"
},
{
"import_time": "2026-08-05T08:22:23.141106223Z",
"modified_time": "2026-08-05T07:49:32Z",
"sha256": "f864cb84bafce1b066512ad63c83a4633581e2ac95db5bb3a9496e5e11895b1f",
"id": "IN-MAL-2026-014019",
"versions": [
"9.0.2"
],
"source": "amazon-inspector"
}
]
}[
{
"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"
},
{
"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."
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-MExaS8FAJ3ejAgLqA96XQtTVkBfIa6W1piKx7lzZYzdNu0/zXsEomAbLbkHGLZOpgKLFO5Zx7//w5p+x8GtlSg==",
"sha1": "62700b06942a8837f48e5413c684ebe6d82f740f"
},
"filename": "library-types-v2-9.0.3.tgz"
}
],
"evidence_files": [
{
"path": "setup.mjs",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
},
{
"path": "math_init.js",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
},
{
"path": "package.json",
"sha256": "78df971e0739d0cc8dc124ceb291b2747536a5b0d9ec74c064cdccae4cace185",
"tlsh": "8b210619c5a84e2326c422f4942b6616e2724a0745987f2c33ea216c4f8c7ff01ff6ed"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@or-sdk/library-types-v2/MAL-2026-11710.json"