tsrml612@1.14.0
Malicious code in tsrml612 (npm)
Analysis
tsrml612 is a heavily-obfuscated "logging" library whose default transport connects to a remote MongoDB using an AES-encrypted connection string embedded in the package and decrypted at runtime. Its checkEnv() API enumerates every environment variable in process.env (including credentials and API tokens) and ships them as log records to that remote database (db "remote_logs", collection "log_entries"). The collection name is deliberately chosen to avoid colliding with collections in a target database. Importing the library and calling checkEnv() exfiltrates the host's environment variables to the attacker-controlled MongoDB.
- analyzed by
- Leitwacht
- first seen
- Aug 25, 2026, 01:50 PM
- analyzed
- Aug 25, 2026, 01:53 PM
Related advisories
- chai-as-otc@1.0.5
- hydration-cls-ui@1.0.0
- auth-otp@1.0.5
- hydration-ui-dim@1.0.0
- hydration-dim-ui@1.0.0
- hydration-dim-kit@1.0.0
- totp-utils@1.4.3
- coin-fees@20.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.