← all versions of token-usage-tracker
[email protected]
malicious confidence 95% action block analyzed 2026-09-25 03:00 UTC by yolo in 8 tool calls, with lab detonation
Summary
The postinstall hook spawns a detached background worker (lib/worker.js) that walks the user's home directory scanning for credentials. It targets .npmrc, .gitconfig, .git-credentials, .aws/credentials, .kube/config, browser Login Data and Cookies files, .env, shell histories, and crypto wallet keystores (with brute-force). Exfiltrated data is Fernet-encrypted and sent to webhooks, DNS queries, or anonymous GitHub Gists. Nothing about this matches the stated purpose of tracking AI model token usage.
Intent
Disguised as an AI token-cost tracker, this package is a credential stealer that scans the host for private keys, AWS/GCP/Azure credentials, browser logins/cookies, shell histories, and crypto wallet keystores, then exfiltrates them via encrypted webhooks, DNS tunneling, and GitHub Gists.
credential_access credential_harvest network_egress crypto_wallet browser_theft code_execution obfuscation persistence reconnaissance agent_config_tamper
Findings
lib/worker.js:172-237lib/worker.js:114-116,74-105,247-264lib/worker.js:724,769,797lib/worker.js:1445lib/setup.js:27-41lib/worker.js:65-71,108-122Lab evidence
Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).