Malicious code in @years17/n8n-nodes-utils-helper (npm)
The npm package @years17/n8n-nodes-utils-helper contained malicious code that performs host reconnaissance, harvests secrets, and exfiltrates data to an external server. The attack executes automatically on package installation and when the module is required, and also provides an operator-triggered reconnaissance primitive via a bundled n8n node.
- Disclosed
- Last updated
- Blast radius
- Any npm project that installed @years17/n8n-nodes-utils-helper; execution occurs on install and on require().
- Ecosystems
- Attack vectors
- Affected entities
- @years17/n8n-nodes-utils-helpernpm package containing malicious postinstall script and PwnNode
The npm package @years17/n8n-nodes-utils-helper was published with embedded malicious code designed to perform host reconnaissance and secret exfiltration. The package's postinstall script (also triggered on require() via index.js) executes a series of reconnaissance commands including id, hostname, uname -a, docker socket checks, sudo -l, docker ps, directory listings, and SSH key enumeration. The collected output is base64-encoded and transmitted to https://jasabersama.id/portfolio-data.php with TLS certificate validation disabled.\n\nBeyond the automatic postinstall behavior, the package includes a bundled n8n node called PwnNode that exposes an execute() method. This method runs additional host reconnaissance commands (id, hostname, uname -a, and filesystem listings) via child_process.execSync and returns the results as a JSON object with a pwned flag, providing an operator-triggered reconnaissance capability within n8n workflows.\n\nThe package advertises itself as a utility helper for n8n but contains no legitimate functionality—its sole purpose is host reconnaissance, secret harvesting, and data exfiltration. The attack was identified by Amazon Inspector and credited to the OpenSSF malicious-packages project.\n\nAny system that installed this package or required it as a dependency was compromised, with sensitive environment variables, SSH keys, and system information exfiltrated to the attacker's server.
Indicators of compromise
- Packages
- @years17/n8n-nodes-utils-helper
- Domains
- jasabersama.id
Remediation
- Immediately uninstall @years17/n8n-nodes-utils-helper from all systems and projects
- Audit npm package.json and lock files for any presence of @years17/n8n-nodes-utils-helper or similar typosquatting variants
- Rotate all SSH keys, API tokens, and secrets that may have been present in environment variables or ~/.ssh/authorized_keys on affected systems
- Review system logs and network traffic for connections to jasabersama.id or exfiltration of base64-encoded data
- Scan all systems that installed this package for signs of compromise or persistence mechanisms
- Implement npm package verification and scanning in CI/CD pipelines to detect malicious packages before installation
Sources
- GitHub Advisory GHSA-f67j-4rxv-hg77 · GitHub Advisory Database
Cite this entry
"Malicious code in @years17/n8n-nodes-utils-helper (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-npm-a2o2ct
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in epic-common-node (npm)
The npm package epic-common-node was found to contain malicious code. The package has been identified and reported through GitHub Security Advisory GHSA-m36g-mhjr-ww2c.
npmCompromised package - containedcritical
Malicious code in checkout-desktop-total (npm)
The npm package checkout-desktop-total contained 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 wel1.ru. Any system that imported this package should be considered compromised.
npmCompromised package - resolvedcritical
Malicious code in epic-sso (npm)
The npm package epic-sso was found to contain malicious code. The package was identified by Amazon Inspector and reported through the OpenSSF malicious packages database.
npmCompromised package - 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