vitest-preview-pro@10.0.7
Malicious code in vitest-preview-pro (npm)
Analysis
A package named vitest-preview-pro (a combosquat of the real vitest-preview) that is actually a trojanized nodemailer clone. Its postinstall hook (node lib/utils/index.js) spawns a detached node child process running lib/utils/smtp-connection/index.js, an obfuscated script that fetches remote code from two jsonbin[.]io buckets (hxxps://api[.]jsonbin[.]io/v3/b/6a709899da38895dfeb3bc72 and hxxps://api[.]jsonbin[.]io/v3/b/698b7468d0ea881f40b029b3) and executes the returned payload via new Function('require', data.record.cookie)(require). This is remote code fetch-and-execute at install time, with the second-stage payload fully attacker-controlled.
- analyzed by
- Leitwacht
- first seen
- Aug 7, 2026, 10:55 AM
- analyzed
- Aug 7, 2026, 09:45 PM
hxxps://github[.]com/vitest-preview-pro/vitest-preview-pro Request takedown / dispute →Related advisories
- vitest-preview-pro@10.0.3 same package
- sw-pluginer@1.1.0
- tailwind-custom-forms@0.5.2
- ai-pro-sdk@2.0.3
- notify-utilities@1.3.5
- theta-sdk-js@1.2.14
- luludawang-kit@0.0.1
- @marketfront/fingerprint@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.