Malicious code in streak-day-primitives (npm)
The streak-day-primitives npm package version 1.0.0 contains malicious code that executes upon import. It uses obfuscated hex-encoded strings to hide payload details and attempts a Windows Subsystem for Linux (WSL) to Windows escape. If the environment is Linux with WSL and the Windows filesystem is accessible, it downloads a tarball, extracts a payload executable into the Windows user's AppData directory, and creates a shortcut in the Windows Startup folder. This shortcut runs a malicious executable on the next Windows login, enabling attacker code execution on the Windows host. This behavior is unrelated to the package's advertised functionality as a dependency-free calendar-day arithmetic library.
AI Analysis
Technical Summary
The streak-day-primitives npm package version 1.0.0 contains top-level code that runs on import and uses hex-encoded strings to conceal module names, remote URLs, and payload details. When executed in a Linux environment with WSL configured and access to the Windows filesystem, it downloads a malicious tarball from a remote URL, extracts it into the Windows user's AppData directory, and uses PowerShell commands along with WScript.Shell COM objects to create a shortcut in the Windows Startup folder. This shortcut points to a malicious executable (RenameMe.exe), which executes on the next Windows login, effectively allowing code execution on the Windows host via a WSL-to-Windows escape. This malicious behavior is hidden from static analysis by obfuscation and is unrelated to the package's stated purpose.
Potential Impact
Successful execution of this malicious package in a WSL-enabled Linux environment with access to the Windows filesystem results in persistent code execution on the Windows host at the next user login. This can lead to unauthorized control over the Windows system, potentially allowing further compromise or persistence. The attack bypasses the expected functionality of the package and leverages obfuscation to evade detection.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing or using streak-day-primitives version 1.0.0. Review and remove this package if present in your environment. Employ supply chain security best practices such as verifying package integrity and using trusted sources. Monitor for suspicious startup shortcuts and unexpected executables in user AppData directories on Windows hosts, especially in environments using WSL.
Malicious code in streak-day-primitives (npm)
Description
The streak-day-primitives npm package version 1.0.0 contains malicious code that executes upon import. It uses obfuscated hex-encoded strings to hide payload details and attempts a Windows Subsystem for Linux (WSL) to Windows escape. If the environment is Linux with WSL and the Windows filesystem is accessible, it downloads a tarball, extracts a payload executable into the Windows user's AppData directory, and creates a shortcut in the Windows Startup folder. This shortcut runs a malicious executable on the next Windows login, enabling attacker code execution on the Windows host. This behavior is unrelated to the package's advertised functionality as a dependency-free calendar-day arithmetic 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 streak-day-primitives npm package version 1.0.0 contains top-level code that runs on import and uses hex-encoded strings to conceal module names, remote URLs, and payload details. When executed in a Linux environment with WSL configured and access to the Windows filesystem, it downloads a malicious tarball from a remote URL, extracts it into the Windows user's AppData directory, and uses PowerShell commands along with WScript.Shell COM objects to create a shortcut in the Windows Startup folder. This shortcut points to a malicious executable (RenameMe.exe), which executes on the next Windows login, effectively allowing code execution on the Windows host via a WSL-to-Windows escape. This malicious behavior is hidden from static analysis by obfuscation and is unrelated to the package's stated purpose.
Potential Impact
Successful execution of this malicious package in a WSL-enabled Linux environment with access to the Windows filesystem results in persistent code execution on the Windows host at the next user login. This can lead to unauthorized control over the Windows system, potentially allowing further compromise or persistence. The attack bypasses the expected functionality of the package and leverages obfuscation to evade detection.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing or using streak-day-primitives version 1.0.0. Review and remove this package if present in your environment. Employ supply chain security best practices such as verifying package integrity and using trusted sources. Monitor for suspicious startup shortcuts and unexpected executables in user AppData directories on Windows hosts, especially in environments using WSL.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12463
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735745bf8831d539159f4a
Added to database: 08/05/2026, 15:31:17 UTC
Last enriched: 08/05/2026, 17:25:29 UTC
Last updated: 08/05/2026, 17:25:29 UTC
Views: 2
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.