{"id":"MAL-2026-16026","summary":"Malicious code in bmc-translate-utils (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a55e2a625f0b96f6903cccac0251c6b8380cf9589a1f222e9de7e97dbf466156)\npackage.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 \u003ct\u003e` 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.\n\n## Source: ghsa-malware (151730e69dd5abf8f5b7d63faf1118d677479b01cf65a7dbf391c2995e6b525b)\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-997w-vpm2-ww7x"],"modified":"2026-09-08T19:30:05.835366389Z","published":"2026-09-07T13:51:36Z","database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","id":"GHSA-997w-vpm2-ww7x","import_time":"2026-09-08T00:15:11.0749639Z","modified_time":"2026-09-07T13:51:36Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"151730e69dd5abf8f5b7d63faf1118d677479b01cf65a7dbf391c2995e6b525b"},{"versions":["1.1.1"],"id":"IN-MAL-2026-019668","import_time":"2026-09-08T19:15:03.725629625Z","modified_time":"2026-09-08T19:06:27Z","sha256":"a55e2a625f0b96f6903cccac0251c6b8380cf9589a1f222e9de7e97dbf466156","source":"amazon-inspector"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-997w-vpm2-ww7x"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/bmc-translate-utils/v/1.1.1"}],"affected":[{"package":{"name":"bmc-translate-utils","ecosystem":"npm","purl":"pkg:npm/bmc-translate-utils"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.1"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"sha256":"e37e3ddeeaaa9e0c4fdbcb829b4895a6521031c80053fc436625b61e6ee5b1a6","tlsh":"d5b4a31123d46960274b4fbb771bb5f2e88a09ee786d0c9fe124bc1066d9713fae8570","path":"index.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bmc-translate-utils/MAL-2026-16026.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}