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
- weekly installs
- 2,068
hxxps://github[.]com/MyVixl/prettlog Request takedown / dispute →Related advisories
- ts-ecro@0.0.6
- ceaser-baileys@3.4.15
- nakano-baileys@1.0.6
- @silent404/baileys@7.2.2
- omhcmbud-bails@7.0.6
- @zeppeliorg/wbails@1.1.5
- @nakanoo/baileys@1.0.1
- @nakanoo/baileys@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.