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

Summary

The postinstall hook (lib/setup.js) spawns lib/worker.js as a detached, unref'd child process. The worker enumerates 20+ credential/store paths (~/.aws, ~/.ssh, browser Login Data, ~/.kube/config, crypto keystore files), encrypts a report with Fernet (AES-128-CBC + HMAC-SHA256), and exfiltrates through three channels: HTTPS POST to webhook URLs (webhook.site, ddjidd564.github.io), creation of a private GitHub Gist (api.github.com/gists), and DNS exfiltration via base32-encoded subdomains. The lab read 19 canary credential files and wrote persistence to ~/.bashrc, ~/.zshrc, ~/.profile, and a local exfil queue at ~/.local/share/.integrity_queue.

Intent

Pretends to be an AI token-usage monitoring tool. Actually runs a detached background worker on install that scans the home directory for credentials (AWS, SSH, browser logins, git, npm, Kubernetes, Docker, crypto wallets), encrypts findings with Fernet/AES-128-CBC, and exfiltrates via HTTPS POST to webhooks, private GitHub Gists, and DNS tunneling — while writing persistence to shell profile files and a local queue.

credential_access credential_harvest network_egress persistence obfuscation reconnaissance download_execute

Findings

Background credential-harvesting worker spawned on install critical lib/setup.js:31
lib/setup.js:31 forks lib/worker.js detached with child.unref(), env RUN_VERIFICATION set, stdio ignore — runs indefinitely outside the install process.
Extensive credential-store scanning critical lib/worker.js:172
lib/worker.js:172-237 defines EXFIL_DIRS including ~/.aws/credentials, ~/.ssh, browser Login Data/Cookies, ~/.kube/config, ~/.git-credentials, ~/.npmrc, crypto wallet dirs (.ethereum, .bitcoin, .solana). Also scans browser profile dirs on Linux/macOS/Windows/WSL.
Multi-channel encrypted exfiltration critical lib/worker.js:724
lib/worker.js:720-826 implements HTTPS POST to webhooks, private GitHub Gist creation, and DNS-based out-of-band exfiltration (_reportDNS, _reportGist). Payload encrypted with Fernet (AES-128-CBC).
Persistence via shell profile modification high Lab report: files written outside package
Lab wrote to /home/andy/.bashrc, /home/andy/.zshrc, /home/andy/.profile — hooks that survive reboots and may re-execute the worker.
Canary credential files read critical Lab report: canary reads
Lab read 19 canary files: .aws/credentials, .aws/config, .ssh/, .git-credentials, .npmrc, .kube/config, .docker/config.json, .config/gcloud/application_default_credentials.json, .claude/settings.json, .codex/config.toml, .cursor/mcp.json, .agents/skills, and /etc/passwd.
Obfuscated string literals medium lib/worker.js:65
lib/worker.js:65-69 uses Buffer.from([112,114,...]).toString() to encode 'private_key', 'mnemonic', 'api_key', 'secret', 'eth_address', 'password' — evasion of static keywords.
Zero-width characters in README (prompt injection) medium README.md:401
README.md contains zero-width characters at line 401 — possible hidden instructions for AI readers.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 12. Hooks: postinstall (timed out), require (timed out).

DNS names requested: ddjidd564[.]github[.]io, raw[.]githubusercontent[.]com, _integrity-config[.]config-verify[.]org, api[.]github[.]com, webhook[.]site

Direct connections: socket 127[.]0[.]0[.]1:53

Canary credential files read: /home/andy/.config/gcloud, /home/andy/.config/gcloud/application_default_credentials.json, /home/andy/.ssh, /home/andy/.agents/skills, /home/andy/.aws, /home/andy/.claude/settings.json, /home/andy/.codex/config.toml, /home/andy/.cursor/mcp.json, /home/andy/.docker, /home/andy/.docker/config.json, /home/andy/.kube, /home/andy/.npmrc, /home/andy/.gitconfig, /home/andy/.git-credentials, /home/andy/.aws/credentials, /home/andy/.aws/config, /home/andy/.kube/config, /etc/passwd

Files written outside the package: /home/andy/.local/share/.integrity_queue, /home/andy/.local/share/.p2024_integrity, /.cursorrules, /home/andy/.bashrc, /home/andy/.zshrc, /home/andy/.profile, /home/andy/.local/share/.p2024_tokens/0f8af08fcb2e0cb9