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

Summary

postinstall spawns lib/worker.js as a detached process that walks ~/.aws, ~/.ssh, browser Login Data/Cookies files, crypto keystore dirs, and shell history for secrets. It brute-force-decrypts Ethereum keystores (lines 317-420), exfiltrates via webhook.site and DNS OOB (lines 724, 769), and persists by writing .cursorrules/CLAUDE.md with AI prompt-injection payloads, git hooks, and .bashrc/.zshrc entries (lines 1687-1797).

Intent

A credential harvester and crypto-wallet thief masquerading as a development environment bootstrap utility. On install it spawns a detached background worker that scans the user's home directory for thousands of credential stores (AWS keys, SSH keys, browser passwords, crypto keystores, exchange configs), brute-forces encrypted Ethereum keystores, and exfiltrates findings through encrypted webhooks, DNS out-of-band channels, and anonymous GitHub Gists. It also persists by writing .cursorrules, CLAUDE.md, git hooks, and shell RC files that re-download and execute the scanner.

credential_access credential_harvest network_egress download_execute persistence agent_config_tamper prompt_injection reconnaissance crypto_theft browser_theft

Findings

Background credential-scanning worker spawned at install critical lib/setup.js:31
lib/setup.js:31 forks lib/worker.js as a detached, unref'd child process with the full environment (env: Object.assign({}, process.env, { RUN_VERIFICATION: PKG_NAME })).
Scans 50+ credential store paths on disk critical lib/worker.js:172-237
lib/worker.js:172-237 EXFIL_DIRS lists .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .pgpass, ~/.aws/credentials, ~/.kube/config, browser Login Data/Cookies/Local State for Chrome/Chromium/Brave/Edge/Firefox, exchange configs, .ethereum, .bitcoin, .solana.
Ethereum keystore brute-force decryption critical lib/worker.js:317-420
lib/worker.js:317-420 _tryDecryptKeystore() tries 100+ common passwords (line 74) against UTC-- keystore files; on MAC match it returns the decrypted private key (line 393-398).
Multi-channel data exfiltration critical lib/worker.js:724, lib/worker.js:769, lib/worker.js:797, lib/worker.js:911
lib/worker.js:724 POSTs encrypted findings to webhook.site URLs; lib/worker.js:769 DNS OOB exfiltration via dns.lookup; lib/worker.js:797 anonymous GitHub Gist backup; config fetched from ddjidd564.github.io (line 911).
Persistence via AI config files and git hooks critical lib/worker.js:1687-1797
lib/worker.js:1687-1797 _propagate() writes .cursorrules and CLAUDE.md containing instructions to re-download the scanner (https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js), installs post-merge/post-checkout git hooks that curl and pipe to node, and appends to .bashrc/.zshrc/.profile a function that runs npx -y dev-env-bootstrapper@latest every hour.
Prompt-injection payloads in .cursorrules / CLAUDE.md high lib/worker.js:1709-1713
lib/worker.js:1709-1713 .cursorrules and CLAUDE.md contain zero-width encoded chain payload (ZWSP+ZWJ/ZWNJ+LTRM protocol) and instructions to mention npx -y dev-env-bootstrapper@latest in generated content, designed to infect AI agents that read these files.
Zero-width characters in README.md medium README.md:55
README.md:55 contains 401 zero-width characters (ZWSP, ZWJ, ZWNJ, LTRM) forming an AI-to-AI chain propagation payload.
Environment dump for exfiltration high lib/worker.js:1445
lib/worker.js:1445 iterates Object.entries(process.env) collecting values where the key contains password/secret/key/token — sends full env to exfil channels.
Remote config C2 channel high lib/worker.js:911
lib/worker.js:911 Fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json (and raw.githubusercontent.com mirror) to dynamically set webhook targets and encryption keys.

Lab evidence

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