A performance monitoring tool just emptied crypto wallets. On October 29, a third party script attack hit Polymarket, the prediction market, when code served from a monitoring vendor called DebugBear was swapped for a payload that hijacked logged-in trading sessions and pushed funds to an attacker. Nobody phished a password. Nobody leaked a seed phrase. Users simply loaded a page they trusted, and a script they had never heard of did the rest. If you hold crypto, trade on web platforms, or run a website of your own, this third party script attack is worth understanding in detail.
Table of Contents
- What Happened on Polymarket on October 29
- Inside the Third Party Script Attack
- What We Still Do Not Know About DebugBear
- Why a Third Party Script Attack Beats Your Wallet Security
- A Repeat of June, With a Different Door
- The Privacy Cost of Every Embedded Script
- What Readers Should Do After the Third Party Script Attack
- What the Drain Leaves Behind
What Happened on Polymarket on October 29
The timeline of the third party script attack, as reconstructed by BleepingComputer, moved fast. Between 1:50 and 1:56 pm Eastern, a suspected attacker wallet made a burst of transactions involving Polymarket’s prediction market token contract. At 1:59 pm, Polymarket shipped a production build with the commit message “remove debugbear rum script.” At 2:05 pm, the exchange was put into cancel-only mode and relayer actions were paused.
By 2:37 pm Polymarket said the issue was fixed. Trading came back roughly an hour after the suspension, and the incident was marked resolved at 3:05 pm. The company’s public statement was short: “One of our third party providers was compromised, and we have referred this to relevant law enforcement.” It added that “anyone who has been impacted will be made whole.”
DebugBear confirmed its side the same day on X: “We’re impacted by an ongoing security incident. If you use our RUM product, please remove the embed code from your website.” RUM stands for real user monitoring, a category of tool that site owners embed to measure how fast pages load for real visitors. It is ordinary, unglamorous infrastructure, which is exactly why a third party script attack through it is so effective.
Inside the Third Party Script Attack
According to findings from researchers at Hudson Rock, reported by BleepingComputer, the malicious file was served from DebugBear’s own content delivery domain and communicated with a second DebugBear subdomain for instructions and data exfiltration. In other words, this third party script attack arrived from the exact address Polymarket had deliberately trusted. No browser warning, no unfamiliar domain, nothing a cautious user could have noticed.
What the Payload Did
The script checked whether the visitor was logged in, then reused the existing trading session. It read balances and open positions. Depending on how the user had signed in, it either sold prediction market positions automatically or transferred position tokens straight to an attacker wallet. It could also convert holdings into transferable assets using Polymarket’s own transaction features.
Researchers did not find evidence that private keys or seed phrases were stolen. That detail matters. The third party script attack never needed them. It operated inside the authority the user had already granted the page, requesting signatures and submitting actions through the platform’s legitimate relayer. The wallet’s cryptography held up perfectly. The page around it did not.
The Money Trail
BleepingComputer traced roughly $2.5 million in assets from the third party script attack, including about 28.6 million POL worth around $2.57 million moved to three additional wallets. Polymarket did not initially say how many users were affected. A day later, according to client-side security firm cside, Polymarket put total reimbursement at $3.9 million, a figure that includes $1.2 million in compensation for losses caused by the trading pause itself. The stolen amount and the refund amount are different numbers, and they should not be confused.
What We Still Do Not Know About DebugBear
The most important question is still open: how did whoever ran the third party script attack gain the ability to replace DebugBear’s script? No public source has explained it. It could have been a stolen deploy credential, a compromised build pipeline, access to the content delivery account, or something else entirely. BleepingComputer noted that the payload’s use of DebugBear infrastructure for command traffic “raises questions about how much access the attackers had” to the vendor’s systems.
We also do not know which other DebugBear customers loaded the poisoned file. RUM tools are embedded across many sites by design, and DebugBear told every RUM customer to pull its code. Polymarket is the only confirmed victim so far, most likely because it was the target worth draining. Any other site embedding that tag ran the same code for its visitors, even if nothing on those pages was worth stealing.

