Malicious code in array-node-utils (npm)
The npm package array-node-utils contained malicious code that fetches, decrypts, and executes arbitrary code on installation. The package's declared purpose (array utilities) bore no relationship to the shipped obfuscated payload.
- Disclosed
- Last updated
- Blast radius
- All users who installed array-node-utils
- Ecosystems
- Attack vectors
- Affected entities
- array-node-utilsnpm package
The npm package array-node-utils was found to contain malicious code in its main index.js file. The code was heavily obfuscated using obfuscator.io with RC4 and base64 string-array encoding.\n\nThe malicious payload executes on require() and performs a fetch-decrypt-execute chain: it loads system modules (https, path, os, fs, child_process, crypto), assembles a hidden destination host via repeated string concatenation, issues an HTTPS GET request, decrypts the response using AES (with a SHA256-derived key), writes the decrypted bytes to a temporary file, and executes it via child_process with the working directory set to the user's home directory.\n\nThe package's declared purpose—providing array-handling utilities—has no relationship to the shipped code, which contains no array-handling logic whatsoever. This is a clear case of a trojanized package.\n\nThe incident was identified and credited to the OpenSSF's malicious-packages repository.
Indicators of compromise
- Packages
- array-node-utils
Remediation
- Immediately uninstall array-node-utils from all systems
- Audit npm install logs to identify when the package was installed
- Review system logs and process execution history for suspicious activity during and after installation
- Regenerate any credentials or secrets that may have been exposed
- Consider the system compromised and perform a full security audit
- Update npm dependencies to remove any references to array-node-utils
Sources
- GitHub Advisory GHSA-gv25-mh5m-p7gp · GitHub Advisory Database
Cite this entry
"Malicious code in array-node-utils (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 28, 2026; last updated July 28, 2026. https://supplychainattack.org/incident/malicious-code-in-array-node-utils-npm-1flfan
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- activecritical
Malware in @omniwatch-wick/cli
Malware discovered in the npm package @omniwatch-wick/cli. Systems with this package installed are considered fully compromised and require immediate remediation.
npmCompromised package - activecritical
Malware in chain-manager
Malware discovered in the npm package chain-manager. Systems with this package installed or running are considered fully compromised and require immediate remediation.
npmCompromised package - containedcritical
Malicious code in toll_free (npm)
The npm package toll_free version 1.0.1 was identified as malicious by the OpenSSF Package Analysis project. The package executes commands associated with malicious behavior.
npmCompromised package - containedcritical
Malicious code in blots (npm)
The npm package 'blots' version 2.1.0 was identified by the OpenSSF Package Analysis project as containing malicious code that executes commands associated with malicious behavior. The package has been flagged in the OpenSSF malicious packages database.
npmCompromised package