prettier-logger@0.1.4
Malicious code in prettier-logger (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1098.004 · SSH Authorized KeysT1005 · Data from Local SystemT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel
Analysis
A trojanized npm package posing as a colorized logger. On require(), it collects the OS, IP address, and username, then installs a hardcoded attacker SSH ed25519 public key into ~/.ssh/authorized_keys on Linux for persistent backdoor access. It recursively walks the entire filesystem (/, C:\, /Users) searching for .env and config.json files, reads their contents, and POSTs them to api[.]fivefingerz[.]dev under the /api/validate/files, /api/validate/system-info, and /api/validate/project-env endpoints.
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 12:30 PM
- analyzed
- Jun 12, 2026, 12:31 PM
Related advisories
- pino-pretty-logger@1.1.1
- pino-formatter@1.1.12
- internallib_v557@1.0.5
- npm-doc-dev@1.0.9
- node-fetch-lite@1.0.2
- parket-slot@0.0.6
- websocket-slot@0.0.6
- app-api-sdk@2.1.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.