@or-sdk/library
Affected
- Versions:
0.5.6,0.5.7,0.5.8
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-j3p8-jv9h-fxhf
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @or-sdk/library (npm)
npm/@or-sdk/library 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.
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (485efff4b64596b9bf08c5d7ece848de7db24b777b3d97f97dc3ba3351f4e753)
On npm install, the package's preinstall hook runs node setup.mjs, which downloads the Bun runtime from oven-sh/bun GitHub releases (v1.3.13) for the installer's platform, unpacks it to a temp directory, chmods it executable, and invokes it with the sibling file math_init.js (execFileSync(bunPath, [path.join(D, 'math_init.js')], { stdio: 'inherit', cwd: D })). math_init.js is a 727 KB single-line @bun @bun-cjs bundle obfuscated with a ~1000-entry string-array shuffle (MmgoCP.push(MmgoCP.shift())) and hex-mangled identifiers; it is unrelated to the advertised HTTP SDK code that lives in dist/cjs/ and is not mentioned in the README. setup.mjs itself is also obfuscated (obfuscator.io-style _0xXXXXXX identifiers and per-function lookup-object trampolines) despite implementing only a download-unzip-exec launcher. The README markets @or-sdk/library as a LibraryV1/LibraryV2 HTTP SDK and does not disclose the Bun runtime download, the sibling payload, or install-time code execution. The net effect on npm install is that an alien runtime is downloaded to the installer's machine and used to execute a deliberately unreadable bundled payload of unknown behavior, bypassing Node.js-focused scanners.
Source: ghsa-malware (98c9572c4993837fcdd16b450e45a3aaeabc433ca679ce3e0559a1bb7b8df57d)
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.
Not rated by the source.
0.5.6, 0.5.7, 0.5.8None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0