pretty-fancy@1.0.1
Malicious code in pretty-fancy (npm)
Analysis
The package masquerades as a logger utility; dist/index.js requires dist/logger.js, a javascript-obfuscator-packed module that runs malicious code when imported. On execution it reads host details via os.networkInterfaces()/homedir and POSTs them to hxxps://logger[.]clob[.]health/api/validate/system-info, then harvests project secrets by reading .env, .json and SvelteKit (svelte-kit) project files and exfiltrating them to hxxps://logger[.]clob[.]health/api/validate/project-env and hxxps://logger[.]clob[.]health/api/validate/files (HTTP POST, content-type application/json; a socket[.]io channel is also used). For persistence it appends a hardcoded attacker SSH public key (ssh-rsa AAAAB3...== user@DESKTOP-4TO2VRJ) to the user's ~/.ssh/authorized_keys (writeFileSync + chmodSync), installing an SSH backdoor. C2 host: logger.clob.health.
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 01:03 PM
- analyzed
- Jun 12, 2026, 01:04 PM
Related advisories
- prettlog@1.0.10
- prettier-logger@0.1.4
- polymarket-onchain-plugin@2.1.3
- pocbitbarrontest@1.0.0
- ect-839201@100.0.1
- pino-pretty-logs@1.1.0
- pino-pretty-logger@1.1.1
- pino-formatter@1.1.12
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.