{"id":"MAL-2026-11142","summary":"Malicious code in node-array-plus (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e1ce58719e0587902be3a6436f329ce631317fe3a7c322d89f9c679cd6e1a744)\nindex.js is heavily obfuscated with a 312-entry rotated string array plus RC4/base64 decoders that hide identifiers and literals. On require(), the module builds a hardcoded IPv4 endpoint by concatenating four numeric octets, performs an HTTP GET against that endpoint, AES-256-CBC-decrypts the response using an MD5-derived key with an IV taken from the response, writes the plaintext to a file under os.homedir(), and executes it via child_process with windowsHide:true and cwd=os.homedir(). The package exposes no legitimate API surface (empty description, no exported functionality) — its sole effect on import is to drop and run remote code on the installer's machine. Obfuscation is used specifically to conceal the destination and the decrypt-drop-exec chain.\n","modified":"2026-08-05T13:35:38.488038702Z","published":"2026-07-28T13:35:08Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.9"],"id":"IN-MAL-2026-010911","import_time":"2026-07-28T14:19:58.668779055Z","modified_time":"2026-07-28T13:35:08Z","sha256":"e1ce58719e0587902be3a6436f329ce631317fe3a7c322d89f9c679cd6e1a744","source":"amazon-inspector"},{"import_time":"2026-08-05T13:08:52.134240732Z","modified_time":"2026-08-05T13:04:13Z","sha256":"40b0c2825705c60185bb3391c58ace7356e4f363483574bca9eb5d6e7c3a0f52","source":"amazon-inspector","versions":["1.1.9"],"id":"IN-MAL-2026-014870"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/node-array-plus/v/1.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/node-array-plus/v/1.1.9"}],"affected":[{"package":{"name":"node-array-plus","ecosystem":"npm","purl":"pkg:npm/node-array-plus"},"versions":["1.0.9","1.1.9"],"database_specific":{"cwes":[{"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"3a96c07468a2adea3fab5cdfdee801fdb557382a128b0e62b34f013400e5266d","tlsh":"ceb2868d3fd2f0a04237b0f76a1b6895e13aac9cb2cc9409f7a5f058fd58354d165b68"}],"package_integrity":[{"filename":"node-array-plus-1.0.9.tgz","hashes":{"sha1":"3467db23d2740ff19ceb01119d8b1a27d06c4207","sha512_sri":"sha512-XfF3tmRR9XzvQhEiUqlOeOfmO0q1nDWz+ZGopqmFf+aKt+UNgXyUgpo9UAGUaiEOshYJMWQj74I6n1u/s03+5A=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-array-plus/MAL-2026-11142.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}