MAL-2026-12464
Malicious code in streak-daybucket (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (799caca8e351ad8d1144b26eb0c38ffdf06afb415f63a320e6ea455968996aa0) streak-daybucket@1.0.0 presents itself as a day-bucket / streak math utility but its index.mjs embeds a hex-encoded Windows PE binary (leading `4D5A90...` MZ header) alongside hex-encoded path components that decode to `%APPDATA%/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/vite-native-helper.exe`. On module load, a try/catch decodes the hex arrays with `Buffer.from(hex, 'hex')` and writes the executable into the current user's Startup folder via `fs.write*`. Because the drop runs at top-level module evaluation, any `import`/`require` of the package (including transitive consumption) causes the PE to be planted, and Windows will execute it automatically on the next user login, establishing persistent code execution on the installer's host. The path strings, filename `vite-native-helper.exe`, and payload body are stored as split hex-array literals joined at runtime to evade static string scanning, while the surrounding module ships plain-source math helpers as a cover story.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for streak-daybucket (npm). Pin to a known-safe version or switch to an alternative.