{"id":"MAL-2026-11698","summary":"Malicious code in @or-sdk/identifiers (npm)","details":"npm/@or-sdk/identifiers 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 (e14be760600e0b50859a91ed1563c228b4ae19925aa144b1b475ef95c835f0d1)\nThe package declares a preinstall hook (`node setup.mjs`) that downloads the Bun runtime from github.com/oven-sh/bun releases (bun-v1.3.13/\u003cplatform\u003e.zip) into a temp directory, extracts it, chmods it executable, and then invokes it via execFileSync against a sibling file `math_init.js`. If a local `bun` is already present it is used directly. `math_init.js` is a ~727 KB single-line `// @bun @bun-cjs` bundle containing string-array-rotation obfuscation with an alphabet-substitution decoder (`hc1jfK9`, `WV8StW` rotator, `MmgoCP`/`n7gIxM` tables). The package advertises itself as an identifiers SDK, a purpose unrelated to fetching an alternate language runtime or executing a heavily obfuscated ~727 KB payload at install time. Downloading an alternate runtime specifically to execute an obfuscated local script evades Node-based install-time scanners and matches the alternate-runtime-dropper pattern; the obfuscated payload's actual behavior is intentionally hidden from static review.\n\n## Source: ghsa-malware (75326c1bb71e6a912f81becb290cf37536d4a193d22bc448eca76c9dabec6372)\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-rx3p-hh6j-4c47"],"modified":"2026-08-05T08:50:48.884187353Z","published":"2026-08-04T15:20:57Z","database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","versions":["0.27.8","0.27.7","0.27.6"],"id":"GHSA-rx3p-hh6j-4c47","import_time":"2026-08-05T00:10:18.234870865Z","modified_time":"2026-08-04T16:31:45Z","sha256":"75326c1bb71e6a912f81becb290cf37536d4a193d22bc448eca76c9dabec6372"},{"versions":["0.27.8"],"id":"IN-MAL-2026-013771","import_time":"2026-08-05T08:22:05.240555237Z","modified_time":"2026-08-05T07:12:32Z","sha256":"79c570f98378a46da05e351891d0a9df30d1e1ab241fdbdf9f22e0d2545f1c05","source":"amazon-inspector"},{"versions":["0.27.6"],"id":"IN-MAL-2026-014139","import_time":"2026-08-05T08:22:31.670783605Z","modified_time":"2026-08-05T08:06:55Z","sha256":"dfd9e1cb5cadefa94ca4e767c2f10273c9f22e255d054ed3ddb589b828a01261","source":"amazon-inspector"},{"modified_time":"2026-08-05T07:49:14Z","sha256":"e14be760600e0b50859a91ed1563c228b4ae19925aa144b1b475ef95c835f0d1","source":"amazon-inspector","versions":["0.27.7"],"id":"IN-MAL-2026-014017","import_time":"2026-08-05T08:22:22.968994325Z"}],"iocs":{"files":[{"paths":["setup.mjs"],"source":"PACKAGE_ARCHIVE","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","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"]}]}},"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/@or-sdk/identifiers"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rx3p-hh6j-4c47"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@or-sdk/identifiers/v/0.27.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@or-sdk/identifiers/v/0.27.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@or-sdk/identifiers/v/0.27.7"}],"affected":[{"package":{"name":"@or-sdk/identifiers","ecosystem":"npm","purl":"pkg:npm/%40or-sdk/identifiers"},"versions":["0.27.6","0.27.7","0.27.8"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"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"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"setup.mjs","sha256":"fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb","tlsh":"9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"},{"path":"math_init.js","sha256":"9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc","tlsh":"59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@or-sdk/identifiers/MAL-2026-11698.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"}]}