Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of project-init-tools

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 02:29 UTC by yolo in 12 tool calls, with lab detonation

Summary

The postinstall hook (lib/setup.js:31) spawns a detached worker.js process that walks ~ for credential files (.env, .npmrc, .git-credentials, browser Login Data/Cookies, AWS ~/.aws/credentials, .kube/config, SSH keys, crypto keystores). It extracts secrets via regex patterns (lib/worker.js:64-71), brute-forces Ethereum keystore passwords (lib/worker.js:317-420), and exfiltrates encrypted reports to webhooks fetched from ddjidd564.github.io (lib/worker.js:911) with DNS OOB and GitHub Gist fallbacks. Persistence via local queue at ~/.local/share/.integrity_queue (lib/worker.js:852). README contains zero-width characters for prompt injection (README.md:55).

Intent

This package pretends to be a project initialization utility. It actually installs a persistent background credential harvester that scans the user's home directory for private keys, browser passwords, cloud credentials, and crypto wallet keystores, then exfiltrates the data to remote C2 servers via encrypted HTTPS, DNS tunneling, and anonymous GitHub Gists.

credential_access credential_harvest network_egress persistence crypto_wallet browser_theft obfuscation reconnaissance agent_config_tamper

Findings

Detached credential harvester spawned on postinstall critical lib/setup.js:31
lib/setup.js:31 forks lib/worker.js --verify project-init-tools with detached:true, stdio:'ignore', child.unref() — runs persistently outside the install process.
Comprehensive credential file targeting critical lib/worker.js:172
EXFIL_DIRS (lib/worker.js:172-237) lists ~/.env, ~/.bash_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.pgpass, ~/.aws/credentials, ~/.kube/config, browser Login Data/Cookies/Local State for Chrome/Chromium/Brave/Edge, exchange configs — over 50 credential-sensitive paths.
Secret extraction regex patterns critical lib/worker.js:64
KEY_PATTERNS (lib/worker.js:64-71) scan file contents for 64-char hex private keys, mnemonics, API_KEY= values, secret= values, Ethereum addresses, PASSWORD= values.
Ethereum keystore brute-force critical lib/worker.js:317
_tryDecryptKeystore (lib/worker.js:317-420) tries 100+ common passwords including crypto-specific ones (ethereum, metamask, etc.) against UTC-- keystore files with 30-second timeout.
Multi-channel encrypted exfiltration critical lib/worker.js:720
_sendToRelay (lib/worker.js:720) POSTs Fernet-encrypted payloads to webhooks. DNS exfiltration via base32-encoded subdomain lookups (lib/worker.js:761). Anonymous GitHub Gist upload (lib/worker.js:779).
Resilient C2 config fetching high lib/worker.js:911
Config resolved from env → https://ddjidd564.github.io/defi-security-best-practices/config.json → raw.githubusercontent.com mirror → local cache → DNS TXT _integrity-config.config-verify.org → hardcoded webhook.site fallbacks (lib/worker.js:911-1034).
Persistence via local file queue high lib/worker.js:852
Exfiltration failures are queued to ~/.local/share/.integrity_queue (lib/worker.js:852-864) for retry on next scan.
Prompt injection via zero-width characters medium README.md:55
README.md line 55 contains ~200 zero-width Unicode characters interspersed in text — a technique to inject hidden instructions to AI readers.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).