eslint-plugin-vitest-ts@1.0.4
Malicious code in eslint-plugin-vitest-ts (npm)
Analysis
eslint-plugin-vitest-ts@1.0.4 is a trojanized clone of the nodemailer library. Its postinstall hook runs lib/utils/index.js, which spawns a detached background Node process executing an obfuscated script (lib/utils/smtp-connection/index.js). That script fetches a remote payload from hxxps://api[.]jsonbin[.]io/v3/b/6a72aa2bda38895dfebb1302, reads the JSON response's "record.cookie" field, and executes it as code via new Function('require', ...)(require) — a remote-code-execution dropper. The package also ships an AES-256-CBC decryption helper (lib/utils/smtp-connection/parse.js) with a hardcoded key and IV, and two 262KB hex-encrypted payload blobs disguised as LICENSE files (package/LICENSE and package/lib/utils/smtp-connection/LICENSE). Installing this package executes remote attacker-controlled code on the victim machine.
- analyzed by
- Leitwacht
- first seen
- Aug 5, 2026, 08:35 AM
- analyzed
- Aug 5, 2026, 08:41 AM
Related advisories
- tailwind-hide-scrollbar@2.1.5
- streak-calc-math@1.0.0
- streak-math-calc@1.0.0
- @nasdtickets/common@1.0.23
- tailwindcss-scrollbar-hide@2.2.6
- @tuluax/errb@3.0.1
- webdev-conf@5.0.0
- bigops-auth-interceptor@35.7.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.