Malicious code in bmc-translate-utils (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-16026
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a55e2a625f0b96f6903cccac0251c6b8380cf9589a1f222e9de7e97dbf466156) package.json declares a preinstall script `bun run index.js`. index.js is a ~500 KB javascript-obfuscator-packed module (rotated string array `_0x71ec`, decoder `_0x2a3a`, self-defending IIFE, hex identifier names) unrelated to the package's advertised translation purpose — the translation code lives in dist/cjs/. The obfuscated preinstall payload contains GitHub-API helpers that build `Authorization: token <t>` requests to `/user` and `/user/orgs`, parse the `x-oauth-scopes` response header, and return a token-classification record including `hasRepoScope`/`hasWorkflowScope`/`orgs` — token-triage logic. The same module installs a custom pbkdf2-derived RC4-style cipher on globalThis and wires it into a `fetch(baseUrl + path, { headers: { Authorization: 'token ' + t,... } })` transport where baseUrl is concealed inside the obfuscated string array. Installing the package causes obfuscated code to auto-execute on the installer's machine, validate any accessible GitHub tokens, and transmit results through a custom-encrypted channel to a hidden endpoint. ## Source: ghsa-malware (151730e69dd5abf8f5b7d63faf1118d677479b01cf65a7dbf391c2995e6b525b) 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.
- Source published
- 7 Sep 2026 13:51:36 UTC
- Source modified
- 8 Sep 2026 19:30:05 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.