metrica-node@2.4.5
Malicious code in metrica-node (npm)
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
- streak-map-kit@1.0.0
- dolyame-ui-inputtime@35.8.1
- dolyame-boxy-fonts@35.4.8
- dolyame-ui-radio@35.2.2
- bnpl-blocks-atom-bnpl-button@35.4.7
- twork-products-taiga2-products-timeline@20.6.1
- compose-logger-stand@1.0.126
- shadxino@1.0.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.