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 santana-baileys (npm)
Malicious code discovered in santana-baileys npm package that covertly relays WhatsApp messaging data to an attacker-controlled endpoint (https://fiora.nixel.my.id/) via obfuscated character-code reconstruction in the message-send code path.
npmCompromised package - resolvedcritical
Malicious code in elephant-tusk-runner (npm)
The npm package elephant-tusk-runner contained malicious code that exposed a remote shell and remote code execution surface via an unauthenticated Express + WebSocket server binding to 0.0.0.0:4201 with fully open CORS. Any peer able to reach the port could execute arbitrary commands on the host.
npmCompromised package - resolvedcritical
Malicious code in @cats-cdf/browser-metrics-meter (npm)
The npm package @cats-cdf/browser-metrics-meter contained malicious code in its preinstall lifecycle script that exfiltrated system reconnaissance data (username, hostname, public IP) to an OAST collector domain. The package executed this behavior unconditionally on installation without consent or documented purpose.
npmCompromised package - resolvedcritical
Malicious code in @ks-video/kwai-player-web (npm)
The npm package @ks-video/kwai-player-web contained malicious code in its postinstall hook that exfiltrated system reconnaissance data (hostname, username, working directory, network interfaces, environment variable names) over plain HTTP to an unrelated third-party domain. The package has no legitimate relationship to the declared publisher Kwai/@ks-video.
npmCompromised package