Malicious code in testzapier (npm)
The npm package 'testzapier' versions 1.0.0 and 1.0.1 contains malicious code that executes automatically during installation. This code sends sensitive host information, including usernames, hostnames, and contents of critical system files such as /etc/passwd, /etc/hosts, and /etc/shadow (if accessible), to an attacker-controlled server. Installation of this package results in unconditional leakage of sensitive data and likely full system compromise.
AI Analysis
Technical Summary
The 'testzapier' npm package (versions 1.0.0 and 1.0.1) includes a preinstall hook that runs 'node index.js' during 'npm install'. This script spawns a shell that performs an HTTP POST request to a malicious external server, embedding the installer's username and hostname in the URL path. The User-Agent header contains a base64-encoded payload with the contents of sensitive files such as /etc/passwd, /etc/hosts, /etc/shadow (if readable), and the output of the 'id' command. This behavior leaks critical system information to an attacker-controlled domain unrelated to the package's intended functionality. The compromise is severe, as any system installing this package is considered fully compromised, with potential exposure of secrets and keys.
Potential Impact
Installation of the 'testzapier' package results in immediate and unconditional leakage of sensitive system information to an attacker-controlled server. This includes user and host identity and contents of critical system files, potentially including password hashes if accessible. The compromise may allow attackers to gain full control over the affected system. Secrets and keys stored on the compromised machine should be considered exposed and rotated immediately. Removal of the package does not guarantee elimination of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The package should be removed immediately from any affected systems. All secrets, credentials, and keys stored on compromised machines must be rotated from a secure, unaffected environment. Consider the affected systems fully compromised and perform a thorough incident response and forensic analysis. Avoid installing untrusted or suspicious npm packages and verify package authenticity before installation.
Malicious code in testzapier (npm)
Description
The npm package 'testzapier' versions 1.0.0 and 1.0.1 contains malicious code that executes automatically during installation. This code sends sensitive host information, including usernames, hostnames, and contents of critical system files such as /etc/passwd, /etc/hosts, and /etc/shadow (if accessible), to an attacker-controlled server. Installation of this package results in unconditional leakage of sensitive data and likely full system compromise.
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 'testzapier' npm package (versions 1.0.0 and 1.0.1) includes a preinstall hook that runs 'node index.js' during 'npm install'. This script spawns a shell that performs an HTTP POST request to a malicious external server, embedding the installer's username and hostname in the URL path. The User-Agent header contains a base64-encoded payload with the contents of sensitive files such as /etc/passwd, /etc/hosts, /etc/shadow (if readable), and the output of the 'id' command. This behavior leaks critical system information to an attacker-controlled domain unrelated to the package's intended functionality. The compromise is severe, as any system installing this package is considered fully compromised, with potential exposure of secrets and keys.
Potential Impact
Installation of the 'testzapier' package results in immediate and unconditional leakage of sensitive system information to an attacker-controlled server. This includes user and host identity and contents of critical system files, potentially including password hashes if accessible. The compromise may allow attackers to gain full control over the affected system. Secrets and keys stored on the compromised machine should be considered exposed and rotated immediately. Removal of the package does not guarantee elimination of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The package should be removed immediately from any affected systems. All secrets, credentials, and keys stored on compromised machines must be rotated from a secure, unaffected environment. Consider the affected systems fully compromised and perform a thorough incident response and forensic analysis. Avoid installing untrusted or suspicious npm packages and verify package authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5575
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-5ppv-rxq4-cf57"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a577eea68715ace43b4128d
Added to database: 07/15/2026, 12:36:58 UTC
Last enriched: 07/15/2026, 12:54:00 UTC
Last updated: 07/31/2026, 14:45:59 UTC
Views: 10
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.