# MAL-2026-12002: Malicious code in streak-metricsazb (npm)


- **Type:** Malicious package
- **Package:** `streak-metricsazb` (npm)
- **Published:** 5 Aug 2026

## What is MAL-2026-12002?

MAL-2026-12002 is a malicious package in streak-metricsazb, published on 5 Aug 2026. 

### Official description

On import of the package's main entry, a top-level async IIFE in index.mjs (labelled 'ENGINE INITIALIZATION & CALIBRATION') copies the shipped file dist/cache.bin to os.tmpdir()/sm-engine-runtime/math-core.bin and spawns it via child_process.spawn. The dropped ELF is a full Linux implant containing a hardcoded C2 at 217.60.77.63, a SECURE_BEACON|...|REDSHELL beacon protocol, a remote-shell dispatcher invoking /bin/sh and /bin/bash on C2-supplied input, SOCKS5 proxy and TCP port-forwarding, staged payload execution via curl plus memfd/mktemp, and systemd --user persistence via svc-update.service. The implant exposes beacon commands /ssh_keys, /creds, /dbfind, /download, /upload, /dataextract, and /clipboard, and exfiltrates collected data through POST /api/extract-receive on the C2. The package advertises calendar and streak math primitives; the calibration/JIT wording in the surrounding comments is a cover story contradicted by the binary's contents.

## What should I do about MAL-2026-12002?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-12002 is a malicious package: streak-metricsazb (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-12002/ (Markdown: https://insights.sbomify.com/MAL-2026-12002/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-12002

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-12002/
Summaries are generated and may contain mistakes; the official description above is the record.
