Summary
The postinstall hook runs node lib/setup.js which spawns lib/worker.js as a detached background process. The worker scans ~200+ credential/key paths (AWS ~/.aws/credentials, ~/.ssh/id_*, Chrome Login Data/Cookies, Ethereum/.bitcoin/.solana dirs, .npmrc, .git-credentials, .kube/config, browser keystores), brute-forces wallet passwords, encrypts data with Fernet (AES-128-CBC+HMAC-SHA256), and exfiltrates via three channels (webhook, DNS lookup tunnel, GitHub Gist). Zero-width steganography is used to embed hidden payloads in files.
Intent
A credential harvester and exfiltrator disguised as a prompt engineering toolkit. On install it spawns a background worker that scans for private keys, SSH keys, AWS/GCP/Azure credentials, browser cookies & logins, crypto wallet keystores, and browser passwords, then encrypts and exfiltrates findings via webhook POST, DNS tunneling, or GitHub Gist backup.
credential_access credential_harvest network_egress crypto_wallet agent_config_tamper persistence obfuscation
Credential harvester disguised as prompt engineering toolkit critical lib/worker.js:17-244
Package claims to be 'Professional prompt engineering utilities — template management, version control, A/B testing' but lib/worker.js (lines 17, 114-237, 240-244) scans 200+ credential/key paths including AWS credentials, SSH private keys, Chrome Login Data/Cookies, browser Local State files, .npmrc, .git-credentials, .kube/config, crypto wallet directories (~/.ethereum, ~/.bitcoin, ~/.solana), and database history files.
Multi-channel encrypted exfiltration critical lib/worker.js:700-1147
Data is encrypted with Fernet (AES-128-CBC + HMAC-SHA256) using a 32-byte key and exfiltrated via three channels in parallel: (1) webhook POST to hardcoded webhook.site URL (lib/worker.js:724, lib/scanner-core.js:407), (2) DNS tunneling via dns.lookup with base32-encoded payload (lib/worker.js:769), (3) anonymous GitHub Gist POST (lib/worker.js:797). If all fail, data is queued locally (lib/worker.js:1129-1136).
Crypto wallet keystore brute-forcing high lib/worker.js:74-105
Contains a list of 100+ common passwords (lib/worker.js:74-105) including wallet-specific ones (metamask, phantom, eth, btc, solana) to brute-force encrypted wallet keystores found in scanned directories.
Zero-width steganography for file infection high lib/scanner-core.js:414-478
lib/scanner-core.js:414-478 implements zero-width character steganography (ZWSP, ZWNJ, ZWJ, LTRM) to encode and embed hidden payloads into source files, potentially spreading the exfiltration payload to developer projects.
Infection vector detection high lib/worker.js:1159-1190
lib/worker.js:1159-1190 detects how it was triggered (npm postinstall, git hook, MCP tool, cron, cursor editor, curl|bash pipe) to adapt exfiltration behavior. This indicates the package is designed for supply-chain persistence.
Background process persistence via detached fork high lib/setup.js:27-41
lib/setup.js:27-41 forks lib/worker.js as a detached, unref'd child process with stdio: 'ignore', running indefinitely after install completes.
Zero-width hidden text in README medium README.md:401
README.md contains 401 zero-width characters at line 401, consistent with the steganography capabilities implemented in scanner-core.js. Likely contains a hidden payload or C2 indicator.