LWA-2026-3962 MAL-2026-6852 ↗ confirmed malware

metrica-node@2.4.5

Malicious code in metrica-node (npm)

T1059 · Command and Scripting InterpreterT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web ProtocolsT1027 · Obfuscated Files or InformationT1036 · MasqueradingT1543 · Create or Modify System Process

Analysis

A remote-code-execution dropper disguised as a pino logging library. On require(), index.js spawns lib/caller.js as a detached background process (detached:true, stdio:"ignore", child.unref()) that survives parent exit. caller.js fetches a second-stage payload from jsonkeeper[.]com/b/BADC6 (base64-obfuscated: 'aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL0JBREM2' decodes to that URL) with an auth header (x-secret-key: _), then executes the response's 'cookie' field via new Function.constructor("require", payload), giving the attacker unrestricted Node.js require access on the victim machine. The package clones pino's internals (lib/tools.js, lib/proto.js, 40KB+ docs/) as camouflage, and the description is a nonsensical template.

analyzed by
Leitwacht
first seen
Jun 10, 2026, 04:30 PM
analyzed
Jun 10, 2026, 04:32 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.