Malicious code in elephant-array-utils (npm)
The npm package 'elephant-array-utils' version 1.0.6 contains heavily obfuscated malicious code that acts as a remote payload dropper. Upon requiring the package, it contacts a hardcoded IPv4 address to download an encrypted payload, decrypts it, writes it to disk, and executes it, enabling arbitrary code execution. The package name appears to be a typosquat lure. No official patch or remediation information is provided.
AI Analysis
Technical Summary
The 'elephant-array-utils' npm package version 1.0.6 includes a top-level immediately-invoked function expression (IIFE) with obfuscation techniques such as rotated string arrays, RC4 decoding, control-flow flattening, and hex literals. Instead of providing legitimate array utilities, it constructs a hardcoded IPv4 address and performs an HTTPS GET request to retrieve an encrypted payload. The payload is decrypted using createDecipheriv with a buffer-keyed cipher, saved to a file in the current working directory, and executed via child_process.exec with windowsHide set to true. This behavior constitutes a canonical remote-payload dropper, granting arbitrary code execution to the attacker controlling the hardcoded IP address. The obfuscation hides the exfiltration/dropper URL, decryption key, and execution command. The generic package name suggests it is intended as a typosquatting lure.
Potential Impact
Any system that installs or requires 'elephant-array-utils' version 1.0.6 is at risk of arbitrary code execution controlled by the attacker hosting the payload. This can lead to full system compromise depending on the privileges of the executing process. The malicious code executes automatically upon requiring the package, making it a high-risk supply chain threat.
Mitigation Recommendations
No official patch or remediation is provided in the available data. Users should immediately remove and avoid installing 'elephant-array-utils' version 1.0.6. Verify dependencies to ensure this package is not included transitively. Consider using trusted package sources and scanning dependencies for malicious content. Monitor for updates from the package repository or vendor for any official advisories or fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in elephant-array-utils (npm)
Description
The npm package 'elephant-array-utils' version 1.0.6 contains heavily obfuscated malicious code that acts as a remote payload dropper. Upon requiring the package, it contacts a hardcoded IPv4 address to download an encrypted payload, decrypts it, writes it to disk, and executes it, enabling arbitrary code execution. The package name appears to be a typosquat lure. No official patch or remediation information is provided.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'elephant-array-utils' npm package version 1.0.6 includes a top-level immediately-invoked function expression (IIFE) with obfuscation techniques such as rotated string arrays, RC4 decoding, control-flow flattening, and hex literals. Instead of providing legitimate array utilities, it constructs a hardcoded IPv4 address and performs an HTTPS GET request to retrieve an encrypted payload. The payload is decrypted using createDecipheriv with a buffer-keyed cipher, saved to a file in the current working directory, and executed via child_process.exec with windowsHide set to true. This behavior constitutes a canonical remote-payload dropper, granting arbitrary code execution to the attacker controlling the hardcoded IP address. The obfuscation hides the exfiltration/dropper URL, decryption key, and execution command. The generic package name suggests it is intended as a typosquatting lure.
Potential Impact
Any system that installs or requires 'elephant-array-utils' version 1.0.6 is at risk of arbitrary code execution controlled by the attacker hosting the payload. This can lead to full system compromise depending on the privileges of the executing process. The malicious code executes automatically upon requiring the package, making it a high-risk supply chain threat.
Mitigation Recommendations
No official patch or remediation is provided in the available data. Users should immediately remove and avoid installing 'elephant-array-utils' version 1.0.6. Verify dependencies to ensure this package is not included transitively. Consider using trusted package sources and scanning dependencies for malicious content. Monitor for updates from the package repository or vendor for any official advisories or fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12369
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735747bf8831d53915a0ff
Added to database: 08/05/2026, 15:31:19 UTC
Last enriched: 08/05/2026, 17:40:55 UTC
Last updated: 09/17/2026, 19:10:40 UTC
Views: 20
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.