{"id":"MAL-2026-14224","revision":"2b76c88513834cafb2d762112a601685","records":[{"revision":"2b76c88513834cafb2d762112a601685","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14224","aliases":[],"title":"Malicious code in streak-metric-test (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (06a07dcfac11a25f5e9074d867bee34fa01ba0926b30cb4c21f75a2787bdac77)\nstreak-metric-test@1.0.0 ships a fully wired dropper that fires on `import`/`require` of the package root. The top-level async IIFE in dist/index.mjs assembles a Buffer from a base64 string array, writes it to `~/.cache/streak-metric/h`, chmods it 0o755, and detach-spawns it via `child_process.spawn(..., { detached: true, stdio: 'ignore' }).unref()`. The supporting primitives (`ensureDir`, `writeBinary`, `runDetached`) live in dist/internal/daymath.mjs alongside unrelated day-math helpers, with docstrings (`\"Start a background task\"`, `\"Save data to cache\"`) that mislabel the chmod-executable + detached-spawn behavior as benign caching. The payload array is currently `[\"\"]` (inert), but the decode→write→chmod+x→detached-spawn chain is complete and only requires populating one string to arm; the package name suffix `-test`, the cover-story comments, and the hidden cache path are consistent with a staging artifact rather than legitimate functionality. No native addon, no declared purpose that would justify writing and executing an opaque binary from an in-source blob at import.\n","state":0,"publishedAt":"2026-08-19T03:01:38+00:00","modifiedAt":"2026-08-19T03:30:16.0545906+00:00","affected":[{"ecosystem":"npm","name":"streak-metric-test","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/streak-metric-test/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14224","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14224","identifiers":["MAL-2026-14224"]},"retained":false,"historicalAffected":[]}],"coverage":[]}