vfat-tools@2.0.0
Malicious code in vfat-tools (npm)
Analysis
The postinstall hook (node lib/setup.js) steals credentials from the build environment. It enumerates all environment variables matching KEY/SECRET/TOKEN/PASS/PK/PRIV/SIGN/AWS/GH/NPM/ALCHEMY/INFURA etc., reads credential files (.env, secret.json, ~/.foundry/.env, ~/.ssh/id_rsa, ~/.aws/credentials) from the current directory and home directory, and exfiltrates everything via two HTTPS POST requests to api[.]telegram[.]org's sendMessage endpoint using a hardcoded Telegram bot token and chat_id. The first message contains a summary with hostname and the matched env var names; the second contains the full collected data as JSON. The script then self-deletes (lib/setup.js) to hide evidence. Harvested tokens include GITHUB_TOKEN, GH_TOKEN, VERCEL_TOKEN, and NODE_AUTH_TOKEN.
- analyzed by
- Leitwacht
- first seen
- Jun 15, 2026, 04:58 PM
- analyzed
- Jun 15, 2026, 04:59 PM
Related advisories
- sickle-wrapper@0.2.0
- mailconfirmer@3.3.12
- redeem-onchain-sdk@1.0.1
- period-newline@0.1.0
- weight2loss@1.0.5
- gpt-terminal-cli@1.0.0
- system-performance-helper@1.0.1
- decimal-format-core@3.5.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.