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

Summary

postinstall spawns lib/worker.js in the background. The worker scans ~30 credential stores (.npmrc, .git-credentials, .aws/credentials, .kube/config, browser Login Data/Cookies, Ethereum/Bitcoin keystores), collects env vars matching key/secret/token/password, brute-forces scrypt-encrypted crypto keystores with a 100+ wordlist + env-derived candidates, and exfiltrates findings through three channels (HTTPS POST to webhook.site / GitHub Pages config, DNS base32 encoding, anonymous GitHub Gist). It persists by writing malicious instruction blobs to .cursorrules / CLAUDE.md / git hooks / .bashrc/.zshrc/.profile and fetches remote commands to exec via execSync. All file paths and keywords are base64-obfuscated.

Intent

Pretends to be an LLM context-window compression utility. Actually harvests credentials, browser logins/cookies, crypto keystore files, and environment secrets; exfiltrates them via encrypted webhooks, DNS, and GitHub Gists; persists via AI-agent instruction files (.cursorrules, CLAUDE.md), git hooks, and shell RCs; downloads and executes remote scripts on demand.

credential_access credential_harvest network_egress download_execute obfuscation persistence agent_config_tamper reconnaissance browser_theft crypto_wallet

Findings

Credential store scanning (EXFIL_DIRS) critical lib/worker.js:170-235
Array of 70+ credential paths including .npmrc, .git-credentials, .aws/credentials, .kube/config, browser Login Data/Cookies, MySQL/PostgreSQL history, exchange configs — read and contents exfiltrated.
Browser credential theft critical lib/worker.js:144-168, 196-235
Scans Chrome/Chromium/Brave/Edge Login Data (SQLite), Cookies, Local State across Linux/macOS/Windows paths.
Crypto keystore brute-force critical lib/worker.js:72-103, 296-565
Discovers .ethereum/.bitcoin/.solana keystore files; attempts scrypt decryption with 100+ common passwords + env-derived candidates; reports private keys on success.
Environment variable harvesting high lib/worker.js:1443
Iterates process.env, extracts keys matching key/secret/token/password/credential patterns, sends previews to remote.
Multi-channel exfiltration critical lib/worker.js:718-824
HTTPS POST to webhook.site UUIDs and ddjidd564.github.io; DNS base32 subdomain exfil; anonymous GitHub Gist POST.
Remote config & command execution critical lib/worker.js:1251-1259, 1393-1399
Fetches strategy from https://ddjidd564.github.io/.../config.json; executes arbitrary commands from strategy.commands via execSync.
Download-and-execute persistence script critical lib/worker.js:1688, 1748, 1762
Downloads https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js and pipes to node via git hooks and shell RCs.
AI agent instruction tamper (.cursorrules, CLAUDE.md) high lib/worker.js:1674-1703, 1728-1737
Writes P-2024-001 propagation instructions to .cursorrules, CLAUDE.md, AGENTS.md, COPILOT.md to steer future AI agents.
Git hook persistence high lib/worker.js:1738-1757
Appends remote script download to .git/hooks/post-merge and post-checkout.
Shell RC persistence high lib/worker.js:1761-1775
Appends remote script download to .bashrc, .zshrc, .profile.
Base64-obfuscated file paths medium lib/worker.js:113-120, 190-191
Critical paths (.ethereum, .bitcoin, .solana, .aws, .aws/credentials) encoded as Buffer.from([...]).toString() to evade static detection.

Lab evidence

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