WAKENEX
SignalNote

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

A bright sunlit scene: a huge steel bank-vault door stands closed and over-fortified with many locks and chains, completely untouched, while a small dull grey utility meter box bolted to the wall beside it siphons a glowing stream of gold coins out through a tiny gap near the floor into a waiting satchel. The left half is open pale sky. Headline: Robbed through the script, not the keys / 偷走钱的是页面脚本,不是私钥.
A bright sunlit scene: a huge steel bank-vault door stands closed and over-fortified with many locks and chains, completely untouched, while a small dull grey utility meter box bolted to the wall beside it siphons a glowing stream of gold coins out through a tiny gap near the floor into a waiting satchel. The left half is open pale sky.Image: WAKENEX

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.

Sources

  1. Primary source: kucoin.com/news/flash/polymarket-adds-withdrawal-address-whitelist-…kucoin.com ↗
  2. Source: reflectiz.com/blog/polymarket-hack-debugbearreflectiz.com ↗