Malicious code in polymarket-bot (npm)
A coordinated supply-chain attack involving nine npm packages published by the maintainer polymarketdev under the polymarket-bot family. These packages masquerade as legitimate Polymarket trading tools but steal Ethereum private keys by prompting users or silently reading environment variables, then exfiltrate them to a Cloudflare Worker command-and-control server. The malicious code uses a postinstall hook that evades automated detection by checking for interactive shells and persists locally with device fingerprinting. The payload is identical across all packages and includes legitimate SDKs to provide functional cover commands. No patch or remediation guidance is currently available.
AI Analysis
Technical Summary
This threat is a supply-chain attack comprising nine npm packages published within a short time window by the maintainer polymarketdev (GitHub actor texsellix). The packages impersonate Polymarket CLOB trading tools but contain malicious code that steals Ethereum private keys. The postinstall hook probes for interactive shells to evade automated CI/CD scanners. In interactive mode, it prompts the user for private keys; in non-interactive mode, it silently reads the PRIVATE_KEY environment variable from .env files. The malware persists locally by creating a hidden directory with device and wallet fingerprint data. It exfiltrates stolen private keys and labels as JSON over HTTPS to a Cloudflare Worker C2 endpoint, including a device fingerprint header. The malicious payload bundles legitimate Polymarket SDK components to appear functional and trustworthy. Targeting includes packages named to surface in LLM-assisted coding workflows. No affected versions or patches are specified.
Potential Impact
Any system that installs or runs these malicious npm packages is fully compromised. Ethereum private keys stored in environment variables or entered interactively are stolen and sent to an attacker-controlled server, risking complete loss of control over associated blockchain assets. The malware also establishes local persistence and device fingerprinting, enabling ongoing attacker presence. Because the packages masquerade as legitimate tools and include working SDK functionality, users may be unaware of the compromise. Immediate secret rotation is required for affected keys. Removal of the package alone may not fully remediate the compromise due to potential additional persistence.
Mitigation Recommendations
No official patch or remediation is currently available. The malicious packages should be immediately removed from all systems. All Ethereum private keys and other secrets exposed to these packages must be rotated immediately from a secure, uncompromised environment. Because full system compromise is likely, affected hosts should be considered untrusted and rebuilt if possible. Users should avoid installing npm packages from unverified sources and verify package provenance before use. Monitor for any suspicious network connections to the indicated Cloudflare Worker C2 URL. Check vendor advisories or security databases for updates.
Malicious code in polymarket-bot (npm)
Description
A coordinated supply-chain attack involving nine npm packages published by the maintainer polymarketdev under the polymarket-bot family. These packages masquerade as legitimate Polymarket trading tools but steal Ethereum private keys by prompting users or silently reading environment variables, then exfiltrate them to a Cloudflare Worker command-and-control server. The malicious code uses a postinstall hook that evades automated detection by checking for interactive shells and persists locally with device fingerprinting. The payload is identical across all packages and includes legitimate SDKs to provide functional cover commands. No patch or remediation guidance is currently available.
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
This threat is a supply-chain attack comprising nine npm packages published within a short time window by the maintainer polymarketdev (GitHub actor texsellix). The packages impersonate Polymarket CLOB trading tools but contain malicious code that steals Ethereum private keys. The postinstall hook probes for interactive shells to evade automated CI/CD scanners. In interactive mode, it prompts the user for private keys; in non-interactive mode, it silently reads the PRIVATE_KEY environment variable from .env files. The malware persists locally by creating a hidden directory with device and wallet fingerprint data. It exfiltrates stolen private keys and labels as JSON over HTTPS to a Cloudflare Worker C2 endpoint, including a device fingerprint header. The malicious payload bundles legitimate Polymarket SDK components to appear functional and trustworthy. Targeting includes packages named to surface in LLM-assisted coding workflows. No affected versions or patches are specified.
Potential Impact
Any system that installs or runs these malicious npm packages is fully compromised. Ethereum private keys stored in environment variables or entered interactively are stolen and sent to an attacker-controlled server, risking complete loss of control over associated blockchain assets. The malware also establishes local persistence and device fingerprinting, enabling ongoing attacker presence. Because the packages masquerade as legitimate tools and include working SDK functionality, users may be unaware of the compromise. Immediate secret rotation is required for affected keys. Removal of the package alone may not fully remediate the compromise due to potential additional persistence.
Mitigation Recommendations
No official patch or remediation is currently available. The malicious packages should be immediately removed from all systems. All Ethereum private keys and other secrets exposed to these packages must be rotated immediately from a secure, uncompromised environment. Because full system compromise is likely, affected hosts should be considered untrusted and rebuilt if possible. Users should avoid installing npm packages from unverified sources and verify package provenance before use. Monitor for any suspicious network connections to the indicated Cloudflare Worker C2 URL. Check vendor advisories or security databases for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4211
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-9x4c-gq65-ggmc"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a885f21acd9273b493f7d4a
Added to database: 08/21/2026, 14:22:25 UTC
Last enriched: 08/21/2026, 14:32:24 UTC
Last updated: 08/22/2026, 03:51:58 UTC
Views: 2
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.