MAL-2026-10640: Malicious code in polygon-toolkit-validation (npm)
The npm package polygon-toolkit-validation versions 1.0.9 and 1.1.0 contains malicious code that exfiltrates data to an attacker-controlled endpoint. It exposes functions that base64-encode input and send it via POST requests to https://validator.polymarket.shop/v2 without user consent. The package impersonates legitimate cryptographic functions and a trusted package, shadowing Node.js crypto APIs and sending sensitive cryptographic material such as keys or seeds off-host. The destination domain is a typosquat of Polymarket and is controlled by the attacker.
AI Analysis
Technical Summary
The polygon-toolkit-validation npm package (versions 1.0.9 and 1.1.0) is a malicious package that masquerades as a legitimate validation toolkit. It exposes functions like validate(t) and randomBytes(t,e) which internally encode their inputs and send them unconditionally to a hardcoded external endpoint at https://validator.polymarket.shop/v2. The randomBytes function generates cryptographic random bytes but then transmits these secret values off-host, risking exposure of cryptographic keys, initialization vectors, or seeds. The package also shadows standard Node.js crypto functions and impersonates the legitimate web3-validator package. The polymarket.shop domain is attacker-controlled and is a typosquat of the legitimate Polymarket domain, indicating deliberate deception.
Potential Impact
Any application using polygon-toolkit-validation versions 1.0.9 or 1.1.0 that calls the exposed functions may inadvertently leak sensitive cryptographic material and other data to an attacker-controlled server. This compromises confidentiality of cryptographic keys and potentially undermines the security of cryptographic operations relying on these values. The package's impersonation of legitimate crypto APIs increases the risk of unnoticed exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove polygon-toolkit-validation versions 1.0.9 and 1.1.0 from their projects and avoid using this package. Verify dependencies to ensure no transitive inclusion of this malicious package. Use only trusted and verified packages from official sources. Monitor vendor advisories for any future updates or official fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
MAL-2026-10640: Malicious code in polygon-toolkit-validation (npm)
Description
The npm package polygon-toolkit-validation versions 1.0.9 and 1.1.0 contains malicious code that exfiltrates data to an attacker-controlled endpoint. It exposes functions that base64-encode input and send it via POST requests to https://validator.polymarket.shop/v2 without user consent. The package impersonates legitimate cryptographic functions and a trusted package, shadowing Node.js crypto APIs and sending sensitive cryptographic material such as keys or seeds off-host. The destination domain is a typosquat of Polymarket and is controlled by the attacker.
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-validation npm package (versions 1.0.9 and 1.1.0) is a malicious package that masquerades as a legitimate validation toolkit. It exposes functions like validate(t) and randomBytes(t,e) which internally encode their inputs and send them unconditionally to a hardcoded external endpoint at https://validator.polymarket.shop/v2. The randomBytes function generates cryptographic random bytes but then transmits these secret values off-host, risking exposure of cryptographic keys, initialization vectors, or seeds. The package also shadows standard Node.js crypto functions and impersonates the legitimate web3-validator package. The polymarket.shop domain is attacker-controlled and is a typosquat of the legitimate Polymarket domain, indicating deliberate deception.
Potential Impact
Any application using polygon-toolkit-validation versions 1.0.9 or 1.1.0 that calls the exposed functions may inadvertently leak sensitive cryptographic material and other data to an attacker-controlled server. This compromises confidentiality of cryptographic keys and potentially undermines the security of cryptographic operations relying on these values. The package's impersonation of legitimate crypto APIs increases the risk of unnoticed exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove polygon-toolkit-validation versions 1.0.9 and 1.1.0 from their projects and avoid using this package. Verify dependencies to ensure no transitive inclusion of this malicious package. Use only trusted and verified packages from official sources. Monitor vendor advisories for any future updates or official fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10640
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a577ef368715ace43b415f4
Added to database: 07/15/2026, 12:37:07 UTC
Last enriched: 07/15/2026, 12:57:02 UTC
Last updated: 07/16/2026, 03:43:54 UTC
Views: 6
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.