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

ts-vitestnpm

ts-vitest is a confirmed malicious npm package (MAL-2026-10990) that typosquats a legitimate package to trick installs (malicious versions 1.0.7, 1.0.8, 1.0.9…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in ts-vitest (npm)

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

What this malware does

ts-vitest is a typosquat of vitest/ts-eslint (hollow "kelly-calc"/"clob-math" content, no legitimate functionality) that ships a postinstall two-stage fetch-exec dropper. The package.json declares postinstall: node scripts/install-check.cjs; the hook's resolvePeerBundleUrl() fetches a JSON config from a hardcoded, typosquatting host (https://ts-eslint.vercel.app/config/clob-math.json, also the package.json homepage), reads a second-stage tarball URL out of that config, npm installs the tarball, then require()s and executes it — achieving install-time RCE before any package code is used. The config JSON resolves to a second-stage tarball at https://ts-eslint.vercel.app/releases/psm-peer.tgz, whose main entry point is peer-math.js. The config indirection (an ephemeral *.vercel.app host serving JSON that points at the real payload) keeps the tarball URL out of the package bytes, defeating a naive grep for a hardcoded payload URL.

The lineage alternates malicious and clean releases: 1.1.1 shipped the dropper (previously convicted), 1.1.2 removed the postinstall hook as a clean decoy, and 1.1.3 restores a byte-identical copy of the 1.1.1 dropper. The hook is entirely YARA-invisible (0 matches); detection required reading the hook's logic directly rather than relying on signature scoring. Published by sole npm maintainer naradi (maintainer email [email protected]), who pushed 7 versions in ~6.5 hours.

The package is published as ts-vitest and its README advertises a TypeScript/Jest transformer, but the shipped code is unrelated (a Kelly-stake helper) and the postinstall hook performs install-time remote code execution. On npm install, the postinstall resolves a bundle URL from a JSON config at https://ts-eslint.vercel.app/config/clob-math.json (a lookalike of the legitimate typescript-eslint project), downloads the returned .tgz archive, extracts it, runs npm install inside the extracted directory, then requires peer-math.js and invokes syncSession() in the installer's Node process. There is no version pin, no hash or signature check, and the config host is author-controlled and mutable, so the executed payload can be changed at any time. The name/README cover story combined with the typosquat-style config domain is a deliberate dropper shape.

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

7 flagged
1.0.71.0.81.0.91.1.01.1.11.1.21.1.3

Indicators of compromise (SHA-256)

f24679cb79843cdc1518d4f7317488da41656fd6f6351984115b77f40a4a74fd
082ff0d6388a0e04c300f34025d389e37e4378fd863105399c10d1395294e657
628bf106e7eeb415ef6d10c5fcb29488e742a609ef12cd70eeeac73b41ba4ecd
92b1499b1653081db9e37fe4140b3af0531e72093cc9e9c485dd87cb87779b6d
bc0206750931e3ddd0220d914c10f41c84e2ab4b5a220dd03319fa5fc6cb8549
e07022785602f148823f437ff2908eab5dfb32bce969e70238068866ce744fd4
5c95b17b37ca7a1614da2f77567b363ae0f689bd9421d655f883859527acc177
122dc63f875d72ec5998d5f1f34e84dfa1e49dd17ba586852e8961aff09a2739

Detection & response playbook

Typosquat
  1. Find it

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

  2. If you installed it — respond

    ts-vitest is a typosquat — you almost certainly intended a legitimately-named package. Remove ts-vitest, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.

  3. Did it already run?

    If ts-vitest 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 ts-vitest 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. ts-vitest on npm has been identified as a malicious package (versions 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.1.2, 1.1.3 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-011080IN-MAL-2026-011160IN-MAL-2026-013213IN-MAL-2026-013212IN-MAL-2026-013210IN-MAL-2026-013211IN-MAL-2026-013306GHSA-2g3m-3343-pgvq

References

Credits

  • Amazon Inspector · finder
  • SafeDep · finder

Detect & block this

O3 blocks ts-vitest-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

ts-vitest (npm) malicious package — MAL-2026-10990 | O3 Security