Malicious code in polygon-toolkit-validator (npm)
The npm package polygon-toolkit-validator version 1.1.2 is a malicious typosquatting package that impersonates a legitimate web3/polygon validator library. It exfiltrates caller-supplied data and cryptographic material to a hardcoded third-party server without user consent. The package exports functions that encode and send input data and cryptographic random bytes to an attacker-controlled endpoint, potentially exposing sensitive keys and secrets. Any system with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
The polygon-toolkit-validator npm package (version 1.1.2) masquerades as a web3/polygon validator but contains malicious code that silently sends user data and cryptographic material to a hardcoded external server (https://polymarket.hanaai.online/v2). The validate(content) function base64-encodes its input and posts it to the attacker endpoint, while the randomBytes(n) function wraps Node.js crypto's randomBytes and forwards the generated hex string to the same endpoint before returning it. This behavior leaks any keys, IVs, or nonces derived from randomBytes to the attacker. The package name and bundled file mimic a legitimate library, indicating a typosquatting attack. The remote endpoint is not configurable or documented, confirming malicious intent.
Potential Impact
Systems with this package installed are at high risk of compromise because sensitive cryptographic material and caller data are exfiltrated to an attacker-controlled server. This exposure can lead to full system compromise, loss of secrets, and unauthorized access. The presence of this package implies that all secrets and keys stored on the affected system should be considered compromised and require immediate rotation from a clean environment. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
Remove the polygon-toolkit-validator package immediately from all affected systems. Rotate all secrets, keys, and credentials that may have been exposed, performing this rotation from a different, uncompromised computer. Because the package grants the attacker potential full control, conduct a thorough system investigation and consider rebuilding affected systems. There is no official patch or fix; the package itself is malicious and should not be used. No action can fully guarantee remediation without system reimaging.
Malicious code in polygon-toolkit-validator (npm)
Description
The npm package polygon-toolkit-validator version 1.1.2 is a malicious typosquatting package that impersonates a legitimate web3/polygon validator library. It exfiltrates caller-supplied data and cryptographic material to a hardcoded third-party server without user consent. The package exports functions that encode and send input data and cryptographic random bytes to an attacker-controlled endpoint, potentially exposing sensitive keys and secrets. Any system with this package installed should be considered fully compromised.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The polygon-toolkit-validator npm package (version 1.1.2) masquerades as a web3/polygon validator but contains malicious code that silently sends user data and cryptographic material to a hardcoded external server (https://polymarket.hanaai.online/v2). The validate(content) function base64-encodes its input and posts it to the attacker endpoint, while the randomBytes(n) function wraps Node.js crypto's randomBytes and forwards the generated hex string to the same endpoint before returning it. This behavior leaks any keys, IVs, or nonces derived from randomBytes to the attacker. The package name and bundled file mimic a legitimate library, indicating a typosquatting attack. The remote endpoint is not configurable or documented, confirming malicious intent.
Potential Impact
Systems with this package installed are at high risk of compromise because sensitive cryptographic material and caller data are exfiltrated to an attacker-controlled server. This exposure can lead to full system compromise, loss of secrets, and unauthorized access. The presence of this package implies that all secrets and keys stored on the affected system should be considered compromised and require immediate rotation from a clean environment. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
Remove the polygon-toolkit-validator package immediately from all affected systems. Rotate all secrets, keys, and credentials that may have been exposed, performing this rotation from a different, uncompromised computer. Because the package grants the attacker potential full control, conduct a thorough system investigation and consider rebuilding affected systems. There is no official patch or fix; the package itself is malicious and should not be used. No action can fully guarantee remediation without system reimaging.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10641
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a577efb68715ace43b41e42
Added to database: 07/15/2026, 12:37:15 UTC
Last enriched: 08/21/2026, 16:59:45 UTC
Last updated: 09/14/2026, 14:38:54 UTC
Views: 124
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.