Polymarket's $2.7M drain came through a front-end script, not stolen keys.

On October 29, attackers hijacked the DNS of DebugBear, a third-party performance-monitoring vendor whose script Polymarket loaded on its own pages, and swapped it for a wallet drainer. Running inside the app with the app's privileges, it read trading API keys out of the browser and called Polymarket's own transaction signer, draining about $2.7 million from 737 accounts in roughly an hour.
"Non-custodial" told users the danger was losing their keys. The real attack surface was the webpage's supply chain, where every outside script on a trading front-end is effectively a co-signer you cannot audit. The chain held; the money left through a monitoring script.
Today's fix, a withdrawal whitelist with email verification and a 48-hour delay on new addresses, treats the symptom, how fast money leaves, and quietly re-adds the custodial friction prediction markets were built to remove. It helps the median user. It does not close the door that a page can reach your keys.
We'd revise this if the post-mortem shows the drain used stolen private keys or an on-chain exploit rather than the hijacked front-end script.
If you hold funds in any "non-custodial" web app, put its front-end in your threat model: can the page reach your keys or signer, and do you control the withdrawal addresses?
Research, not investment advice.


