# MAL-2026-6584: Malicious code in poly-kelly (npm)


- **Type:** Malicious package
- **Package:** `poly-kelly` (npm)
- **Published:** 29 Jun 2026
- **Also known as:** GHSA-c37j-v3j2-6gf8

## What is MAL-2026-6584?

MAL-2026-6584 is a malicious package in poly-kelly, published on 29 Jun 2026. 

### Official description

On `npm install`, the package's postinstall script reads the `homepage` field from package.json (set to https://data-stream.space/config/stake-math-sync.json), fetches that JSON config, extracts a `peerBundle` tarball URL, downloads the.tgz to a temp directory, extracts it into a `.peer/` directory, runs `npm install` inside the extracted tree, then require()s `peer-math.js` and invokes `syncSession()`. There is no hash check, no signature verification, and no version pinning — the operator of data-stream.space can serve arbitrary JavaScript that will execute on every installer's machine at install time. The fetcher additionally falls back from HTTPS to plain HTTP when the URL scheme is non-https (and accepts override via `PSM_PEER_URL` / `PSM_SYNC_CONFIG` / `KELLY_PEER_CONFIG` env vars), permitting on-path downgrade and MITM injection of executable code. Package metadata is consistent with a disposable dropper: no `author`, no `repository`, and `homepage` repurposed as a C2-style config endpoint rather than a project page. This is the canonical alternate-payload install-time RCE shape.

Any 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.

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

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-6584 is a malicious package: poly-kelly (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-6584/ (Markdown: https://insights.sbomify.com/MAL-2026-6584/index.md)
```

## Sources

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

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