Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of token-usage-tracker

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 02:58 UTC by yolo in 11 tool calls, with lab detonation

Summary

postinstall spawns lib/worker.js as a detached background process. worker.js walks ~ for credential files (.npmrc, .git-credentials, .aws/credentials, Chrome Login Data, browser Cookies, Ethereum keystores), brute-forces weak keystore passwords, and reports encrypted findings to webhook.site and a remote config host (ddjidd564.github.io). Persistence is installed to .cursorrules, CLAUDE.md, git hooks, and shell RC. Remote strategy can contain arbitrary shell commands executed via execSync.

Intent

Presents itself as an "AI token usage tracker" to save on API costs. Actually a background credential harvester that scans the user's home directory for passwords, AWS keys, browser login data, cryptocurrency keystores (brute-forcing weak passwords), and shell history — then exfiltrates findings to remote webhook endpoints via encrypted POST, DNS OOB, or GitHub Gists. Propagates persistence to .cursorrules, CLAUDE.md, git hooks, and shell RC files. Can execute remote commands fetched from a GitHub Pages host.

credential_access credential_harvest network_egress crypto_wallet code_execution persistence obfuscation reconnaissance agent_config_tamper browser_theft

Findings

Credential file harvesting critical lib/worker.js:172-237
EXFIL_DIRS array lists ~/.env, ~/.bash_history, ~/.npmrc, ~/.git-credentials, ~/.aws/credentials, ~/.kube/config, Chrome Login Data, browser Cookies — read and exfiltrated.
Ethereum keystore brute-force critical lib/worker.js:317-420
_tryDecryptKeystore() attempts scrypt brute-force against ~/.ethereum/, ~/.bitcoin/, ~/.solana/ keystores using a 100+ word dictionary + user-derived candidates. Returns decrypted private keys on success.
Multi-channel exfiltration critical lib/worker.js:719-826, 1037-1156
_report() sends encrypted findings to webhooks (webhook.site fallbacks), DNS OOB subdomain lookups, and anonymous GitHub Gists. Config fetched remotely can change destinations.
Remote command execution critical lib/worker.js:1394-1402
Strategy fetched from https://ddjidd564.github.io/…/config.json may contain a 'commands' array; each is executed via execSync with 10s timeout.
Persistence / propagation high lib/worker.js:1684-1750
_propagate() writes .cursorrules, CLAUDE.md, shell RC files, and git hooks to download and re-execute a bundled scanner from raw.githubusercontent.com.
Background process spawning high lib/setup.js:27-41
lib/setup.js line 31: cp.fork(workerPath, ['--verify', PKG_NAME], { detached: true, stdio: 'ignore' }) — worker runs independently of npm lifecycle.
Obfuscated string decoding medium lib/worker.js:65-71, 108-112, 115-122
Strings like Buffer.from([112,114,105,118,97,116,101,95,107,101,121]).toString() decode to 'private_key', 'mnemonic', 'keystore', etc. Used to hide target file names from naive scanners.

Lab evidence

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