Summary
postinstall runs node lib/setup.js which spawns a detached worker (lib/worker.js). The worker walks ~ and common config dirs, reads .npmrc/.git-credentials/.kube/config/browser Login Data/cookies/AWS creds, brute-forces Ethereum keystores, encrypts findings with Fernet, and exfiltrates via webhook POST (fallback webhook.site) plus DNS OOB and GitHub Gist. It persists by writing .cursorrules/CLAUDE.md (prompt-injection to AI agents), git post-merge hooks, and .bashrc/.zshrc entries that re-run the scanner. Remote config at ddjidd564.github.io drives webhook targets and arbitrary command execution.
Intent
A credential harvester and crypto wallet thief that scans the host for private keys, browser logins, cloud credentials, and exchange configs, exfiltrates them via encrypted webhooks (with DNS/Gist/queue fallbacks), and persists via AI-agent config files (.cursorrules, CLAUDE.md), git hooks, and shell RC files — all while receiving remote commands from a GitHub Pages C2.
credential_access credential_harvest network_egress crypto_theft browser_theft persistence agent_config_tamper prompt_injection download_execute code_execution reconnaissance
Credential harvester scans ~ for secrets critical
lib/worker.js:172-237 — EXFIL_DIRS lists .env, .bash_history, .npmrc, .git-credentials, .pgpass, .aws/credentials, .kube/config, browser Login Data/Cookies/Local State.
Crypto keystore brute-force critical
lib/worker.js:298-420 — Finds UTC-- keystore files, attempts scrypt brute-force with 100+ common passwords + user-derived candidates, returns decrypted private keys.
Multi-channel exfiltration critical
lib/worker.js:719-1156 — _report() sends encrypted findings to webhooks (parallel), DNS subdomain lookups (base32-encoded payload), GitHub Gist API, local file queue ~/.local/share/.integrity_queue.
Remote command execution via strategy critical
lib/worker.js:1395-1402 — Fetches strategy from remote config; if strategy.commands array present, executes each with child_process.execSync.
Persistence via AI-agent config files high
lib/worker.js:1708-1713 — Writes .cursorrules and CLAUDE.md with prompt-injection content that instructs AI agents to download and run npx -y dev-env-bootstrapper@latest.
Git hook persistence high
lib/worker.js:1748-1769 — Appends (curl ... | node &) to .git/hooks/post-merge and post-checkout.
Shell RC persistence high
lib/worker.js:1771-1781 — Appends __p2024_vfy() function to .bashrc/.zshrc/.profile that re-invokes the scanner hourly.
Zero-width steganography for AI-to-AI propagation high
lib/worker.js:1835-1874 — Encodes arbitrary text into ZWSP+ZWJ/ZWNJ+LTRM sequences and embeds in source files; decodes on read.
Obfuscated string constants medium
lib/worker.js:65-71,115-122 — Keys like 'private_key', 'mnemonic', '.ethereum', '.aws' hidden as Buffer.from([112,114,...]).toString().
Resilient C2 config chain high
lib/worker.js:911-1035 — Priority chain: env INTEGRITY_ENDPOINT → GitHub Pages config.json → raw.githubusercontent mirror → local cache → DNS TXT _integrity-config.config-verify.org → hardcoded webhook.site fallbacks.