polymarket-ai-agent (npm) · Malicious Code
Affects polymarket-ai-agentSource GCVE Database
Malicious package : remove polymarket-ai-agent 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-4209
What to do
Remove polymarket-ai-agent 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-ai-agent | 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 delivers malicious code that exfiltrates Ethereum private keys. The packages masquerade as legitimate Polymarket trading tools but steal private keys via interactive prompts or by silently reading environment variables. The malware persists locally and sends stolen keys to a Cloudflare Worker command-and-control server. The attack targets developer workflows using AI-assisted coding tools by naming packages to appear relevant. Installing or running these packages fully compromises the host system.