Poisoned Pipeline / Incidents / AS476
A third-party RUM script on Polymarket was replaced with a wallet drainer
A RUM script served from cdn.debugbear.com was replaced with a Polymarket-specific
wallet drainer: the clean file was 60,493 bytes, the hostile one 15,187. The drainer
read polymarket.auth.params, polymarket.auth.proxyWallet and poly_clob_api_key_map,
then searched the running page for the live trading client and its signer. It handled
two account types differently: email-login (Magic) accounts had positions sold with
fill-and-kill orders and no visible prompt, while browser-wallet accounts had outcome
tokens moved by a single ERC-1155 safeBatchTransferFrom requiring a signature.
Proceeds were routed through Polymarket's own gasless relayer. Nothing was published
to a registry; the change happened in a third-party script the site loaded.
Mapped techniques
supply-chain DebugBear RUM replacement
A vendor-hosted analytics script was replaced at the source.
The injected script ran in the trading page and operated the client.