VYPR

npm · Malicious package advisory

Malware

array-native-utils

MAL-2026-20555

Malicious code in array-native-utils (npm)

Details


---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (73c3adbc7cf6c35da9b769e34d248e81ae22765b9930fee16480a60b034481a1)
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.

Compromised versions (1)

  • 1.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.