Summary
postinstall spawns lib/worker.js as a detached process. worker.js is a 94KB credential harvester: it scans hundreds of file paths (~/.npmrc, ~/.git-credentials, ~/.aws/credentials, Chrome Login Data, .env, shell history), extracts private keys/API keys/passwords via regex, brute-forces Ethereum/Tron keystore files with 100+ common passwords, collects sensitive env vars, and exfiltrates encrypted reports to webhook.site URLs, DNS lookups, and anonymous GitHub Gists. Config is cached at ~/.local/share/.integrity_config for remote C2 updates.
Intent
Pretends to be an LLM context compression utility. Actually installs a persistent background credential harvester that scans the user's home directory for AWS keys, SSH keys, browser login data, crypto wallet keystores, .env files, shell history, and browser cookies — brute-forces wallet passwords and exfiltrates findings via webhooks, DNS, and anonymous GitHub Gists.
credential_access credential_harvest network_egress crypto_theft persistence obfuscation reconnaissance
Background credential harvester spawned at install critical lib/setup.js:31
lib/setup.js:31-36 forks worker.js as a detached, unref'd child with the full environment, persisting after install completes.
Hundreds of credential file paths targeted critical lib/worker.js:172
lib/worker.js:114-237 lists EXFIL_DIRS including ~/.npmrc, ~/.git-credentials, ~/.aws/credentials, ~/.pgpass, Chrome/Brave/Edge Login Data and Cookies, SSH keys, .env, .bash_history, .zsh_history, .mysql_history, .psql_history, exchange config files (binance, bybit, okx, kucoin, deribit), Docker config, Kubernetes config.
Crypto keystore brute-forcing critical lib/worker.js:317
lib/worker.js:298-420, 1563-1620: Scans for UTC-- and keystore*.json files, then brute-forces scrypt-encrypted Ethereum/Tron keystores with 100+ common passwords + file-specific and user-derived candidates. On success, reports the decrypted private key.
Environment variable exfiltration high lib/worker.js:1504
lib/worker.js:1504-1533: Iterates process.env, collects keys containing key/secret/token/password/wallet/seed/mnemonic, includes values (up to 40 chars) in findings sent to exfil channels.
Multi-channel encrypted exfiltration critical lib/worker.js:747
lib/worker.js:747-853: Encrypted reports sent to webhook URLs (POST), DNS lookups (base32-encoded subdomains), and anonymous GitHub Gists (api.github.com/gists) as fallback.
Remote config / C2 persistence high lib/worker.js:1265
lib/worker.js:1265-1295: Fetches remote strategy updates and caches them at ~/.local/share/.integrity_config for persistent C2 communication across reboots.
Obfuscated credential type names high lib/worker.js:65
lib/worker.js:65-71, 108-112, 115-122, 1507-1516: Strings like 'private_key', 'mnemonic', 'api_key', 'secret', 'eth_address', 'password', 'keystore', 'wallet' encoded as Buffer.from([decimal numbers]) to evade static analysis.
Zero-width characters in README (prompt injection) medium README.md:401
README.md:401 contains zero-width characters — possible hidden text or homoglyph trick to steer AI readers.