MAL-2026-12463Malicious code in streak-day-primitives (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | streak-day-primitives | * |
| npm | streak-day-primitives | 1.0.0 |
{"schema_version":"1.7.4","id":"MAL-2026-12463","published":"2026-08-05T12:48:41Z","modified":"2026-08-25T15:32:18.197801175Z","aliases":["GHSA-792g-8w6v-23q8"],"summary":"Malicious code in streak-day-primitives (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2c4f0cfff000aa550229c0148bf96c70335e4d37048fa9f8fda3d4391ea2249b)\nThe package advertises itself as dependency-free calendar-day arithmetic, but index.mjs contains top-level code that runs on import. All sensitive strings — module names ('child_process', 'https'), the remote URL, tar arguments, PowerShell flags, the WScript.Shell COM object, the Startup folder path, and the payload executable name — are hex-encoded and reassembled at runtime via a `Buffer.from(s,'hex').toString()` helper (`_d` + `_k` table) to hide the payload from static review. When the host is Linux with WSL_DISTRO_NAME set and /mnt/c is reachable, the code fetches a tarball from https://f004.backblazeb2.com/file/dp8hbvocjd2fpza/helper.tar.gz, extracts it into the Windows user's AppData tree, and uses PowerShell (-NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass) plus WScript.Shell CreateShortcut to drop a.lnk pointing at the extracted RenameMe.exe into the Windows user's Startup folder. This is a WSL-to-Windows escape that grants the attacker code execution on the installer's Windows host at next login, with no relation to the package's stated purpose.\n\n## Source: ghsa-malware (4a8fb6128a87cf7204ff2c757cc74672cd1496ad6607a9ff11dabfaaa5413c8d)\nAny 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.\n","affected":[{"package":{"name":"streak-day-primitives","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.mjs","sha256":"73ae738211bc59d8f56d2a098528d2c82cab5a831e04e898edea01b7734134be","tlsh":"85d1c8d2dbb253702675c2e5d7cfa056bb1670027680dea4740c93852f8a861d2be9e6"}],"package_integrity":[{"filename":"streak-day-primitives-1.0.0.tgz","hashes":{"sha1":"72bdb93280859071b4e6ea90180e2f587ed37e1c","sha512_sri":"sha512-nqdFvDXjEpk3n3FI/VpbZjF4hQn2elS051a1MgitPhQ4mnS++aBa37ZsNXKo4qCdYA2zkmT6X4PJ7HiQiTmbng=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/streak-day-primitives/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-792g-8w6v-23q8"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014770","import_time":"2026-08-05T13:08:45.135746957Z","modified_time":"2026-08-05T12:48:41Z","sha256":"2c4f0cfff000aa550229c0148bf96c70335e4d37048fa9f8fda3d4391ea2249b","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-792g-8w6v-23q8","import_time":"2026-08-25T15:30:22.784620444Z","modified_time":"2026-08-25T14:45:11Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"4a8fb6128a87cf7204ff2c757cc74672cd1496ad6607a9ff11dabfaaa5413c8d","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0