Advisory

MAL-2026-12369

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in elephant-array-utils (npm)

Details

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

Source: amazon-inspector (d2cfcddc59bba26e90415bf89488d4a814e5c1db07091da5e46b07f7727e49bb)
index.js is a heavily obfuscated (obfuscator.io: rotated string array + RC4 decoder, control-flow flattening, hex literals) top-level IIFE with no functionality matching the advertised 'array utils' purpose. On require(), it constructs a hardcoded IPv4 address by concatenating four numeric literals, performs an https.get against that host, splits the response on ':' to obtain an IV and ciphertext, decrypts the payload with createDecipheriv using a Buffer-keyed cipher, writes the plaintext to a file under the current working directory, and executes it via child_process.exec with windowsHide:true. This is a canonical remote-payload dropper: any installer that requires the package hands arbitrary-code-execution to whoever controls the hardcoded IP. The obfuscation layer exists to hide the exfil/dropper URL, decryption key and command from static inspection. The generic package name is consistent with a typosquat lure.

Severity

Not rated by the source.

Dates

Published
2026-08-05 12:32 UTC
Modified
2026-08-05 13:35 UTC

Affected packages and fixes

elephant-array-utils

npm · All systems

Affected

  • Versions: 1.0.6

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences