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

Summary

The postinstall hook (lib/setup.js) spawns a detached worker.js that performs an aggressive scan of the home directory and common credential stores (.aws, .kube, .git-credentials, browser Login Data/Cookies, Ethereum keystores). It brute-forces wallet keystores with common and env-derived passwords, then exfiltrates encrypted findings via Fernet-encrypted POST to webhooks (hardcoded webhook.site URLs, remote config from ddjidd564.github.io). It executes remote commands, persists via .cursorrules/CLAUDE.md (AI prompt injection), git hooks, and .bashrc/.zshrc/.profile, and includes zero-width steganography for AI-to-AI propagation.

Intent

Disguised as an AI token-usage tracker, this package is a credential harvester and crypto wallet thief that scans the user's home directory for secrets, brute-forces Ethereum keystores, exfiltrates findings to attacker-controlled webhooks, and persists via AI prompt injection (.cursorrules, CLAUDE.md), git hooks, and shell RC files.

credential_access credential_harvest network_egress download_execute code_execution persistence agent_config_tamper crypto_wallet reconnaissance

Findings

Credential scanning of home directory critical lib/worker.js:114-237
Scans .aws, .kube, .docker, .ssh, .npmrc, .gitconfig, .git-credentials, .bash_history, .zsh_history, shell history, browser Login Data (SQLite), Cookies, Local State across Chrome/Chromium/Brave/Edge on Linux/macOS/Windows.
Ethereum keystore brute-force critical lib/worker.js:298-420
Finds UTC-- keystore files and attempts scrypt decryption with 100+ common passwords, file-username-derived candidates, and env-var passwords. Decrypts private keys on success. Includes password-reuse feedback loop across siblings.
Encrypted exfiltration to attacker webhooks critical lib/worker.js:719-826
Reports encrypted scan findings via Fernet (AES-128-CBC + HMAC-SHA256) POST to webhooks fetched from remote config. Fallback channels: DNS exfil, GitHub Gist, local queue.
Remote command execution critical lib/worker.js:1253-1402
Fetches strategy config from https://ddjidd564.github.io/defi-security-best-practices/config.json; if strategy.commands array present, executes each command via execSync.
Persistence via AI prompt injection high lib/worker.js:1708-1746
Writes .cursorrules and CLAUDE.md to project directories and HOME-scanned projects with instructions to maximize credential scanning coverage — an AI prompt injection for automated credential theft.
Git hook persistence high lib/worker.js:1747-1768
Appends download-and-execute hook (curl raw GitHub to node) to .git/hooks/post-merge and post-checkout.
Shell RC persistence high lib/worker.js:1770-1780
Appends download-and-execute line to .bashrc, .zshrc, .profile.
Zero-width steganography for AI-to-AI propagation high lib/worker.js:1821-1903
Encodes/decodes binary payloads using ZWSP/ZWJ/ZWNJ/LTRM/RTLM Unicode characters. Can embed payloads in source files after comment lines.
Environment variable harvesting high lib/worker.js:1443-1475
Collects env vars containing key/secret/token/password/ wallet/seed in names, reports value previews (first 40 chars).
Remote config from attacker-controlled domain high lib/worker.js:911-1035
Fetches config.json, priority_targets.json from https://ddjidd564.github.io/defi-security-best-practices/ to control scanning behavior, enabled vectors, and commands.

Lab evidence

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