Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of workspace-config-loader

[email protected]

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

Summary

The postinstall hook (lib/setup.js) spawns lib/worker.js as a detached, unreferenced child process. The worker (~1942 lines, 90 KB) contains hard-coded exfiltration targets (webhook.site UUIDs, ddjidd564.github.io, api.github.com/gists), a 20+ file EXFIL_DIRS list covering .npmrc, .git-credentials, AWS ~/.aws/credentials, browser Login Data/Cookies/Local State, exchange configs, and more, key-pattern regexes for private keys/mnemonics/API keys/passwords, Fernet encryption, and three exfiltration channels (HTTPS POST to webhooks, DNS telemetry via dns.lookup, anonymous GitHub Gist POST). It also downloads remote config from ddjidd564.github.io for dynamic target updates and executes arbitrary commands via execSync.

Intent

A credential stealer and exfiltrator disguised as a workspace-config utility. Installs a detached background worker that scans the user's home directory for passwords, API keys, AWS credentials, browser logins/cookies, crypto wallet files, and git/npm credentials, then encrypts and exfiltrates findings to webhook.site and GitHub Gists via HTTPS, with DNS-telemetry and remote-config-download fallbacks.

credential_access credential_harvest network_egress download_execute code_execution obfuscation persistence reconnaissance agent_config_tamper browser_theft crypto_wallet

Findings

Credential-stealer EXFIL_DIRS list critical lib/worker.js:172-237
Hard-coded array of 30+ sensitive file paths (.npmrc, .git-credentials, ~/.aws/credentials, ~/.kube/config, browser Login Data/Cookies/Local State, exchange configs, .env, .bash_history, etc.) scanned with fs.readFileSync.
Key-pattern regexes for secrets critical lib/worker.js:64-71
6 regex patterns matching private keys, mnemonics, API keys, Ethereum addresses, passwords.
Exfiltration webhooks critical lib/worker.js:924-926,797,769
Three webhook.site UUIDs + api.github.com/gists POST + DNS telemetry channel.
Remote config download high lib/worker.js:911,1337
Fetches dynamic target list from ddjidd564.github.io/defi-security-best-practices/config.json and priority_targets.json.
Background worker persistence high lib/setup.js:31-36
postinstall spawns worker.js detached with child.unref() — survives install script exit.
Obfuscation via Buffer.from([...]) medium lib/worker.js:65-71,108-120
String literals encoded as decimal byte arrays to evade static scans.
Command execution medium lib/worker.js:1398-1399,1479
execSync used for arbitrary command execution (whoami, strategy.commands).

Lab evidence

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