Skip to main content

Malicious code in streak-calc-metrics (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:13:50 UTC)
Source: GCVE Database
Product: streak-calc-metrics

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (91b37a5aa06b2d75f250bd23ce01f2667646c1aa7609ec2323f226842e043e9d) [email protected] is presented as a native math accelerator for streak calculations but ships a bundled Linux ELF at dist/calc.bin that the main module unconditionally chmods and spawns detached at import time (cp.spawn(binaryPath, [], { stdio: 'pipe', shell: false, detached: true })). The ELF self-identifies as 'REDSHELL' and beacons to hardcoded C2 IP 217.60.77.63 with the protocol tag SECURE_BEACON|...|REDSHELL, providing a full remote shell over /bin/sh and /bin/bash. The implant downloads and executes arbitrary ELF binaries and shellcode over plain HTTP with TLS verification disabled from http://217.60.77.63/Others/<name> and http://217.60.77.63/SC/<name>, staging into /tmp/.elf_* or via memfd_create (syscall 319) and chmod +x before execution, with no hash or signature check. It exposes command handlers /ssh_keys, /creds, /dbfind, /env, and /dataextract <path> that harvest the installer's SSH keys, credential files, environment variables, and arbitrary filesystem paths, then exfiltrates them in chunks via POST /api/extract-receive using markers such as BIGEXTRACT_START and Destination: Loot_%s_%s_%s. Persistence is established by writing ~/.config/systemd/user/svc-update.service (Description='System Update Service', ExecStart=/proc/self/exe, Restart=always) and enabling it with systemctl --user daemon-reload && systemctl --user enable --now svc-update.service. The implant additionally exposes a remote-controlled SOCKS5 proxy (/socks start <port>) and arbitrary TCP port forwarding (/portfwd start <lport> <rhost> <rport>), turning the installer's host into a pivot into internal networks. The JS wrapper contains a cover story ('Native accelerator loaded and verified', 'Performance mode enabled') and an inverted SHA-256 integrity check against 4537b1189ce419f1a595cf47216c03f80e9170ce80dad8d9227a1e52f9cb3466 that never blocks execution. ## Source: ghsa-malware (96488efc57092e2b1f373623a88bf26607c9ece7ed95270327febc6b536d0d01) 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.

Affected software

npmghsa
streak-calc-metrics
Affected versions
=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 17:52:50 UTC

Technical Analysis

The streak-calc-metrics npm package version 1.0.0 includes a bundled Linux ELF binary (dist/calc.bin) identified as 'REDSHELL'. Upon import, the package changes permissions and spawns this binary detached. REDSHELL connects to a hardcoded IP (217.60.77.63) using a custom protocol, providing a full remote shell over /bin/sh and /bin/bash. It downloads and executes arbitrary ELF binaries and shellcode over unverified HTTP connections. The implant exposes command handlers to steal SSH keys, credentials, environment variables, and arbitrary filesystem data, exfiltrating them via HTTP POST requests. Persistence is established by creating and enabling a systemd user service named svc-update.service. Additionally, the implant offers a remote-controlled SOCKS5 proxy and TCP port forwarding, enabling lateral movement. The JavaScript wrapper contains misleading messages and an ineffective SHA-256 integrity check that does not block execution.

Potential Impact

This malicious package enables attackers to gain full remote shell access on infected Linux hosts, execute arbitrary code, steal sensitive credentials and environment data, maintain persistence, and pivot into internal networks via proxy and port forwarding. This compromises confidentiality, integrity, and availability of affected systems.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately uninstall [email protected] and avoid using this package. Monitor for and remove the svc-update.service systemd user service if present. Block network communications to the hardcoded C2 IP 217.60.77.63. Verify package integrity and source before installation. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-12311
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735754bf8831d53915aef0

Added to database: 08/05/2026, 15:31:32 UTC

Last enriched: 08/05/2026, 17:52:50 UTC

Last updated: 09/18/2026, 02:25:49 UTC

Views: 56

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses