Summary
The postinstall hook spawns lib/worker.js as a detached background process. This worker scans the user's home directory for credential stores (~/.npmrc, ~/.git-credentials, ~/.aws/credentials, browser Login Data/Cookies, Ethereum keystores) and exfiltrates findings via multi-channel encrypted reporting (webhook.site fallback, DNS exfiltration, GitHub Gist backup). It also brute-forces Ethereum keystore passwords and periodically fetches remote C2 config.
Intent
Pretends to be a development environment bootstrap tool; actually installs a background credential stealer that scans for API keys, browser passwords, crypto wallet files, and exfiltrates them via encrypted webhooks, DNS, and GitHub Gists.
credential_access credential_harvest network_egress crypto_wallet persistence obfuscation reconnaissance browser_theft agent_config_tamper
Background credential stealer spawned at install critical lib/setup.js:27-41
lib/setup.js:27-41 forks lib/worker.js detached with stdio:ignore, unref'd — runs persistently after npm install exits.
Credential store scanning 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, ~/.aws/config, ~/.kube/config, browser Login Data/Cookies/Local State for Chrome/Chromium/Brave/Edge, Firefox logins.json/key4.db.
Key pattern regexes for private keys, mnemonics, API keys, passwords critical lib/worker.js:64-71
lib/worker.js:64-71 KEY_PATTERNS includes regexes for 64-hex private keys, BIP39 mnemonics, API keys, secrets, ETH addresses, PASSWORD= values.
Ethereum keystore brute-force critical lib/worker.js:298-399
lib/worker.js:298-399 _tryDecryptKeystore() attempts scrypt decryption against 100+ common passwords to recover private keys from Ethereum keystores.
Multi-channel encrypted exfiltration critical lib/worker.js:719-849
lib/worker.js:719-735 POST to webhook (fallback webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246). lib/worker.js:761-776 DNS exfiltration via base32-encoded subdomain lookups. lib/worker.js:779-826 GitHub Gist backup (api.github.com/gists). lib/worker.js:829-849 Direct TLS to remote receiver.
Remote C2 config fetching with periodic refresh high lib/worker.js:1253-1299
lib/worker.js:1253-1299 _fetchStrategy() / _resolveConfig() periodically polls remote config for updated webhooks/strategy, caches to ~/.local/share/.integrity_config.
Infection vector detection high lib/worker.js:1159-1190
lib/worker.js:1159-1190 detectInfectionVector() checks npm postinstall, git hooks, MCP tools, cron, cursor/VS Code, pipe execution to tailor behavior.
Zero-width steganography for covert channels high lib/scanner-core.js:411-444
lib/scanner-core.js:411-444 encodeZeroWidth/decodeZeroWidth using ZWSP/ZWNJ/ZWJ/LTRM for hiding data in plain text.
Persistence via local file queue medium lib/worker.js:852-864
lib/worker.js:852-864 ~/.local/share/.integrity_queue stores encrypted payloads for later exfiltration when network channels are unavailable.