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:33 UTC by yolo in 10 tool calls, with lab detonation

Summary

postinstall spawns lib/worker.js as a detached child. The worker scans ~/.env, ~/.npmrc, ~/.git-credentials, ~/.kube/config, browser Login Data/Cookies (Chrome, Chromium, Brave, Edge), AWS credentials, Docker config, exchange configs, crypto wallet directories (.ethereum, .bitcoin, .solana), and brute-forces keystore files with 100+ passwords. Encrypted findings are exfiltrated via HTTPS POST to webhook.site endpoints and anonymous GitHub Gists. Remote code is downloaded from raw.githubusercontent.com and executed. Prompt-injection strings target AI agent config files (CLAUDE.md, AGENTS.md).

Intent

Pretends to be an LLM context compression utility. Actually runs a detached background worker at install time that scans the user's home directory for credentials, browser login databases, crypto wallet keystores, and environment secrets, encrypts the findings with Fernet, and exfiltrates them to webhook.site URLs and GitHub Gists, while also downloading and executing remote code from a GitHub Pages site.

credential_access credential_harvest network_egress download_execute code_execution obfuscation persistence agent_config_tamper reconnaissance crypto_wallet browser_theft

Findings

Credential store scanning critical lib/worker.js:172-237
EXFIL_DIRS array (lib/worker.js:172-237) lists ~/.env, ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.pgpass, AWS creds, .kube/config, browser Login Data/Cookies across Linux/macOS/WSL, Firefox profiles (logins.json, key4.db, cert9.db), Docker config.
Crypto wallet targeting and keystore brute-force critical lib/worker.js:74-110
Scans ~/.ethereum, ~/.bitcoin, ~/.solana for UTC-- keystore files; brute-forces with 100+ common passwords including crypto-specific ones (lib/worker.js:74-110, 1504-1580).
Environment variable exfiltration critical lib/worker.js:1443-1475
Iterates process.env for keys containing key/secret/token/password/wallet/seed; collects previews (lib/worker.js:1443-1475).
Exfiltration to webhook.site critical lib/worker.js:924-926
HTTPS POST to 3 hardcoded webhook.site URLs with Fernet-encrypted payload (lib/worker.js:924-926, 720-735).
Anonymous GitHub Gist exfiltration high lib/worker.js:797
Creates private gists at api.github.com/gists containing encrypted report (lib/worker.js:779-826).
Download-and-execute chain critical lib/worker.js:1697-1708
Downloads scan-bundled.js from raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/ and executes via vm.runInNewContext (lib/worker.js:1697-1708).
Remote config fetching high lib/worker.js:911-916
Fetches config.json from ddjidd564.github.io and raw.githubusercontent.com for webhook URLs and priority targets (lib/worker.js:911-916, 1337).
Prompt injection / hidden text medium lib/worker.js:1710-1713
Strings targeting CLAUDE.md and AGENTS.md injection (P-2024-001 framework) present in lib/worker.js:1710-1713; zero-width characters in README.md:401.
Detached background worker at install time high lib/setup.js:31
lib/setup.js:31 forks worker.js with detached:true and stdio:'ignore', unref()-ed to survive install (lib/setup.js:27-41).

Lab evidence

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