The Ghosts of Polymarket: When Off-Chain Matches Meet On-Chain Reverts
Summary
This paper identifies a new class of attack called Ghost Fills in Polymarket's hybrid off-chain/on-chain architecture, where attackers exploit the time gap between matching and settlement to revert orders, leading to over $1.49M in illicit profits and putting $1.78B at risk.
View Cached Full Text
Cached at: 06/16/26, 03:32 PM
Paper page - The Ghosts of Polymarket: When Off-Chain Matches Meet On-Chain Reverts
Source: https://huggingface.co/papers/2606.16852
Abstract
Polymarkethasemergedasaprominentpredictionmarketplatformandoneofthefastest-growingapplicationsinDeFi.Toachievelow-latencytrading,itadoptsahybridarchitecturethatmatchesordersoff-chainbutsettlesthemon-chainforfinalexecution.ThisdesigncreatesaconsistencygapwecallGhostFills:anorderthatissuccessfullymatchedoff-chainmaylaterfailduringon-chainsettlement.Tounderstandthesecurityimplicationsofthisgap,weinvestigatesuchfailedsettlementsbybuildingGHOSTHUNTER,whichreconstructsthemfromon-chaintracesandattributestoconcreteattackpatterns.Across1,952,440revertedmatch-ordertransactions,wefindthatattackersexploitthetimegapbetweenmatchingandsettlementtoinvalidatealreadymatchedordersbeforetheyarefinalizedon-chain.Wethenidentifyfourattackvectorsfromtheseincidents:noncebump,balancedrain,allowancerevoke,andproxytrap,realizedvia35evolvingvariants.Thesevectorsallowattackerstoselectivelyrevert980,133filledorders,enablingrisk-freeprediction,arbitrage-bothunting,andliquidityrewardmanipulation,realizingatleast\1.49Minprofit,whichplaces1.78BUSDatriskand2.17MPOL(about\212K)paidbyoperator.Duringpeakhours,morethan24.3%ofallfilledordersreverted,causingdefactoDoSattacks.Wealsofindthatcodederivedfromtheflawedcontractstillappearsin167independentcontractsacross10chainsholdingatleast23Minuserfunds,extendingtheimpactbeyondPolymarket.Wehavedisclosedourevidencetoaffectedparties,andtheissuehasbeenpartiallymitigated.
View arXiv pageView PDFGitHub0Add to collection
Get this paper in your agent:
hf papers read 2606\.16852
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2606.16852 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2606.16852 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2606.16852 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
Americans Are Trading Billions of Dollars on Polymarket’s Banned Offshore Platform
A study by Rutgers University statistician Harry Crane estimates that US users funneled between $10.6 and $26.7 billion through Polymarket's banned offshore platform, accounting for about 30% of its trading volume.
Who Wins and Who Loses in Prediction Markets? Evidence from Polymarket
This paper analyzes prediction market data from Polymarket to determine which traders win and lose, providing evidence on market efficiency and participant behavior.
Looking at the data behind prediction markets
An analysis of prediction markets like Polymarket and Kalshi, examining whether their massive trading volume actually produces valuable forecasting information or merely serves as gambling, referencing historical academic support and current data.
The US Is Using AI to Hunt Down Insider Trading on Polymarket
The US Commodity Futures Trading Commission is deploying AI and blockchain analysis tools to detect insider trading on Polymarket, signaling increased regulatory scrutiny of offshore prediction markets.
Token Budgets: An Empirical Catalog of 63 LLM-Agent Budget-Overrun Incidents, with an Affine-Typed Rust Mitigation as a Case Study
This paper presents an empirical catalog of 63 confirmed LLM-agent budget overrun incidents from 21 orchestration frameworks, organized into a failure taxonomy, and introduces a Rust crate using affine type ownership to prevent token/cost budget violations at compile time rather than runtime.