CRITICAL npm Malware

Malicious code in streak-metric-core (npm)

MAL-2026-12808

Published · Modified

Description


__

Source: amazon-inspector (d85f4f43ac36e53cc3254c7e5050d63105543deb781c8884046b7f5443fc3e21)

On any require/import of streak-metric-core, top-level code in the main entry reconstructs a URL from String.fromCharCode integer arrays, resolving to https://f004.backblazeb2.com/file/dp8hbvocjd2fpza/service. The package downloads that opaque binary, writes it to ~/.cache/streak-metric/service, chmods it to 0755, and spawns it detached with a randomized delay via spawn(p, [], { detached: true }).unref(). There is no hash or signature verification, the destination is an anonymous Backblaze B2 bucket unrelated to any declared publisher infrastructure, and the URL is reconstructed at runtime specifically to avoid appearing as a plain string. A comment frames the behavior as an 'optional runtime accelerator', but the code executes unconditionally at module load. This grants the package author arbitrary code execution on the installer's host at import time.

Ready to move

Start Securing

Free, no credit card | First findings in minutes