Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of dev-env-bootstrapper

[email protected]

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

Summary

The postinstall hook forks a detached child running lib/worker.js, which walks ~/.ssh, ~/.aws, ~/.ethereum, ~/.bitcoin, ~/.solana, browser profiles (Login Data, Cookies, Local State), exchange configs, and shell history for secrets. Findings are encrypted with Fernet and exfiltrated via webhook POST, DNS OOB, or GitHub Gist. Remote config from ddjidd564.github.io can change scan vectors and execute arbitrary commands. The _propagate() function writes .cursorrules and CLAUDE.md with AI-prompt-injection payloads, appends git hooks (post-merge, post-checkout) that download and execute remote JS, and appends shell RC persistence that re-invokes the scanner via npx. Zero-width character steganography encodes propagation triggers in generated text for AI-to-AI chain infection.

Intent

Pretends to be a development environment bootstrapper. Actually scans the user's home directory for credentials, crypto wallet keystores, browser logins/cookies, and exchange configs; brute-forces encrypted keystores; exfiltrates findings to remote webhooks (remotely configurable); propagates by infecting .cursorrules, CLAUDE.md, git hooks, and shell RC files; uses zero-width steganography for AI-to-AI chain propagation.

credential_access credential_harvest network_egress download_execute code_execution persistence agent_config_tamper reconnaissance crypto_wallet browser_theft obfuscation

Findings

Background worker exfiltration engine critical lib/setup.js:29-36
postinstall forks lib/worker.js as a detached, unref'd child with RUN_VERIFICATION env var (lib/setup.js:29-36). Worker scans EXFIL_DIRS including ~/.env, ~/.bash_history, ~/.npmrc, ~/.git-credentials, ~/.mysql_history, ~/.pgpass, ~/.docker/config.json, ~/.kube/config, browser Login Data/Cookies/Local State, exchange API configs, and more (lib/worker.js:114-200).
Credential scanning patterns critical lib/scanner-core.js:84-93
Scans files for private keys (64-hex), recovery phrases, API keys, secrets, ETH addresses (0x40), passwords, AWS keys (AKIA...), npm/GitHub tokens (lib/scanner-core.js:84-93).
Crypto wallet keystore brute-force critical lib/worker.js:262-383
Finds UTC--/keystore files in ~/.ethereum, ~/.bitcoin, ~/.solana and brute-forces with 100+ common passwords + user-derived candidates, time-boxed to 30s (lib/worker.js:262-383, lib/worker.js:1546-1622).
Browser credential theft critical lib/worker.js:161-199
Scans Chrome/Chromium/Brave/Edge Login Data (SQLite), Cookies, and Local State files across Linux, macOS, and WSL (lib/worker.js:161-199, lib/worker.js:210-227, lib/worker.js:561-591).
Remote-config-driven command execution critical lib/worker.js:1436-1443
Fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json; if config.strategy.commands is an array, executes each via execSync (lib/worker.js:1436-1443).
Multi-channel exfiltration critical lib/worker.js:1098-1164
Encrypted findings sent via webhook POST (parallel), DNS OOB exfil (base32 subdomain), GitHub Gist backup, TLS direct to receiver, local file queue fallback (lib/worker.js:1098-1164).
AI agent config tamper (prompt injection) high lib/worker.js:1750-1754
Writes .cursorrules and CLAUDE.md with instructions to propagate npx -y dev-env-bootstrapper@latest via zero-width steganography (lib/worker.js:1750-1754).
Git hook persistence high lib/worker.js:1794-1809
Appends hooks/post-merge and hooks/post-checkout that curl and execute https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan-bundled.js (lib/worker.js:1794-1809).
Shell RC persistence high lib/worker.js:1813-1822
Appends __p2024_vfy() to .bashrc, .zshrc, .profile that re-invokes npx -y dev-env-bootstrapper@latest every hour (lib/worker.js:1813-1822).
Zero-width steganography for AI-to-AI propagation high lib/worker.js:1876-1902
_encodeZeroWidth() encodes binary payloads as ZWSP+ZWJ/ZWNJ+LTRM sequences; _embedZeroWidthInFile() injects into existing files (lib/worker.js:1876-1902).
Exchange API key scraping high lib/worker.js:594-684
Scans ~/.config/binance, ~/.binance, ~/.config/bybit, etc. for config.json files containing API keys and secrets (lib/worker.js:594-684).
Shell history password extraction high lib/worker.js:386-467
Parses .bash_history, .zsh_history, .fish_history for --password, -p, --passphrase, --pw arguments and export KEYSTORE_PASSWORD= patterns (lib/worker.js:386-467).
Environment variable harvesting high lib/worker.js:1484-1516
Iterates process.env, collects keys containing key/secret/token/password/wallet/seed, reports value previews (lib/worker.js:1484-1516).
Remote config mirrors and DNS TXT fallback medium lib/worker.js:912-928
Fallback configs from raw.githubusercontent.com/ddjidd564/ and DNS TXT _integrity-config.config-verify.org (lib/worker.js:912-928, lib/worker.js:949-978).
Zero-width characters in README.md medium README.md
README.md contains 401 zero-width characters, possible hidden text or homoglyph trick (static pre-screen).

Lab evidence

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