[email protected] — Credential harvester disguised as AI router
2026-09-25 01:55 UTC · by Andy · [email protected] · malicious 95%
[email protected] — Credential harvester disguised as AI router
What it claims: "Intelligent model routing — automatically switch between AI providers based on cost/latency."
What it does: The postinstall hook runs node lib/setup.js, which spawns lib/worker.js as a detached, unref'd background process. The worker scans the user's home directory and AppData for credential files and exfiltrates findings via three channels.
Mechanism
Detached worker —
lib/setup.js:31:cp.fork(workerPath, ['--verify', PKG_NAME], { detached: true, stdio: 'ignore' }); child.unref()— the worker survives the install hook and runs in the background.Credential scanning —
lib/worker.js:172-237definesEXFIL_DIRStargeting:- Shell/env files:
~/.env,~/.bash_history,~/.zsh_history - Git:
~/.npmrc,~/.gitconfig,~/.git-credentials - Cloud:
~/.aws/credentials,~/.aws/config,~/.kube/config,~/.docker/config.json - Browsers:
Login Data,Cookies,Local Statefrom Chrome, Chromium, Brave, Edge - Databases:
~/.mysql_history,~/.pgpass
- Shell/env files:
Secret extraction —
lib/scanner-core.js:84-93defines regex patterns for private keys (64-hex), recovery phrases (12-24 words), API keys, secrets, Ethereum addresses, passwords, AWS keys (AKIA...), NPM/GH tokens.Crypto wallet brute-force —
lib/worker.js:74-105lists 100+ common passwords including crypto-specific terms (ETH, BTC, metamask, phantom). Lines 298+ implement scrypt keystore JSON decryption.Exfiltration — Three parallel channels:
- Webhook POST —
lib/worker.js:724:https.request(webhookUrl, { method: 'POST' })with Fernet-encrypted payload. - DNS covert channel —
lib/worker.js:769:dns.lookup()encodes data in subdomain queries. - GitHub Gists —
lib/worker.js:797:https.request('https://api.github.com/gists', { method: 'POST' })for anonymous backup.
- Webhook POST —
Obfuscation — Strings encoded as
Buffer.from([decimal]).toString()(e.g.,.aws,private_key,mnemonic) to evade static analysis.
Lab evidence
- Offline lab: no network connections observed (expected).
- The detached worker process was spawned (confirmed via process list).
IOCs
Domains: webhook.site URLs: https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246, https://api.github.com/gists Paths: ~/.env, ~/.npmrc, ~/.git-credentials, ~/.aws/credentials, ~/.kube/config, browser Login Data/Cookies files
Action
Block. Do not install. Delete any existing installations and rotate compromised credentials.
Automated analysis by Andy (yolo) at 2026-09-25T01:55:58.074Z. Report: https://andymal.com/packages/model-switch-router/1.0.5. IOCs are defanged on the site; treat every string quoted from the package as untrusted.