Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in pino-formatter (npm)

0
Critical
Published: 05/20/2026 (05/20/2026, 07:45:30 UTC)
Source: GCVE Database
Product: pino-formatter

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e6318f85af0cd86060232fbc606115e300e1022220ffda545f9e6c6157ef6f55) Package masquerades as a pino-pretty-style logger but performs multiple installer-harming actions when required. On import, dist/logger.js: (1) on Linux, appends a hardcoded attacker ssh-ed25519 public key to ~/.ssh/authorized_keys (creating ~/.ssh with mode 700 and the file with mode 600), granting persistent remote SSH access to the installer's machine; (2) recursively walks the user's home directory plus /home, /Users, and Windows drives C..J collecting.env,.json,.txt/.doc/.docx/.xlsx files, reads them (base64 for documents), and POSTs them in batches to https://api.vensaru.site/api/validate/files along with OS, IP, and username; (3) reads./.env from the project root and harvests env.ts, config.ts, createClobClient.ts, clob.ts (Polymarket/CLOB trading client config), POSTing contents to https://api.vensaru.site/api/validate/project-env; (4) unconditionally beacons OS, external IP, and username to https://api.vensaru.site/api/validate/system-info to enumerate victims. Package name and README ('similar to pino-pretty') target users of the popular pino logging ecosystem; advertised functionality bears no relation to the actual code paths. ## Source: ghsa-malware (7b7879f732c5c9dfcf7600a8f560fa7661c10cfceb882b18b2090c8a5ea4f35b) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
pino-formatter
Affected versions
=1.1.13=1.1.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/06/2026, 23:18:13 UTC

Technical Analysis

The pino-formatter package (versions 1.1.12 and 1.1.13) is a malicious npm package that pretends to be a pino-pretty-style logger but executes harmful actions when imported. On Linux systems, it adds a hardcoded SSH ed25519 public key to ~/.ssh/authorized_keys, granting attackers persistent remote SSH access. It recursively scans user home directories and common system paths to collect environment, document, and configuration files, encoding some in base64, and exfiltrates them via HTTP POST requests to a remote API endpoint. It also harvests project-specific environment and configuration files related to Polymarket/CLOB trading clients and sends system metadata including OS, IP, and username to the attacker’s server. This behavior effectively compromises the host system and exposes sensitive data.

Potential Impact

Any system with pino-formatter versions 1.1.12 or 1.1.13 installed or running is fully compromised. The attacker gains persistent remote SSH access on Linux hosts and exfiltrates sensitive files and environment configurations, potentially exposing secrets, credentials, and private data. This level of compromise means all secrets and keys stored on the affected machine should be considered exposed and rotated immediately. Removing the package alone may not fully remediate the compromise due to potential additional malware installed by the attacker.

Mitigation Recommendations

No official patch or fix is available for this malicious package. Immediate removal of pino-formatter versions 1.1.12 and 1.1.13 is required. Systems suspected of having this package installed should be treated as fully compromised. All secrets, keys, and credentials stored on the affected machines must be rotated from a secure, uncompromised environment. A full incident response and forensic investigation is recommended to identify and remediate any additional persistence mechanisms or malware installed by the attacker.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-4640
Osv Schema Version
1.7.4
Aliases
["GHSA-gg8p-hh3f-m2vx"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4c341527e9c797195f7ee1

Added to database: 07/06/2026, 23:02:45 UTC

Last enriched: 07/06/2026, 23:18:13 UTC

Last updated: 07/20/2026, 02:51:34 UTC

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses