MAL-2026-12460Malicious code in streak-count-core (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | streak-count-core | * |
| npm | streak-count-core | 1.0.0 |
{"schema_version":"1.7.4","id":"MAL-2026-12460","published":"2026-08-05T12:22:50Z","modified":"2026-08-25T15:32:18.186959414Z","aliases":["GHSA-6qqq-g7qr-g756"],"summary":"Malicious code in streak-count-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d391f9ec30841fdf31ec1afeeb309a1e8895c445c811a1a1f7f3e0a754c5e4fa)\nstreak-count-core@1.0.0's index.mjs executes a hex-obfuscated routine on module import (gated only by NODE_ENV!== 'production'). When it detects a WSL environment (process.platform === 'linux' with WSL_DISTRO_NAME set), it downloads https://f004.backblazeb2.com/file/dp8hbvocjd2fpza/helper.tar.gz, extracts it under the Windows host's user profile at /mnt/c/Users/<user>/AppData/Local/Microsoft/Windows/syscache, and writes env-setup.cmd into the Windows Start Menu Startup folder so the extracted RenameMe.exe auto-launches on every Windows login. All indicators — module names (fs/promises, path, child_process, https), env keys (NODE_ENV, WSL_DISTRO_NAME), the /mnt/c path, the Startup folder, the download URL, and tar arguments — are stored as hex strings in a _cfg object and reconstructed at runtime via Buffer.from(s,'hex').toString() before dynamic import() and spawn calls. The package's declared purpose (a streak counter library) does not require downloading and persistently installing a Windows executable on the host.\n\n## Source: ghsa-malware (7a72d8c593c124f730084ec7c09cddac9479fe0043015e8584b0350e6efa48d0)\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-count-core","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":"e61310a860e48f47e33a2504ec383dd86801da4810d5fa5272885dcf23a66a19","tlsh":"ccf1b69246f753710b73d3d44a5fa406fb2df023b785ce90b91ca6801f86532d27aad9"}],"package_integrity":[{"filename":"streak-count-core-1.0.0.tgz","hashes":{"sha1":"8f6bb46a057b0de46384796f35602a8a9713418b","sha512_sri":"sha512-gGlNcifv7MoZYT75IoQAdrCEjihM7zuSepliEkXOzyR3htfxXbCGLc3fYHEjYkETVmS9bB3M6TRvVOT2jGzh/A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/streak-count-core/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6qqq-g7qr-g756"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014636","import_time":"2026-08-05T13:08:32.507590619Z","modified_time":"2026-08-05T12:22:50Z","sha256":"d391f9ec30841fdf31ec1afeeb309a1e8895c445c811a1a1f7f3e0a754c5e4fa","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-6qqq-g7qr-g756","import_time":"2026-08-25T15:30:22.780980395Z","modified_time":"2026-08-25T14:42:51Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"7a72d8c593c124f730084ec7c09cddac9479fe0043015e8584b0350e6efa48d0","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0