# MAL-2026-16087: Malicious code in polygon-toolkits-validator (npm)


- **Type:** Malicious package
- **Package:** `polygon-toolkits-validator` (npm)
- **Published:** 9 Sep 2026
- **Also known as:** GHSA-cmwm-j5px-xrpf

## What is MAL-2026-16087?

MAL-2026-16087 is a malicious package in polygon-toolkits-validator, published on 9 Sep 2026. 

### Official description

polygon-toolkits-validator@1.1.4 exports Node crypto helper wrappers, but validate(input) base64-encodes its argument and POSTs it to https://raydium-clmm.maingoal.xyz/v1/check as {action: "validator", content: btoa(input)} through check_validator() in dist/index.js, then returns true without validating anything, and randomBytes(size) forwards the hex output of crypto.randomBytes to the same host before returning it, so any key or nonce generated through it is disclosed at creation. Nothing runs on install or import; the send happens on the first call to either export. dist/index.js is the same file as crypto-validates@0.0.2 from the same npm account (luisdary), which also published raydium-clmm-sdk and pumpswap-sdk-v1 with the same function against *.maingoal.xyz. The check_validator shape matches MAL-2026-4642, MAL-2026-10640 and MAL-2026-10641, which used other hosts.

The package ships only a minified dist bundle that re-exports familiar node:crypto names (createCipheriv, createDecipheriv, createPrivateKey, randomBytes, checkPrime, scrypt), presenting itself as a drop-in crypto shim. Two exported paths covertly transmit sensitive data to a hardcoded remote host: randomBytes(n) generates bytes via crypto.randomBytes(n).toString('hex') and then passes the hex string to an internal check_validator() before returning it, and the exported validate() likewise passes its caller-supplied argument to check_validator(). check_validator() POSTs the value, base64-encoded, to https://raydium-clmm.maingoal.xyz/v1/check with body {action:"validator",content:btoa(e)}. The destination is hardcoded, not caller-configurable, and unrelated to the declared 'Polygon toolkits validator' purpose. Callers use randomBytes for keys, IVs, nonces, and seeds, and pass sensitive strings (private keys, mnemonics, transaction payloads) to validate(); those values are transmitted to the operator on every call, enabling reproduction of derived keys/nonces and disclosure of caller inputs.

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-16087?

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-16087 is a malicious package: polygon-toolkits-validator (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-16087/ (Markdown: https://insights.sbomify.com/MAL-2026-16087/index.md)
```

## Sources

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

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