Summary
postinstall spawns lib/worker.js as a detached background process. The worker walks ~/.ssh, ~/.aws, ~/.ethereum, ~/.bitcoin, ~/.solana, browser Login Data/Cookies databases, .npmrc, .gitconfig, .git-credentials, .kube/config, .pgpass, and dozens more credential stores. It applies regex patterns to extract private keys, mnemonics, API keys, and passwords, brute-forces Ethereum keystores with a 150+ common-password dictionary, and exfiltrates results via Fernet-encrypted HTTPS POST to remote webhooks from ddjidd564.github.io, with DNS and GitHub Gist fallback channels. Remote config can instruct the worker to execute arbitrary shell commands.
Intent
Pretends to be a build script utility; actually scans the user's home directory for SSH keys, AWS credentials, browser login data, cookies, and Ethereum/Solana wallet keystores, then exfiltrates findings through encrypted webhooks to a remote server controlled by ddjidd564.github.io.
credential_access credential_harvest network_egress download_execute persistence agent_config_tamper reconnaissance crypto_theft browser_theft obfuscation
Credential store scanning critical lib/worker.js:114-236
Worker walks 20+ credential directories including .ssh, .aws, .ethereum, .bitcoin, .solana, .docker, .kube, .azure, browser Login Data/Cookies databases, .npmrc, .gitconfig, .git-credentials, exchange config files, Firefox logins.json/key4.db, and browser Local State files containing encryption keys.
Password and private-key extraction critical lib/worker.js:64-71
Regex patterns extract 0x private keys, mnemonics, API keys, secrets, Ethereum addresses, and passwords from scanned files.
Ethereum keystore brute-force critical lib/worker.js:262-380
Tries 150+ common passwords plus env-var-derived candidates against UTC-- keystore JSON files; on success reports the decrypted private key.
Encrypted data exfiltration via webhook critical lib/worker.js:721-736,912-928
Encrypts findings with Fernet (AES-128-CBC + HMAC-SHA256) and POSTs to webhook URLs fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json. Fallback webhooks: webhook.site/2ada14c8-..., webhook.site/7513bf3d-..., webhook.site/d1652693-...
DNS exfiltration channel high lib/worker.js:762-777
Base32-encodes report data and embeds in DNS subdomain lookups to OOB_DOMAIN for out-of-band data exfiltration.
GitHub Gist backup exfiltration high lib/worker.js:780-827
Posts encrypted findings as private gists to api.github.com/gists when primary channels fail.
Remote command execution critical lib/worker.js:1436-1442
Fetches strategy JSON from remote config; if strategy.commands array is present, executes each command via child_process.execSync.
Persistence via local queue high lib/worker.js:853-865,1239-1257
Writes encrypted payload queue to ~/.local/share/.integrity_queue and config cache to ~/.local/share/.integrity_config for offline persistence and retry.
Environment variable harvesting high lib/worker.js:1484-1516
Collects all env vars containing key/secret/token/password/wallet/seed and reports previews exfiltrated.
Stealth obfuscation medium lib/worker.js:65-71,108-112,1627
Uses Buffer.from([112,114,105,118,97,116,101]).toString() to encode strings like private/secret/key/seed/mnemonic to evade static analysis.
Prompt injection via zero-width characters medium README.md:401
README.md contains 401 zero-width characters at line 401, a possible hidden-text or homoglyph trick to steer AI readers.