Malicious code in helmet-pro (npm)
The npm package [email protected] is a typosquatting malicious package that executes arbitrary remote code during installation. It uses an obfuscated postinstall script that fetches and executes attacker-controlled code from a remote JSON bin, enabling dynamic payload updates without republishing. The package disguises itself as a legitimate SMTP-related module to evade detection.
AI Analysis
Technical Summary
The helmet-pro package version 10.0.4 is a typosquat of the legitimate helmet HTTP-header middleware. Its package.json postinstall hook runs an obfuscated script that spawns a detached child process executing code fetched from a remote JSON bin (https://api.jsonbin.io/v3/b/6a719632da38895dfeb7128d). This fetched code is executed with access to Node.js require, allowing arbitrary remote code execution on the installer's machine at npm install time. The remote payload is attacker-mutable, enabling dynamic changes to the malicious code without republishing the package. The package metadata and comments attempt to masquerade as a nodemailer-adjacent SMTP module to disguise its malicious intent.
Potential Impact
Installation of [email protected] results in arbitrary remote code execution on the installer's system, potentially compromising the system with attacker-controlled code. Because the payload is fetched dynamically from a mutable remote source, the malicious code can change at any time, increasing the risk and unpredictability of the compromise.
Mitigation Recommendations
No official patch or fix is available for [email protected] as it is a malicious typosquat package. The recommended mitigation is to avoid installing helmet-pro and instead use the legitimate helmet package. Users should verify package names carefully before installation and consider using package integrity verification tools or npm security advisories to detect typosquatting. Removal of [email protected] from any environment where it was installed is advised.
Malicious code in helmet-pro (npm)
Description
The npm package [email protected] is a typosquatting malicious package that executes arbitrary remote code during installation. It uses an obfuscated postinstall script that fetches and executes attacker-controlled code from a remote JSON bin, enabling dynamic payload updates without republishing. The package disguises itself as a legitimate SMTP-related module to evade detection.
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 helmet-pro package version 10.0.4 is a typosquat of the legitimate helmet HTTP-header middleware. Its package.json postinstall hook runs an obfuscated script that spawns a detached child process executing code fetched from a remote JSON bin (https://api.jsonbin.io/v3/b/6a719632da38895dfeb7128d). This fetched code is executed with access to Node.js require, allowing arbitrary remote code execution on the installer's machine at npm install time. The remote payload is attacker-mutable, enabling dynamic changes to the malicious code without republishing the package. The package metadata and comments attempt to masquerade as a nodemailer-adjacent SMTP module to disguise its malicious intent.
Potential Impact
Installation of [email protected] results in arbitrary remote code execution on the installer's system, potentially compromising the system with attacker-controlled code. Because the payload is fetched dynamically from a mutable remote source, the malicious code can change at any time, increasing the risk and unpredictability of the compromise.
Mitigation Recommendations
No official patch or fix is available for [email protected] as it is a malicious typosquat package. The recommended mitigation is to avoid installing helmet-pro and instead use the legitimate helmet package. Users should verify package names carefully before installation and consider using package integrity verification tools or npm security advisories to detect typosquatting. Removal of [email protected] from any environment where it was installed is advised.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13401
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf93bf8831d5391af6df
Added to database: 08/06/2026, 18:16:51 UTC
Last enriched: 08/06/2026, 18:45:31 UTC
Last updated: 08/06/2026, 23:38:26 UTC
Views: 4
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.