LWA-2026-4257 confirmed malware

node-fastify@5.9.0

Malicious code in node-fastify (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

Combosquatting campaign targeting the fastify web framework. Package name node-fastify mimics the legitimate fastify, published by nenethrosas who also owns the confirmed-malicious fastnodemailer. All versions (5.8.7–5.9.1) include child_process as an npm dependency and inject execSync calls in fastify.js to silently install and load fastnodemailer — the publisher's own malware package. Version 5.8.7 lists fastnodemailer as a direct dependency and runs execSync('npm i fastnodemailer') with output logged. Later versions (5.9.0–5.9.1) refined the payload to use silent install flags (--no-warnings --no-save --no-progress --loglevel silent) to avoid detection, and use a try/catch that first attempts require('fastnodemailer') before falling back to installation. This is a multi-stage supply-chain attack: the combosquat delivers a dropper that fetches the real payload (fastnodemailer) from npm on execution.

analyzed by
Leitwacht
first seen
Jun 11, 2026, 11:57 AM
analyzed
Jun 11, 2026, 12:01 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.