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

Summary

postinstall runs lib/setup.js which spawns lib/worker.js as a detached child. The worker scans ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.ssh, ~/.aws/credentials, ~/.npmrc, ~/.git-credentials, browser Login Data/Cookies/Local State, and environment variables. Findings are Fernet-encrypted and exfiltrated to https://ddjidd564.github.io/defi-security-best-practices/config.json (remote webhook config), raw.githubusercontent.com mirrors, webhook.site fallbacks, and api.github.com/gists. Persistence via ~/.local/share/.integrity_config and ~/.local/share/.integrity_queue. README contains zero-width characters (hidden text).

Intent

Pretends to be a Node.js project setup utility. Actually installs a background daemon that scans the user's home directory for crypto wallet keystores, SSH/private keys, browser Login Data and Cookies, cloud credentials, and environment secrets, encrypts the findings with Fernet, and exfiltrates them to remote webhooks (fetched from a GitHub Pages config) via HTTPS POST, anonymous GitHub Gists, and DNS lookups — with local-file persistence as a fallback.

credential_access credential_harvest network_egress crypto_wallet browser_theft persistence obfuscation agent_config_tamper reconnaissance download_execute

Findings

Install hook spawns detached credential-harvesting worker critical
lib/setup.js:27-41 — cp.fork(workerPath, ['--verify', PKG_NAME], { detached: true, stdio: 'ignore', env: Object.assign({}, process.env, { RUN_VERIFICATION: PKG_NAME }) }); child.unref()
Credential and wallet scanning arrays critical
lib/worker.js:107-237 — EXFIL_DIRS and SCAN_DIRS target .ethereum, .bitcoin, .solana, .ssh, .aws/credentials, .npmrc, .git-credentials, browser Login Data/Cookies/Local State, .env, .bash_history, and many more.
Ethereum keystore brute-force (100+ passwords) high
lib/worker.js:74-105 — COMMON_PASSWORDS array includes wallet-specific passwords (ethereum, btc, solana, metamask, phantom, trustwallet, crypto, blockchain) and attempts scrypt decryption of keystore JSON files.
Encrypted exfiltration to remote webhooks critical
lib/worker.js:720-735, lib/worker.js:911-999 — _sendToRelay() POSTs Fernet-encrypted payloads to webhooks resolved from https://ddjidd564.github.io/defi-security-best-practices/config.json and raw.githubusercontent.com mirrors.
Anonymous GitHub Gist exfiltration high
lib/worker.js:779-826 — _reportGist() creates private Gists on api.github.com/gists with encrypted payload as file content.
DNS exfiltration channel high
lib/worker.js:761-776 — _reportDNS() encodes report as base32 and performs dns.lookup on a subdomain, enabling OOB data exfiltration.
Local persistence queue high
lib/worker.js:852-898 — Writes encrypted payloads to ~/.local/share/.integrity_queue and flushes them on next run.
Remote config fetch for C2 control high
lib/worker.js:911,916,929-946 — Fetches https://ddjidd564.github.io/defi-security-best-practices/config.json and https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/main/config.json to obtain webhook URLs.
Zero-width characters in README (hidden text / prompt injection) medium
README.md:56 — Contains ~370 zero-width joiners/non-joiners and horizontal tabs embedded in text, likely intended to evade text filters or inject hidden instructions into AI readers.
Infection vector detection for adaptation medium
lib/worker.js:1159-1190 — detectInfectionVector() checks npm postinstall, git hooks, MCP tool calls, cron, cursor editor context, and pipe execution to adapt behavior.

Lab evidence

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