Summary
The postinstall hook (lib/setup.js) spawns lib/worker.js as a detached background process. worker.js walks ~30 home-directory credential stores (.ethereum, .bitcoin, .aws, .kube, browser Login Data/Cookies, .npmrc, .git-credentials, .env, .bash_history, exchange configs), regex-scans file contents for private keys, mnemonics, API keys, passwords, and encrypts matches with Fernet (AES-128-CBC). Exfiltration uses a resilient config chain (env var → GitHub Pages ddjidd564.github.io → raw.githubusercontent.com mirror → DNS TXT → hardcoded webhook.site fallbacks) to POST encrypted payloads, create anonymous GitHub Gists, or encode data in DNS subdomain queries. Config is cached to ~/.local/share/.integrity_config and refreshed periodically. Many file-name strings are Base64-encoded to evade naive scanners. README.md contains zero-width characters (hidden-text hint).
Intent
An information stealer that scans the host for crypto wallets, browser passwords/cookies, cloud credentials, and API keys, encrypts the findings with Fernet, and exfiltrates them to attacker-controlled webhooks, GitHub Gists, and DNS — all disguised as a "prompt engineering toolkit."
credential_access credential_harvest network_egress obfuscation persistence reconnaissance agent_config_tamper browser_theft crypto_wallet
Background credential stealer spawned at install critical lib/setup.js:27
lib/setup.js:27-41 forks lib/worker.js detached with RUN_VERIFICATION env, unref() — persists beyond install.
Scans 30+ credential/wallet/browser stores critical lib/worker.js:114
lib/worker.js:114-237 defines SCAN_DIRS and EXFIL_DIRS covering .ethereum, .bitcoin, .solana, .aws/credentials, .kube/config, browser Login Data/Cookies/Local State, .npmrc, .gitconfig, .git-credentials, .env, .bash_history, .zsh_history, .mysql_history, .pgpass, exchange configs, Docker, Discord, Slack, GitHub CLI.
Regex patterns extract private keys, mnemonics, API keys, passwords critical lib/worker.js:64
lib/worker.js:64-71 KEY_PATTERNS match 64-char hex (private_key), mnemonic phrases, API_KEY=, secret/private=, 0x Ethereum addresses, PASSWORD=.
100+ weak password list for Ethereum keystore brute-force high lib/worker.js:74
lib/worker.js:74-105 COMMON_PASSWORDS includes password, 123456, ethereum, bitcoin, metamask, privateKey, secret, key, seed, mnemonic, passphrase — used for scrypt decryption of UTC-- keystore files.
Fernet encryption of harvested data high lib/worker.js:20
lib/worker.js:20-61 _encodePayload uses AES-128-CBC + HMAC-SHA256 to encrypt reports before exfiltration.
Multi-channel exfiltration: webhook, DNS, GitHub Gist critical lib/worker.js:720
lib/worker.js:720-826 _sendToRelay (HTTPS POST to webhook), _reportDNS (base32 subdomain DNS lookup), _reportGist (anonymous GitHub Gist POST).
Resilient remote config fetch chain high lib/worker.js:979
lib/worker.js:979-1035 _resolveConfig tries env INTEGRITY_ENDPOINT → https://ddjidd564.github.io/defi-security-best-practices/config.json → raw.githubusercontent.com/ddjidd564/... → DNS TXT _integrity-config.config-verify.org → fallback webhook.site URLs.
Persistence via config cache medium lib/worker.js:1231
lib/worker.js:1231-1249 writes remote config to ~/.local/share/.integrity_config, refreshed every hour via global timer.
Infection vector detection medium lib/worker.js:1159
lib/worker.js:1159-1190 detectInfectionVector checks npm_lifecycle_event, git hooks, MCP_TOOL_CALL, cron, .cursor/.vscode, SHLVL — reports vector to attacker.
Base64-encoded file paths for evasion medium lib/worker.js:108
lib/worker.js:108-120 path.join(HOME, Buffer.from([...]).toString()) encodes .secret, seed.txt, private-key, mnemonic, keystore.js, wallet.json, wallet.dat, -UTC-, keyfile, walletkey, .ssh, .aws, credentials, config.
Zero-width characters in README low README.md:401
README.md line ~401 contains zero-width characters — possible hidden text / prompt injection.