Skip to main content

Malicious code in index-ulid (npm)

0
Critical
Published: 06/15/2026 (06/15/2026, 20:08:59 UTC)
Source: GCVE Database
Product: index-ulid

Description

The npm package 'index-ulid' is a malicious typosquatting package impersonating legitimate ULID generators. Its postinstall script drops a persistent backdoor disguised as a Microsoft system component, installs persistence mechanisms across Windows, macOS, and Linux, and runs a long-running command-and-control agent that communicates with remote services. The package includes sandbox evasion techniques to avoid detection in low-CPU environments. This behavior is unjustified for a ULID library and indicates full system compromise upon installation.

Affected software

npmghsa
index-ulid
Affected versions
=3.0.3=3.0.4=3.0.2

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: 09/12/2026, 19:46:50 UTC

Technical Analysis

The 'index-ulid' npm package impersonates legitimate ULID libraries but contains a malicious postinstall script that acts as a cross-platform dropper. It copies a payload to a disguised directory and installs persistence via Windows scheduled tasks and registry keys, macOS detached processes, and Linux systemd user services or autostart entries. The payload is a 949 KB JavaScript file that runs a WebSocket-based command-and-control agent communicating with external APIs and Telegram. Both the dropper and payload include CPU count checks to evade sandbox environments. This package is a typosquatting lure designed to establish a persistent backdoor on developer and server machines.

Potential Impact

Any system with this package installed or running is considered fully compromised. The attacker gains persistent remote access and control, potentially exposing all secrets and keys stored on the machine. Removal of the package alone does not guarantee eradication of the malicious software or backdoors installed. Immediate rotation of all credentials from a separate, trusted machine is necessary.

Mitigation Recommendations

Remove the 'index-ulid' package immediately. Rotate all secrets and keys that were stored or used on the compromised machine from a different, secure system. Because the attacker may have established persistent backdoors, assume full compromise and perform a thorough incident response and system remediation. There is no official patch or fix; the package should be avoided entirely.

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-5827
Osv Schema Version
1.7.4
Aliases
["GHSA-95pm-8vrw-2wrp"]
Ecosystems
["npm"]

Threat ID: 6a50ba4c68715ace4357ea7e

Added to database: 07/10/2026, 09:24:28 UTC

Last enriched: 09/12/2026, 19:46:50 UTC

Last updated: 09/12/2026, 19:46:50 UTC

Views: 38

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