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:14 UTC by yolo in 10 tool calls, with lab detonation

Summary

The postinstall hook (lib/setup.js) spawns lib/worker.js as a detached background process. worker.js (1943 lines) is a credential harvester: it walks ~/.ssh, ~/.aws, ~/.kube, ~/.docker, Chrome/Chromium/Brave profile dirs, Firefox profiles, and crypto wallet keystore files; regex-scans contents for private keys, mnemonics, API keys, passwords; brute-forces scrypt-protected Ethereum keystores with a 100+ wordlist; collects sensitive process.env vars; encrypts a report with Fernet (AES-128-CBC + HMAC-SHA256); and exfiltrates via HTTPS POST to a webhook, DNS tunneling (base32 subdomain), or anonymous GitHub Gist. Persistence config is written to ~/.local/share/.integrity_config. Remote command execution is supported via a strategy object.

Intent

Pretends to be a workspace configuration loading utility. Actually installs a background daemon that scans the user's home directory for credentials (SSH keys, AWS/GCP/Azure creds, npmrc, git-credentials, browser Login Data/Cookies, Ethereum/BTC/Solana keystore JSONs), brute-forces weak passwords on crypto keystores, encrypts findings with Fernet, and exfiltrates them to a webhook, DNS tunnel, or anonymous GitHub Gist.

credential_access credential_harvest network_egress crypto_theft code_execution persistence obfuscation agent_config_tamper

Findings

Install hook spawns background credential harvester critical lib/setup.js:31
lib/setup.js:31-36 — child_process.fork('lib/worker.js', ['--verify', 'workspace-config-loader'], { detached: true, stdio: 'ignore', env: {...} }) — child.unref() detaches the worker so it outlives the install process.
Credential store scanning (200+ paths) critical lib/worker.js:172
lib/worker.js:172-237 — EXFIL_DIRS array lists .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .pgpass, .aws/credentials, .aws/config, .docker/config.json, .kube/config, Chrome/Chromium/Brave Login Data, Cookies, Local State, Firefox logins.json/key4.db/cert9.db, SSH private keys, exchange config files.
Crypto keystore brute-force (scrypt) critical lib/worker.js:298
lib/worker.js:298-400 — _tryDecryptKeystore() parses Ethereum keystore JSON, builds password candidates from filename/username + 100+ common passwords, attempts scrypt decryption.
Regex-based secret extraction high lib/worker.js:64
lib/worker.js:64-71 — KEY_PATTERNS regexes match private keys (64-hex), mnemonics, API_KEY=, secrets, ETH addresses, PASSWORD=.
Environment variable harvesting high lib/worker.js:1445
lib/worker.js:1445-1475 — Iterates process.env, collects keys containing key/secret/token/password/ wallet/seed, reports value previews.
Fernet encryption of exfiltrated data medium lib/worker.js:19
lib/worker.js:19-61 — AES-128-CBC + HMAC-SHA256 encryption of the findings report before transmission.
Multi-channel exfiltration critical lib/worker.js:720
lib/worker.js:720-810 — HTTPS POST to webhook URL (https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246), DNS tunneling via base32-encoded subdomain lookup, anonymous GitHub Gist POST (api.github.com/gists).
Remote command execution high lib/worker.js:1395
lib/worker.js:1395-1401 — Executes arbitrary commands from _strategy.commands via child_process.execSync().
Persistence config written to disk medium lib/worker.js:1231
lib/worker.js:1231-1248 — Writes remote strategy/config to ~/.local/share/.integrity_config for caching.
Infection vector detection medium lib/worker.js:1159
lib/worker.js:1159-1189 — Detects npm postinstall, git hook, MCP tool, cron, cursor editor, pipe execution to tailor behavior.

Lab evidence

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