MAL-2026-12470Malicious code in streak-metricsa (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | streak-metricsa | 1.0.0 |
{"modified":"2026-08-05T12:30:45Z","published":"2026-08-05T12:30:45Z","schema_version":"1.7.4","id":"MAL-2026-12470","summary":"Malicious code in streak-metricsa (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a707525e88d0f5d3004f833b17a7544655da43715d9d7af3e6d635ff3a6801a9)\nstreak-metricsa@1.0.0 presents itself as a calendar-day math helper but its main entry (dist/index.mjs, the default `exports` target) embeds a Linux x86-64 ELF binary as a base64-chunk array assigned to a variable named `_`. At module top level — reached on any `import`/`require` of the package — the chunks are joined via Buffer.concat and Buffer.from(b,'base64'), written to disk, chmod'd 0o755, and executed via node:child_process. The dropped ELF's dynamic symbols include SSL_connect / SSL_read / SSL_write / TLS_client_method, socket / getaddrinfo, dlopen / dlsym, popen, execl / execv, fork, pthread_create, kill, and mkdtemp — the shape of a TLS-based remote-command implant. The README describes the top-level behavior as a `tiny startup self-check`, which does not match a native binary drop-and-execute. Any consumer that imports streak-metricsa gains an executing native implant on the host with outbound TLS and shell-exec capability.\n","affected":[{"package":{"ecosystem":"npm","name":"streak-metricsa"},"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"}],"indicators":{"evidence_files":[{"path":"dist/index.mjs","sha256":"398b69d55dcbaf72d383cda02bf91a1a669674174d582480711f5b46e04c2ab2","tlsh":"4c834bf29a863c8765b19d28d64138082d7c66832178d177fec863eba3e5250df5ecb4"}],"package_integrity":[{"filename":"streak-metricsa-1.0.0.tgz","hashes":{"sha1":"f3d2fdd62572fdc3c9fc3455a6ae6f066ace1446","sha512_sri":"sha512-mTMK+eEkmsTsA8iK+0s+x/kUEgCu9oaPzYCVurVI+a+qDB9d2iOYevPfzzx+zax2cwNGDoyOT1mlGIUNRXzxKQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/streak-metricsa/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014685","import_time":"2026-08-05T13:08:37.241950865Z","modified_time":"2026-08-05T12:30:45Z","sha256":"a707525e88d0f5d3004f833b17a7544655da43715d9d7af3e6d635ff3a6801a9","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0