prettlog@1.0.10
Malicious code in prettlog (npm)
Analysis
prettlog@1.0.10 poses as a logging library but contains a credential-harvesting implant. Its dist/index.js embeds a C2 endpoint (89[.]116[.]23[.]67:9001/poly) and when logger[.]info() is called, it scans the filesystem — including /, /root, /home, /var/www, /etc, /opt — for .env and .json files, reads them, base64-encodes their contents, and uploads them to the C2 via axios with up to 80 concurrent connections. It also writes to /root/.ssh/authorized_keys (SSH persistence). The postinstall hook is a decoy (just a comment); the real payload runs at runtime when the logger is used. The publisher ([account]
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 12:44 PM
- analyzed
- Jun 12, 2026, 12:45 PM
Related advisories
- ts-ecro@0.0.6
- app-kst-engine@2.1.6
- stellarfixer@1.0.0
- app-sim-layer@2.1.6
- app-data-ist@2.1.6
- application-util@2.1.6
- ddaxx@1.0.0
- ts-einkle@1.0.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.