array-native-utilsnpm
Advisory published Updated
array-native-utils is a confirmed malicious npm package (MAL-2026-20555) that executes malicious code on install (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in array-native-utils (npm)
What this malware does
The package is advertised as lightweight array utilities (flatten/compact/unique) but index.js top-level require loads a platform-specific.node binary that acts as a dropper. The native binaries locate an adjacent 10.9 MB high-entropy file named.napi_cache (no printable strings, consistent with an encrypted/packed blob), stage it to /tmp/.<pid> on Linux/macOS or %TEMP%...nc%lu.js on Windows, set executable/hidden attributes, and spawn it as a detached child via fork+setsid+execlp or CreateProcessA with 'node "%s"'. The JavaScript surface area (array utilities) is pure JS and has no legitimate need for a native addon, confirming the native module is pretext. Before firing, the binaries check an extensive list of CI/build and analysis indicators — GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, /proc/1/cgroup, containerd, dockerinit, /proc/self/status TracerPid, IsDebuggerPresent, CheckRemoteDebuggerPresent, wireshark — to avoid executing in sandboxes, build farms, and researcher environments and run only on real developer or production hosts. Any process that requires this package outside such a gated environment will decrypt and execute attacker-controlled code with the privileges of the host process.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for array-native-utils (version 1.0.0).
If you installed it — respond
Remove array-native-utils from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If array-native-utils was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks array-native-utils-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.