streak-metrics-math
This report shows the evidence for streak-metrics-math@1.0.1. 2 of 2 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 3mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-11388 confirms this npm version as malicious.
Advisory
MAL-2026-11388
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in streak-metrics-math (npm)
Details
The package advertises itself as a dependency-free calendar/streak math library but its main entrypoint dist/index.mjs contains a top-level IIFE that, on import, spawns the bundled ELF dist/math-calc.bin as a detached child process. The binary is a full-featured C2 implant, not a math accelerator: it beacons to a hardcoded operator at 217.60.77.63 over TLS and exposes command handlers (/redshell, /portfwd, /socks, /spawn) that pipe network-supplied input into /bin/bash and /bin/sh, giving the remote operator interactive shell control of the installer's machine. The implant additionally exposes /ssh_keys, /creds, /dbfind, /clipboard, /env, and /users commands that harvest SSH keys, saved credentials, clipboard contents, environment variables, and user accounts; a /dataextract flow (BIGEXTRACT) that walks arbitrary filesystem paths and POSTs chunked file contents to /api/extract-receive on the operator's server in named Loot_ collections; a /persist command that writes ~/.config/systemd/user/svc-update.service pointing ExecStart at /proc/self/exe and runs systemctl --user daemon-reload && enable --now for reboot persistence (with cron/bashrc/xdg variants); and a memfd_create-based stager (/stage, /dlopen, /redshell elf) that fetches follow-on ELFs and shellcode from the operator's HTTP server (Others/, SC/) and executes them fileless. A daymath.mjs stub contains a comment stating it 'makes the math functions look like they rely on the binary', confirming the math library framing is a cover story for the implant.
## Source: ghsa-malware (a913fd5a875b9f4d9e28f9dad275141e725aa3ed6c2709d7c3744fa998264443) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to streak-metrics-math@1.0.1.
The same advisory and Firewall decision cover 2 recorded versions
1.0.0, 1.0.1
The versions list below shows the verdict for each recorded version.
- Avoid installing streak-metrics-math@1.0.1. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.