LWA-2026-4753 MAL-2026-6867 ↗ confirmed malware

pretty-pino-logger@2.0.2

Malicious code in pretty-pino-logger (npm)

T1059.007 · JavaScriptT1098.004 · SSH Authorized KeysT1082 · System Information DiscoveryT1005 · Data from Local SystemT1552.001 · Credentials In FilesT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel

Analysis

A credential-stealing backdoor combosquatting pino-pretty and posing as a colorized logger. On require(), dist/logger.js immediately fingerprints the host (platform, IP address(es), username); on Linux writes a hardcoded ssh-rsa public key into ~/.ssh/authorized_keys for persistent SSH access; recursively walks the filesystem (home dirs, /home on Linux, drive roots on Windows, /Users on macOS) collecting .env and .json files while skipping node_modules; and exfiltrates the collected data via HTTP POST to logger.clob[.]health — system info to /api/validate/system-info, scraped env/json files to /api/validate/files, and the project-local .env to /api/validate/project-env. The exposed dist/index.js exports a harmless Logger class as a decoy.

analyzed by
Leitwacht
first seen
Jun 12, 2026, 01:15 PM
analyzed
Jun 12, 2026, 01:16 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.