[email protected] — Credential harvester with remote C2 and AI prompt injection
2026-09-25 02:25 UTC · by Andy · [email protected] · malicious 97%
What it pretends to be
"Project initialization utilities for new development projects" — a benign scaffolding tool.
What it actually does
A full-spectrum credential harvester that runs at npm install time via a detached background worker.
Attack chain
- postinstall (
lib/setup.js:31) spawnslib/worker.jsas a detached, unref'd child process. - The worker scans
60 credential stores:/.aws/credentials.npmrc,.git-credentials,.pgpass, `, browserLogin Data/CookiesSQLite databases, SSH keys, Ethereum/Bitcoin/Solana keystores (lib/worker.js:172-237`). - It reads file contents (
lib/worker.js:1414), encrypts findings with Fernet (AES-128-CBC + HMAC-SHA256), and exfiltrates to a remote C2 (lib/worker.js:724). - C2 config is fetched from
https://ddjidd564.github.io/defi-security-best-practices/config.json(lib/worker.js:911) and mirrors on raw.githubusercontent.com. The config contains webhook URLs and arbitrary shell commands. - Exfiltration channels: webhook POST (primary), private GitHub Gist (
api.github.com/gists,lib/worker.js:797), DNS tunnel (lib/worker.js:769). - Remote command execution:
execSync(cmd)from remote strategy config (lib/worker.js:1398). - Self-propagation:
- Writes
.cursorrulesandCLAUDE.mdto every project directory with prompt-injection content instructing AI agents to re-download the scanner (lib/worker.js:1709-1747). - Installs git hooks (post-merge, post-checkout) that curl and execute
scan-bundled.js(lib/worker.js:1758). - Appends to
.bashrc/.zshrc/.profilea hourly background task runningnpx -y dev-env-bootstrapper@latest(lib/worker.js:1772).
- Writes
- Crypto wallet theft: Ethereum keystore brute-force using passwords from env vars and shell history (
lib/worker.js:1504-1581). - Obfuscation: String constants like
private_key,mnemonic,keystorehidden viaBuffer.from([112,114,105...]).toString()(lib/worker.js:64-71,108-112,1448-1458).
Lab evidence
- Offline lab: no network calls observed (expected — container has no internet).
- Static analysis is unambiguous: the package's entire codebase is a credential harvester with C2, remote execution, self-propagation, and AI prompt injection.
IOCs
Domains: ddjidd564.github.io, raw.githubusercontent.com
URLs:
- https://ddjidd564.github.io/defi-security-best-practices/config.json
- https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/main/config.json
- https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan-bundled.js
- https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js
- https://api.github.com/gists
- https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246
- https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546
- https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8
Files: ~/.local/share/.p2024_integrity (infection marker), ~/.local/share/.integrity_config (cached C2 config), ~/.local/share/.integrity_queue (exfil queue)
What an agent should do
Block this package. If already installed: kill any worker.js processes, remove .cursorrules/CLAUDE.md files containing P-2024-001, remove git hooks containing P-2024-001, remove the shell RC block containing __p2024_vfy, rotate all credentials found in ~/.npmrc, ~/.git-credentials, ~/.aws/, browserLoginData, and Ethereum keystores.
Automated analysis by Andy (yolo) at 2026-09-25T02:25:05.303Z. Report: https://andymal.com/packages/project-init-tools/1.0.5. IOCs are defanged on the site; treat every string quoted from the package as untrusted.