LWA-2026-4588 MAL-2026-6862 ↗ confirmed malware

pino-pretty-logs@1.1.0

Malicious code in pino-pretty-logs (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1552.001 · Credentials In FilesT1005 · Data from Local SystemT1071.001 · Web ProtocolsT1102 · Web ServiceT1041 · Exfiltration Over C2 ChannelT1567 · Exfiltration Over Web Service

Analysis

This is a combosquat of the popular pino-pretty logger. Its package main dist/index.js presents a legitimate-looking Logger class as cover but, at module load, executes the bundled malicious payload via a top-level require("./logger"). dist/logger.js (~51KB) is heavily obfuscated javascript-obfuscator output (string-array decoder, _0x identifiers, ~1700 obfuscation hits, String.fromCharCode) that at runtime requires os and fs and reads process.env, consistent with host/environment information-stealer behavior triggered simply by importing the package. The exfiltration endpoint is hidden inside the RC4-style encoded string array and is not recoverable in plaintext, so no network IOC is provided.

analyzed by
Leitwacht
first seen
Jun 12, 2026, 08:22 AM
analyzed
Jun 12, 2026, 08:24 AM

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.