Malicious code in polygon-toolkits-validator (npm)
The npm package polygon-toolkits-validator version 1.1.4 contains malicious code that covertly transmits sensitive data to a hardcoded remote server. Specifically, the validate(input) function base64-encodes its argument and sends it via POST to an external URL without performing any actual validation. Additionally, the randomBytes(size) function generates cryptographic random bytes but sends the hex-encoded output to the same remote host before returning it. This behavior leaks cryptographic keys, nonces, private keys, mnemonics, and other sensitive inputs to an attacker-controlled server. The package masquerades as a crypto helper library but is effectively a backdoor. No code runs on install or import; the data exfiltration occurs only when the exported functions are called.
AI Analysis
Technical Summary
[email protected] is a malicious npm package that exports Node.js crypto helper wrappers but does not perform legitimate cryptographic validation. Instead, its validate(input) function base64-encodes the input and sends it to a hardcoded external endpoint (https://raydium-clmm.maingoal.xyz/v1/check) under the guise of validation, returning true unconditionally. Its randomBytes(size) function generates random bytes using Node's crypto.randomBytes, converts them to hex, and then sends this hex string to the same external host before returning it. This results in the disclosure of any cryptographic keys, nonces, or sensitive data generated or validated through these functions. The package is a drop-in replacement for crypto helpers but acts as a data exfiltration backdoor. The malicious code is contained in a minified dist bundle and shares code with other malicious packages from the same author. No malicious code executes on install or import; exfiltration happens only on function calls.
Potential Impact
Any system using [email protected] is at high risk of compromise because sensitive cryptographic material and private data passed to the package's functions are sent to an attacker-controlled server. This enables attackers to reproduce keys, nonces, and potentially decrypt or manipulate sensitive operations relying on these secrets. The compromise extends to all secrets generated or validated by the package, effectively undermining the security of cryptographic operations and any dependent systems. The package presence indicates a full compromise risk, and all secrets on affected systems should be considered exposed.
Mitigation Recommendations
Remove [email protected] immediately from all systems. Rotate all cryptographic keys, private keys, mnemonics, and any secrets generated or validated using this package from a secure, uncompromised environment. Because the package exfiltrates data only when its functions are called, avoid calling these functions if removal is not immediately possible. There is no official patch or fix; the package itself is malicious. Conduct a full security audit of affected systems to detect any further compromise. Do not trust any secrets generated or validated on systems where this package was installed.
Malicious code in polygon-toolkits-validator (npm)
Description
The npm package polygon-toolkits-validator version 1.1.4 contains malicious code that covertly transmits sensitive data to a hardcoded remote server. Specifically, the validate(input) function base64-encodes its argument and sends it via POST to an external URL without performing any actual validation. Additionally, the randomBytes(size) function generates cryptographic random bytes but sends the hex-encoded output to the same remote host before returning it. This behavior leaks cryptographic keys, nonces, private keys, mnemonics, and other sensitive inputs to an attacker-controlled server. The package masquerades as a crypto helper library but is effectively a backdoor. No code runs on install or import; the data exfiltration occurs only when the exported functions are called.
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
[email protected] is a malicious npm package that exports Node.js crypto helper wrappers but does not perform legitimate cryptographic validation. Instead, its validate(input) function base64-encodes the input and sends it to a hardcoded external endpoint (https://raydium-clmm.maingoal.xyz/v1/check) under the guise of validation, returning true unconditionally. Its randomBytes(size) function generates random bytes using Node's crypto.randomBytes, converts them to hex, and then sends this hex string to the same external host before returning it. This results in the disclosure of any cryptographic keys, nonces, or sensitive data generated or validated through these functions. The package is a drop-in replacement for crypto helpers but acts as a data exfiltration backdoor. The malicious code is contained in a minified dist bundle and shares code with other malicious packages from the same author. No malicious code executes on install or import; exfiltration happens only on function calls.
Potential Impact
Any system using [email protected] is at high risk of compromise because sensitive cryptographic material and private data passed to the package's functions are sent to an attacker-controlled server. This enables attackers to reproduce keys, nonces, and potentially decrypt or manipulate sensitive operations relying on these secrets. The compromise extends to all secrets generated or validated by the package, effectively undermining the security of cryptographic operations and any dependent systems. The package presence indicates a full compromise risk, and all secrets on affected systems should be considered exposed.
Mitigation Recommendations
Remove [email protected] immediately from all systems. Rotate all cryptographic keys, private keys, mnemonics, and any secrets generated or validated using this package from a secure, uncompromised environment. Because the package exfiltrates data only when its functions are called, avoid calling these functions if removal is not immediately possible. There is no official patch or fix; the package itself is malicious. Conduct a full security audit of affected systems to detect any further compromise. Do not trust any secrets generated or validated on systems where this package was installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-16087
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-cmwm-j5px-xrpf"]
- Ecosystems
- ["npm"]
Threat ID: 6aa2af89acd9273b4925b50c
Added to database: 09/10/2026, 13:24:25 UTC
Last enriched: 09/10/2026, 13:38:40 UTC
Last updated: 09/11/2026, 15:19:02 UTC
Views: 15
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.
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.