viteplugiin@1.0.28
Malicious code in viteplugiin (npm)
Analysis
viteplugiin@1.0.28 is a typosquat of the legitimate @base44/viteplugin Vite plugin. The package ships a legitimate-looking Vite plugin in its source TypeScript, but the compiled dist/index.js has a large obfuscated payload injected at the end that is not present in the source. The obfuscated code uses multi-layer string deobfuscation (Fisher-Yates shuffle-based decoding), sets global.o='*8-0', assigns require/__dirname/__filename to the global scope, and executes a deeply nested IIFE. The package has no install lifecycle hooks, so the payload activates when the package is imported as a Vite plugin in a project's vite.config.ts.
- analyzed by
- Leitwacht
- first seen
- Jul 7, 2026, 02:47 AM
- analyzed
- Jul 7, 2026, 02:49 AM
Related advisories
- express-guardian@1.4.1
- chai-sdk@1.4.7
- zredis-typed@1.0.127
- luludawang-kit@0.0.1
- express-ini@12.1.10
- db-query-log@1.0.2
- @marketfront/fingerprint@7.0.0
- @marketfront/basemarkettemplate@7.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.