As reported by BleepingComputer, Polymarket halted trading on October 29, 2026 after attackers compromised a third-party service to inject cryptocurrency-draining JavaScript into the prediction market's international platform. Hudson Rock researchers traced approximately $2.5 million in stolen assets to a suspected attacker wallet, and Polymarket has committed to fully reimbursing affected traders.
The attack vector is what matters most here. The malicious script was distributed through infrastructure belonging to DebugBear, a website performance-monitoring service whose Real User Monitoring product requires JavaScript embedded on customer sites. Attackers compromised DebugBear's CDN and replaced or augmented that script with code designed to interact with users' wallets and drain their holdings. This is a classic supply chain compromise — the platform's own security posture was irrelevant because the trust boundary was extended to a vendor whose controls were weaker.
The fundamental problem: any third-party script loaded with access to the DOM can interact with injected wallet extensions and signing prompts. SRI and CSP are not optional hardening — they are baseline survival controls for any platform handling cryptocurrency.
Why This Attack Pattern Is Dangerous
This incident fits a well-established pattern. The 2023 Polyfill.io supply chain attack and the 2024 CDK Global breach demonstrated how compromised third-party services can cascade into mass exploitation. What makes web3 platforms uniquely vulnerable is that the attack surface for wallet-draining scripts is well-documented and weaponizable. An attacker who gains the ability to execute JavaScript in the context of a DeFi platform can intercept wallet signing requests, manipulate transaction parameters, or inject deceptive approval flows that users may authorize without close inspection.
The speed of this attack — from first malicious transactions at 1:50 p.m. ET to trading halt at 2:05 p.m. — shows how quickly damage accumulates. Fifteen minutes of exposure yielded $2.5 million. For platforms with larger user bases or higher-value positions, the math gets worse fast.
Who Is at Risk
Shield53 Recommendations
Immediate Actions
- Audit all third-party scripts: Inventory every external JavaScript resource loaded on pages where users interact with wallets or financial transactions. Remove any that are not essential.
- Implement Subresource Integrity (SRI): Every third-party script tag must include an
integrityattribute with a cryptographic hash. This prevents execution of modified scripts, even if the CDN is compromised. - Enforce strict Content Security Policy: Use CSP with
script-srcwhitelisting, nonces, andrequire-sri-fordirectives where supported. Block inline scripts entirely. - Isolate wallet interactions: Load wallet-connect logic and transaction-signing flows in isolated contexts — iframes with restrictive sandbox attributes or dedicated origins — so that compromised analytics scripts cannot reach signing interfaces.
- Deploy runtime monitoring: Use client-side tamper detection that alerts on unexpected script behavior, DOM mutations near wallet elements, or outbound requests to unfamiliar endpoints.
Strategic Actions
- Vendor security reviews for all script providers: Require evidence of SRI support, incident response procedures, and CDN security controls before integration. Reassess annually.
- Assume breach of every third-party script: Design architecture so that compromise of any single script cannot reach funds. This means transaction signing should require explicit, out-of-band user verification that a compromised script cannot simulate or intercept.
- Tabletop supply chain scenarios: Run exercises simulating third-party script compromise and measure time-to-detect and time-to-contain. Polymarket caught this in roughly 15 minutes — that should be the floor, not the ceiling.
The reimbursement promise from Polymarket is appropriate, but it is a reactive control. The platforms that survive the next wave of supply chain attacks will be the ones that architect assuming the third-party script is already compromised. The technology to do this exists today. The question is whether teams have prioritized it before, not after, an incident.