Skip to main content

Malicious code in elephant-array-utils (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:32:11 UTC)
Source: GCVE Database
Product: elephant-array-utils

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

npmghsa
elephant-array-utils
Affected versions
=1.0.6

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

AILast updated: 08/05/2026, 17:40:55 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses