MAL-2026-6568: Malicious code in express-mocha-test (npm)
The npm package express-mocha-test version 0.0.1 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall lifecycle hook to fetch code from an attacker-controlled ngrok-free.app tunnel and evaluates it without integrity checks. The package metadata impersonates known maintainers and misrepresents its functionality, indicating deliberate malicious intent.
AI Analysis
Technical Summary
The express-mocha-test package at version 0.0.1 declares a postinstall lifecycle hook that loads its main module, which performs a fetch request to an anonymous, attacker-operated ngrok-free.app tunnel. The response body from this request is passed directly to eval(), resulting in arbitrary code execution on any machine running npm install for this package. The package metadata falsely claims authorship by a well-known maintainer and provides a misleading description, suggesting deliberate impersonation and malicious behavior. This package is flagged as malicious by the OpenSSF Package Analysis and Amazon Inspector sources.
Potential Impact
Any system that installs [email protected] is at risk of executing arbitrary, attacker-controlled JavaScript code during the npm install process. This can lead to compromise of the host environment, data theft, or further malicious activity. The lack of integrity checks or pinning exacerbates the risk by allowing dynamic code execution from an ephemeral attacker-controlled endpoint.
Mitigation Recommendations
No official patch or remediation is currently available for [email protected]. Users and organizations should avoid installing this package entirely. Remove any existing installations of [email protected] from projects and dependency trees. Use trusted package sources and verify package authenticity before installation. Monitor for and block network connections to suspicious domains such as ngrok-free.app tunnels. Check vendor advisories or npm security advisories for updates or removals related to this package.
MAL-2026-6568: Malicious code in express-mocha-test (npm)
Description
The npm package express-mocha-test version 0.0.1 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall lifecycle hook to fetch code from an attacker-controlled ngrok-free.app tunnel and evaluates it without integrity checks. The package metadata impersonates known maintainers and misrepresents its functionality, indicating deliberate malicious intent.
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 express-mocha-test package at version 0.0.1 declares a postinstall lifecycle hook that loads its main module, which performs a fetch request to an anonymous, attacker-operated ngrok-free.app tunnel. The response body from this request is passed directly to eval(), resulting in arbitrary code execution on any machine running npm install for this package. The package metadata falsely claims authorship by a well-known maintainer and provides a misleading description, suggesting deliberate impersonation and malicious behavior. This package is flagged as malicious by the OpenSSF Package Analysis and Amazon Inspector sources.
Potential Impact
Any system that installs [email protected] is at risk of executing arbitrary, attacker-controlled JavaScript code during the npm install process. This can lead to compromise of the host environment, data theft, or further malicious activity. The lack of integrity checks or pinning exacerbates the risk by allowing dynamic code execution from an ephemeral attacker-controlled endpoint.
Mitigation Recommendations
No official patch or remediation is currently available for [email protected]. Users and organizations should avoid installing this package entirely. Remove any existing installations of [email protected] from projects and dependency trees. Use trusted package sources and verify package authenticity before installation. Monitor for and block network connections to suspicious domains such as ngrok-free.app tunnels. Check vendor advisories or npm security advisories for updates or removals related to this package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6568
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed6d27e9c79719938e97
Added to database: 06/29/2026, 22:10:53 UTC
Last enriched: 06/29/2026, 22:36:15 UTC
Last updated: 06/30/2026, 01:20:45 UTC
Views: 2
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.