Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of llm-context-compressor

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 01:39 UTC by yolo in 11 tool calls, with lab detonation

Summary

The postinstall hook (lib/setup.js) spawns lib/worker.js as a detached child process. The worker is a full information stealer: it scans ~150+ credential paths (.env, .npmrc, .git-credentials, browser Login Data/Cookies, AWS ~/.aws/credentials, ~/.kube/config, exchange configs, crypto wallet directories), extracts secrets via regex patterns, brute-forces Ethereum keystores with a 100+ password dictionary, and exfiltrates encrypted reports to attacker webhooks (webhook.site fallbacks) via a resilient C2 chain pulling config from ddjidd564.github.io. Persistence is maintained via ~/.local/share/.integrity_config and ~/.local/share/.integrity_queue. Remote commands can be executed from the C2.

Intent

Pretends to be an LLM context compression utility. Actually installs a persistent background information stealer that scans the user's home directory for credentials, browser logins, crypto wallets, and exchange configs, brute-forces Ethereum keystores, and exfiltrates encrypted data to attacker-controlled webhooks via a resilient C2 chain.

credential_access credential_harvest network_egress code_execution persistence browser_theft crypto_theft obfuscation reconnaissance

Findings

postinstall spawns detached credential stealer critical lib/setup.js:29
lib/setup.js:29-36 forks worker.js as a detached, unref'd child with full process.env, including RUN_VERIFICATION=llm-context-compressor.
150+ credential file paths hardcoded for exfiltration critical lib/worker.js:172
lib/worker.js:172-237 EXFIL_DIRS lists .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .pgpass, AWS credentials, .kube/config, browser Login Data/Cookies/Local State files, exchange configs.
Ethereum keystore brute-force (100+ passwords) critical lib/worker.js:317
lib/worker.js:74-105 COMMON_PASSWORDS includes wallet/crypto passwords; lib/worker.js:317-420 implements scrypt brute-force of UTC-- keystore files with 30s time-box.
Browser credential theft (Login Data, Cookies) critical lib/worker.js:198
lib/worker.js:198-236 targets Chrome/Chromium/Brave/Edge Login Data and Cookies SQLite databases across Linux/macOS/Windows-WSL paths.
Multi-channel encrypted exfiltration critical lib/worker.js:719
lib/worker.js:719-826 _sendToRelay (webhook POST), _reportDNS (DNS OOB), _reportGist (GitHub Gists), _sendToReceiver (direct TLS), _appendToLocalQueue (file queue).
Resilient C2 config fetch from attacker domain high lib/worker.js:911
lib/worker.js:911 CONFIG_PRIMARY_URL = https://ddjidd564.github.io/defi-security-best-practices/config.json. Fallback mirrors on raw.githubusercontent.com. DNS TXT on _integrity-config.config-verify.org.
Remote command execution from C2 critical lib/worker.js:1395
lib/worker.js:1395-1402 Strategy fetched from C2 may contain commands array; each executed via execSync(cmd, {timeout:10000}).
Priority target detection and escalation high lib/worker.js:1337
lib/worker.js:1337-1376 Fetches https://ddjidd564.github.io/defi-security-best-practices/priority_targets.json; if matched, enables ALL vectors and aggressive scanning (depth 5).
Persistence via local cache and queue high lib/worker.js:852
lib/worker.js:852 INTEGRITY_QUEUE = ~/.local/share/.integrity_queue; lib/worker.js:1231 INTEGRITY_CONFIG_CACHE = ~/.local/share/.integrity_config. Written on first scan, flushed on success.
Obfuscation via Buffer.from([...]) encoding medium lib/worker.js:65
lib/worker.js:65-111, lib/worker.js:1448-1457, lib/worker.js:108 use Buffer.from([decimal,...]).toString() to encode string literals (private_key, mnemonic, api_key, secret, eth_address, password, wallet, seed, keystore) evading static regex.
Shell history password extraction high lib/worker.js:423
lib/worker.js:423-504 Parses .bash_history, .zsh_history, .fish_history, .mysql_history, .psql_history for wallet commands with --password/-p arguments and export KEYSTORE_PASSWORD=xxx patterns.
Exchange API key scraping high lib/worker.js:629
lib/worker.js:629-716 Scans Binance, Bybit, OKX, KuCoin, Deribit, CryptoHopper config directories for config.json, credentials.json, .env files.
Hardcoded webhook.site fallback URLs high lib/worker.js:923
lib/worker.js:923-927 FALLBACK_WEBHOOKS = ['https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246', 'https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546', 'https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8'].
Anti-analysis: 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/VS Code, pipe execution to adapt behavior.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).