Malicious code in streak-count-core (npm)
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.
AI Analysis
Technical Summary
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.
Malicious code in streak-count-core (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.