Malicious code in express-security-policy (npm)
The npm package express-security-policy contains malicious code that exfiltrates user and host information to a remote server. The malicious behavior is implemented via a preinstall script that uses obfuscation, delayed execution, and error suppression to evade detection. Any system with this package installed or running should be considered fully compromised, and all secrets and keys stored on that system should be rotated immediately. Removing the package alone may not eliminate all malicious software introduced by its installation.
AI Analysis
Technical Summary
The express-security-policy npm package was found to include malicious code embedded in its preinstall script. This code exfiltrates sensitive user and host information to a remote server while employing obfuscation techniques, delayed execution, and error suppression to avoid detection. The compromise is severe enough that any system with this package installed is considered fully compromised, necessitating immediate secret/key rotation and comprehensive remediation beyond simple package removal.
Potential Impact
Systems with the express-security-policy package installed are fully compromised, allowing attackers to gain unauthorized access to sensitive information such as user and host data. This may lead to exposure of secrets and keys stored on the affected system. The malicious code's stealth techniques increase the difficulty of detection and remediation, potentially allowing persistent unauthorized access.
Mitigation Recommendations
Remove the express-security-policy package immediately. Rotate all secrets and keys stored on the compromised system from a separate, trusted computer. Because the system is considered fully compromised, conduct a thorough investigation and remediation to identify and remove any additional malicious software or backdoors that may have been installed. Follow organizational incident response procedures for compromised hosts.
Malicious code in express-security-policy (npm)
Description
The npm package express-security-policy contains malicious code that exfiltrates user and host information to a remote server. The malicious behavior is implemented via a preinstall script that uses obfuscation, delayed execution, and error suppression to evade detection. Any system with this package installed or running should be considered fully compromised, and all secrets and keys stored on that system should be rotated immediately. Removing the package alone may not eliminate all malicious software introduced by its installation.
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-security-policy npm package was found to include malicious code embedded in its preinstall script. This code exfiltrates sensitive user and host information to a remote server while employing obfuscation techniques, delayed execution, and error suppression to avoid detection. The compromise is severe enough that any system with this package installed is considered fully compromised, necessitating immediate secret/key rotation and comprehensive remediation beyond simple package removal.
Potential Impact
Systems with the express-security-policy package installed are fully compromised, allowing attackers to gain unauthorized access to sensitive information such as user and host data. This may lead to exposure of secrets and keys stored on the affected system. The malicious code's stealth techniques increase the difficulty of detection and remediation, potentially allowing persistent unauthorized access.
Defensive Guidance
Remove the express-security-policy package immediately. Rotate all secrets and keys stored on the compromised system from a separate, trusted computer. Because the system is considered fully compromised, conduct a thorough investigation and remediation to identify and remove any additional malicious software or backdoors that may have been installed. Follow organizational incident response procedures for compromised hosts.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-2828
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-3hxc-wppf-m25r"]
- Ecosystems
- ["npm"]
Threat ID: 6a8effe9acd9273b49079eeb
Added to database: 08/26/2026, 15:02:01 UTC
Last enriched: 09/10/2026, 11:09:39 UTC
Last updated: 09/10/2026, 11:09:39 UTC
Views: 7
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.