The refund number is the tell.
On October 29, a compromised third-party performance monitoring script ran inside Polymarket's page context, harvested active user session credentials, and sold positions. As of this writing, Polymarket reports 95% of affected wallets have been refunded, against a stated total of $3.9 million โ $2.7 million in attack-related losses, $1.2 million in losses attributed to the trading halt. The arithmetic is internally consistent. Two numbers add to a third. That is the only thing about this disclosure that is internally consistent.
Everything else is a single-source claim from the party under audit, published after the fact, with no on-chain forensics attached. For a Web3 operator, that is not a full post-mortem. It is a press release with a vulnerability narrative stapled to it. And the specific narrative โ a "monitoring script" that was somehow able to sell a user's positions โ points at a security boundary far more uncomfortable than the one the disclosure wants you to look at.
I have spent enough time reversing session flows to know what to look for. When a script that has no business touching funds can execute a trade on a user's behalf, the architecture has already answered the question of where trust lives. It does not live on the chain.
The mechanism is the message
Rebuild the causal chain from the disclosure itself. A third-party performance monitoring vendor is compromised. The script executes in the platform's page context โ meaning it runs with the same origin privileges as the application, reads the same DOM, calls the same APIs, and critically, reads the same session state. It reuses active session credentials to act as the logged-in user. It sells positions. It moves funds. Polymarket responds by removing the script, clearing caches, resetting sessions, halting trading, and halting the relayer.
Read that sequence again and notice what is absent. The attacker never touched a private key. There is no signature forgery, no seed-phrase compromise, no cryptographic break. The attack borrowed a legitimately authorized channel and walked through a door that the platform had deliberately left open. The session credentials held โ or could obtain โ transaction-signing authority.
That is the finding. The security perimeter for this class of venue is the browser's JavaScript execution environment plus the session token, not the on-chain private key. The chain settled correctly. It just settled exactly what an authenticated session told it to settle. This is why the phrase "funds are on-chain, therefore safe" is not a security argument; it is a slogan. Ownership verification never left the browser.
The interesting question โ the one the disclosure does not answer โ is whether that session-level signing capability is a product decision (to eliminate per-trade signature friction and raise conversion) or an unavoidable consequence of the specific wallet custody scheme deployed on the international site. If it is the former, then "we removed the malicious script" is symptom management. The next script gets the same authority. If it is the latter, then the venue has a structural exposure that no incident review can close without a product redesign.
I have seen this pattern before. In 2020, reversing Uniswap V2 mempool dynamics, I found that the economically decisive action happened off-chain, in the ordering and packaging of transactions, while everyone watched the settlement layer. The front-runner didn't attack the AMM. He attacked the latency gap between intent and execution. Polymarket's attacker did the same thing one abstraction layer up: didn't attack the contract, attacked the session that speaks to it.
The control that got cited was not the control that was needed
The disclosure leans on Subresource Integrity โ SRI โ as the technical explainer for why a third-party script is hard to contain. The framing is defensible and the conclusion is correct: SRI verifies that a fetched resource matches an expected hash. It does not verify that the code inside the hash is benign. It is an integrity primitive, not a safety primitive. It also does not meaningfully cover dynamically injected scripts or inline scripts, and it collides structurally with hot-updating third-party vendors whose bundles change without warning. A hash pinned to a living monitoring SDK is a hash that breaks every deploy.
All of that is right. None of it is the point.
The correct controls for this incident are not SRI. They are Content-Security-Policy script-src allowlisting with nonces, Trusted Types enforcement, cross-origin isolation of third-party scripts, and โ most importantly โ scope minimization of what the session token is permitted to do. A performance-monitoring SDK needs the Performance API, DOM timing, and real-user network path data. It does not need transaction-signing authority. The fact that the compromised script could sell a position tells you that these privileges were never separated. The disclosure cites a control that addresses the integrity of the code and skips the control that addresses the authority of the code. That is a technical depth problem, not a rhetorical one.
Performance and RUM (real-user monitoring) scripts are a categorically high-risk supply-chain surface for exactly this reason. They must run in the main page context to gather the telemetry they exist to gather. That makes iframe-based cross-origin isolation impractical for them, and it means they routinely receive read-the-whole-page plus issue-arbitrary-requests permissions โ and are frequently excluded from the core business code review pipeline. This is a known, documented hazard. The question a due-diligence analyst should ask is not "was the script compromised?" but "why was a telemetry script holding a signing-capable session?"
One more detail deserves scrutiny: the relayer was halted alongside trading. A relayer is the channel through which transactions are submitted, often gas-sponsored or meta-transaction-based. Pausing it is a necessary containment step, because it cuts the submission path the attacker was using. But it also reveals the shape of the system. The venue is not a fully decentralized application in any operational sense โ there is a platform-operated submission channel that can be turned off. That is a legitimate architectural choice. It is not, however, the architecture the marketing implies, and the incident made the gap visible.
Three ambiguities in the numbers
A $3.9 million headline is reassuring. A $3.9 million headline with undefined denominators is not.
First: the 95% metric. Is it 95% of affected wallets, or 95% of affected dollar value? These are entirely different claims. If it is wallets, then a small number of large wallets could hold most of the unreimbursed amount, and the human-meaningful coverage is far below 95%. If it is value, then the wallet-level experience could be materially worse than the headline suggests. The disclosure does not say which. For an operator whose product is settlement, this is not a rounding error in the communications strategy; it is the difference between "almost done" and "the hard part is unmentioned."
Second: the $2.7M / $1.2M split. The $2.7M is labeled attack-related. The $1.2M is labeled trading-halt-related. What is the valuation basis for the latter? Is the $2.7M inclusive of price impact, or is it the notional value of the sold positions at some reference price? If the attacker forced sells into a thin order book, the realized loss to the user is the stolen amount plus the deviation between the fair price and the executable price. In prediction markets, single-market order books are structurally thin โ that is not a bug, it is the nature of the instrument. A large forced sell can incur price impact that is a multiple of the notional. That slippage loss does not appear anywhere in the split, and there is no way to determine whether it was counted at all. This is the single most important number the disclosure omits.
Third: the trading-halt losses contain an adverse-selection trap that no accounting method fully escapes. During the halt, market information kept updating. If a market's outcome probability moved materially โ a news event, a resolution โ then being unable to close was a loss for some users and a benefit for others who were spared a losing exit. If the venue compensates by measuring the gap between pre-halt and post-resumption prices, only the harmed side files claims. That is textbook adverse selection. The only workable convention is a pre-halt snapshot with a uniform assumption applied to everyone โ and that is definitionally unfair to some cohort. The disclosure gestures at "consistent methodology" without confronting the impossibility underneath it. The reimbursement headline is not hiding a clerical error. It is hiding the fact that this category of loss has no universally accepted valuation basis.
What the venue got right
A dissector who finds nothing correct is just a cynic with a keyboard. There is a genuine strength here, and it is structural.
Polymarket's four-layer framing โ prevention, detection, containment, and reimbursement โ is correct and reusable. These are independent layers that cannot substitute for one another. Buying better detection does not reduce prevention debt. Fast containment does not discharge the reimbursement obligation. Most post-mortems collapse these into a single "we responded quickly" narrative. This one did not. That distinction is worth preserving as an evaluation template for any venue processing third-party script dependencies.
The containment sequence was also competent. Remove script, clear cache, reset sessions, halt trading, halt relayer. That is the right order for an incident whose blast radius is a live session. It limits the window during which stolen credentials remain useful. A slower or more defensive operator would have left the sessions live while investigating, extending the theft window.
And the disclosure's own honest caveat โ that 95% is a snapshot, not a terminal state โ is the kind of framing that a compliance reviewer wants. A bug is just a feature that hasn't been given a timestamp yet; conversely, a progress claim is just a promise that hasn't been given a timestamp either. Treating a snapshot as if it were a finality claim is one of the more common reporting failures in this sector, and this document at least avoided it.
The bulls are partly right, then, on process. They are wrong on scope. Speed of containment is not the same as depth of remedy, and neither is the same as closure.
The gap that matters is the one that was cheap to fill
Here is what I keep returning to. The single most verifiable set of facts about this incident is on-chain, and the disclosure does not use it. Anomalous batch sells around October 29 are queryable. The destination addresses are traceable. Whether funds touched a centralized exchange deposit address is checkable. Whether the attacker's proceeds were recovered โ and at what ratio โ is a matter of public record for anyone willing to run the query. None of this appears. The loss side is described entirely in the venue's own accounting, with the recovery side omitted entirely.
That omission is not incidental. A post-mortem that quantifies what users lost but not what the attacker kept is a disclosure shaped by the party being evaluated. It also leaves the most consequential open questions unresolved. Was the injection path a vendor compromise, a CDN poisoning, a build-pipeline contamination, or a domain hijack? The answer determines whether this is a single-venue incident or an industry-wide supply-chain exposure. Were private keys or seed phrases exposed, or only sessions? Session-only compromise and key compromise are different threat classes with different remediation. Was the reimbursement funded from platform capital, from insurance, or shared with the script vendor? That determines whether this was a bailout or a liability allocation โ and it determines whether the next vendor has an incentive to harden.
None of these are speculative. All of them are answerable. The disclosure answers the question that flatters the venue and leaves the ones that indict the architecture open.
So treat this document for what it is: a well-framed problem list, not a verdict. Use its four-layer structure. Use its session-boundary insight. Do not use its dollar figures as settled, and do not accept its single-source provenance as verification. The accountability call goes both ways โ to the venue that must now publish on-chain recovery data and scope its session authority, and to the analysts who will cite this incident without checking the chain.
Verify the source, then verify the code. The mempool already told us where the money went. Someone should go read it.