Malicious code in polymarket-trader (npm)
A coordinated supply-chain attack involving 9 npm packages published by the maintainer polymarketdev impersonates legitimate Polymarket trading tools. These packages exfiltrate Ethereum private keys by prompting users or silently reading environment variables, then sending the keys to a Cloudflare Worker command-and-control server. The malicious code uses a postinstall hook to evade automated detection and persists locally with device fingerprinting. The packages provide functional trading commands as a cover, falsely claiming private keys remain encrypted. Any system with these packages installed should be considered fully compromised.
AI Analysis
Technical Summary
This threat is a supply-chain attack comprising 9 npm packages published within a short time window by the maintainer polymarketdev. The packages masquerade as legitimate Polymarket CLOB trading tools but contain malicious code that steals Ethereum private keys. The postinstall script detects interactive shells to either prompt users for private keys or silently extract them from .env files without user interaction. The malware persists locally by creating a hidden directory with device and wallet fingerprints and exfiltrates stolen keys via HTTPS POST requests to a Cloudflare Worker C2 endpoint. The packages include a byte-identical large JavaScript bundle that wraps legitimate SDKs to provide working trading commands as a cover. Targeting includes packages named to appear in LLM-assisted coding workflows to increase exposure. The attack compromises any computer with these packages installed, requiring immediate secret rotation and system remediation.
Potential Impact
Systems with any of the malicious polymarketdev npm packages installed are fully compromised. Ethereum private keys stored in environment variables or entered interactively are exfiltrated to an attacker-controlled server, enabling theft of cryptocurrency assets. The malware establishes local persistence and device fingerprinting, increasing attacker control and tracking. Removal of the packages alone does not guarantee eradication of the malware or attacker access. All secrets and keys on affected systems must be rotated from a secure environment to prevent further compromise.
Mitigation Recommendations
No official patch or fix is available as this is a malicious supply-chain attack involving published npm packages. Immediate removal of the affected packages is required. All Ethereum private keys and other secrets stored on the compromised system must be rotated from a different, trusted computer. Due to the potential full compromise of the system, a full incident response and system rebuild or forensic analysis is recommended to ensure complete eradication of the attacker presence. Avoid installing npm packages from untrusted or unverified sources, and verify package provenance before use.
Malicious code in polymarket-trader (npm)
Description
A coordinated supply-chain attack involving 9 npm packages published by the maintainer polymarketdev impersonates legitimate Polymarket trading tools. These packages exfiltrate Ethereum private keys by prompting users or silently reading environment variables, then sending the keys to a Cloudflare Worker command-and-control server. The malicious code uses a postinstall hook to evade automated detection and persists locally with device fingerprinting. The packages provide functional trading commands as a cover, falsely claiming private keys remain encrypted. Any system with these packages 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
This threat is a supply-chain attack comprising 9 npm packages published within a short time window by the maintainer polymarketdev. The packages masquerade as legitimate Polymarket CLOB trading tools but contain malicious code that steals Ethereum private keys. The postinstall script detects interactive shells to either prompt users for private keys or silently extract them from .env files without user interaction. The malware persists locally by creating a hidden directory with device and wallet fingerprints and exfiltrates stolen keys via HTTPS POST requests to a Cloudflare Worker C2 endpoint. The packages include a byte-identical large JavaScript bundle that wraps legitimate SDKs to provide working trading commands as a cover. Targeting includes packages named to appear in LLM-assisted coding workflows to increase exposure. The attack compromises any computer with these packages installed, requiring immediate secret rotation and system remediation.
Potential Impact
Systems with any of the malicious polymarketdev npm packages installed are fully compromised. Ethereum private keys stored in environment variables or entered interactively are exfiltrated to an attacker-controlled server, enabling theft of cryptocurrency assets. The malware establishes local persistence and device fingerprinting, increasing attacker control and tracking. Removal of the packages alone does not guarantee eradication of the malware or attacker access. All secrets and keys on affected systems must be rotated from a secure environment to prevent further compromise.
Defensive Guidance
No official patch or fix is available as this is a malicious supply-chain attack involving published npm packages. Immediate removal of the affected packages is required. All Ethereum private keys and other secrets stored on the compromised system must be rotated from a different, trusted computer. Due to the potential full compromise of the system, a full incident response and system rebuild or forensic analysis is recommended to ensure complete eradication of the attacker presence. Avoid installing npm packages from untrusted or unverified sources, and verify package provenance before use.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4216
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-jgmf-qv79-wc9f"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a885f21acd9273b493f7d3b
Added to database: 08/21/2026, 14:22:25 UTC
Last enriched: 08/21/2026, 14:31:13 UTC
Last updated: 08/22/2026, 03:51:58 UTC
Views: 3
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.