Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of workspace-config-loader

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 03:10 UTC by yolo in 7 tool calls, with lab detonation

Summary

postinstall spawns a detached fork of lib/worker.js which enumerates EXFIL_DIRS (AWS creds, Chrome Login Data, .npmrc, .git-credentials, keystore files, etc.), matches them against crypto-key/password patterns, and exfiltrates via encrypted webhook POST (ddjidd564.github.io, webhook.site), DNS-tunnel base32 lookup, and anonymous GitHub Gist. The lab wrote persistence to ~/.bashrc, ~/.zshrc, ~/.profile and /.cursorrules, and a token file ~/.local/share/.p2024_tokens/b73d073a41320c69.

Intent

Disguised as a workspace configuration loader, it silently scans the host for cryptocurrency wallets, browser logins/cookies, cloud credentials (AWS, GCP, Azure), SSH keys, and shell history, then exfiltrates findings to remote webhooks via encrypted POST, DNS tunneling, and GitHub Gist backup — and persists by writing to shell profile files and .cursorrules.

credential_access credential_harvest network_egress persistence agent_config_tamper reconnaissance crypto_wallet browser_theft download_execute obfuscation

Findings

Credential harvester — EXFIL_DIRS critical lib/worker.js:172-237
lib/worker.js defines EXFIL_DIRS scanning ~/.aws/credentials, ~/.npmrc, ~/.git-credentials, ~/.kube/config, browser Login Data/Cookies/Local State, .pgpass, exchange configs — over 80 paths.
Key-pattern matching for private keys, AWS keys, passwords, ETH addresses critical lib/worker.js:64-71
KEY_PATTERNS regexes match 64-hex private keys, AWS access keys (AKIA...), mnemonics, passwords, ETH addresses. Buffer.from([112,114,105...]) obfuscates type strings.
Encrypted exfiltration via webhook POST critical lib/worker.js:720-735
_sendToRelay() POSTs Fernet-encrypted reports to webhooks fetched from ddjidd564.github.io/defi-security-best-practices/config.json or fallback webhook.site UUIDs.
DNS tunnel exfiltration channel high lib/worker.js:761-776
_reportDNS() base32-encodes report payload and performs dns.lookup on <encoded>.<OOB_DOMAIN> for out-of-band data exfiltration.
Anonymous GitHub Gist backup channel high lib/worker.js:779-826
_reportGist() creates private gists via api.github.com/gists with encrypted payload — uses curl/7.68.0 User-Agent.
Config resolution from attacker-controlled domain high lib/worker.js:911-917
CONFIG_PRIMARY_URL = https://ddjidd564.github.io/defi-security-best-practices/config.json; mirrors on raw.githubusercontent.com/ddjidd564/.
Persistence via shell profile files high Lab report: files written outside the package
Lab wrote to ~/.bashrc, ~/.zshrc, ~/.profile — shell startup persistence.
Agent config tamper — /.cursorrules high Lab report: files written outside the package
Lab wrote /.cursorrules — may inject prompt instructions into Cursor AI agent.
Token persistence file high Lab report: files written outside the package
Lab wrote ~/.local/share/.p2024_tokens/b73d073a41320c69 — likely attacker token or exfil buffer.
Local exfil queue medium lib/worker.js:852-864
Writes to ~/.local/share/.integrity_queue for offline buffering, flushed on next run.
Keystore weak-password brute-force list high lib/worker.js:74-105
COMMON_PASSWORDS array (100+ entries) includes crypto wallet passwords (ethereum, bitcoin, metamask, phantom) for scrypt brute-force of keystore JSON files.
Zero-width hidden text in README.md medium README.md:401
401 zero-width characters detected — possible prompt-injection or homoglyph trick targeting AI readers.

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/b73d073a41320c69