LWA-2026-11547 confirmed malware

hatdhat-testkit@3.2.14

Malicious code in hatdhat-testkit (npm)

T1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web ProtocolsT1059 · Command and Scripting Interpreter

Analysis

hatdhat-testkit@3.2.14 is a trojanized logger package. When its exported middleware is invoked, it spawns a detached background node process (stdio ignored) that runs lib/caller.js. That script base64-decodes a remote URL (hxxps://api[.]jsonstorage[.]net/v1/json/2ef8c758-a96f-459e-b036-b3b90379a165/f89e8264-86c2-4684-94da-c3f82d59370f), fetches it with the header x-secret-key: _, reads the .data.cookie field of the returned JSON, and executes that content as JavaScript via the Function constructor with require in scope — downloading and running arbitrary remote code on the host. The package ships cloned pino logger source (docs/, pino.js, worker.js) to disguise the payload.

analyzed by
Leitwacht
first seen
Aug 22, 2026, 04:31 AM
analyzed
Aug 22, 2026, 04:31 AM

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.