Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

polygon-toolkits-validatornpm

Advisory published Updated

polygon-toolkits-validator is a confirmed malicious npm package (MAL-2026-16087) that executes malicious code on install (malicious version 1.1.4). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in polygon-toolkits-validator (npm)

MAL-2026-16087
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall polygon-toolkits-validator

What this malware does

[email protected] 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 [email protected] 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.

Malicious versions

1 flagged
1.1.4

Indicators of compromise (SHA-256)

6c6493dc8ede3bc3d88353d577d82ca96073206d90f776147fe050a3b61bda64
247ced1b39382952aa5c665774c77a1c321b80b13d29f7118e938d85ef720c23

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for polygon-toolkits-validator (version 1.1.4).

  2. If you installed it — respond

    Remove polygon-toolkits-validator from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If polygon-toolkits-validator was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. polygon-toolkits-validator on npm has been identified as a malicious package (version 1.1.4 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-cmwm-j5px-xrpfIN-MAL-2026-019868

References

Credits

  • Amazon Inspector · finder
  • pkgwarden · finder

Detect & block this

O3 blocks polygon-toolkits-validator-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

polygon-toolkits-validator (npm) malicious package — MAL-2026-16087 | O3 Security