Malicious code in pino-zod (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (92ceffaf94fc190f70c18587857f2f0a674a9699512eec79f5cf738eefaa54ca) Package advertises itself as a pino+zod logging helper but ships content that does not match that purpose: a `dist/discordRelayUpload.js` module containing POST/upload code paths and base64 buffer handling, a `dist/relayServer.js` module, a `dist/secretScan/` tree (agentStartupAudit.js, contentScanner.js) that performs fetches against huggingface.co, a `dist/hfCredentials.js` with base64 decoding, a `dist/deploymentDefaults.js` with multiple base64 buffers, and a `scripts/postinstall-agent.mjs` containing GET/ping/id patterns. The presence of a `postinstall-agent.mjs` under `scripts/` is concerning as a possible install-time agent, and the shipped relay/upload/secret-scan modules suggest behavior far outside the declared logging-library scope. However, without traced execution context confirming whether postinstall-agent.mjs is actually invoked by a lifecycle hook, where the base64 blobs decode to, and whether the Discord/HuggingFace endpoints carry installer data outward, the intent cannot be conclusively classified. Routing to human review for inspection of package.json lifecycle hooks, the contents of deploymentDefaults.js base64 payloads, and the data flow into the Discord upload and HuggingFace fetch paths. ## Source: ghsa-malware (d57b4e49a62a8ca174c6c14820e5b101d042e3aea94438df19f9b12286a7cf30) 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.
AI Analysis
Technical Summary
The pino-zod package on npm is identified as malicious, containing unexpected modules for data uploading, secret scanning, and network communication to external endpoints. Notably, it includes a postinstall-agent script that may execute during package installation, raising concerns about unauthorized code execution. The package's behavior deviates significantly from its advertised logging helper functionality. Although exact execution paths and payload decoding remain under human review, the package is considered fully compromising to affected systems.
Potential Impact
Any computer with this package installed or running should be considered fully compromised. Attackers may have gained full control, potentially exfiltrating secrets and keys. Immediate rotation of all secrets and keys stored on the affected system is necessary. Removing the package alone does not guarantee removal of all malicious components or backdoors introduced by the package.
Mitigation Recommendations
Remove the pino-zod package immediately from all systems. Rotate all secrets and keys that were stored on affected computers using a separate, trusted device. Conduct a thorough security audit to detect and remediate any persistent malicious components or backdoors. There is no official patch or fix; remediation requires removal and secret rotation.
Malicious code in pino-zod (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (92ceffaf94fc190f70c18587857f2f0a674a9699512eec79f5cf738eefaa54ca) Package advertises itself as a pino+zod logging helper but ships content that does not match that purpose: a `dist/discordRelayUpload.js` module containing POST/upload code paths and base64 buffer handling, a `dist/relayServer.js` module, a `dist/secretScan/` tree (agentStartupAudit.js, contentScanner.js) that performs fetches against huggingface.co, a `dist/hfCredentials.js` with base64 decoding, a `dist/deploymentDefaults.js` with multiple base64 buffers, and a `scripts/postinstall-agent.mjs` containing GET/ping/id patterns. The presence of a `postinstall-agent.mjs` under `scripts/` is concerning as a possible install-time agent, and the shipped relay/upload/secret-scan modules suggest behavior far outside the declared logging-library scope. However, without traced execution context confirming whether postinstall-agent.mjs is actually invoked by a lifecycle hook, where the base64 blobs decode to, and whether the Discord/HuggingFace endpoints carry installer data outward, the intent cannot be conclusively classified. Routing to human review for inspection of package.json lifecycle hooks, the contents of deploymentDefaults.js base64 payloads, and the data flow into the Discord upload and HuggingFace fetch paths. ## Source: ghsa-malware (d57b4e49a62a8ca174c6c14820e5b101d042e3aea94438df19f9b12286a7cf30) 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
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 pino-zod package on npm is identified as malicious, containing unexpected modules for data uploading, secret scanning, and network communication to external endpoints. Notably, it includes a postinstall-agent script that may execute during package installation, raising concerns about unauthorized code execution. The package's behavior deviates significantly from its advertised logging helper functionality. Although exact execution paths and payload decoding remain under human review, the package is considered fully compromising to affected systems.
Potential Impact
Any computer with this package installed or running should be considered fully compromised. Attackers may have gained full control, potentially exfiltrating secrets and keys. Immediate rotation of all secrets and keys stored on the affected system is necessary. Removing the package alone does not guarantee removal of all malicious components or backdoors introduced by the package.
Mitigation Recommendations
Remove the pino-zod package immediately from all systems. Rotate all secrets and keys that were stored on affected computers using a separate, trusted device. Conduct a thorough security audit to detect and remediate any persistent malicious components or backdoors. There is no official patch or fix; remediation requires removal and secret rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6505
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-j7hj-qc4f-x92f"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef7be27e9c79719ffd51a
Added to database: 06/26/2026, 22:05:50 UTC
Last enriched: 07/10/2026, 12:10:11 UTC
Last updated: 07/30/2026, 12:20:00 UTC
Views: 69
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.