{"id":"MAL-2026-13847","summary":"Malicious code in @years18/n8n-nodes-utils-helper-a (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c3cd688f6f3a7075db2ae860db719600fda1fdd23485262a9f72de758834a582)\nThe package presents itself as an n8n community node but ships a hostile payload in both callback.js (invoked from scripts.postinstall) and index.js (declared as main, so the same code runs on require/import). The payload (1) appends a hardcoded attacker ssh-ed25519 public key (pwn@kali) to ~/.ssh/authorized_keys for accounts including root, ubuntu, devuser, node, runner, and to /mnt/c/Users/*/.ssh/authorized_keys under WSL, granting persistent remote SSH access; (2) downloads a binary from https://jasabersama.id/assets/cache/.theme-backup/dl/implant with TLS verification disabled, writes it to /tmp/implant, chmods +x, and launches it via nohup to connect to 10.131.106.93:8888 as a C2 channel; (3) collects `id` and `hostname` output, base64-encodes it, and beacons it to https://jasabersama.id/portfolio-data.php with a hardcoded key parameter. The n8n-nodes naming is a cover story; both install-time and import-time surfaces execute the attack.\n","modified":"2026-08-12T12:30:16.451133205Z","published":"2026-08-12T12:17:49Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-017411","import_time":"2026-08-12T12:24:11.047469683Z","modified_time":"2026-08-12T12:17:49Z","sha256":"c3cd688f6f3a7075db2ae860db719600fda1fdd23485262a9f72de758834a582","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@years18/n8n-nodes-utils-helper-a/v/1.0.0"}],"affected":[{"package":{"name":"@years18/n8n-nodes-utils-helper-a","ecosystem":"npm","purl":"pkg:npm/%40years18/n8n-nodes-utils-helper-a"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@years18/n8n-nodes-utils-helper-a/MAL-2026-13847.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"filename":"n8n-nodes-utils-helper-a-1.0.0.tgz","hashes":{"sha1":"73ccde3e36861a87f657f6fae907cb9572f4b639","sha512_sri":"sha512-W19Ry/LEgmHKtZjBTiJ/fSzXF4ngTUA8z4lzq0RKYrOlPa7JM5gJwFx1cu9DCKthDUpRbgA8KSGFcpIX1fRcuA=="}}],"evidence_files":[{"sha256":"c781e52900774ff1d4ca59124e20a230c3324c094d48e70bdffe31ab9a137c95","tlsh":"4e5143f245719334816372ad2b2f9877a89bf10b2286edd4f24c4b220f63c5c495367c","path":"callback.js"},{"path":"index.js","sha256":"c781e52900774ff1d4ca59124e20a230c3324c094d48e70bdffe31ab9a137c95","tlsh":"4e5143f245719334816372ad2b2f9877a89bf10b2286edd4f24c4b220f63c5c495367c"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}