Skip to main content

Malicious code in streak-count-core (npm)

0
High
Published: 08/05/2026 (08/05/2026, 12:22:50 UTC)
Source: GCVE Database
Product: streak-count-core

Description

The streak-count-core npm package version 1.0.0 contains malicious code that executes a hex-obfuscated routine when imported outside of production environments. It detects if running in a Windows Subsystem for Linux (WSL) environment and then downloads and extracts a Windows executable to the user's profile directory. The package also sets up persistence by placing a script in the Windows Startup folder to auto-launch the malicious executable on every login. This behavior is unrelated to the package's declared purpose as a streak counter library.

Affected software

npmghsa
streak-count-core
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:51:17 UTC

Technical Analysis

The [email protected] npm package includes malicious code in its index.mjs file that triggers on module import if NODE_ENV is not 'production'. It detects a WSL environment by checking process.platform and the WSL_DISTRO_NAME environment variable. Upon detection, it downloads a helper.tar.gz archive from a remote URL, extracts it into the Windows user's AppData Local directory via the WSL mount path (/mnt/c/Users/<user>/AppData/Local/Microsoft/Windows/syscache), and writes an env-setup.cmd script into the Windows Start Menu Startup folder. This script causes a RenameMe.exe executable to auto-launch on each Windows login, establishing persistence. The code uses hex-encoded strings decoded at runtime to hide module names, environment keys, paths, URLs, and commands, indicating deliberate obfuscation. The package's intended functionality does not justify this behavior, confirming it as malicious.

Potential Impact

This malicious package can lead to unauthorized code execution on Windows hosts running WSL by installing and persistently executing a Windows executable without user consent. This may allow attackers to maintain long-term access, execute arbitrary commands, or deploy further malware on affected systems. The infection vector is via the npm package import in non-production environments, potentially impacting developers or CI systems using WSL.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately avoid using [email protected] and remove it from their projects. Audit dependencies for this package and any related malicious code. Consider blocking or removing the package from internal registries and notify development teams about the risk. Monitor for any suspicious processes or files created in the Windows Startup folder and user AppData Local paths on WSL hosts. Patch status is not yet confirmed — check the vendor advisory or npm security advisories 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-12460
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735750bf8831d53915a640

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

Last enriched: 08/05/2026, 17:51:17 UTC

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

Views: 43

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