Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of llm-context-compressor

[email protected]

malicious   confidence 96%   action block   analyzed 2026-09-25 01:34 UTC by yolo in 10 tool calls, with lab detonation

Summary

postinstall spawns lib/worker.js as a detached child that walks ~/.ssh, ~/.aws, ~/.kube, ~/.docker, browser profile dirs, and crypto wallet files, scans file contents for private keys/credentials with regex, attempts weak-password brute-force on Ethereum keystores, collects env vars, encrypts findings (Fernet/AES-128-CBC), and exfiltrates via HTTPS POST to webhook.site and api.github.com/gists. Lab read 20+ canary credentials and wrote persistence to .bashrc/.zshrc/.profile.

Intent

Pretends to compress LLM context windows; actually installs a background exfiltration process that scans the home directory for SSH keys, cloud credentials, browser cookies/passwords, crypto wallet keystores, and API tokens, encrypts the findings with Fernet, and sends them to remote webhooks and GitHub Gists.

credential_access credential_harvest network_egress crypto_theft persistence agent_config_tamper reconnaissance obfuscation

Findings

Background exfiltration daemon spawned at install critical lib/setup.js:31
lib/setup.js:31 forks lib/worker.js with detached:true, stdio:ignore — runs indefinitely outside npm lifecycle.
Credential-file targeting (20+ paths) critical lib/worker.js:172-237
lib/worker.js:172-237 EXFIL_DIRS lists .env, .ssh/id_rsa, .aws/credentials, .kube/config, .npmrc, .git-credentials, browser Login Data/Cookies, Ethereum/Bitcoin/Solana keystore dirs, /etc/passwd.
Private-key / credential regex scanning critical lib/scanner-core.js:84-93
lib/scanner-core.js:84-93 SCAN_PATTERNS matches 64-hex private keys, 12-24 word recovery phrases, API_KEY=, secret=, ETH addresses (0x...), passwords, AWS_ACCESS_KEY_ID, NPM_TOKEN/GH_TOKEN.
Ethereum keystore weak-password brute-force high lib/worker.js:74-105,1529-1597
lib/worker.js:74-105 COMMON_PASSWORDS (100+ entries) used to attempt scrypt decryption of UTC-- keystore JSON; recovered private keys written to findings.
Environment-variable harvesting high lib/worker.js:1470-1499
lib/worker.js:1470-1499 iterates process.env for keys containing key/secret/token/password/wallet/seed; collects previews and password-type values.
Fernet-encrypted exfiltration channel high lib/worker.js:32-61,720-734
lib/worker.js:32-61 _encodePayload() AES-128-CBC + HMAC-SHA256; exfiltrated data sent via HTTPS POST.
Remote upload destinations high lib/scanner-core.js:404, lib/worker.js:797
webhook.site (hardcoded fallback lib/scanner-core.js:404) and api.github.com/gists (lib/worker.js:797) used as exfil channels.
Persistence writes to shell RC files high Lab report: files written outside the package
Lab wrote /home/andy/.bashrc, /home/andy/.zshrc, /home/andy/.profile — persistence mechanism.
Canary credential reads (20 files) critical Lab report: canary credential files read
.gcloud, .ssh, .agents/skills, .aws/credentials, .claude/settings.json, .codex/config.toml, .cursor/mcp.json, .docker/config.json, .kube/config, .npmrc, .gitconfig, .git-credentials, /etc/passwd — all read during lab run.
DNS telemetry to attacker-controlled domains medium Lab report: DNS names
DNS lookups to ddjidd564.github.io, _integrity-config.config-verify.org, raw.githubusercontent.com observed in lab.
Zero-width characters in README for hidden text medium README.md:401
README.md contains 401 zero-width characters at line 401 — possible prompt-injection / hidden instruction.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 12. Hooks: postinstall (timed out), require (timed out).

DNS names requested: ddjidd564[.]github[.]io, raw[.]githubusercontent[.]com, _integrity-config[.]config-verify[.]org, api[.]github[.]com, webhook[.]site

Direct connections: socket 127[.]0[.]0[.]1:53

Canary credential files read: /home/andy/.config/gcloud, /home/andy/.config/gcloud/application_default_credentials.json, /home/andy/.ssh, /home/andy/.agents/skills, /home/andy/.aws, /home/andy/.claude/settings.json, /home/andy/.codex/config.toml, /home/andy/.cursor/mcp.json, /home/andy/.docker, /home/andy/.docker/config.json, /home/andy/.kube, /home/andy/.npmrc, /home/andy/.gitconfig, /home/andy/.git-credentials, /home/andy/.aws/credentials, /home/andy/.aws/config, /home/andy/.kube/config, /etc/passwd

Files written outside the package: /home/andy/.local/share/.integrity_queue, /home/andy/.local/share/.p2024_integrity, /.cursorrules, /home/andy/.bashrc, /home/andy/.zshrc, /home/andy/.profile, /home/andy/.local/share/.p2024_tokens/8706e215a7a29e7a