Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of workspace-config-loader

[email protected]

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

Summary

postinstall spawns lib/worker.js as a detached process. The worker reads credential stores (~/.env, ~/.bash_history, ~/.npmrc, ~/.git-credentials, ~/.kube/config, Chrome Login Data/Cookies, AWS ~/.aws/credentials, crypto keystore JSONs), matches private keys/mnemonics/API keys/passwords with regex, brute-forces Ethereum scrypt keystores, and posts encrypted reports to webhook.site URLs and api.github.com/gists. DNS exfiltration via base32-encoded subdomain lookups and remote C2 config fetch from ddjidd564.github.io provide resilient command-and-control. Persistence via ~/.local/share/.integrity_config.

Intent

Pretends to be a workspace configuration utility. At install time it spawns a detached background process that scans the user's home directory for credential files (shell history, .npmrc, .git-credentials, browser Login Data/Cookies, AWS keys, crypto keystore JSONs), extracts private keys and passwords via regex and keystore brute-force, and exfiltrates findings to hardcoded webhook.site endpoints and GitHub Gists, with a DNS exfiltration fallback and remote C2 config fetch from ddjidd564.github.io.

credential_access credential_harvest network_egress download_execute persistence crypto_theft browser_theft reconnaissance agent_config_tamper obfuscation

Findings

Background credential harvester spawned at install critical lib/setup.js:29-36
lib/setup.js:29-36 forks lib/worker.js as a detached, unref'd child process with env RUN_VERIFICATION set, ensuring it survives post the install hook.
Extensive credential file targeting critical lib/worker.js:172-237
lib/worker.js:172-237 EXFIL_DIRS array targets ~/.env, ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.mysql_history, ~/.pgpass, ~/.kube/config, Chrome/Chromium/Brave Login Data, Cookies, Local State, AWS ~/.aws/credentials, crypto wallet dirs (.ethereum, .bitcoin, .solana), Discord, Slack, exchange configs.
Private key / mnemonic / API key / password extraction critical lib/worker.js:64-71
lib/worker.js:64-71 KEY_PATTERNS regexes match 64-char hex (private keys), mnemonics, API_KEY=, secret=, 0x Ethereum addresses, PASSWORD=.
Ethereum keystore brute-force critical lib/worker.js:298-420
lib/worker.js:298-420 _tryDecryptKeystore() iterates COMMON_PASSWORDS (100+) plus file/user-derived candidates via scryptSync to decrypt ETH keystore JSONs and recover private keys.
Exfiltration to webhook.site critical lib/worker.js:924-926
lib/worker.js:924-926 hardcoded webhook.site URLs; lib/worker.js:720-734 _sendToRelay() POSTs encrypted payload JSON.
GitHub Gist exfiltration high lib/worker.js:779-815
lib/worker.js:779-815 _reportGist() creates private gists via api.github.com/gists with encrypted report content.
DNS exfiltration channel high lib/worker.js:761-776
lib/worker.js:761-776 _reportDNS() base32-encodes report prefix and performs dns.lookup on encoded subdomain for OOB data exfil.
Remote C2 config fetch high lib/worker.js:911
lib/worker.js:911 CONFIG_PRIMARY_URL=https://ddjidd564.github.io/defi-security-best-practices/config.json; strategy updates fetched periodically.
Persistence via local config cache medium lib/worker.js:1231-1249
lib/worker.js:1231-1249 writes fetched config to ~/.local/share/.integrity_config for cross-session C2 persistence.
Prompt-injection hidden text medium README.md
README.md contains 401 zero-width characters, a common technique to inject hidden instructions targeting AI agents that consume the doc.

Lab evidence

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