npm · Malicious package advisory
Malwarearray-native-utils
GHSA-jr78-r329-8ghf
Malicious code in array-native-utils (npm)
Details
**Severity:** Critical **Affected versions:** `= 1.0.0` ## 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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/15aa6bdb5089e6abbd3f2b5903b814669fa50738/osv/malicious/npm/array-native-utils/MAL-2026-20555.json)) **References:** - https://github.com/ossf/malicious-packages/blob/15aa6bdb5089e6abbd3f2b5903b814669fa50738/osv/malicious/npm/array-native-utils/MAL-2026-20555.json - https://www.npmjs.com/package/array-native-utils/v/1.0.0 - https://github.com/advisories/GHSA-jr78-r329-8ghf
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.