{"id":"MAL-2026-15997","summary":"Malicious code in node-helper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8e7475543fb41397ba49574f9b16340e671160b13bb100bb0db6c4acc2fb154e)\nThe package impersonates the legitimate blakeembrey/node-helper library (matching author metadata, README, MIT license, and top-of-file helper functions) but appends a heavily obfuscated IIFE (obfuscator.io-style rotated string array with base64+URI decoder) that runs at require() time. The IIFE creates a hidden directory under os.homedir(), writes a second-stage obfuscated index.js and a synthesized package.json declaring dependencies axios, better-sqlite3, node-machine-id, socket.io-client, and on Windows @primno/dpapi and node-window-manager, then spawns `npm install` in that directory and launches the dropped payload detached. On win32 it additionally writes a main.vbs wrapper that uses WScript.Shell to Run the node payload hidden and non-waiting, and invokes C:\\Windows\\system32\\wscript.exe against it with detached:true, windowsHide:true, and stdio ignored to keep the process alive after the installer exits. The Windows dependency combination (@primno/dpapi + better-sqlite3 + node-machine-id + node-window-manager + socket.io-client) is the standard toolkit for decrypting and exfiltrating Chrome/Edge Login Data and Cookies SQLite stores via DPAPI. The manifest also self-references `node-helper: ^1.5.4`, and the resolved second-stage code is whatever the attacker-controlled dependency graph delivers at install time.\n\n## Source: ghsa-malware (0a576f297edee789149d03ed87ff934f25fae30d96ea69fa135b750791a93c5e)\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-2ggc-wmq2-3whp"],"modified":"2026-09-08T19:30:04.702212005Z","published":"2026-09-06T03:02:05Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-09-06T03:02:05Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"0a576f297edee789149d03ed87ff934f25fae30d96ea69fa135b750791a93c5e","source":"ghsa-malware","id":"GHSA-2ggc-wmq2-3whp","import_time":"2026-09-07T01:51:48.453764Z"},{"sha256":"8e7475543fb41397ba49574f9b16340e671160b13bb100bb0db6c4acc2fb154e","source":"amazon-inspector","versions":["1.5.4"],"id":"IN-MAL-2026-019676","import_time":"2026-09-08T19:15:04.004559998Z","modified_time":"2026-09-08T19:07:38Z"},{"id":"IN-MAL-2026-019679","import_time":"2026-09-08T19:15:04.084649403Z","modified_time":"2026-09-08T19:08:05Z","sha256":"e8e46bbadddeb11ed33e401c18f42ae3e3447c6e1a592e709a111d0c3568e0f2","source":"amazon-inspector","versions":["1.6.4"]}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2ggc-wmq2-3whp"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/node-helper/v/1.5.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/node-helper/v/1.6.4"}],"affected":[{"package":{"name":"node-helper","ecosystem":"npm","purl":"pkg:npm/node-helper"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.5.4","1.6.4"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-helper/MAL-2026-15997.json","cwes":[{"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.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"sha256":"66ede71123a338d792bbc2197417682a39b533ef4695fa351de7bfc4e4932ed4","tlsh":"7972b58d3d6ab466328164b7361e93c5f6784d052cab81a4f1056c58bf2d538dfb3f09","path":"node-helper.js"},{"path":"package.json","sha256":"3125d6afed4d087a9315de1b096c7df21092847b013c0334a7d00273423feb0a","tlsh":"5f01f250cc345e7315ed59ab6ca60213f2205d5b0a18bd2c339a8bad0b2d66ba0fd84e"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}