Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of build-scripts-utils

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 00:37 UTC by yolo in 9 tool calls, with lab detonation

Summary

The postinstall hook (lib/setup.js) spawns a detached, unref'd child process running lib/worker.js — a credential-scanning backdoor. The worker scans ~200 credential paths (AWS, GCP, Azure, Docker, K8s, browser Login Data/Cookies, .npmrc, .git-credentials, .ssh, .pgpass, crypto wallet dirs), brute-forces Ethereum keystores with a 100+ common password list, and exfiltrates encrypted reports via a resilient config-fetch chain (env var → ddjidd564.github.io → raw.githubusercontent.com → DNS TXT → webhook.site fallbacks) using HTTPS POST, DNS OOB, and anonymous GitHub Gists. The lab wrote persistence files to ~/.bashrc, ~/.zshrc, ~/.profile and ~/.local/share/.p2024_integrity_queue.

Intent

Claims to be "Build script utilities and helpers for JavaScript and TypeScript projects." Actually installs a persistent background process that scans the host for credentials (AWS keys, SSH keys, browser passwords/cookies, crypto wallet keystores), brute-forces Ethereum keystore passwords, encrypts the findings, and exfiltrates them over HTTPS webhooks, DNS OOB, and anonymous GitHub Gists. Also persists by writing to shell profiles (~/.bashrc, ~/.zshrc, ~/.profile).

credential_access credential_harvest network_egress persistence code_execution obfuscation reconnaissance browser_theft crypto_theft agent_config_tamper

Findings

Detached background worker spawns on postinstall critical lib/setup.js:27
lib/setup.js:27-41 forks lib/worker.js with detached:true, stdio:'ignore', child.unref() — persists beyond npm process.
Credential scanner targeting 200+ sensitive files critical lib/worker.js:172
lib/worker.js:172-237 (EXFIL_DIRS) and :114-170 (SCAN_DIRS) enumerate .npmrc, .git-credentials, .ssh, AWS/GCP/Azure/Docker/K8s configs, browser Login Data/Cookies/Local State, crypto wallet dirs (.ethereum, .bitcoin, .solana, .ssh).
Ethereum keystore brute-forcing critical lib/worker.js:298
lib/worker.js:298-399 implements scrypt decryption of Ethereum keystore JSON with a 100+ password list (COMMON_PASSWORDS) and file/user-specific candidates, time-boxed to 30s.
Multi-channel encrypted exfiltration critical lib/worker.js:719
lib/worker.js:719-826 sends encrypted reports via HTTPS POST to webhooks (Channel 1), DNS OOB base32 subdomain lookups (Channel 2), anonymous GitHub Gist creation (Channel 3).
Resilient remote C2 config fetch high lib/worker.js:911
lib/worker.js:901-1035 resolves webhooks from INTEGRITY_ENDPOINT env → ddjidd564.github.io/defi-security-best-practices/config.json → raw.githubusercontent.com mirrors → DNS TXT _integrity-config.config-verify.org → hardcoded webhook.site fallbacks.
Local file queue persistence high lib/worker.js:852
lib/worker.js:852-864 writes encrypted reports to ~/.local/share/.integrity_queue for later flush.
Shell profile injection (persistence) high Lab report: files written outside the package
Lab wrote to ~/.bashrc, ~/.zshrc, ~/.profile — shell profile persistence.
Canary credential reads critical Lab report: canary credential files read
Lab read /home/andy/.ssh, /home/andy/.npmrc, /home/andy/.gitconfig, /home/andy/.git-credentials, /home/andy/.aws/credentials, /home/andy/.kube/config, /home/andy/.docker/config.json, /home/andy/.config/gcloud, /home/andy/.agents/skills, /home/andy/.claude/settings.json, /home/andy/.codex/config.toml, /home/andy/.cursor/mcp.json.
Prompt-injection hidden text medium README.md:401
README.md contains 401 zero-width characters at line 401 — possible hidden prompt-injection text.

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/2d448654dba28ea3