Malicious code in node-pino (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.