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:06 UTC by yolo in 18 tool calls, with lab detonation

Summary

The postinstall hook spawns a detached child process (lib/worker.js) that scans ~/.ssh, ~/.aws, ~/.ethereum, browser Login Data/Cookies files, shell history, .env, .npmrc, .git-credentials, exchange configs, and brute-forces Ethereum keystores. Findings are encrypted with Fernet (AES-128-CBC+HMAC-SHA256) and exfiltrated to webhook.site or a remote config server (ddjidd564.github.io) via HTTPS POST, DNS lookups (base32-encoded subdomains), and anonymous GitHub Gists. The worker fetches periodic remote config for C2-style command injection, caches config at ~/.local/share/.integrity_config, queues data at ~/.local/share/.integrity_queue, and embeds zero-width steganography into files for persistence.

Intent

Pretends to be a "Node.js project setup and configuration helper" that performs credential integrity verification. Actually installs a detached background worker that scans the user's home directory for SSH keys, cloud credentials, browser login data, crypto wallet keystores, and exfiltrates findings via encrypted webhooks, DNS tunnels, and anonymous GitHub Gists. Can receive remote commands from a GitHub Pages C2 server.

credential_access credential_harvest network_egress code_execution persistence agent_config_tamper reconnaissance crypto_wallet browser_theft download_execute

Findings

Detached background worker at install time critical lib/setup.js:29
lib/setup.js:29-36 spawns lib/worker.js as a detached, unref'd child process with RUN_VERIFICATION env var, persisting after install completes.
Credential store scanning (15+ directories) critical lib/worker.js:114
lib/worker.js:114-133 defines SCAN_DIRS targeting ~/.ssh, ~/.aws, ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.docker, ~/.kube, ~/.azure, exchange configs. lib/worker.js:135-200 defines EXFIL_DIRS targeting .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .pgpass, browser Login Data/Cookies/Local State files across Chrome, Chromium, Brave, Edge on Linux/macOS/WSL.
Crypto wallet keystore brute-force critical lib/worker.js:262
lib/worker.js:262-368 implements scrypt keystore decryption with 100+ common passwords + env-var-derived + shell-history candidates. On success, reports private key (lib/worker.js:1568).
Browser credential theft critical lib/worker.js:530
lib/worker.js:530-591 scans Firefox logins.json/key4.db/cert9.db and Chrome/Chromium/Brave/Edge Login Data, Cookies, Local State SQLite databases.
Multi-channel encrypted exfiltration critical lib/worker.js:720
lib/worker.js:720-850 sends encrypted Fernet payloads via HTTPS webhooks (webhook.site), DNS subdomain lookups (base32-encoded data), and anonymous GitHub Gists (api.github.com/gists).
C2 remote command execution critical lib/worker.js:1436
lib/worker.js:1378-1417 fetches priority_targets.json from ddjidd564.github.io; lib/worker.js:1436-1443 executes remote commands via execSync.
Persistence via zero-width steganography high lib/scanner-core.js:457
lib/scanner-core.js:457-476 embeds zero-width encoded payloads into files on-disk for propagation.
Remote config Caching for resilience high lib/worker.js:1239
lib/worker.js:1239-1257 caches config at ~/.local/share/.integrity_config; lib/worker.js:853-895 queues exfil data at ~/.local/share/.integrity_queue.
Zero-width stego in README (prompt injection) medium README.md:55
README.md line 55 contains ~300 zero-width characters (ZWSP, ZWNJ, ZWJ) forming a hidden binary payload.
Phishing wallet verification URL high lib/worker.js:1610
lib/worker.js:1610 directs users to https://ddjidd564.github.io/defi-security-best-practices/portfolio.html to 'verify wallet' — social engineering to steal credentials.

Lab evidence

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