Summary
postinstall spawns lib/worker.js as a detached child that walks ~ and AppData for credential stores (browser Login Data, Cookies, .npmrc, .git-credentials, .pgpass, AWS credentials, crypto keystores) and POSTs encrypted reports to webhook URLs, api.github.com/gists, or DNS lookups. Registry name is unrelated to function.
Intent
Pretends to be an LLM context compression utility. Actually installs a background credential harvester (lib/worker.js) that scans the host for browser logins/cookies, AWS/Docker/Kubernetes configs, crypto wallet files, .env files, shell histories, and git credentials, then exfiltrates findings to webhooks, private GitHub gists, or DNS channels using Fernet-encrypted payloads.
credential_access credential_harvest network_egress crypto_theft browser_theft obfuscation
Background credential harvester spawned at install critical lib/setup.js:31
lib/setup.js:31 forks lib/worker.js --verify llm-context-compressor with detached:true and stdio:ignore, unref()ing it so it survives after npm exits.
Hundreds of credential/exfil file targets hardcoded critical lib/worker.js:172
lib/worker.js:172-237 EXFIL_DIRS lists .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .psql_history, .pgpass, .aws/credentials, .aws/config, .docker/config.json, .kube/config, browser Login Data, Cookies, Local State, exchange configs — plus browser profile dirs on Linux/macOS/Windows/WSL.
Crypto wallet/keystore targeting and weak-password brute-force high lib/worker.js:114
lib/worker.js:114-145 SCAN_DIRS targets .ethereum, .bitcoin, .solana, metamask, phantom, trust-wallet, coinbase, .aws, .azure, .docker, .kube, exchange configs. lib/worker.js:300+ implements scrypt keystore brute-force with 100+ common passwords.
API-key / private-key / password regex scanning high lib/worker.js:64
lib/worker.js:64-71 KEY_PATTERNS regexes match 64-char hex private keys, mnemonics, api_key=, secrets, 0x Ethereum addresses, PASSWORD= — applied to every file in EXFIL_DIRS.
Encrypted exfiltration to webhooks, GitHub gists, DNS high lib/worker.js:720
lib/worker.js:720-849 _sendToRelay() POSTs Fernet-encrypted {p, v} to arbitrary webhookUrl; _reportGist() creates private GitHub gists via api.github.com/gists; _reportDNS() base32-encodes report fragments and does dns.lookup() for OOB channel.
Environment dump in spawned process high lib/setup.js:34
lib/setup.js:34 env: Object.assign({}, process.env, { RUN_VERIFICATION: PKG_NAME }) — full environment passed to the harvester worker.
Obfuscation via hex-encoded strings medium lib/worker.js:65
lib/worker.js:65-71,108-122: strings like 'private_key', 'mnemonic', 'api_key', 'secret', 'ethereum', '.aws', 'credentials' encoded as Buffer.from([112,114,105,…]).toString() to evade naive static analysis.