Malicious code in @years17/n8n-nodes-utils-helper-g (npm)
The npm package @years17/n8n-nodes-utils-helper-g contains malicious code that installs SSH backdoors, exfiltrates host reconnaissance data to a C2 server, and provides post-exploitation primitives via a custom n8n node.
- Disclosed
- Last updated
- Blast radius
- Any system installing @years17/n8n-nodes-utils-helper-g; affects n8n workflow users and host systems with SSH access.
- Ecosystems
- Attack vectors
- Affected entities
- @years17/n8n-nodes-utils-helper-gnpm package containing malicious postinstall hook and PwnNode.node.js
The npm package @years17/n8n-nodes-utils-helper-g was published with embedded malicious code designed to compromise host systems and enable persistent remote access.\n\nThe package's postinstall hook executes callback.js, which appends an attacker-controlled SSH public key (labeled pwn@kali) to /home/ubuntu/.ssh/authorized_keys, granting persistent SSH access. The same script performs host reconnaissance including user ID, hostname, sudo privileges, Docker socket access, and internal network resolution, then base64-encodes and exfiltrates this data via HTTPS to jasabersama.id/portfolio-data.php with certificate verification disabled.\n\nAdditionally, the package includes nodes/PwnNode.node.js, a malicious n8n node that executes system commands (id, hostname, uname, ls) via child_process.execSync and returns results as JSON, providing a post-exploitation primitive for any workflow using the node.\n\nThe attack was identified by the OpenSSF malicious-packages project and attributed to Amazon Inspector scanning.", <parameter name="remediation">["Immediately uninstall @years17/n8n-nodes-utils-helper-g from all systems", "Audit /home/ubuntu/.ssh/authorized_keys and remove any unauthorized SSH keys, particularly those labeled pwn@kali", "Review system logs and network traffic for connections to jasabersama.id", "Rotate SSH keys and credentials on affected systems", "Scan systems for persistence mechanisms and unauthorized access", "Review n8n workflows for use of PwnNode.node.js and remove if present", "Update npm dependencies and use npm audit to identify similar malicious packages"]
Indicators of compromise
- Packages
- @years17/n8n-nodes-utils-helper-g
- Domains
- jasabersama.id
Remediation
- Review the linked advisory; remove or upgrade the affected component and rotate any exposed credentials.
Sources
- GitHub Advisory GHSA-37mp-5c2q-84mq · GitHub Advisory Database
Cite this entry
"Malicious code in @years17/n8n-nodes-utils-helper-g (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 12, 2026; last updated August 12, 2026. https://supplychainattack.org/incident/malicious-code-in-years17-n8n-nodes-utils-helper-g-npm-d1523l
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- containedcritical
Malicious code in pfp-forms-sme-loan (npm)
The npm package pfp-forms-sme-loan contains malicious code that executes a hidden loader on import, downloading and running platform-specific native payloads from attacker-controlled Cloudflare Workers hosts or reconstructing them via DNS TXT records under well1.site. Any system that imported this package should be considered compromised.
npmCompromised packageMalicious commit - resolvedcritical
Malicious code in twilio-hackerone-poc-afe6937c (npm)
The npm package twilio-hackerone-poc-afe6937c contained malicious preinstall/postinstall scripts that exfiltrate host metadata and environment variables to an external webhook, spawn a persistent daemon process, and attempt cross-tenant code injection in shared environments.
npmCompromised packageMalicious commit - containedcritical
Malicious code in @wololasod/tiny-id (npm)
The npm package @wololasod/tiny-id contained obfuscated malicious code that downloads and executes platform-specific remote executables on Windows and Linux systems. The dropper was embedded in both the main entry point (dist/index.cjs) and the TypeScript types file (dist/index.d.ts), disguised as a tiny ID generator.
npmCompromised packageMalicious commit - containedcritical
Malicious code in akamaijs-sensor (npm)
The npm package akamaijs-sensor contained malicious code that executed arbitrary JavaScript via hidden Unicode-encoded bytes and established a command-and-control channel through a Google Calendar dead-drop. The package was designed to run attacker-authored code in the consumer's Node process when the sensor() API was called.
npmCompromised packageMalicious commit