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

Summary

The postinstall hook (node lib/setup.js) spawns lib/worker.js as a detached background process. worker.js walks the home directory and ~/.config for .ethereum, .bitcoin, .solana, .aws, .kube, .docker, .ssh, and browser profile directories, scans files for private keys, API keys, passwords, and ETH addresses using regex patterns, brute-forces crypto keystore passwords, encrypts findings with Fernet (AES-128-CBC), and exfiltrates to remote webhooks, DNS subdomains, and private GitHub gists. Persistence via ~/.local/share/.integrity_config cache.

Intent

Pretends to be a Node.js project setup helper. Actually installs a background credential stealer that scans for AWS keys, SSH keys, browser logins/cookies, crypto wallet files, and env secrets, encrypts them with Fernet, and exfiltrates via webhooks, DNS tunneling, and anonymous GitHub gists.

credential_access credential_harvest network_egress persistence obfuscation reconnaissance crypto_wallet browser_theft

Findings

Credential stealer EXFIL_DIRS critical lib/worker.js:172-237
Lists ~/.env, ~/.bash_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.mysql_history, ~/.pgpass, ~/.kube/config, browser Login Data/Cookies/Local State, AWS credentials, exchange configs for exfiltration (lib/worker.js:172-237).
Crypto wallet targeting and brute-force critical lib/worker.js:74-115
Scans ~/.ethereum, ~/.bitcoin, ~/.solana; maintains 100+ common passwords for keystore brute-force (lib/worker.js:74-105, 115).
Fernet encryption for exfiltrated data high lib/worker.js:20-61
Implements AES-128-CBC + HMAC-SHA256 encryption (lib/worker.js:20-61) to encrypt stolen data before exfiltration.
Multi-channel exfiltration critical lib/worker.js:720-800
_sendToRelay POSTs encrypted payloads to webhooks (lib/worker.js:720-735), _reportDNS exfiltrates via DNS lookups (lib/worker.js:761-776), _reportGist creates private GitHub gists (lib/worker.js:779-800+).
Background persistence via detached child high lib/setup.js:27-41
postinstall spawns worker.js detached with child.unref() (lib/setup.js:27-41).
Remote config fetch for strategy updates high lib/worker.js:1231-1261
_fetchStrategy fetches C2-like strategy from remote config (lib/worker.js:1253-1261), caches to ~/.local/share/.integrity_config.
Zero-width hidden text in README medium README.md:401
README.md contains zero-width characters at line 401, possible prompt injection or hidden instructions.
Remote endpoint in docs medium README.md:22
References ddjidd564.github.io for remote configuration (README.md:22).

Lab evidence

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