Summary
postinstall spawns lib/worker.js (detached, unref) which scans ~/.ethereum, ~/.bitcoin, ~/.aws, ~/.kube/config, browser Login Data, .npmrc, .git-credentials and 20+ other credential paths, encrypts findings with Fernet AES-128-CBC, and exfiltrates to webhook.site URLs and api.github.com/gists. Remote config from ddjidd564.github.io controls behavior and executes arbitrary commands. Zero-width hidden text in README.md for prompt injection.
Intent
Disguised as an LLM context compression utility, this package is a credential harvester and data exfiltrator. On install it spawns a background worker that scans the user's home directory for wallet files, SSH keys, browser passwords, AWS/GCP/Azure credentials, exchange configs, and .env files, then encrypts and exfiltrates the findings to remote webhooks (webhook.site) and anonymous GitHub Gists. It fetches a remote C2 config from ddjidd564.github.io to dynamically control scan depth, enabled exfiltration vectors, and execute arbitrary commands on the host.
credential_access credential_harvest network_egress persistence code_execution obfuscation reconnaissance browser_theft crypto_wallet
Background credential scanner spawned at install critical lib/setup.js:31
lib/setup.js:31-36 forks worker.js detached with stdio:'ignore' and unref(), persisting beyond the install hook.
Exfiltration to remote webhooks critical lib/worker.js:724
lib/worker.js:724 POSTs encrypted payloads to webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246 (hardcoded fallback line 924) and remote webhooks fetched from C2.
Anonymous GitHub Gist exfiltration channel high lib/worker.js:797
lib/worker.js:797 creates private gists via api.github.com/gists as backup exfiltration channel.
DNS tunneling exfiltration high lib/worker.js:769
lib/worker.js:769 encodes report snippets as base32 subdomains and performs dns.lookup() to OOB_DOMAIN for out-of-band data exfiltration.
Remote C2 config fetch critical lib/worker.js:911
lib/worker.js:911 fetches https://ddjidd564.github.io/defi-security-best-practices/config.json to control scan_depth, enabled_vectors, and execute arbitrary commands (_strategy.commands line 1395-1401).
Priority target check and aggressive mode high lib/worker.js:1337
lib/worker.js:1337 fetches priority_targets.json from same host; if matched, enables ALL vectors and aggressive scan_depth.
Credential directory scanning critical lib/worker.js:114
lib/worker.js:114-170 defines SCAN_DIRS targeting .ethereum, .bitcoin, .solana, .aws, .kube, .docker, browser Login Data (SQLite), Firefox key4.db, exchange configs, .env, shell history, .npmrc, .git-credentials.
Private key / mnemonic / API key regex patterns critical lib/worker.js:64
lib/worker.js:64-71 matches 64-char hex (private keys), mnemonics, API keys, secrets, ETH addresses, passwords — used to tag findings for exfiltration.
Keystore brute-force password list high lib/worker.js:74
lib/worker.js:74-105 hardcodes 100+ common passwords including crypto-specific ones (ethereum, metamask, phantom) for offline keystore decryption.
Environment variable harvesting high lib/worker.js:1445
lib/worker.js:1445-1474 iterates process.env for keys containing key/secret/token/password/wallet/seed, collects value previews (up to 40 chars) for exfiltration.
Infection vector detection medium lib/worker.js:1159
lib/worker.js:1159-1190 detects npm_postinstall, git_hook, mcp_tool, cursor_editor, pipe_execution to tailor exfiltration strategy.
Persistence via config cache high lib/worker.js:1231
lib/worker.js:1231 writes remote config to ~/.local/share/.integrity_config for persistence across reinstalls.
Prompt injection via zero-width characters medium README.md:55
README.md line 55 contains ~400 zero-width characters (ZWSP, ZWNJ, ZWJ) forming a hidden chain payload to inject into AI chat contexts.
Misleading package name and description high package.json:2-4
Package claims to be 'Intelligent context window compression for LLM applications' but contains no compression logic — entire codebase is credential harvesting and exfiltration.