MAL-2026-12000Malicious code in streak-math-metrics (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | streak-math-metrics | * |
| npm | streak-math-metrics | 1.0.0 |
{"schema_version":"1.7.4","id":"MAL-2026-12000","published":"2026-08-05T00:02:35Z","modified":"2026-08-25T15:32:18.208783418Z","aliases":["GHSA-3ph5-6m86-7v7r"],"summary":"Malicious code in streak-math-metrics (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3769541ab9576413a88f4e32ef21b55090b7efc17fd44750269f9e19e854abb1)\nThe package's module entry dist/index.mjs runs a top-level IIFE on import that chmods dist/math-calc.bin to 0755 and spawns it detached. dist/math-calc.bin is a Linux x86_64 ELF linked against libssl/libcrypto implementing a RedShell-style remote-access agent: /bin/sh-backed command execution, HTTP downloaders that fetch payloads from 217.60.77.63 under /Others/ and /SC/ paths and execute them from /tmp or via memfd_create, a SOCKS5 proxy, TCP port forwarders, credential/SSH-key/database collectors, and a persistence installer that drops a systemd user unit at ~/.config/systemd/user/svc-update.service (masquerading as 'System Update Service') with Restart=always. A sha256 'integrity check' is present in the JS wrapper but its mismatch branch only logs and still proceeds, and the wrapper's comments and log strings ('Native accelerator loaded and verified.', 'Performance mode enabled.') present the implant as a native math accelerator despite the package having no plausible need for a native binary. Any consumer that imports the package hands a remote operator interactive shell, file/credential exfiltration, arbitrary payload execution, and persistence on the installer host.\n\n## Source: ghsa-malware (3baafec10b3726413ecc6129f8a3b1d9a4e53c7a721049d79f7b619a118e007c)\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-math-metrics","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":"dist/index.mjs","sha256":"3ad446777c04146aa878643fd286094363a3ed74865a1644a39c76079d72960b","tlsh":"eb4153a6abfd232857fc4786ce3921930a5d4c837f55d674e448433860c16add3e4d7a"},{"path":"dist/math-calc.bin","sha256":"4537b1189ce419f1a595cf47216c03f80e9170ce80dad8d9227a1e52f9cb3466","tlsh":"83531a2bbdc28e3fc084d53087dfd42269b5705aaa33712f26111f293d59a69473f72a"}],"package_integrity":[{"filename":"streak-math-metrics-1.0.0.tgz","hashes":{"sha1":"2b3b5fd44a51f64afd3ff6d9fca6f3811a552874","sha512_sri":"sha512-UOi84y64X8l2XUzQndmuun4QTH0YaGmZcH6GFV/bcckgbKp13ygg1NT8c5C/0hGLbcSTOJihQOiRenKKfpPeLw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/streak-math-metrics/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3ph5-6m86-7v7r"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-011368","import_time":"2026-08-05T00:04:39.582259728Z","modified_time":"2026-08-05T00:02:35Z","sha256":"3769541ab9576413a88f4e32ef21b55090b7efc17fd44750269f9e19e854abb1","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-3ph5-6m86-7v7r","import_time":"2026-08-25T15:30:22.77168398Z","modified_time":"2026-08-25T14:50:22Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"3baafec10b3726413ecc6129f8a3b1d9a4e53c7a721049d79f7b619a118e007c","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0