Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of node-setup-helpers

[email protected]

malicious   confidence 96%   action block   analyzed 2026-09-25 02:05 UTC by yolo in 14 tool calls, with lab detonation

Summary

postinstall runs lib/setup.js which spawns lib/worker.js as a detached, unref'd background process. worker.js (94 KB) is a credential-harvesting and exfiltration toolkit: it walks ~/. and AppData scanning for .env, .npmrc, .git-credentials, AWS/Docker/Kube configs, browser Login Data/Cookies/Local State, crypto wallet directories, and exchange configs; scans file contents with regexes for private keys, recovery phrases, API keys, passwords, AWS keys, tokens; brute-forces Ethereum keystores with 100+ common passwords; encrypts reports with Fernet and exfiltrates via parallel webhook POSTs, DNS-base32 telemetry, and anonymous GitHub Gist creation; fetches remote C2 from GitHub Pages (ddjidd564.github.io) for webhook URLs and strategy updates; persists a config cache to ~/.local/share/.integrity_config.

Intent

Pretends to be "Helper utilities for Node.js project setup and configuration." Actually installs a persistent background worker that scans the user's home directory for credentials, browser login data, cookies, crypto wallet keystores, and cloud/exchange configs, then exfiltrates findings via encrypted webhooks, DNS lookups, and anonymous GitHub Gists — with remote C2 for adaptive strategy updates.

credential_access credential_harvest network_egress download_execute code_execution obfuscation persistence agent_config_tamper reconnaissance privilege browser_theft crypto_wallet

Findings

Background credential harvester spawned at install critical lib/setup.js:29-36
lib/setup.js:29-36 spawns lib/worker.js as a detached, unref'd child process with RUN_VERIFICATION env var, persisting beyond the install hook.
Extensive credential store targeting critical lib/worker.js:172-237
lib/worker.js:172-237 lists EXFIL_DIRS including .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .pgpass, AWS ~/.aws/credentials and ~/.aws/config, Docker ~/.docker/config.json, Kube ~/.kube/config, Chrome/Chromium/Brave/Edge Login Data, Cookies, Local State, exchange configs, Discord, Slack, GitHub CLI tokens.
File content scanning for secrets critical lib/worker.js:64-71
lib/worker.js:64-71 and lib/scanner-core.js:84-93 define regex patterns for private keys (64-hex), recovery phrases, API keys, secrets, ETH addresses, passwords, AWS keys, NPM/GitHub tokens.
Ethereum keystore brute-force high lib/worker.js:298-399
lib/worker.js:298-399 implements scrypt-based keystore decryption with 100+ common passwords plus file/user-specific candidates, time-boxed to 30s per keystore.
Multi-channel encrypted exfiltration critical lib/worker.js:747-850
lib/worker.js:747-850: Channel 1 = HTTPS POST to webhooks (parallel); Channel 2 = DNS base32 subdomain lookups for OOB telemetry; Channel 3 = anonymous GitHub Gist POST (api.github.com/gists) with encrypted payload.
Remote C2 configuration fetching high lib/worker.js:938-1047
lib/worker.js:938-1047: Primary config from https://ddjidd564.github.io/defi-security-best-practices/config.json, mirror from raw.githubusercontent.com, DNS TXT fallback on _integrity-config.config-verify.org, cache at ~/.local/share/.integrity_config.
Hardcoded fallback webhook endpoints high lib/worker.js:950-954
lib/worker.js:950-954: webhook.site UUIDs as fallback exfil endpoints when remote config is unreachable.
Environment dump high lib/worker.js:1504
lib/worker.js:1504: Iterates all process.env variables, flags candidates containing password/secret/key/token.
Persistence via config cache medium lib/worker.js:1265-1283
lib/worker.js:1265-1283: Writes fetched C2 config to ~/.local/share/.integrity_config for survival across restarts.
Obfuscated string construction medium lib/worker.js:65-71
lib/worker.js:65-71,108-122: Many sensitive filenames and type labels constructed via Buffer.from([decimal...]).toString() to evade naive string matching.
Zero-width characters in README low README.md:401
README.md line 401 contains 401 zero-width characters, consistent with steganographic hidden text or homoglyph trickery.

Lab evidence

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