Malicious code in test-nonmal-pkg-5 (npm)
The npm package 'test-nonmal-pkg-5' version 1.0.1 contains malicious code that exfiltrates environment variables by sending them via an obfuscated HTTP POST request upon import. The exfiltration target is currently a loopback address, preventing data leakage in normal environments, but the code is designed to be easily modified to target external hosts. The package also includes deceptive comments and user-agent strings intended to mislead automated security reviewers. Installation of this package compromises the host, potentially exposing all stored secrets and keys.
AI Analysis
Technical Summary
The 'test-nonmal-pkg-5' npm package version 1.0.1 includes an obfuscated payload that, when imported, enumerates all environment variables and sends them as JSON to a specified HTTP endpoint. Although the current endpoint is a local loopback address (127.0.0.1:4000), the obfuscation and code structure indicate intent to exfiltrate sensitive data. The package contains explicit hostile indicators such as misleading comments and a crafted HTTP User-Agent string to evade detection. This behavior constitutes an active attack vector, compromising any system where the package is installed or executed.
Potential Impact
Any system with this package installed or running is considered fully compromised. All secrets and keys accessible via environment variables may be exposed. Because the package executes code on import that sends environment data externally, attackers could gain unauthorized access to sensitive information. Removal of the package does not guarantee full remediation, as the attacker may have established persistent control or installed additional malicious software.
Mitigation Recommendations
No official patch or fix is available for this malicious package. Immediate removal of 'test-nonmal-pkg-5' version 1.0.1 is strongly recommended. All secrets and keys stored on the compromised system should be rotated from a separate, trusted environment. Treat any system with this package as fully compromised and conduct a thorough security assessment to identify and remove any additional malicious artifacts.
Malicious code in test-nonmal-pkg-5 (npm)
Description
The npm package 'test-nonmal-pkg-5' version 1.0.1 contains malicious code that exfiltrates environment variables by sending them via an obfuscated HTTP POST request upon import. The exfiltration target is currently a loopback address, preventing data leakage in normal environments, but the code is designed to be easily modified to target external hosts. The package also includes deceptive comments and user-agent strings intended to mislead automated security reviewers. Installation of this package compromises the host, potentially exposing all stored secrets and keys.
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 'test-nonmal-pkg-5' npm package version 1.0.1 includes an obfuscated payload that, when imported, enumerates all environment variables and sends them as JSON to a specified HTTP endpoint. Although the current endpoint is a local loopback address (127.0.0.1:4000), the obfuscation and code structure indicate intent to exfiltrate sensitive data. The package contains explicit hostile indicators such as misleading comments and a crafted HTTP User-Agent string to evade detection. This behavior constitutes an active attack vector, compromising any system where the package is installed or executed.
Potential Impact
Any system with this package installed or running is considered fully compromised. All secrets and keys accessible via environment variables may be exposed. Because the package executes code on import that sends environment data externally, attackers could gain unauthorized access to sensitive information. Removal of the package does not guarantee full remediation, as the attacker may have established persistent control or installed additional malicious software.
Mitigation Recommendations
No official patch or fix is available for this malicious package. Immediate removal of 'test-nonmal-pkg-5' version 1.0.1 is strongly recommended. All secrets and keys stored on the compromised system should be rotated from a separate, trusted environment. Treat any system with this package as fully compromised and conduct a thorough security assessment to identify and remove any additional malicious artifacts.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4785
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-gqhv-x4hg-wqv4"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed2327e9c79719933b10
Added to database: 06/29/2026, 22:09:39 UTC
Last enriched: 06/29/2026, 22:18:06 UTC
Last updated: 07/18/2026, 17:27:21 UTC
Views: 13
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.