vite-config-optimizer@1.1.4
Malicious code in vite-config-optimizer (npm)
Analysis
vite-config-optimizer@1.1.4 is a second-stage dropper. Its postinstall hook in loader.js writes a hex-encoded dropper to a temp directory and spawns a detached, unref'd node process (stdio:ignore) that hex-decodes a URL, fetches a second-stage payload from hxxps://jsonkeeper[.]com/b/L435A, parses the response as JSON, writes the session/manifest field to a temp file, and require()s it to execute arbitrary code before cleaning up. The index.js is a decoy claiming to be a Vite plugin while actually implementing a mismatched WebpackCachePlugin, enabling arbitrary post-install code execution from a pastebin-style C2.
- analyzed by
- Leitwacht
- first seen
- Jun 10, 2026, 09:50 AM
- analyzed
- Jun 10, 2026, 09:50 AM
hxxps://github[.]com/webpack-tools/webpack-cache-plugin Request takedown / dispute →Related advisories
- event-bus-lite-testmetest@0.0.6
- event-bus-lite-testmetest@0.0.2
- n8n-nodes-flowstats@1.0.0
- envforge3@1.0.1
- discord-mfa@3.0.0
- core-js-buffer@1.0.0
- dolyame-boxy-atom-bnpl-navigation-arrow@35.6.5
- devplatform-spa-plugin-s3-module-loader@35.8.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.