{"id":"MAL-2026-20555","summary":"Malicious code in array-native-utils (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (73c3adbc7cf6c35da9b769e34d248e81ae22765b9930fee16480a60b034481a1)\nThe 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/.\u003cpid\u003e 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.\n","modified":"2026-11-25T07:00:49.655952056Z","published":"2026-11-25T06:28:21Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-023116","import_time":"2026-11-25T06:44:07.533217347Z","modified_time":"2026-11-25T06:28:21Z","sha256":"73c3adbc7cf6c35da9b769e34d248e81ae22765b9930fee16480a60b034481a1","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/array-native-utils/v/1.0.0"}],"affected":[{"package":{"name":"array-native-utils","ecosystem":"npm","purl":"pkg:npm/array-native-utils"},"versions":["1.0.0"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-7Sl3sdWXsDBDZgirqgt0d2NMxmAOvwIZgQFcTw/PwMJNfuH2uBLAKejqGFdgHVwk3VHeTveZ+LGgYw2LeWjujw==","sha1":"8274b55fc079d1857be563d572fddcbb02b70419"},"filename":"array-native-utils-1.0.0.tgz"}],"evidence_files":[{"path":"index.js","sha256":"80eca5a62e5a0f5e51398e6899471b345316a2132ce95683fda92086e044f06a","tlsh":"d901b1c93bf8714c166425f523edc686e4e1d421814e475dca8ea5b51ad4ca0af2ccff"},{"sha256":"79c360453577d56f43f735418d436e7de1501c7a67d70743e606c908337bcebb","tlsh":"0472744bd2a0dd3ec4d86231598b527252a2d070ef30172f0f54a6fb2d97358ae7ae52","path":"native.napi.node"},{"sha256":"831b424a4dfc85d5db8eb9b08250f1f5ec01dd81dbfd1c9e34a30537a34f17fe","tlsh":"e3b67c0fca09931d3d2819ed2c8f18d530ccadd86469df52f9ac8967e2548b9314f6eb","path":".napi_cache"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/array-native-utils/MAL-2026-20555.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}