Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of prompt-engineering-toolkit

[email protected]

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

Summary

postinstall spawns a detached worker.js that runs indefinitely. It scans 40+ credential file paths (npmrc, git-credentials, AWS, kubeconfig, Chrome Login Data/Cookies, exchange configs), brute-forces Ethereum keystores with 100+ passwords including crypto-specific ones, collects sensitive environment variables, and exfiltrates findings via HTTPS webhooks (webhook.site), DNS tunneling (base32 subdomains), and anonymous GitHub Gists. C2 fetches strategy from _integrity-config.config-verify.org. Writes persistence to .bashrc, .zshrc, .profile, .cursorrules. Heavily obfuscates sensitive file names with Buffer.from([...]) hex encoding. Same infrastructure as 18+ other malicious packages on the registry.

Intent

Pretends to be a prompt engineering toolkit for template management and A/B testing. Actually installs a persistent background data stealer that scans the user's home directory for credentials, AWS/GCP/Azure keys, browser cookies & login data, crypto wallet keystores, and exfiltrates them to a webhook + DNS channel + GitHub Gist, with C2 via _integrity-config.config-verify.org.

credential_access credential_harvest network_egress persistence crypto_theft obfuscation reconnaissance agent_config_tamper

Findings

Background data stealer spawned at install critical lib/setup.js:31
lib/setup.js:31 forks worker.js detached with stdio: 'ignore' and child.unref(), running indefinitely.
Credential harvesting — 40+ file paths critical lib/worker.js:172
lib/worker.js:172-237 scans .npmrc, .gitconfig, .git-credentials, .aws/credentials, .kube/config, Chrome Login Data, Chrome Cookies, .bash_history, .zsh_history, exchange configs (Binance, Bybit, OKX, KuCoin, Deribit), .pgpass, .mysql_history, .psql_history.
Environment variable exfiltration high lib/worker.js:1470
lib/worker.js:1470-1499 iterates process.env looking for keys containing 'key', 'secret', 'token', 'password', 'private', 'wallet', 'seed' and collects value previews.
Crypto wallet keystore brute-force critical lib/worker.js:73
lib/worker.js:73-105 contains 100+ common passwords including 'ethereum', 'bitcoin', 'metamask', 'phantom'. lib/worker.js:1529-1596 attempts scrypt decryption of UTC-- keystore files, reports decrypted private keys.
Multi-channel exfiltration critical lib/worker.js:724
lib/worker.js:719-826: HTTPS POST to webhooks (webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246), DNS tunneling via base32-encoded subdomains of OOB_DOMAIN, GitHub Gist backup (api.github.com/gists) with user-agent curl/7.68.0.
C2 remote config fetch high lib/worker.js:1253
lib/worker.js:1253-1261 fetches strategy from _integrity-config.config-verify.org (known malicious C2 in this campaign).
Persistence writes high lib/worker.js (persistence mechanism)
Lab wrote to /home/andy/.bashrc, /home/andy/.zshrc, /home/andy/.profile, /.cursorrules.
Canary credential files read high lib/worker.js (scan directories)
Lab read: .gcloud, .gcloud/application_default_credentials.json, .ssh, .agents/skills, .aws, .claude/settings.json, .codex/config.toml, .cursor/mcp.json, .docker, .docker/config.json, .kube, .npmrc, .gitconfig, .git-credentials, .aws/credentials, .aws/config, .kube/config, /etc/passwd.
Obfuscation via hex-encoded strings medium lib/worker.js:64
lib/worker.js:64-71, 107-112, 114-120, 1473-1482 use Buffer.from([112,114,105...]).toString() to hide 'private_key', 'mnemonic', 'api_key', 'secret', 'eth_address', 'password', 'keystore', 'wallet.json', '.secret', '.seed.txt' to evade static analysis.
Zero-width characters in README low README.md:401
README.md line 401 contains zero-width characters (possible hidden text / homoglyph trick).
Known campaign infrastructure high multiple
Same domains (ddjidd564.github.io, webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246, _integrity-config.config-verify.org) linked to 18+ other malicious packages: [email protected], [email protected], [email protected], [email protected], [email protected],12, [email protected], [email protected], [email protected].

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 12. Hooks: postinstall (timed out), require (timed out).

DNS names requested: ddjidd564[.]github[.]io, raw[.]githubusercontent[.]com, _integrity-config[.]config-verify[.]org, api[.]github[.]com, webhook[.]site

Direct connections: socket 127[.]0[.]0[.]1:53

Canary credential files read: /home/andy/.config/gcloud, /home/andy/.config/gcloud/application_default_credentials.json, /home/andy/.ssh, /home/andy/.agents/skills, /home/andy/.aws, /home/andy/.claude/settings.json, /home/andy/.codex/config.toml, /home/andy/.cursor/mcp.json, /home/andy/.docker, /home/andy/.docker/config.json, /home/andy/.kube, /home/andy/.npmrc, /home/andy/.gitconfig, /home/andy/.git-credentials, /home/andy/.aws/credentials, /home/andy/.aws/config, /home/andy/.kube/config, /etc/passwd

Files written outside the package: /home/andy/.local/share/.integrity_queue, /home/andy/.local/share/.p2024_integrity, /.cursorrules, /home/andy/.bashrc, /home/andy/.zshrc, /home/andy/.profile, /home/andy/.local/share/.p2024_tokens/bb186d1716a74b74