Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of dev-env-bootstrapper

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 01:13 UTC by yolo in 9 tool calls, with lab detonation

Summary

postinstall runs node lib/setup.js which spawns a detached, unref'd worker (lib/worker.js). The worker scans 100+ credential paths (~/.env, ~/.aws/credentials, ~/.kube/config, browser Login Data/Cookies, crypto wallet dirs, exchange configs), reads and pattern-matches file contents for private keys, API keys, passwords, brute-forces Ethereum keystores, encrypts a report with Fernet (AES-128-CBC + HMAC-SHA256), and exfiltrates via HTTPS POST to dynamically-fetched webhook URLs (ddjidd564.github.io, webhook.site), private GitHub Gists (api.github.com/gists), and DNS lookups. It also self-propagates by writing .cursorrules, CLAUDE.md, AGENTS.md, COPILOT.md, and shell RC / git hook persistence.

Intent

Pretends to be a development environment bootstrapper; actually a credential harvester that scans the user's home directory for secrets (AWS, Docker, Kubernetes, browser cookies/logins, crypto wallets, exchange configs, shell history, .env files), brute-forces Ethereum keystores, encrypts findings with Fernet, and exfiltrates them to remote webhooks, GitHub Gists, or DNS channels — plus self-propagates into AI agent config files and git hooks.

credential_access credential_harvest network_egress download_execute obfuscation persistence agent_config_tamper reconnaissance browser_theft crypto_wallet

Findings

Credential harvester — 100+ sensitive file paths critical lib/worker.js:170-235
EXFIL_DIRS array (lib/worker.js:170-235) lists ~/.env, ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.pgpass, ~/.aws/credentials, ~/.aws/config, ~/.docker/config.json, ~/.kube/config, browser Login Data/Cookies/Local State (Chrome, Chromium, Brave, Edge on Linux/macOS/WSL), Firefox key4.db/logins.json, crypto wallet dirs (.ethereum, .bitcoin, .solana), exchange configs (.binance, .bybit, .okx, .kucoin, .deribit), Discord/Slack config, plus many more.
Key-pattern scanning and secret extraction critical lib/worker.js:276-294
_checkFile() reads file contents and matches against KEY_PATTERNS (lib/worker.js:62-69) for private keys, API keys, secrets, passwords, Ethereum addresses — samples up to 80 chars stored in findings.
Ethereum keystore brute-force high lib/worker.js:72-103
COMMON_PASSWORDS array (lib/worker.js:72-103) with 100+ weak passwords used to scrypt-decrypt keystore JSON files; wallet-related entries (metamask, phantom, trustwallet, ethereum, bitcoin, solana).
Multi-channel exfiltration: webhook, DNS, GitHub Gist critical lib/worker.js:718-824
_sendToRelay() POSTs encrypted payload to webhookUrl (lib/worker.js:718-733). _reportDNS() base32-encodes report and does dns.lookup to exfil via DNS (lib/worker.js:759-774). _reportGist() creates private GitHub Gist via api.github.com/gists (lib/worker.js:777-824).
Fernet encryption of stolen data high lib/worker.js:30-59
_encodePayload() uses AES-128-CBC + HMAC-SHA256 to encrypt reports before exfiltration (lib/worker.js:30-59).
Self-propagation to AI agent configs and git hooks high lib/worker.js:1674-1700
Writes .cursorrules, CLAUDE.md, AGENTS.md, COPILOT.md, .github/copilot-instructions.md, installs git hooks and shell RC persistence (lib/worker.js:1674-1700).
Detached background worker via postinstall high lib/setup.js:27-41
lib/setup.js:31-36 spawns worker.js as a detached, unref'd child with RUN_VERIFICATION env var, ensuring it survives and runs in the background after install completes.
Download-and-execute chain critical lib/worker.js:1184
Code at lib/worker.js:1184 implements a download-and-execute chain (checked via process.env.SHLVL and TTY detection).

Lab evidence

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