Malicious code in @years17/n8n-nodes-utils-helper-g (npm)
The npm package @years17/n8n-nodes-utils-helper-g version 1.0.0 contains malicious code that runs a postinstall script to append an attacker-controlled SSH public key to the installer's authorized_keys file, enabling persistent remote SSH access. It also collects host system information and exfiltrates it to a remote server with disabled certificate verification. Additionally, it exposes a node that executes system commands and returns their output, providing a post-exploitation capability within n8n workflows.
AI Analysis
Technical Summary
The malicious npm package @years17/n8n-nodes-utils-helper-g (version 1.0.0) includes a postinstall hook that executes callback.js, which appends an SSH Ed25519 public key labeled 'pwn@kali' to /home/ubuntu/.ssh/authorized_keys, granting persistent unauthorized SSH access. The script collects host reconnaissance data including user ID, hostname, sudo privileges, Docker socket access, and internal DNS resolution, encodes this data in base64, and sends it over HTTPS to jasabersama.id/portfolio-data.php with certificate verification disabled (rejectUnauthorized:false). The exfiltration URL includes a parameter that appears to allow remote command execution on the victim host. Furthermore, the package exposes an n8n node (PwnNode.node.js) whose execute() method runs system commands (id, hostname, uname, directory listings) via child_process.execSync and returns the output as JSON, enabling attackers to execute arbitrary commands within n8n workflows.
Potential Impact
This malicious package compromises the installer's host by granting persistent remote SSH access through an attacker-controlled public key. It enables extensive host reconnaissance and data exfiltration to a remote command and control server. The exposed n8n node allows execution of arbitrary system commands, facilitating further post-exploitation activities. This can lead to full system compromise, unauthorized data access, and lateral movement within affected environments.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately uninstall @years17/n8n-nodes-utils-helper-g version 1.0.0 if installed. Inspect and remove any unauthorized SSH keys from /home/ubuntu/.ssh/authorized_keys. Investigate for signs of compromise, including unusual network traffic to jasabersama.id and presence of the PwnNode node in n8n workflows. Avoid installing packages from untrusted sources and verify package integrity before use.
Malicious code in @years17/n8n-nodes-utils-helper-g (npm)
Description
The npm package @years17/n8n-nodes-utils-helper-g version 1.0.0 contains malicious code that runs a postinstall script to append an attacker-controlled SSH public key to the installer's authorized_keys file, enabling persistent remote SSH access. It also collects host system information and exfiltrates it to a remote server with disabled certificate verification. Additionally, it exposes a node that executes system commands and returns their output, providing a post-exploitation capability within n8n workflows.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The malicious npm package @years17/n8n-nodes-utils-helper-g (version 1.0.0) includes a postinstall hook that executes callback.js, which appends an SSH Ed25519 public key labeled 'pwn@kali' to /home/ubuntu/.ssh/authorized_keys, granting persistent unauthorized SSH access. The script collects host reconnaissance data including user ID, hostname, sudo privileges, Docker socket access, and internal DNS resolution, encodes this data in base64, and sends it over HTTPS to jasabersama.id/portfolio-data.php with certificate verification disabled (rejectUnauthorized:false). The exfiltration URL includes a parameter that appears to allow remote command execution on the victim host. Furthermore, the package exposes an n8n node (PwnNode.node.js) whose execute() method runs system commands (id, hostname, uname, directory listings) via child_process.execSync and returns the output as JSON, enabling attackers to execute arbitrary commands within n8n workflows.
Potential Impact
This malicious package compromises the installer's host by granting persistent remote SSH access through an attacker-controlled public key. It enables extensive host reconnaissance and data exfiltration to a remote command and control server. The exposed n8n node allows execution of arbitrary system commands, facilitating further post-exploitation activities. This can lead to full system compromise, unauthorized data access, and lateral movement within affected environments.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately uninstall @years17/n8n-nodes-utils-helper-g version 1.0.0 if installed. Inspect and remove any unauthorized SSH keys from /home/ubuntu/.ssh/authorized_keys. Investigate for signs of compromise, including unusual network traffic to jasabersama.id and presence of the PwnNode node in n8n workflows. Avoid installing packages from untrusted sources and verify package integrity before use.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13876
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a7c9b47bf8831d539cdd30a
Added to database: 08/12/2026, 16:11:51 UTC
Last enriched: 08/12/2026, 16:56:14 UTC
Last updated: 08/12/2026, 16:56:14 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.