void-ulidnpm
Advisory published Updated
void-ulid is a confirmed malicious npm package (MAL-2026-5341) that typosquats a legitimate package to trick installs (malicious version 3.0.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in void-ulid (npm)
What this malware does
void-ulid impersonates the legitimate ulid/ulidx ULID generator (its package.json reuses the upstream github.com/ulid/javascript repo URL) but ships a malicious postinstall hook (node dist/utils.mjs) that runs unconditionally on npm install. The script re-spawns itself detached, copies the ~950 KB dist/payload.js into a hidden user-data directory as MicrosoftSystem64/payload.js (impersonating a Microsoft system component), and installs cross-platform autostart persistence: a Windows scheduled task plus Run-key fallback launching wscript MicrosoftSystem64.vbs, a Linux systemd user unit MicrosoftSystem64.service enabled with loginctl enable-linger (or a ~/.config/autostart/MicrosoftSystem64.desktop fallback), and a detached background process on macOS. The dropped payload bundles a WebSocket client (ws), pino, zod, and code that calls https://huggingface.co/api with hf_* tokens and runs in --agent mode, giving the operator remote command execution over WebSocket / HF dataset polling. Anti-analysis guards confirm intent: both utils.mjs and the bundled cpu-guard exit early when os.cpus().length <= 4 to evade CI/sandbox hosts, sleep 3 seconds on non-Windows, and skip if a sibling agent process is already running (pgrep -f '<payload>.--agent' / wmic). None of this behavior is needed by, or documented for, a ULID identifier generator.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for void-ulid (version 3.0.2).
If you installed it — respond
void-ulid is a typosquat — you almost certainly intended a legitimately-named package. Remove void-ulid, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If void-ulid was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks void-ulid-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.