r/blueteamsec
Polymarket's DebugBear script was swapped for a wallet drainer on 29 Oct
- upvotes
- 29
- comments
- 1
Post
Highlighted: the lines this signal was extracted from
PolyMarket Drainer It waited for a logged-in trader. It read Polymarket's own localStorage keys for the login type, deposit wallet and trading API credentials. It carried no keys. It walked React's fiber tree (the `__reactFiber$` keys on DOM elements) until it found Polymarket's order client, with its signer attached. It moved cash first: a swap quote from `api.fun.xyz`, paid out in POL, wrapped in an EIP-712 `DepositWallet` batch and submitted through Polymarket's own relayer. Then positions: Browser-wallet accounts sent everything to the recipient in one `safeBatchTransferFrom` call. Email-login accounts sold each position with fill-and-kill orders at 97% of the price, then 50%, then the market's minimum. It reported each step to `data.debugbear[.]com`. Every host it called, apart from DebugBear's, was already on Polymarket's CSP. On chain (Polygon) The recipient `0x3F99139F1C5854bb628c2e576Aaf638e99dFfc18` held nothing before 17:10 UTC. In the next 52 minutes it took in 28,636,284.45 POL and positions from 33 deposit wallets. The POL left in three transfers between 18:28 and 18:38 UTC. The positions went to `0x5a2764fbbe5d139ef0ed988ec5f95320ce730c0b`. The swap Archived copies show DebugBear's clean 60 KB file, served from Google Cloud Storage, until at least 11:48 UTC. At 16:54 Cloudflare returned a 521 for the script host. The drainer was 15,187 bytes...
Keep reading with a free account
The rest of this post, and every signal for Polymarket, is in your free account.
Also quoted as evidence
Polymarket built a release without the script at 17:59 UTC, and DebugBear posted about the incident at 18:00.
From the post