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 versions 10.0.3, 10.0.5, 10.0.6…). 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.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Malicious versions

4 flagged
10.0.310.0.510.0.610.0.7

Indicators of compromise (SHA-256)

367fd88886da38fc8a88929cfb486d6031ee42d44499b5f7a2d47d4e91d5b075
89c5df9061ae735cf633cb37fd2dacf7d296adcac7301ec30b469f85df81c953
232406b380ab6265da42e7031cf963ef260b438633ab80d232f0dae1e79f7a3c
a357f5333e94520bd0b1dec295d11b8058127be567534a43e63e8366fd47b838
3b0064885ea23f15a06a6ad10a6d57a101499e6015da4d94d8c49cc481ae34f0

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 (4 malicious versions). 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 (versions 10.0.3, 10.0.5, 10.0.6, 10.0.7 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-011358IN-MAL-2026-016873IN-MAL-2026-017017IN-MAL-2026-017020GHSA-wx22-xm6j-mgqx

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