Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

vitest-preview-pronpm

vitest-preview-pro is a confirmed malicious npm package (MAL-2026-12004) that executes malicious code on install (malicious version 10.0.3). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in vitest-preview-pro (npm)

MAL-2026-12004
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall vitest-preview-pro

What this malware does

The package is published under a name suggesting a Vitest preview utility, but the shipped code is a rebranded copy of nodemailer with an added preinstall dropper. package.json declares preinstall: node lib/utils/index.js, which uses child_process.spawn(process.execPath, [lib/utils/smtp-connection/index.js], {detached:true, stdio:['ignore','ignore','ignore']}).unref() to launch a detached, fully silenced child that survives beyond npm install. The spawned file is obfuscated with a custom basE91 string-array decoder; the decoded top-level async IIFE calls globalThis.fetch against a URL on api.jsonbin.io/v3/, parses the JSON response, and passes the record.cookie field to new Function('require', body)(require), executing attacker-controlled JavaScript with full require access on the installer at install time. api.jsonbin.io is a public, mutable, anonymous JSON-hosting service, so the executed payload can change at any time. Adjacent to the loader, lib/utils/smtp-connection/LICENSE is a 262KB file whose contents are a hex-encoded ~131KB opaque binary blob rather than license text, colocated with the loader as a staged secondary payload. The advertised package purpose has no relationship to the shipped SMTP source, providing cover for the injected dropper.

Malicious versions

1 flagged
10.0.3

Indicators of compromise (SHA-256)

367fd88886da38fc8a88929cfb486d6031ee42d44499b5f7a2d47d4e91d5b075

Detection & response playbook

Malicious package
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for vitest-preview-pro (version 10.0.3). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging vitest-preview-pro across your stack and pipelines.

  2. If you installed it — respond

    Remove vitest-preview-pro from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If vitest-preview-pro was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks vitest-preview-pro before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. vitest-preview-pro on npm has been identified as a malicious package (version 10.0.3 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-011358

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks vitest-preview-pro-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

vitest-preview-pro (npm) malicious package — MAL-2026-12004 | O3 Security