Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in polymarket-ai-agent (npm)

0
Critical
Published: 05/21/2026 (05/21/2026, 00:00:00 UTC)
Source: GCVE Database
Product: polymarket-ai-agent

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.

Affected software

npmghsa
polymarket-ai-agent

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

AILast updated: 08/21/2026, 14:32:44 UTC

Technical Analysis

This threat involves nine npm packages published within a short time window by the maintainer polymarketdev (GitHub actor texsellix). Each package contains identical malicious code in dist/index.js that wraps legitimate Polymarket SDK functionality to avoid suspicion. The postinstall script detects interactive terminals to prompt users for Ethereum private keys or silently extracts PRIVATE_KEY environment variables from .env files. It stores device and wallet metadata locally and exfiltrates stolen keys as JSON over HTTPS to a Cloudflare Worker C2 endpoint. The packages are named to appear in AI-assisted developer workflows, increasing the likelihood of installation without provenance checks. Removal of the packages does not guarantee full remediation due to potential system compromise.

Potential Impact

Any system with these packages installed or running is considered fully compromised. Ethereum private keys and other secrets stored on the system are stolen and sent to an attacker-controlled server, enabling unauthorized access to blockchain assets. The malware achieves persistence and fingerprints infected devices, increasing attacker control. The attack undermines trust in the npm ecosystem and developer supply chains, especially those using AI-assisted coding tools.

Mitigation Recommendations

Immediate removal of the malicious packages is required. All Ethereum private keys and related secrets stored on the compromised system must be rotated from a separate, trusted device. Due to potential full system compromise, consider rebuilding or thoroughly cleaning the affected environment. Exercise caution when installing packages recommended by AI-assisted coding tools and verify package provenance before use. Monitor official advisories for updates or additional remediation guidance. Patch status is not yet confirmed — check vendor or repository advisories for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-4209
Osv Schema Version
1.7.4
Aliases
["GHSA-pm36-9m37-g548"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a885f21acd9273b493f7d4f

Added to database: 08/21/2026, 14:22:25 UTC

Last enriched: 08/21/2026, 14:32:44 UTC

Last updated: 08/22/2026, 03:51:58 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses