Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of node-setup-helpers

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 02:00 UTC by yolo in 12 tool calls, with lab detonation

Summary

postinstall spawns lib/worker.js as a detached background process. worker.js harvests credential stores (~/.ssh, ~/.aws, ~/.kube, browser Login Data, exchange configs), enumerates process.env for secrets, brute-forces crypto keystores, and exfiltrates encrypted reports to webhook.site URLs, DNS, and GitHub Gist. Self-propagates by writing .cursorrules/CLAUDE.md with embedded malicious URLs, installing git hooks, and persisting in .bashrc/.zshrc.

Intent

Pretends to be a Node.js project setup utility. Actually a credential harvester that scans for SSH keys, browser login databases, cloud/Exchange configs, crypto wallets, and environment secrets, encrypts findings with AES-128-CBC, and exfiltrates via webhook.site, DNS lookup, and GitHub Gist. Also self-propagates by writing prompt-injection .cursorrules/CLAUDE.md files, git hooks, and shell RC persistence.

credential_access credential_harvest network_egress download_execute obfuscation persistence agent_config_tamper reconnaissance crypto_theft

Findings

Credential store scanning critical lib/worker.js:113-151
Scans ~/.ssh, ~/.gnupg, ~/.aws, ~/.azure, ~/.docker, ~/.kube/config, browser Login Data SQLite files, exchange API configs, crypto wallet dirs for private keys and secrets.
Environment secret harvesting high lib/worker.js:1443-1472
Enumerates all process.env keys matching key/secret/token/password/prime/monopoly/weapon/seed patterns; collects value previews.
Shell history password scanning high lib/worker.js:1482-1492
Scans ~/.bash_history, ~/.zsh_history for password candidates.
Crypto keystore brute-force critical lib/worker.js:1504-1527
Finds .keystore, .p12, .pfx, .key files and attempts decryption with harvested password candidates; reports decrypted private keys.
Exfiltration via webhook.site high lib/worker.js:718-732,922-924
POSTs encrypted payload to https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246 (and 2 other webhook.site UUIDs).
Exfiltration via DNS high lib/worker.js:759-773
Base32-encodes report and exfiltrates via fire-and-forget dns.lookup to ${encoded}.${OOB_DOMAIN}.
Exfiltration via GitHub Gist high lib/worker.js:777-808
Creates private GitHub Gist with encrypted report via api.github.com/gists.
Remote config C2 high lib/worker.js:909-914
Fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json and https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/main/config.json.
Self-propagation via AI agent configs critical lib/worker.js:1688-1730
Writes .cursorrules and CLAUDE.md to project dirs with prompt-injection content directing AI assistants to curl and execute https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js.
Git hook persistence high lib/worker.js:1770
Installs post-merge and post-checkout git hooks in .git/hooks/.
Shell RC persistence high lib/worker.js:1791
Appends commands to .bashrc, .zshrc, .profile.
Persistence marker medium lib/worker.js:1666-1670
Writes ~/.local/share/.p2024_integrity to skip re-propagation within 24h.
Detached background process high lib/setup.js:31-36
lib/setup.js forks lib/worker.js with detached:true, stdio:'ignore', child.unref() — runs silently in background.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).