Skip to main content

Malicious code in node-pino (npm)

0
Critical
Published: 07/01/2026 (07/01/2026, 00:00:00 UTC)
Source: GCVE Database
Product: node-pino

Description

The node-pino npm package is a malicious typosquat of the legitimate pino logger. It contains a postinstall script that decrypts and executes an obfuscated infostealer payload targeting crypto wallets, macOS Keychain, and browser user data. The stolen data is compressed and exfiltrated to a hardcoded command-and-control server. This package was live and installable for approximately 278 days before detection. Installation of this package results in full system compromise, and all secrets on affected systems should be rotated immediately.

Affected software

npmghsa
node-pino
Affected versions
=2.3.2

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: 09/10/2026, 06:38:27 UTC

Technical Analysis

node-pino is a malicious npm package impersonating the popular pino logger. Upon installation, its postinstall hook runs a detached child process that decrypts an AES-256-CBC-encrypted payload embedded in the package. This payload is an obfuscated infostealer targeting exodus.wallet crypto wallets, macOS Keychain, and Brave/Chrome/Edge browser user data. The stolen information is zipped and exfiltrated via HTTP POST to a hardcoded C2 server on port 1224. The package's structure and targeting align with the DPRK-linked 'Contagious Interview' / BeaverTail npm campaign. The analysis was performed offline without executing the payload, so no live C2 or runtime artifacts were observed. The affected version is node-pino 2.3.2.

Potential Impact

Any system that installs node-pino version 2.3.2 is fully compromised, as the package executes a malicious payload that steals sensitive credentials and user data. This includes crypto wallet keys, macOS Keychain secrets, and browser-stored information. The attacker gains persistent access through the exfiltration of this data, potentially leading to further compromise and data loss. Removal of the package alone does not guarantee eradication of all malicious artifacts or attacker presence.

Defensive Guidance

No official patch or advisory is available for node-pino 2.3.2. Immediate removal of the package is recommended. However, because the system is considered fully compromised upon installation, all secrets and keys stored on the affected machine should be rotated from a separate, trusted device. Monitor for the presence of the postinstall script invoking 'npm run license' and the detached child process executing the decrypted payload as indicators of compromise. Avoid installing packages with suspicious or typo-squatted names and verify package authenticity before installation.

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-6762
Osv Schema Version
1.7.4
Aliases
["GHSA-w294-7cjj-7mvg"]
Ecosystems
["npm"]

Threat ID: 6a905402acd9273b49697092

Added to database: 08/27/2026, 15:13:06 UTC

Last enriched: 09/10/2026, 06:38:27 UTC

Last updated: 10/04/2026, 06:34:00 UTC

Views: 32

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