Malicious code in express-mongo-santi (npm)
The npm package express-mongo-santi (version 1.1.9) is a malicious typosquat of express-mongo-sanitize. Its main file is heavily obfuscated and designed to fetch and execute attacker-controlled code remotely upon being required. This results in arbitrary code execution on the user's machine under their user identity.
AI Analysis
Technical Summary
The express-mongo-santi package (version 1.1.9) contains a heavily obfuscated main file that, when loaded, performs a remote fetch-and-execute operation. It reconstructs a hardcoded IPv4 address at runtime, sends an HTTPS GET request to that address, and receives an encrypted payload. The payload is decrypted using AES with a key derived via crypto.scryptSync, then written to a file in the user's home directory and executed via child_process. The package name is a typosquat of express-mongo-sanitize, designed to trick users into installing it. This leads to arbitrary attacker-controlled code execution on the installer's machine with their user privileges.
Potential Impact
Installing or importing express-mongo-santi version 1.1.9 results in arbitrary code execution under the installer's user identity. This can lead to full compromise of the user's environment, data theft, persistence, or further malicious activity depending on the payload fetched and executed.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing or importing the express-mongo-santi package. Verify package names carefully before installation to avoid typosquatting attacks. Use trusted sources and package integrity verification mechanisms such as checksums or signatures. Monitor for updates from the npm registry or security advisories for any official fixes or removals.
Malicious code in express-mongo-santi (npm)
Description
The npm package express-mongo-santi (version 1.1.9) is a malicious typosquat of express-mongo-sanitize. Its main file is heavily obfuscated and designed to fetch and execute attacker-controlled code remotely upon being required. This results in arbitrary code execution on the user's machine under their user identity.
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-mongo-santi package (version 1.1.9) contains a heavily obfuscated main file that, when loaded, performs a remote fetch-and-execute operation. It reconstructs a hardcoded IPv4 address at runtime, sends an HTTPS GET request to that address, and receives an encrypted payload. The payload is decrypted using AES with a key derived via crypto.scryptSync, then written to a file in the user's home directory and executed via child_process. The package name is a typosquat of express-mongo-sanitize, designed to trick users into installing it. This leads to arbitrary attacker-controlled code execution on the installer's machine with their user privileges.
Potential Impact
Installing or importing express-mongo-santi version 1.1.9 results in arbitrary code execution under the installer's user identity. This can lead to full compromise of the user's environment, data theft, persistence, or further malicious activity depending on the payload fetched and executed.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing or importing the express-mongo-santi package. Verify package names carefully before installation to avoid typosquatting attacks. Use trusted sources and package integrity verification mechanisms such as checksums or signatures. Monitor for updates from the npm registry or security advisories for any official fixes or removals.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12377
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735750bf8831d53915a663
Added to database: 08/05/2026, 15:31:28 UTC
Last enriched: 08/05/2026, 17:51:40 UTC
Last updated: 09/18/2026, 02:25:42 UTC
Views: 48
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.