{"id":"MAL-2026-6363","summary":"Malicious code in npmkekw (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (74384b76540c8d36fef8a30dc2acd3224defeaa8a58d0155101f2f670aa8b153)\nThe package's main module (index.js) exports an `init()` function that spawns `/bin/bash` via `child_process.exec` and opens a TCP socket to the hardcoded remote address 49.13.148.41:443, piping the shell's stdio through the socket — a textbook reverse-shell backdoor giving the operator at that IP interactive command execution on any host that calls `init()`. Package metadata is consistent with a throwaway attack vehicle: empty `description`, empty `author`, non-descriptive name `npmkekw`, and no other functional code. The payload as shipped contains a typo (references an undefined `sh` variable and pipes from `cp.stdout`) so it crashes on first use, but the intent and structure are unambiguous and a one-character fix would make it functional.\n","modified":"2026-06-24T03:31:23.635754335Z","published":"2026-06-24T02:37:21Z","database_specific":{"malicious-packages-origins":[{"versions":["2.0.0"],"id":"IN-MAL-2026-007395","import_time":"2026-06-24T03:14:01.114430528Z","modified_time":"2026-06-24T02:37:28Z","sha256":"001543f96749cd3e6896e93ae9d601dcd9c9c7646de0a624e9c9d22f20032df3","source":"amazon-inspector"},{"import_time":"2026-06-24T03:14:00.968947176Z","modified_time":"2026-06-24T02:37:25Z","sha256":"bea6f325821de15ed962d2b22f820e53220dcb59004dd436a95cc5f4d0cc26ad","source":"amazon-inspector","versions":["2.0.3"],"id":"IN-MAL-2026-007393"},{"versions":["2.0.5"],"id":"IN-MAL-2026-007394","import_time":"2026-06-24T03:14:01.030598994Z","modified_time":"2026-06-24T02:37:25Z","sha256":"1810d4765039fea883114aab44274ee9a85c80801dd8ed7043de829764a8b14f","source":"amazon-inspector"},{"modified_time":"2026-06-24T02:37:21Z","sha256":"74384b76540c8d36fef8a30dc2acd3224defeaa8a58d0155101f2f670aa8b153","source":"amazon-inspector","versions":["2.0.1"],"id":"IN-MAL-2026-007392","import_time":"2026-06-24T03:14:00.889880242Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/npmkekw/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/npmkekw/v/2.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/npmkekw/v/2.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/npmkekw/v/2.0.1"}],"affected":[{"package":{"name":"npmkekw","ecosystem":"npm","purl":"pkg:npm/npmkekw"},"versions":["2.0.0","2.0.3","2.0.5","2.0.1"],"database_specific":{"indicators":{"package_integrity":[{"filename":"npmkekw-2.0.0.tgz","hashes":{"sha1":"4a53b2bc4e2660a1d3a4e09274d3c2e444ae08a2","sha512_sri":"sha512-AcHNkW3dbraBJqKhkXNVvLiq8aiXjBqoeEPyFPqoUXpkSLSEoS8OqDRa2T7cdvZlJRFd1X/PwMyto9r6sAsOYw=="}}],"evidence_files":[{"sha256":"25137bb3be77d94697f75136f8188a5278d7c446242817bebd827f571190188f","tlsh":"cbd02b6f36a75214227b20b01e0fec218d1584061700c65c538a4b68af808acad92b94","path":"index.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npmkekw/MAL-2026-6363.json","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"},{"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"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}