Skip to main content

Malicious code in polygon-toolkit-validator (npm)

0
High
Published: 07/15/2026 (07/15/2026, 03:41:32 UTC)
Source: GCVE Database
Product: polygon-toolkit-validator

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

npmghsa
polygon-toolkit-validator
Affected versions
=1.1.2

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

AILast updated: 08/21/2026, 16:59:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses