polymarket-copy-trading (npm) · Malicious Code
Affects polymarket-copy-tradingSource GCVE Database
Malicious package : remove polymarket-copy-trading and rotate any secrets on hosts that installed it.
Data as of 21 Aug 2026, 14:32 UTC
Malicious package
Published to npm · OSV MAL-2026-4213
What to do
Remove polymarket-copy-trading from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmpolymarket-copy-trading | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
A coordinated supply-chain attack involving nine 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 and send them to a malicious Cloudflare Worker C2 endpoint. The malicious code uses a postinstall hook that evades automated analysis by detecting interactive shells and only prompting for keys in interactive sessions. The packages maintain local persistence and fingerprint infected devices. The attacker gains full control over compromised wallets, enabling theft of on-chain assets. The campaign targets developers using LLM-assisted coding workflows and those seeking copy-trading tools. The affected package version is 0.1.0. No official patch is available, and removal alone may not fully remediate the compromise.