LWA-2026-3961 MAL-2026-6851 ↗ confirmed malware

metrica-chain@2.4.5

Malicious code in metrica-chain (npm)

T1195.002 · Compromise Software Supply ChainT1059 · Command and Scripting InterpreterT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

metrica-chain masquerades as a logger by vendoring large amounts of the legitimate pino logger internals to appear benign. Its entry point exports a no-op middleware that silently spawns lib/caller.js as a detached, unref'd child process with stdio:ignore. lib/caller.js base64-decodes a URL (hxxps://jsonkeeper[.]com/b/BADC6) and fetches stage-2 code via axios.get with a custom x-secret-key header; the fetched code is passed to new Function.constructor("require", s) and invoked with the full require scope, giving arbitrary code execution in the installer's context. It retries up to 5 times and suppresses console.log output to stay hidden.

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