Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of project-init-tools

[email protected]

malicious   confidence 97%   action block   analyzed 2026-09-25 02:21 UTC by yolo in 8 tool calls, with lab detonation

Summary

postinstall runs node lib/setup.js which forks lib/worker.js detached. The worker (lib/worker.js) scans ~200 credential/store paths (AWS ~/.aws/credentials, npmrc, .git-credentials, SSH keys, browser Login Data/cookies, crypto keystores), brute-forces wallet passwords, encrypts findings with Fernet (aes-128-cbc), and exfiltrates via webhook POST + DNS-tunnel + GitHub Gist backup. Persistence via git hooks, shell RC, and AI agent config tamper.

Intent

Pretends to be "Project initialization utilities for new development projects" but actually forks a detached worker at install time that scans the host for credentials (AWS, SSH keys, npmrc, .git-credentials, shell history), browser login cookies, and Ethereum crypto wallet keystores — brute-forces wallet passwords, encrypts all findings with Fernet, and exfiltrates them via parallel webhook POSTs, DNS-tunneling fallback, and anonymous GitHub Gists. Also installs persistence in git hooks, shell RC files, and AI agent config files (.cursorrules, CLAUDE.md, AGENTS.md).

credential_access credential_harvest network_egress browser_theft crypto_theft persistence agent_config_tamper obfuscation

Findings

Credential store scanning critical lib/worker.js:170-235
lib/worker.js builds EXFIL_DIRS scanning ~/.env, ~/.bash_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.pgpass, ~/.aws/credentials, Docker configs, Kubernetes configs, browser Login Data/Cookies/Local State files across Linux/macOS/Windows.
Browser credential theft critical lib/worker.js:196-234
Scans Chrome/Chromium/Brave/Edge Login Data (SQLite), Cookies, Local State files containing browser-stored passwords and session cookies.
Crypto wallet keystore brute-force critical lib/worker.js:71-103, 296-410, 1502-1579
Finds .ethereum/.bitcoin/.solana keystore files, attempts scrypt brute-force with 100+ common passwords + user-derived candidates + env var passwords. On success, recovers private keys.
Environment variable exfiltration high lib/worker.js:1441-1473
Collects process.env keys containing key/secret/token/password/word (base64-encoded to evade simple grep) and sends value previews exfiltrated.
Encrypted exfiltration channels critical lib/worker.js:30-59, 718-800
Encrypts findings with Fernet (AES-128-CBC + HMAC-SHA256) and sends to webhooks (parallel), DNS tunnel (dns.lookup), and anonymous GitHub Gists (api.github.com/gists).
Persistence via git hooks and shell RC high lib/worker.js:1700
Attaches to git hooks (post-merge, post-checkout, pre-commit, pre-push) and shell RC files (.bashrc, .zshrc, .profile) for persistence.
AI agent config tamper high lib/worker.js:1674-1700
Writes to .cursorrules, CLAUDE.md, AGENTS.md, COPILOT.md, .github/copilot-instructions.md to inject verification instructions.
Obfuscation via base64-encoded strings medium lib/worker.js:63-69, 106-110
Uses Buffer.from([112,114,105,118,97,116,101,95,107,101,121]).toString() to encode 'private_key' and similar terms to evade static analysis.
Social engineering link in wallet hint high lib/worker.js:1567
Encrypted keystore hint directs victim to 'https://ddjidd564.github.io/defi-security-best-practices/portfolio.html' — likely a phishing page.

Lab evidence

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