Malicious code in streak-calc-metrics (npm)
streak-calc-metrics@1.0.0 on npm contains a malicious Linux ELF binary (REDSHELL) that executes at import time, establishes remote shell access to a hardcoded C2 server, harvests credentials and SSH keys, and maintains persistence via systemd.
- Disclosed
- Last updated
- Blast radius
- Any developer or system that installed streak-calc-metrics@1.0.0 from npm; the malicious binary executes at import time with full system access.
- Ecosystems
- Attack vectors
- Affected entities
- streak-calc-metrics · 1.0.0
The npm package streak-calc-metrics@1.0.0 was published with malicious code disguised as a native math accelerator. The package bundles a Linux ELF binary at dist/calc.bin that is automatically executed with elevated privileges when the module is imported, without user consent or visibility.\n\nThe embedded binary, self-identified as 'REDSHELL', establishes a reverse shell connection to hardcoded C2 infrastructure at IP 217.60.77.63. It implements a full remote command shell over /bin/sh and /bin/bash, allowing attackers to execute arbitrary commands on the compromised system.\n\nThe implant includes multiple data exfiltration capabilities: it harvests SSH keys from ~/.ssh, credential files, environment variables, and arbitrary filesystem paths. Stolen data is exfiltrated via HTTP POST requests to the C2 server using markers such as BIGEXTRACT_START and Destination: Loot_*. The malware also downloads and executes additional ELF binaries and shellcode from the C2 server without signature verification.\n\nPersistence is achieved by writing a systemd user service file at ~/.config/systemd/user/svc-update.service configured to restart automatically, ensuring the implant survives system reboots.\n\nThe package was identified via Amazon Inspector and published to the GitHub Advisory Database.
Indicators of compromise
- Packages
- streak-calc-metrics
- IPs
- 217.60.77.63
Remediation
- Immediately uninstall streak-calc-metrics from all systems: npm uninstall streak-calc-metrics
- Audit npm audit logs and package-lock.json for any installation of streak-calc-metrics@1.0.0
- On any system where streak-calc-metrics@1.0.0 was installed, assume full compromise: rotate all SSH keys, credentials, and API tokens
- Check for and remove the systemd service file at ~/.config/systemd/user/svc-update.service and run systemctl --user daemon-reload
- Monitor network traffic to/from 217.60.77.63 for any outbound connections or data exfiltration
- Review environment variables, SSH keys, and credential files for unauthorized access or modification
- Consider full system reimaging of any development or production systems that installed this package
- Add streak-calc-metrics to your npm security policy to prevent future installation
Sources
- GitHub Advisory GHSA-gq4j-wc22-g5g3 · GitHub Advisory Database
Cite this entry
"Malicious code in streak-calc-metrics (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 5, 2026; last updated August 5, 2026. https://supplychainattack.org/incident/malicious-code-in-streak-calc-metrics-npm-1dy2nf
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in typescirpt-cli (npm)
The npm package typescirpt-cli (a typosquat of typescript-cli) contained malicious code in its postinstall script that downloads and executes a binary (main.exe) on Windows and WSL systems, and exfiltrates system metadata to a hardcoded IP address.
npmTyposquattingCompromised package - containedcritical
Malicious code in typescipt-core (npm)
The npm package typescipt-core (a typosquat of typescript) contained malicious postinstall code that downloads and executes a second-stage payload on Windows and WSL systems. The dropper exfiltrates host profile information to 193.70.34.101:20099 before fetching attacker-controlled executables.
npmCompromised packageTyposquatting - containedcritical
Malicious code in typesript-cli (npm)
The npm package 'typesript-cli' (a one-character typosquat of 'typescript') contains malicious code in its postinstall script that downloads and executes a Windows PE binary, and can cross the Linux/WSL sandbox boundary to execute payloads on the Windows host. The script also beacons to a hardcoded IP endpoint.
npmTyposquattingCompromised package - resolvedcritical
Malicious code in @mohamed_nowisar/depconf-canary-test (npm)
The npm package @mohamed_nowisar/depconf-canary-test contained malicious code in its preinstall hook that automatically collected and exfiltrated host and CI environment information to an attacker-controlled webhook endpoint without user consent.
npmCompromised package