LWA-2026-10814 MAL-2026-12004 ↗ confirmed malware

vitest-preview-pro@10.0.7

Malicious code in vitest-preview-pro (npm)

T1140 · Deobfuscate/Decode Files or InformationT1027 · Obfuscated Files or Information

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

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.