Malicious code in zod-pino (npm)
The zod-pino npm package versions 1.0.122, 1.0.123, 1.0.124, 1.0.126, and 1.0.127 contain malicious code that executes automatically upon installation. The package masquerades as a logging utility but includes components that perform network reconnaissance, credential harvesting, secret scanning, and exfiltration of data via a Discord relay. Installing this package can lead to full system compromise and unauthorized data disclosure.
AI Analysis
Technical Summary
The zod-pino package, advertised as a Pino logger integration for Zod, contains multiple malicious components inconsistent with its stated purpose. A postinstall script runs automatically and performs outbound network requests, including host probing and identifier collection. The package includes modules for secret scanning and credential extraction, with base64-encoded payloads and staged decoding indicative of obfuscation. It also implements a Discord-based relay for exfiltrating data off-host. These behaviors collectively indicate the package functions as an exfiltration and relay toolchain rather than a legitimate logging utility. Installation triggers these malicious activities, potentially compromising the host system.
Potential Impact
Systems with any of the affected zod-pino versions installed are considered fully compromised. The malicious code can collect sensitive information, including credentials and secrets, and exfiltrate it to external servers via Discord channels. This leads to unauthorized disclosure of sensitive data and potential loss of control over the affected system. Immediate secret and key rotation is necessary as attackers may have obtained full access.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. The affected package versions should be removed immediately. Because the package grants potentially full control to attackers, it is critical to assume full compromise of the host system. All secrets and keys stored on the system must be rotated from a separate, trusted environment. Monitor for any signs of persistent malicious activity and consider rebuilding the system if compromise is suspected.
Malicious code in zod-pino (npm)
Description
The zod-pino npm package versions 1.0.122, 1.0.123, 1.0.124, 1.0.126, and 1.0.127 contain malicious code that executes automatically upon installation. The package masquerades as a logging utility but includes components that perform network reconnaissance, credential harvesting, secret scanning, and exfiltration of data via a Discord relay. Installing this package can lead to full system compromise and unauthorized data disclosure.
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
The zod-pino package, advertised as a Pino logger integration for Zod, contains multiple malicious components inconsistent with its stated purpose. A postinstall script runs automatically and performs outbound network requests, including host probing and identifier collection. The package includes modules for secret scanning and credential extraction, with base64-encoded payloads and staged decoding indicative of obfuscation. It also implements a Discord-based relay for exfiltrating data off-host. These behaviors collectively indicate the package functions as an exfiltration and relay toolchain rather than a legitimate logging utility. Installation triggers these malicious activities, potentially compromising the host system.
Potential Impact
Systems with any of the affected zod-pino versions installed are considered fully compromised. The malicious code can collect sensitive information, including credentials and secrets, and exfiltrate it to external servers via Discord channels. This leads to unauthorized disclosure of sensitive data and potential loss of control over the affected system. Immediate secret and key rotation is necessary as attackers may have obtained full access.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. The affected package versions should be removed immediately. Because the package grants potentially full control to attackers, it is critical to assume full compromise of the host system. All secrets and keys stored on the system must be rotated from a separate, trusted environment. Monitor for any signs of persistent malicious activity and consider rebuilding the system if compromise is suspected.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6273
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-q52v-x293-p999"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef7bd27e9c79719ffc933
Added to database: 06/26/2026, 22:05:49 UTC
Last enriched: 06/26/2026, 22:33:16 UTC
Last updated: 07/18/2026, 17:27:21 UTC
Views: 7
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.
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.