Executive Summary
On October 29, 2026, threat actors compromised Polymarket's prediction-market platform by hijacking a third-party performance-monitoring script served by DebugBear. Attackers manipulated DebugBear's DNS records through its domain registrar, redirecting Polymarket's copy of the RUM script to a malicious server. The injected code exploited already-authenticated browser sessions, harvesting trading API keys and co-opting each account's own transaction signer to drain positions and funds. Within 52 minutes, approximately $2.64 million in POL tokens were swept from 726 wallets into attacker-controlled addresses before Polymarket halted trading. Polymarket subsequently refunded roughly $3.9 million to affected and indirectly impacted traders.
This incident illustrates the escalating risk of third-party script injection as an attack surface for financial platforms. As decentralized-finance and prediction-market adoption grows, supply-chain compromises targeting CDN-delivered JavaScript represent a high-yield, low-footprint tactic that bypasses perimeter defenses entirely, accelerating regulatory scrutiny of Web3 platform dependencies.
Why This Matters Now
Supply-chain attacks via hijacked third-party CDN scripts are surging across fintech and Web3 platforms. Regulators including the SEC and EU DORA framework are tightening third-party risk requirements in 2026, making Subresource Integrity enforcement and strict Content Security Policies not merely best practices but emerging compliance mandates for any platform handling user funds.
Attack Path Analysis
Attackers compromised DebugBear's DNS records through its domain registrar, redirecting Polymarket's third-party RUM script to a malicious server that served a wallet-draining payload to all signed-in traders. The injected script leveraged existing browser session context and Polymarket's own signing infrastructure to silently drain funds from 726 wallets, transferring approximately $2.64 million in POL tokens within 52 minutes before Polymarket could respond.
Kill Chain Progression
This analysis maps confirmed threat intelligence to the full cloud kill chain to show where defensive gaps would emerge as an attack progresses.
Initial Compromise
Description
Attackers compromised DebugBear's domain registrar account, modifying DNS records for cdn.debugbear.com to redirect requests for Polymarket's RUM script to an attacker-controlled server. This is a classic supply-chain attack via DNS hijacking of a trusted third-party CDN provider, requiring no direct breach of Polymarket's own infrastructure. The malicious server began serving a trojanized JavaScript file in place of the legitimate DebugBear RUM script.
MITRE ATT&CK® Techniques
Compromise Software Supply Chain
Compromise Infrastructure: Domains
Command and Scripting Interpreter: JavaScript
Steal Web Session Cookie
Browser Session Hijacking
Financial Theft
Proxy: External Proxy
Data Manipulation: Transmitted Data Manipulation
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
PCI DSS 4.0 – Software Inventory and Payment Page Script Integrity
Control ID: Requirement 6.3.2 / 6.4.3
NYDFS 23 NYCRR 500 – Third-Party Service Provider Security Policy and Monitoring
Control ID: Section 500.11 / 500.14
DORA (Digital Operational Resilience Act) – ICT Third-Party Risk Management and Contractual Provisions
Control ID: Article 28 / Article 30
NIS2 Directive – Supply Chain Security and Access Control Policies
Control ID: Article 21(2)(a) / Article 21(2)(d)
CISA Zero Trust Maturity Model 2.0 – Application-Layer Script Integrity and Least-Privilege Execution
Control ID: Application Pillar – Visibility and Analytics / Networks Pillar – Macro Segmentation
ISO/IEC 27001:2022 – Outsourced Development and Security Testing in Development and Acceptance
Control ID: Annex A 8.30 / 8.29
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Capital Markets/Hedge Fund/Private Equity
Supply-chain script hijacking enabling wallet draining and forced position liquidation exposes trading platforms to exfiltration risk, demanding egress security, SRI enforcement, and Zero Trust segmentation per PCI.4.0 and NIST.CSF.PR.DS-5.
Internet
Third-party RUM script compromise via DNS hijacking at CDN level demonstrates critical supply-chain attack surface; web platforms must enforce CSP, subresource integrity, and multicloud visibility controls per ZTMM.Network and NIST.800-53.SC-7.
Financial Services
Unauthorized API-driven fund transfers affecting 726 wallets totaling $2.7M highlight exfiltration and egress policy failures; compliance gaps across HIPAA.164.312(e)(1), PCI.4.0.4.2.1, and NIST.CSF.PR.DS-2 demand immediate remediation.
Information Technology/IT
Compromised domain registrar DNS records enabling malicious script substitution underscore IT supply-chain vulnerability; Cloud Native Security Fabric and anomaly detection controls map directly to NIST.800-53.SI-4 and ZTMM.CrossCutting.Visibility.
Sources
- Hackers Steal About $2.7 Million From Polymarket Traders via Hijacked DebugBear Scripthttps://thehackernews.com/2026/11/hackers-steal-about-27-million-from.htmlVerified
- Polymarket Breach Alert: Wallet Draining Code Found in a Third-Party Scripthttps://www.infostealers.com/article/polymarket-breach-alert-wallet-draining-code-found-in-a-third-party-script/Verified
- Polymarket DebugBear Wallet Drainer - Ohey Researchhttps://ohey.ca/research/polymarket-debugbear-wallet-drainer/Verified
- Polymarket Official Status Update - Cancel-Only Modehttps://status.polymarket.com/historyVerified
- Polymarket Incident Status Detailhttps://status.polymarket.com/cmvvek1i90eme14ruga1z6tujVerified
- Polymarket Frontend Drain Analysis - DefiPrimehttps://defiprime.com/polymarket-debugbear-frontend-drainVerified
- Attacker Wallet Blockchain Trace - PolygonScanhttps://polygonscan.com/address/0x3F99139F1C5854bb628c2e576Aaf638e99dFfc18Verified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Based on the attack progression modeled above, these are the defensive controls that would constrain each stage.
Aviatrix Zero Trust CNSF is relevant here because the attack succeeded by exploiting unconstrained third-party script loading and unfiltered outbound communication paths from Polymarket's application environment. Had network-layer segmentation and egress controls been applied across the cloud workload boundary, the attacker's ability to serve malicious payloads through a hijacked CDN endpoint and exfiltrate funds via Polymarket's own relayer infrastructure would likely have been meaningfully constrained.
Control: Cloud Native Security Fabric (CNSF)
Mitigation: Consistent enforcement of allowlisted external resource origins at the network fabric layer could likely reduce the reachability of unexpected third-party endpoints, limiting the blast radius of a hijacked CDN DNS record before the malicious script payload reaches the application boundary.
Control: Zero Trust Segmentation
Mitigation: Zero Trust segmentation applied across application workload boundaries could limit the scope of what any single compromised session component can reach, reducing the ability of an injected script to silently inherit signing authority across multiple application subsystems without identity verification at each trust boundary.
Control: East-West Traffic Security
Mitigation: East-west traffic controls applied between application microservices and internal API endpoints could limit how freely a script executing in one application context can reach unrelated subsystems such as relayer endpoints and signing components, reducing the attack surface available for sequential cross-function abuse.
Control: Multicloud Visibility & Control
Mitigation: Centralized multicloud visibility across outbound application traffic flows could likely surface unexpected communications to newly observed external IPs masquerading under familiar domain names, reducing the window during which attacker-controlled C2 infrastructure operates undetected within what appears to be normal CDN traffic.
Control: Egress Security & Policy Enforcement
Mitigation: Egress security policies enforced at the cloud network boundary could limit uncontrolled outbound transaction volume to unrecognized wallet destinations, reducing the speed and scale at which funds can be drained before anomalous egress patterns are identified and constrained.
Had prior-stage controls reduced the reachability of attacker infrastructure and constrained east-west access between signing and relayer components, the number of wallets affected and total funds drained would likely have been smaller, reducing the scope of emergency shutdown and collateral trading disruption beyond the directly compromised accounts.
Impact at a Glance
Affected Business Functions
- Cryptocurrency Trading Platform Operations
- User Wallet and Fund Custody
- Third-Party Script Integrity and CDN Management
- Trader Trust and Platform Reputation
Estimated downtime: 1 days
Estimated loss: $3,900,000
Trading API keys stored in browser session state for approximately 726 affected wallets were accessed by the malicious script. The script harvested Polymarket trading API keys and session signer references from live authenticated browser sessions, enabling unauthorized liquidation and transfer of crypto positions. Approximately 28.6 million POL tokens valued at roughly $2.64 million were drained within 52 minutes. Polymarket committed to refunding $2.7 million to directly affected wallets and an additional $1.19 million to approximately 5,500 wallets impacted by the trading pause, totaling $3.9 million in restitution. No seed phrases, private keys, or passwords were confirmed exfiltrated, but session-level trading authority was fully compromised for affected accounts.
Recommended Actions
Key Takeaways & Next Steps
- • Enforce Subresource Integrity (SRI) and strict Content Security Policy via CNSF egress policy controls — CNSF Egress Security & Policy Enforcement with FQDN filtering would have flagged or blocked the substituted cdn.debugbear.com endpoint serving anomalous payload hashes, and SRI enforcement would have caused browsers to reject the tampered script before execution, directly preventing Initial Compromise (ZTMM.Data, PCI.4.0.3.5.1, NIST.800-53.SC-18).
- • Apply Cloud Native Security Fabric (CNSF) inline inspection and real-time traffic anomaly detection to outbound application traffic — CNSF's distributed policy enforcement and Multicloud Visibility & Control capabilities would have detected the sudden spike in anomalous outbound transaction volume from Polymarket's relayer to a single wallet address, triggering automated alerts or circuit-breaker responses within minutes of the drain commencing (ZTMM.CrossCutting.Visibility, NIST.800-53.AU-6, NIST.CSF.DE.CM-7).
- • Implement Zero Trust Segmentation to restrict which page components and scripts can invoke signing and relayer functions — by enforcing identity-based and namespace-level policies on application subsystems, CNSF Zero Trust Segmentation would have prevented the injected script from accessing the order-placement module and signer object, limiting privilege escalation within the browser application trust boundary (ZTMM.Applications, NIST.800-53.AC-6, NIST.CSF.PR.AC-4).
- • Deploy Inline IPS with signatures targeting known wallet-drainer JavaScript patterns and malicious CDN substitution behaviors — CNSF Inline IPS (Suricata) with updated threat signatures for supply-chain JavaScript injection and crypto-drainer payloads would have provided an additional detection layer at the network edge, identifying the malicious script delivery before it reached end-user browsers (ZTMM.Network, PCI.4.0.6.4.1, NIST.800-53.SI-4, NIST.CSF.DE.CM-4).
- • Enforce Egress Security controls and FQDN allowlisting for all third-party script sources loaded by financial applications — CNSF Cloud Firewall (ACF) and Egress Security capabilities should enforce strict outbound allowlists so that any DNS resolution or content delivery change for trusted third-party script providers triggers policy violation alerts, preventing attacker-substituted CDN endpoints from serving content to production application pages (ZTMM.CrossCutting.Governance, PCI.4.0.3.5.1, NIST.CSF.PR.DS-5).



