Malicious code in devplatform-vite-plugin-preserve-css-modules (npm)
The npm package devplatform-vite-plugin-preserve-css-modules version 35.6.8 contains malicious code that, upon being required, downloads and executes a native binary from obfuscated and covert-channel fallback hosts. This binary is saved under disguised filenames in temporary directories and executed detached from the main process. The package masquerades as a legitimate vite plugin but performs unauthorized remote code execution on the installer's machine.
AI Analysis
Technical Summary
The devplatform-vite-plugin-preserve-css-modules npm package (version 35.6.8) includes malicious functionality triggered on require(). It loads a loader script that dynamically constructs obfuscated hostnames to download a native binary over HTTPS, with a DNS TXT record fallback mechanism for covert communication. The binary is saved to temporary directories with disguised names, permissions are set to executable, and it is spawned detached via shell commands. Execution is controlled by a TTL marker file. This behavior enables arbitrary native code execution on the host machine without user consent. The package name is crafted to appear as a legitimate vite plugin, facilitating supply chain compromise through npm.
Potential Impact
This malicious package enables arbitrary native code execution on any system that installs and requires version 35.6.8 of devplatform-vite-plugin-preserve-css-modules. The attacker can execute arbitrary binaries downloaded from attacker-controlled infrastructure, potentially leading to full system compromise. The covert DNS TXT fallback and obfuscated hostnames increase stealth and complicate detection. There is no indication of active exploitation in the wild yet, but the risk of supply chain compromise is significant.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately avoid installing or requiring devplatform-vite-plugin-preserve-css-modules version 35.6.8. Remove any installations of this package from projects and dependency trees. Monitor for any unexpected network connections to the described domains and for suspicious binaries in temporary directories. Consider using npm security tools to audit dependencies and block malicious packages. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Malicious code in devplatform-vite-plugin-preserve-css-modules (npm)
Description
The npm package devplatform-vite-plugin-preserve-css-modules version 35.6.8 contains malicious code that, upon being required, downloads and executes a native binary from obfuscated and covert-channel fallback hosts. This binary is saved under disguised filenames in temporary directories and executed detached from the main process. The package masquerades as a legitimate vite plugin but performs unauthorized remote code execution on the installer's machine.
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 devplatform-vite-plugin-preserve-css-modules npm package (version 35.6.8) includes malicious functionality triggered on require(). It loads a loader script that dynamically constructs obfuscated hostnames to download a native binary over HTTPS, with a DNS TXT record fallback mechanism for covert communication. The binary is saved to temporary directories with disguised names, permissions are set to executable, and it is spawned detached via shell commands. Execution is controlled by a TTL marker file. This behavior enables arbitrary native code execution on the host machine without user consent. The package name is crafted to appear as a legitimate vite plugin, facilitating supply chain compromise through npm.
Potential Impact
This malicious package enables arbitrary native code execution on any system that installs and requires version 35.6.8 of devplatform-vite-plugin-preserve-css-modules. The attacker can execute arbitrary binaries downloaded from attacker-controlled infrastructure, potentially leading to full system compromise. The covert DNS TXT fallback and obfuscated hostnames increase stealth and complicate detection. There is no indication of active exploitation in the wild yet, but the risk of supply chain compromise is significant.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately avoid installing or requiring devplatform-vite-plugin-preserve-css-modules version 35.6.8. Remove any installations of this package from projects and dependency trees. Monitor for any unexpected network connections to the described domains and for suspicious binaries in temporary directories. Consider using npm security tools to audit dependencies and block malicious packages. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13274
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a73852ebf8831d5394f05c3
Added to database: 08/05/2026, 18:47:10 UTC
Last enriched: 08/05/2026, 21:48:13 UTC
Last updated: 08/05/2026, 21:48:13 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.