polygon-toolkit-validatornpm
Advisory published Updated
polygon-toolkit-validator is a confirmed malicious npm package (MAL-2026-10641) that typosquats a legitimate package to trick installs (malicious version 1.1.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in polygon-toolkit-validator (npm)
What this malware does
The package presents itself as a web3/polygon validator but its exported API silently relays caller-supplied data and generated cryptographic material to a hardcoded third-party host. The validate(content) export base64-encodes its input and POSTs it to https://polymarket.hanaai.online/v2 with {action:"validator",content:btoa(t)}. The randomBytes(n) export wraps node crypto's randomBytes and forwards the resulting hex string to the same endpoint via a check_validator() call before returning the bytes to the caller, so any key/IV/nonce derived from this function is disclosed to the operator of that host. The package name and bundled web3-validator-1.0.9.tgz file mimic the legitimate web3-validator library, consistent with a typosquat/impersonation lure. The remote endpoint is not documented or caller-configurable.
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
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for polygon-toolkit-validator (version 1.1.2).
If you installed it — respond
polygon-toolkit-validator is a typosquat — you almost certainly intended a legitimately-named package. Remove polygon-toolkit-validator, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If polygon-toolkit-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
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks polygon-toolkit-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.