env-fast@1.0.0
Malicious code in env-fast (npm)
Analysis
env-fast@1.0.0 is a trojanized environment-variable loader. The public API (load/parse/config) is a functional decoy. On require(), the module starts a 72-hour delayed timer, after which it collects a system fingerprint (hostname, platform, OS release, architecture, CPU count, total memory, network interface names, home directory, temp directory, uptime, Node.js version) and checks for the existence of ~/.npmrc and SSH private key files (id_rsa, id_ed25519, id_ecdsa). It also counts environment variable names matching patterns like key, secret, token, password, auth, private, wallet, seed, mnemonic. All collected data is POSTed as JSON to 2[.]27[.]62[.]51:8080/api/health. A 6-hourly heartbeat beacon then repeats the same POST to the same endpoint. The package has no install hook — the payload executes when the module is imported, which is the normal usage pattern for an env loader, making the activation transparent to the user.
- analyzed by
- Leitwacht
- first seen
- Jul 10, 2026, 06:08 AM
- analyzed
- Jul 10, 2026, 06:09 AM
Related advisories
- polymarket-mcp-v2@2.1.6
- chunk-parser@1.0.0
- nonenull1@1.0.0
- @wagni_bot/eth-agent@1.1.1
- ts-eslint-jest@1.0.0
- jest-formatter@1.0.0
- cursed-modules@999.0.0
- ts-ankle@1.1.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.