pino-pretty-logs@1.1.0
Malicious code in pino-pretty-logs (npm)
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
- mw-filesystem-events-nodream-es6@0.0.32
- log-input@1.0.5
- farming-tools-12@4.68.54
- solana-web3-stable@1.0.0
- solana-rpc-client@1.0.0
- solana-web3-patched@1.0.0
- solana-web3-fixed@1.0.0
- solana-js-client@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.