{"repo":"TheOneWhoBurns/polymarket-nonce-guard","free":true,"listed":false,"github":"https://github.com/TheOneWhoBurns/polymarket-nonce-guard","clone":"git clone https://github.com/TheOneWhoBurns/polymarket-nonce-guard.git","description":"Detect and defend against the nonce race exploit on Polymarket's CTF Exchange","language":"Python","stars":64,"topics":["blockchain","exploit-detection","polymarket","python","security","with-ai-code"],"license":null,"category":"blockchain-web3","readme_excerpt":"Polymarket Nonce Guard 🛡️ Detect and defend against the nonce race exploit on Polymarket's CTF Exchange. The Exploit Exploiters on Polymarket call incrementNonce() on the CTF Exchange contract to invalidate their losing orders before the operator can settle them. This means: - They place bets on both sides of a market - When the outcome becomes clear, they cancel the losing side via incrementNonce() - The winning side settles normally → risk-free profit - You end up holding shares that were supposed to be matched but never settle (\"ghost fills\") First publicly disclosed Feb 19, 2026 by @itslirrato on X. Tools nonce monitor.py — Real-time incrementNonce watcher Polls Polygon blocks every 2s, filters for incrementNonce() calls (method sig 0x627cdcb9 ) to the CTF Exchange. Logs every event with timing relative to BTC 5-min market windows. Output: data/nonce events.jsonl — append-only log of every detected call with caller address, tx hash, block, gas price, and market window timing. blacklist.py — Exploiter address database Loads known exploiter addresses from nonce events.jsonl + a manual data/blacklist manual.txt . Auto-refreshes every 60s. counterparty checker.py — On-chain fill analysis Given a transaction hash, parses CTF Exchange logs to extract maker/taker addresses from settled orders. manipulation detector.py — Orderbook anomaly detector Monitors Polymarket orderbook for suspicious patterns (large orders appearing/disappearing, price manipulation around settlement wind","default_branch":null,"files":null,"tree":[],"storefront":"/r/TheOneWhoBurns","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TheOneWhoBurns/polymarket-nonce-guard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}