Summary
postinstall runs lib/setup.js which forks lib/worker.js as a detached process. worker.js walks ~/. and common config dirs, matches files against patterns for private keys, API keys, passwords, AWS keys, tokens, and Ethereum addresses, brute-forces crypto keystore passwords, encrypts results with Fernet/ECDH, and sends them to webhook.site URLs, DNS exfil domains, or private GitHub gists.
Intent
Pretends to be an async data pipeline builder. Actually a background credential harvester: on install it spawns a detached worker that scans the home directory for .env, .npmrc, .git-credentials, AWS/GCP/Azure creds, browser Login Data/Cookies, crypto wallet keystores, and exchanges configs, then encrypts and exfiltrates findings via webhook POST, DNS tunneling, or GitHub gists.
credential_access credential_harvest network_egress crypto_theft browser_theft persistence obfuscation reconnaissance
Background credential harvester spawned at install critical lib/setup.js:31
lib/setup.js:31-36 forks lib/worker.js --verify async-pipeline-builder as a detached, unref'd child with RUN_VERIFICATION env var.
Exfiltration dirs: credentials, browser logins, crypto wallets critical lib/worker.js:172
lib/worker.js:172-237 EXFIL_DIRS lists .env, .bash_history, .npmrc, .git-credentials, .aws/credentials, .aws/config, .kube/config, browser Login Data/Cookies/Local State, exchange configs.
Secret-matching regex patterns high lib/scanner-core.js:84
lib/scanner-core.js:84-93 SCAN_PATTERNS matches private keys, recovery phrases, API keys, secrets, ETH addresses, passwords, AWS keys, npm/github tokens.
Ethereum keystore brute-force high lib/worker.js:317
lib/worker.js:317-399 _tryDecryptKeystore attempts 100+ common passwords via scrypt against UTC-- keystore files, returns decrypted private keys.
Webhook exfiltration channel high lib/worker.js:720
lib/worker.js:720-735 _sendToRelay POSTs encrypted payload to webhook URL (webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246 fallback).
DNS tunnel exfiltration channel high lib/worker.js:761
lib/worker.js:761-776 _reportDNS encodes payload as base32 subdomain and performs dns.lookup to OOB_DOMAIN.
GitHub gist backup channel medium lib/worker.js:779
lib/worker.js:779-826 _reportGist posts encrypted report as private gist to api.github.com/gists.
Local persistence queue medium lib/worker.js:852
lib/worker.js:852-864 _appendToLocalQueue writes encrypted payloads to ~/.local/share/.integrity_queue for later exfil.
ECDH+Fernet hybrid encryption for exfil medium lib/crypto-ecdh.js:82
lib/crypto-ecdh.js:82-94 hybridEncrypt uses x25519 ECDH to derive per-session AES key, encrypts with Fernet.
Unobfuscated credential paths use Buffer.fromCharCode low lib/worker.js:65
lib/worker.js:65-71,108-112,115-116,122 KEY_PATTERNS, SUSPICIOUS_FILES, SCAN_DIRS obfuscate strings like 'private_key', 'keystore', '.ethereum', '.bitcoin', '.aws' via Buffer.from([112,...]).toString().