{"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","modified":"2026-08-05T13:36:11.948981889Z","published":"2026-08-05T12:30:45Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"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"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/streak-metricsa/v/1.0.0"}],"affected":[{"package":{"name":"streak-metricsa","ecosystem":"npm","purl":"pkg:npm/streak-metricsa"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"4c834bf29a863c8765b19d28d64138082d7c66832178d177fec863eba3e5250df5ecb4","path":"dist/index.mjs","sha256":"398b69d55dcbaf72d383cda02bf91a1a669674174d582480711f5b46e04c2ab2"}],"package_integrity":[{"filename":"streak-metricsa-1.0.0.tgz","hashes":{"sha512_sri":"sha512-mTMK+eEkmsTsA8iK+0s+x/kUEgCu9oaPzYCVurVI+a+qDB9d2iOYevPfzzx+zax2cwNGDoyOT1mlGIUNRXzxKQ==","sha1":"f3d2fdd62572fdc3c9fc3455a6ae6f066ace1446"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/streak-metricsa/MAL-2026-12470.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}