Why a Third Party Script Attack Beats Your Wallet Security
Crypto users are trained to guard keys. Hardware wallets, seed phrases on paper, never typing a recovery phrase into a website. All of that is good advice, and none of it helped here. A third party script attack does not go after your keys. It goes after the session your keys already authorised.
Every script a page loads runs with the same privileges as the page itself. That is the core mechanic of any third party script attack. A performance monitor, an analytics tag, a chat widget and the trading interface all share one origin, one set of cookies and storage, and one view of the DOM. The browser has no idea that one of those scripts was supposed to only measure load times. cside put it bluntly in its analysis: a performance tool was “attempting to exercise financial authority inside the page.”
This is the uncomfortable lesson of the Polymarket incident. The security boundary was never the wallet. It was the list of vendors whose code the platform let into the room. When one of those vendors was compromised, every safeguard downstream of the page became irrelevant. The same pattern sits behind registrar compromises like the Name.com DNS hijack, where the attacker targets the trusted intermediary rather than the end user.
A Repeat of June, With a Different Door
This was not Polymarket’s first frontend compromise this year. In late June, the platform disclosed that a compromised third party vendor had injected code into its interface, with roughly $3 million reportedly stolen through malicious approval and signature requests presented inside the genuine site. Two incidents in four months, both arriving through code Polymarket did not write.
Nothing public links the two to the same attacker or the same vendor, and it would be wrong to assume so. But the pattern is hard to ignore. Platforms that hold financial authority in the browser keep loading code from outside parties, and attackers have noticed that compromising a small vendor is easier than compromising a large exchange. Each third party script attack also teaches the next attacker which dependencies are worth targeting.
According to cside’s summary, Polymarket’s postmortem promised additional integrity controls, version pinning, sandboxing, monitoring and a stronger Content Security Policy. Those are the right measures. They are also the kind of measures that, applied before October 29, would have made this third party script attack far less damaging.
The Privacy Cost of Every Embedded Script
The Polymarket story is about stolen money, but the same mechanics apply to stolen identity. A script that can read a trading session can just as easily read a form field, a username, an IP address, or the fact that a particular visitor opened a particular page. For an activist publishing site, a journalist’s tip page, or a crypto project that values its users’ anonymity, a third party script attack is a surveillance problem before it is a theft problem.
Many privacy-minded site operators carefully choose a registrar, pay without leaving a financial trail, and hide their registration data, then embed half a dozen analytics and monitoring tags that report every visitor to companies they have never vetted. In a third party script attack, the weak point is never the domain record. It is whatever you allowed to run on the page. If you have worked to keep payment tracing away from your project, apply the same discipline to the code your visitors load.
What Readers Should Do After the Third Party Script Attack
If You Trade on Web Platforms
Log out of trading and DeFi interfaces when you are not actively using them, so a hijacked page has no live session to borrow. Keep only working balances in browser-connected accounts. Read every signature request, even when it appears on a site you trust, because this third party script attack worked by asking for signatures through the real interface. If a platform reports a frontend incident, assume your session was exposed until it says otherwise, and revoke token approvals you no longer need.
If You Run a Website
Inventory every external script your pages load and ask whether each one still earns its place. Remove anything you cannot justify, and keep third party tags off pages that handle logins, payments or sensitive submissions entirely. Where you must load external code, pin it with Subresource Integrity so the browser refuses a file that has been altered, or self-host a reviewed copy. Add a strict Content Security Policy, and confirm your SSL certificate setup is sound so the code you do serve arrives intact. None of this makes a third party script attack impossible, but it shrinks the blast radius from every visitor to almost none.
What the Drain Leaves Behind
The October 29 incident showed that a third party script attack can drain wallets without touching a single private key, because it rides the session a user has already trusted. It showed that the vendor list behind a website is part of its security perimeter, and that small vendors are now the preferred way in. And it showed that the same embedded code that can move money can quietly expose who your visitors are.
The fix is not exotic: fewer scripts, pinned scripts, and a hard look at what runs on your most sensitive pages. If you are building a project where privacy matters from the first record onward, start with privacy-first domain registration and keep that standard all the way down to the last line of code your visitors load.
