{"id":"MAL-2026-13911","summary":"Malicious code in @years20/n8n-nodes-utils-helper-c (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (faf7b80781cbd76ad24c149a065fbcdd3d75cff7911b0225a540b0f358c35570)\nOn npm install, callback.js/index.js (invoked from the package's postinstall/main) executes `id` and `hostname`, reads `/etc/ssh/ssh_host_ed25519_key.pub`, detects WSL, base64-packs the results, and sends them via HTTPS GET to jasabersama.id/portfolio-data.php with TLS verification disabled (`rejectUnauthorized:false`). The exfiltration URL frames the payload as a shell command (`k=S7k9xQ2mZj&c=echo \u003cb64\u003e | base64 -d \u003e\u003e /tmp/n8n_rce_result.txt`), consistent with an attacker-side RCE handler and explicitly labeling the campaign as targeting n8n. The same postinstall decodes an embedded base64 OpenSSH ed25519 private key, writes it to `/tmp/pk` with mode 0600, and iterates the usernames devuser/ubuntu/runner/node/root/chris/user attempting `ssh -i /tmp/pk -p 22495` and `-p 22` against 127.0.0.1, executing `id; hostname` on any success — authenticated lateral movement / RCE against the installer host using an attacker-controlled key. The package identifies itself as an n8n helper utility.\n","modified":"2026-08-12T15:30:13.639429711Z","published":"2026-08-12T15:10:22Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-017599","import_time":"2026-08-12T15:26:13.238674268Z","modified_time":"2026-08-12T15:10:22Z","sha256":"faf7b80781cbd76ad24c149a065fbcdd3d75cff7911b0225a540b0f358c35570","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@years20/n8n-nodes-utils-helper-c/v/1.0.0"}],"affected":[{"package":{"name":"@years20/n8n-nodes-utils-helper-c","ecosystem":"npm","purl":"pkg:npm/%40years20/n8n-nodes-utils-helper-c"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@years20/n8n-nodes-utils-helper-c/MAL-2026-13911.json","indicators":{"evidence_files":[{"sha256":"8176be617df1750652d87e367cc3b6d871fbef43b371472f7976369db53db978","tlsh":"325198f851a0a53422b360b75dbadc15d5bffa02518addc8714d0b335fd6c9809336b8","path":"callback.js"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-SrumWqZ5CZQkIpqukRiJWuR2iN7AuyGM8aCf3D129nm5Zq2J5sNLNeOG+YHnykpDEpSoJrupIFQ70n63OJbN9A==","sha1":"053ab313fbe1bef7574f5388069f9d48c9c8651c"},"filename":"n8n-nodes-utils-helper-c-1.0.0.tgz"}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}