Sjors' Claude

claude@sprovoost.nl
I read the opinion. Here are three plain-text diagrams based on how the court describes the mechanics. 1) A normal sandwich (pool of USDC and a small token X) Mempool: a victim wants to "buy X" The bot privately sends the builder a bundle that executes all-or-nothing, in this order: [1] Bot buys X with $millions in USDC → X price up [2] Victim buys X at the inflated price [3] Bot sells X → gets its USDC back plus a profit The victim pays the difference. Savannah's example from trial: $2.3M USDC for $8.25 of SHIB, sold back moments later. 2) MEV-Boost commit-reveal Builder → relay: full block Relay → validator: header only, transactions hidden Validator → relay: signed header (the "commitment") Relay → validator: full block Validator → network: publishes the block Signing two blocks for one slot gets the validator slashed. The bug: the relay checked the signature but not that the parent and state roots in the header were valid. 3) Omakase (April 2023) a) The brothers ran 16 validators and waited until one was due to propose a block. Just before that slot they put 8 bait "buy X" transactions in the mempool, each tailored to one specific sandwich bot. b) The bots took the bait and submitted bundles: [bot buy | bait | bot sell]. c) Their validator signed a header with the parent and state roots set to zero. Ultrasound's relay accepted it and revealed the full block. That block was invalid by design and was rejected. d) They used the revealed transactions to build a second, valid block: [1] Bot buys X → the pool fills with the bot's USDC/WETH [2] Bait replaced: the brothers SELL X into the pool and drain that USDC/WETH [3] Bot sells X → almost nothing left to get back e) Block 2 made it onto the chain: about $25M from three sandwich traders. The penalty was a slash of about 1 ETH. The bait transactions were included a minute later. Flashbots patched the relays within 24 hours. On Nov 16, 2026, Judge Clarke acquitted both brothers. Her reason was that the government never proved a material misrepresentation, not that the conduct was right. Opinion: fingfx.thomsonreuters.com/gfx/legaldocs/akvewgjxkvr/1116202…
Why is it possible to sign two blocks? Is it the same block height signed twice? Are they uncles? Or does the initial invalid block get replaced? Does the bait transaction get replayed?
No technical rule stops it. A validator signs with its own key and can sign anything. Ethereum doesn't make equivocation impossible; it makes it costly. If anyone shows two different signed block headers from the same validator for the same slot, that validator gets slashed. The opinion notes that Flashbots' own FAQ said a validator could propose two blocks for one slot. Here the penalty was about 1 ETH, which was tiny next to $25M. Yes, both blocks were for the same slot. They weren't uncles, though. Uncles were a proof-of-work feature and ended with the Merge, and the first block was never a valid competing block anyway. Its parent and state roots were set to zero, so it didn't even point to the previous block. Nodes rejected it. The second block, signed for the same slot, was valid and was accepted. So nothing was replaced or reorged. Only one block for that slot ever existed on the chain. The first signature was just an invalid header that tricked the relay into revealing the block's contents. The bait wasn't replayed. The lure transactions were ordinary signed transactions from the brothers' own accounts, sitting in the public mempool. In the second block they left them out and put in their "dump" transactions (sells) between the bots' buy and sell. The lures stayed valid and pending, and according to the opinion they were included in a different block about a minute later. Another detail: the bots thought their bundles were "all or nothing", but that is only a promise from the builder and relay, not a rule of the protocol. A proposer building its own block can take a bundle apart and reorder it. Opinion, pages 9–10 and 15–16: fingfx.thomsonreuters.com/gfx/legaldocs/akvewgjxkvr/1116202…
they were included in a different block about a minute later.
At which point they were harmless? I.e. not spending a lot of money on a buy? The sandwich bots spent much more money? Also, two signed block headers mean equivocation, even when one of them (or something in the block) is invalid?
Probably, but the opinion doesn't actually say. It gives no sizes for the eight lure transactions and doesn't say what happened when they landed a minute later. It does tell us two things: - Each lure was built to look like a profitable "victim" trade to one specific bot. It was a buy in that bot's preferred token, and its size was copied from trades that bot had sandwiched before. In a sandwich the bot puts in far more than the victim: Savannah's bot spent $2.3M of USDC to front-run a single trade (p. 12). - The lures were contract calls with logic that checked the target bots' token balances before running the "trigger". So without a bot front-run in front of them, they may have done little or nothing. My guess is that they cost little, but I haven't checked the actual transactions on-chain, so I can't confirm it. On equivocation: yes, the block being invalid doesn't help you. The proposer slashing rule only looks at two signed block headers, which hold the slot, proposer index, parent root, state root and body root. Anyone can submit a slashing if: - both headers are for the same slot and the same proposer, - the two headers are different, - both signatures are valid. Nobody checks whether the parent or state root points to anything real, or whether the block is valid. The zeroed header was a valid signature over a different header for the same slot, and that is enough. Here the brothers also broadcast the first block themselves (p. 16). The opinion's wording on p. 9 is a bit loose on this. The protocol has no penalty for signing a header and then not publishing the block. The penalty only applies when a second, different signed header for the same slot shows up. Spec: github.com/ethereum/consensus-specs/blob/master/specs/phase… Opinion: fingfx.thomsonreuters.com/gfx/legaldocs/akvewgjxkvr/1116202…
GitHub · github.com/ethereum/consensus-specs/blob/master/specs/phase0/beacon-chain.mdconsensus-specs/specs/phase0/beacon-chain.md at master · ethereum/consensus-specsEthereum Consensus Specifications. Contribute to ethereum/consensus-specs development by creating an account on GitHub.
See if you can find the relevant transactions and blocks by e.g. fetching them via a block explorer API. Or maybe a technical blog write-up has published them.
I found them on Etherscan. The bait really was harmless, and the bots really did spend far more. One correction to my earlier reply: the bait didn't land "about a minute later". It landed in the very next block, 12 seconds later. The attack block is 16964664, slot 6137846, proposed by validator 552061. It has 24 transactions: 8 sandwiches of 3 each, with the bait in the middle of each one replaced by an attacker swap. Here is the UNI-WBTC one: - tx 21: the bot front-runs and pays 64.9 WBTC (about $3.86M) for 0.72 UNI (about $3) - tx 22: the attackers sell 19.6 UNI (about $92) and get the 64.9 WBTC - tx 23: the bot's back-run fails ("out of gas"), so the bot is left holding $3 of UNI Another of the 8, in the MKR-USDC pool: the attackers sold 0.17 MKR for 2.97M USDC. The bait transactions went through the same attacker contracts and landed in block 16964665. In the UNI-WBTC pool, the bait was a round trip: 0.0134 WBTC ($799) into 19.6 UNI and straight back, losing a fraction of a cent plus about $6 in gas. The MKR bait bought $20 of MKR for $461 USDC. So yes, the bait was cheap. The bots spent millions because the pools were thin and, according to the Flashbots post-mortem, the bait swaps allowed unlimited slippage. That made it look like a huge front-run could be sold back to the "victim" at a profit. The Etherscan history also shows the attacker addresses doing small test calls in March 2023 to some of the same contracts. On-chain view of one of the eight Omakase sandwiches: UNI-WBTC pool, block 16964664 and the bait in block 16964665 Block: etherscan.io/block/16964664 Attacker swap: etherscan.io/tx/0xa34d79cbe9aef1bf07692885b353d85912523dfc4… Bait: etherscan.io/tx/0xf053c421277d56b96030d7074548203c2b3d2eb24… Post-mortem: collective.flashbots.net/t/post-mortem-april-3rd-2023-mev-b…
tx 21: the bot front-runs and pays 64.9 WBTC (about $3.86M) for 0.72 UNI (about $3)
So they get only 3 dollars worth of UNI? What are these tokens worth normally?
They got about $4 of UNI. The bot didn't care, because it wasn't buying UNI for its value. I also need to correct my last reply: I copied Etherscan's dollar amounts, and its WBTC price for that transaction is off by about 2x. On 2 April 2023 BTC was around $28,000 and UNI around $6. So: - the bot's 64.9 WBTC was worth about $1.8M, not $3.86M. News reports at the time also put the WBTC loss at about $1.8M. - the 0.72 UNI it got was worth about $4 - the attackers' 19.6 UNI was about $120 - the WBTC side of the bait was about $380, not $799 The price mismatch comes from the pool. Getting only 0.72 UNI for 64.9 WBTC means this Uniswap V2 UNI-WBTC pool held barely more than 0.72 UNI. It was almost empty. In a constant-product pool, every extra WBTC you put in buys less UNI, so a huge buy moves the price enormously and returns almost nothing. The bot expected this. A sandwich bot doesn't want the token. It buys to push the price up, lets the victim buy at that inflated price, then sells the UNI straight back. In its model the 64.9 WBTC was only parked in the pool for a moment. The bait swap allowed unlimited slippage, so the victim would accept any price, and the bot expected to get its WBTC back plus a profit. The only risk was the sell-back failing, and the bot assumed its all-or-nothing bundle ruled that out. The attackers broke that assumption. Their own UNI sale went in right after the bot's buy and took out the 64.9 WBTC. The bot's sell-back then failed, leaving it with the UNI it had just bought. Prices: theblock.co/post/224482/ethereum-mev-bots-lose-over-25-mill… and certik.com/blog/mev-bot-incident-analysis
The Block · theblock.co/post/224482/ethereum-mev-bots-lose-over-25-million-in-sophisticated…Ethereum MEV bots lose over $25 million in sophisticated attackA sophisticated attack on Ethereum led to a loss of over $25 million for a group of MEV bots trying to capture arbitrage opportunities.
so a huge buy moves the price enormously
So the prices you're showing for UNI is the market price outside the smart contract with its local scarcity? Can you read its code and determine what the internal price would have been? And the smart contract algorithm is symmetric in calculating the price after a buy / sell order? So even though on paper a sandwich buyer sits on $3 worth of UNI, they know they're going to get back what they put in (plus profit)?
Yes. The dollar figures are market prices (BTC about $28k, UNI about $6). The pool has its own price, which is just the ratio of its two reserves. I read the pool's Sync events on Blockscout: - Before the bot's front-run: 0.000274 WBTC and 0.7237 UNI. That's about $12 of liquidity in total, at an internal price of 0.00038 WBTC (about $10) per UNI. - After the bot's 64.9 WBTC buy: 64.9057 WBTC and 0.0000031 UNI. The internal price was now about 21 million WBTC per UNI. - After the attackers' sale: 19.6 UNI and 1,018 sats. The Uniswap V2 formula is the same in both directions. getAmountOut computes out = in × 997 × reserveOut / (reserveIn × 1000 + in × 997). The pool keeps reserve × reserve constant (x·y=k), whichever way you trade. So a buy followed by selling the same tokens back returns you to the same point on the curve, minus the 0.3% fee. I ran the bot's planned sell-back through that formula myself, using the reserves right after its buy (this is my calculation, not on-chain data). Its 0.72374 UNI would have returned 64.90542794 WBTC, only 166 sats less than it paid. Because the pool was almost empty, the fee hardly mattered. So the bot's "$4 of UNI" was really a claim on nearly all of the pool's 64.9 WBTC. But that only held if the bot was the next one to sell UNI into the pool. The UNI was worth whatever the pool would pay for it, not its market price. The attackers sold first, with 19.6 UNI (about $120 at market), and got 64.9057 WBTC. That left 1,018 sats in the pool for the bot's sell-back, which reverted. Front-run: etherscan.io/tx/0xe9ce121022cd2bd3c30759186d8bbc447b4ce80cb… Code: github.com/Uniswap/v2-periphery/blob/master/contracts/libra…
Ethereum (ETH) Blockchain Explorer · etherscan.io/tx/0xe9ce121022cd2bd3c30759186d8bbc447b4ce80cb9d905d09e4f47fc7816f…Ethereum Transaction Hash: 0xe9ce121022... | EtherscanSwap 64.91 WBTC for 0.7237 UNI on Uniswap V2 | Success | Apr-02-2023 11:29:35 PM (UTC)
Ok, something else I noticed in the opinion:
“White hatting,” for example, is a common norm where users take advantage of bugs and security vulnerabilities to preempt an adversary
taking user funds. See Tr. 321:5–12. The white hats then return the money to the relevant users and often receive an “industry norm” of a ten percent tip of the recovered money. Tr. 321:13–20, 819:23–820:1 This reminds me of the Liquid hack, where the "whitehat" decided to keep 10%. qqsrsagh0wvwax4f2xf0yudy3d5cel5yv7zhgwtczp69hct0q4pselqzyra0h3gfn7m7wmela2f66nvk39kat7w3ncj622dnfl799dhc9y0f2y9ky7f
Liquid shows how thin that "industry norm" is. The attackers didn't actually keep 10%, and Blockstream never accepted their framing. Here's what happened, from news reports: - On 6 September they used an Elements bug to mint unbacked L-BTC and pegged out about 4,000 BTC through SideSwap. They labelled themselves white hats on-chain. - They negotiated through OP_RETURN messages, waited for the patch, and on 7 September returned exactly 3,400 BTC. They kept 598.5 BTC, about 15%. - Two days later they demanded that Blockstream pay a 10% bounty "using your own money". Otherwise, they said, L-BTC holders would take the 15% loss. Ledger's CTO called this extortion, and Blockstream refused and called it theft. According to Immunefi, Liquid has since restored 1:1 backing. The 10% in the testimony normally comes from the project's side, not the attacker's. Either the project sets it before any exploit, through a bug bounty or SEAL's Safe Harbor (default 10%, capped at $1M), or the victim offers it afterwards. Nomad did that in 2022: anyone who returned 90% would be treated as a white hat. Immunefi's CEO used Liquid as his example of the difference. If you drain the funds first and then set your own price, it isn't white hatting anymore, whatever the percentage. So Liquid is closer to the case in the opinion than to the norm the court describes: someone takes funds on their own and decides the terms themselves. The difference is that Liquid got most of its money back. bitcoinmagazine.com/news/liquid-gets-3400-btc-back-after-on… gizmodo.com/white-hat-liquid-network-crypto-hackers-are-now… immunefi.com/blog/expert-insights/what-counts-as-a-whitehat/ frameworks.securityalliance.org/safe-harbor
Bitcoin Magazine · bitcoinmagazine.com/news/liquid-gets-3400-btc-back-after-on-chain-talks-white-h…White Hats, A Sad-Face Emoji, And A 598.5 BTC Hacker Bounty. Liquid Big MadLiquid’s last official note is still Sunday’s pause. The coins came back Monday. The network did not. The remaining 598.5 BTC is now the whole story.
13.
The signature is a “commitment”4F 5 that the validator will propose the block it selected or, if not, be subject to “a financial penalty. ” Tr. 179:12–25; see also Tr. 688:6–12. That is, if the validator signs the block but does not propose it as the next block in the slot, the validator will be “slashed.” So it's not just equivocation that gets a validator slashed, also signing but not broadcasting a block? Or is that a special rule for Flashbots? Or is simply the absence of a block the reason for getting slashed, not the fact that its header was signed (and no other)?
It's ordinary Ethereum equivocation, not a Flashbots rule. And a missing block on its own doesn't get anyone slashed. The opinion's wording blurs this. The protocol has one proposer slashing rule: two different signed block headers from the same validator for the same slot. process_proposer_slashing in the consensus spec checks exactly that: same slot, same proposer index, different headers, both signatures valid. Missing a slot carries no penalty. The proposer just loses that block's rewards. So if you sign the header and then nothing appears, for example because the relay fails, you aren't slashed. MEV-Boost relies on that rule. The proposer signs a "blinded" block, which has only the header of the execution payload. Its root is the same as the root of the full block, so the signature commits to one specific block. Only after that does the relay reveal the transactions. If the proposer uses them to build and publish a different block for that slot, there are now two signed headers for the slot, and anyone holding both can submit them as evidence. "If not, slashed" in the opinion only holds when the validator proposes something else. That's what happened on 3 April 2023. Validator 552061 signed a deliberately invalid header (state root and parent root set to zero). The relay couldn't publish that block, but it still revealed the payload. The attacker then published its own reordered block in slot 6137846. Since the relay's block never went out, there was no race, but the two signatures stayed on record. The validator was slashed for proposer equivocation, included in slot 6142320. The penalty was small: by my reading of the spec, about 1 ETH up front, plus a forced exit, against roughly $25M taken. That's why people at the time pointed out that slashing is a weak deterrent here. unchainedcrypto.com/rogue-ethereum-validator-slashed-after-… github.com/ethereum/consensus-specs/blob/dev/specs/phase0/b…
Unchained · unchainedcrypto.com/rogue-ethereum-validator-slashed-after-25-million-mev-bot-a…Rogue Ethereum Validator Slashed After $25 Million MEV Bot Attack - UnchainedA validator was slashed from the network after he managed to steal $25 million from MEV sandwich bots on Monday.
Was the block that made it into the chain, made by the attacker (with custom software) and did it contain only the modified sandwich? Or did they mutate the original block to just replace one transaction and leave everything else as it was?
The attacker built the block, and it held only the eight sandwiches. Block 16964664 (slot 6137846) has 24 transactions, and they form exactly 8 groups of three: a bot's front-run, an attacker transaction, then the bot's back-run, which failed. Five bots, eight bundles. There is nothing else in it: no ordinary mempool transactions, and no payment from a builder to the proposer at the end, which MEV-Boost blocks normally have. It used 7.2M of the 30M gas limit. The fee recipient is the zero address, and the extraData field, where builders usually put their name, is empty. The bot transactions are the ones the bots signed for their bundles. The attacker couldn't change them without the bots' keys. Only the middle transaction of each group changed. In the bundles, that spot was the attackers' own bait swap. In the published block it's a different transaction, with the same function selector (0xf0d0a650) every time, that sells into the pool right after the front-run instead of buying. The bait came from their own accounts, so they could sign a replacement whenever they wanted. What nobody can see is the relay's original block, because it was never published. So I can't tell whether the builder's version had other transactions that the attacker dropped. Either way, they didn't just swap one transaction in an otherwise unchanged block. Changing any transaction changes the state root and the block hash. So the attacker had to execute the transactions and build a new payload with their own software, then sign it as proposer. That second signed header is what got them slashed.
Ethereum (ETH) Blockchain Explorer · etherscan.io/txs · via the Internet ArchiveEthereum Transactions Information | EtherscanTransactions that have been mined and confirmed on the Ethereum Blockchain. The list consists of transactions from sending Ether and the transactions for interacting with a smart contract.
I don't think it was needed. Nobody has explained it publicly as far as I can find, so what follows is my own reasoning. The money came from the first two transactions. The bot's front-run put 64.9 WBTC into the pool, and the attackers' sale took it out. Once those two had run, the bot's back-run could only revert, and it did. Leaving it out would have changed nothing about the theft. It didn't earn the attackers anything either. A reverted transaction still pays gas, so the bot lost a little more, but the fee recipient was the zero address. The priority fee went nowhere useful and the base fee was burned. Some possible reasons, all guesses: - It was the simplest code. Take each bundle from the payload the relay revealed, replace the middle transaction, and keep everything else as it was. The attackers had about a second to rebuild and publish the block, so the less custom logic the better. - It closed the back-run for good. Once it's in a block, that nonce is used up, so the bot can't send the same transaction again in a later block. It would have failed there too, though, so this barely matters. - It looks closer to "we ran the bots' bundles in the order they asked for". Flashbots bundles are all-or-nothing with protection against reverts, but that is the relay's and builder's promise, not a protocol rule. In a block you build yourself you can include a transaction that reverts. If you wanted to argue that you executed the bots' own transactions as written, including all three looks better than including just one. I don't know if that was the motive. I'm also not saying it played a role in the case. Practically, the front-run is the only bot transaction they needed. The back-run was optional, and including it cost them nothing. Sources: - EigenPhi's breakdown: eigenphi.substack.com/p/how-did-a-malicious-validator-steal - Flashbots post-mortem: collective.flashbots.net/t/post-mortem-april-3rd-2023-mev-b…
eigenphi.substack.com/p/how-did-a-malicious-validator-stealHow Did A Malicious Validator Steal $20 Million From MEV Bots by Attacking Ethereum MEV Boost RelayOn Ethereum Block 16964664, the top 5 MEV bots on our leaderboard was exploited and lost $20M.
Flashbots bundles are all-or-nothing with protection against reverts, but that is the relay's and builder's promise, not a protocol rule.
The smart contract calls that executed the sandwich didn't have some sort of protection built in to ensure that they are executed as a pair?
No. A contract can't enforce that. Each transaction runs on its own, and while the front-run executes, the EVM can't see which transactions come after it in the block. There is no opcode that says "revert unless my back-run follows". In a sandwich the middle transaction belongs to someone else, so you can't fold all three legs into one transaction either. That's why bots rely on the builder's promise that a bundle runs whole or not at all. The checks a bot can do inside its contract only look at the present: - Slippage or reserve checks. The front-run ran first, on exactly the pool state the bot expected, so they passed. - A check on block.coinbase, block.number or similar. These are meant to make sure only the intended builder can include the transaction. But here the proposer built the block itself and could set those fields however it wanted, so such a check stops nothing. - A minimum output on the back-run. That probably worked as designed: it reverted instead of selling at a loss. But by then the front-run's money was already gone, so all it saved was the bot's remaining tokens. So the bots' real exposure was the front-run. It moved their own capital into a pool and depended on a later transaction to get it back. Once someone outside the trusted builder/relay path controls the order, that transaction can't protect itself. After the incident, the fix went into the relay rather than into the bots' contracts: the relay now checks the signed header and only reveals the payload once it has published the block itself (Flashbots' post-mortem, already linked above). I haven't read the bots' contract code, so I can't say exactly which checks they had.
I could only partly read them. None of the five bot contracts has verified source on Etherscan. All that's public is bytecode, so I went through decompiler output (ethervm.io) for three of them. They turn out to have exactly the kinds of checks I guessed at, and none of them helps against a proposer who builds his own block. What's in the code: - 0x00000000008C4FB1…5e7D (four of the eight sandwiches) only accepts calls from a hardcoded list of its own sender addresses, checked via msg.sender and tx.origin. It also hashes block.timestamp and a recent block hash and compares that to a value in the calldata. That ties the transaction to one slot on one parent block, which protects against reorgs. It pays the builder with a call to block.coinbase. - 0xE8c060F8…A2e5 does the same: a list of allowed callers, an exact block.timestamp match, a blockhash check, a payment to block.coinbase, and a "not pool" check in its swap callback. - 0x0000000000…f594e is a small proxy. It checks one admin address and forwards everything else with delegatecall. I didn't read the contract behind it. I found no getReserves call in the first two, but parts of the decompilation didn't resolve, so I could have missed some checks. Why it didn't help: the attacker sent nothing to the bot contracts himself. The bots' own signed transactions were in the block, so the caller checks passed. The attacker's block was for the same slot on the same parent, so the timestamp and blockhash checks passed too. Each front-run ran on exactly the pool state it expected. The only thing the bots relied on that broke was the next transaction, and their code can't check that. A correction to what I wrote earlier: not every back-run reverted. The ones to 0x8C4F and 0x…3b3c40 ran out of gas. The other three succeeded at the top level, but Etherscan shows an internal error. So those bots apparently caught the failed swap instead of reverting. Decompiled:
Online Solidity Decompiler · ethervm.io/decompile/0x00000000008C4FB1c916E0C88fd4cc402D935e7D0x00000000008c4fb1c916e0c88fd4cc402d935e7d
They also used coded logic so that the
lure transactions would appear to be a profitable sandwich target in any simulations by the relevant sandwich bot, but not by others. Impressive. Presumably these simulations didn't run on chain, so how did they know how the simulations worked?
They didn't need to know how the bots ran their simulations. Any simulation has to execute the lure transaction's actual bytecode against the actual chain state. A contract that behaves differently depending on that state will fool every simulator the same way, whatever software it runs. The judge's acquittal opinion (pages 13-14) gives the trial evidence: - The lure transactions were built from public history: which transactions each bot had sandwiched before, which pools it used, its preferred token, what calldata looked like and how much it bought. Each lure was tailored to one bot. - The lures contained the target bot's contract address, so the code could check that bot's token balances before running the "trigger" part. The address was XOR-scrambled, so it didn't show up in plain sight in the calldata. - They tested this "dozens of times" in the months before April 2023. One victim, David Yakira of Savannah Technologies, testified that he later found 60 to 70 of those test transactions on chain. My reading of the balance check, which the opinion doesn't spell out: when a bot simulates "my front-run, then the lure", its own front-run has just changed its token balance. The lure sees that and behaves like a big juicy buy. A different bot simulating the same lure wouldn't trigger the check, so the lure might do little or revert, and that bot would pass. The test runs worked like black-box probing. A bot that actually sandwiches a test transaction has told you what its simulation concluded. It also helped that the brothers were experienced MEV searchers themselves. The opinion calls them some of the top users of Ethereum and Flashbots, so they knew how these bots generally work. fingfx.thomsonreuters.com/gfx/legaldocs/akvewgjxkvr/1116202…
Once the targeted traders took the bait, the Peraire-Buenos’ validator queried relays and received a blockheader for the block containing the targeted sandwicher’s bundles with the lure
transactions. They wouldn't have been certain that the bait was taken, right?
Right, not when they asked for the header. In MEV-Boost the proposer only gets a blinded header and a bid value. The transactions stay hidden. The header does commit to them through the transactions root, but you can't check that without already knowing the transactions. A high bid could hint that the bots' bundles were in there, since sandwich bots pay the builder well. That's my own inference, though. The opinion doesn't say they looked at it. They didn't need to be certain at that point. The trick (opinion, p. 15) was to sign the header with the parent and state roots set to zero. The relay checked only the signature, so it unblinded the block and sent the full contents back, even though that signed block could never be valid. So they saw exactly what was in the block before they signed anything that could actually land on chain. If the bait hadn't been taken, they could have dropped the plan at that point. Backing out would have been cheap: - Skip the slot: lose one block reward, no slashing. - Or propose some other valid block anyway. That means two signatures for one slot, so they get slashed, which is what happened here. The opinion puts the penalty at about 1 ETH, against roughly $25 million taken. The lures were also designed to do little or nothing unless the targeted bot had sandwiched them. And they had registered 16 validators, so a failed attempt could be repeated in a later slot. So the uncertainty was real, but the "false signature" turned the header query into a free look before committing. That's why the fix went into the relay: it now checks that the block is valid and can be published before revealing the contents.
As far as the public record shows, it worked the first time they actually tried it. The opinion describes a single execution: on April 2, 2023, eight lure transactions went into the mempool timed to one of their validators' proposal slots, and the targeted bots bundled all eight. It doesn't mention any earlier slot where they ran the attack and then backed out. Some context, though: - The "dozens" of test runs in the months before weren't attempts at the attack. They were lure transactions in ordinary blocks, to see whether the bots would sandwich them. That didn't need their own slot, and it didn't trigger the relay bug. - They registered 16 validators. With roughly 560,000 validators on Ethereum in April 2023, that would get them a proposal slot about once every 5 days on average (my own estimate, not from the opinion). That's enough to try again if one attempt failed. - Whether they let any of their own slots pass, or proposed a normal block in some of them, isn't in the opinion. You'd have to identify their 16 validators and check their proposal history on chain, and I haven't done that. So "skip the slot" was the fallback that was available to them. I've found nothing showing they ever used it.
You'd have to identify their 16 validators and check their proposal history on chain, and I haven't done that.
Were any of them published? If so, what data does one need to find the historical slots for a validator? And is it a matter of checking against an explorer if those blocks are missing?
Only one of the 16 is public: validator 552061, the one that proposed the attack block in slot 6137846 and was slashed. Flashbots' post-mortem links to it: collective.flashbots.net/t/post-mortem-april-3rd-2023-mev-b… The indictment and the opinion don't list the other 15. The indictment only describes the funding. Between Feb 28 and March 20, 2023, about 529.5 ETH went from an exchange account through about 14 intermediary addresses into a "privacy layer" before being used for the 16 deposits (16 × 32 = 512 ETH). Flashbots says the attacker's ETH came out of Aztec. Finding the rest would mean clustering deposits from around mid-March 2023, which I haven't done. 552061 was deposited on March 15 and its withdrawal credentials are of the old 0x00 (BLS) type, so there's no shared withdrawal address to link it to the others. What you need is the validator index, or the pubkey, which maps to an index. Who proposes each slot follows from the beacon state, through the RANDAO mix and effective balances. A beacon node can give you proposer duties for a past epoch if it can rebuild that state. Blocks that were actually proposed carry proposer_index in the header. Missed slots have no block, so for those you need the duty calculation. In practice an explorer does this for you. beaconcha.in lists each validator's proposals as proposed, missed or orphaned. For 552061 that's just one, the attack slot. With about 2.5 weeks between activation and the attack, 16 validators would on average have had 3 or 4 proposal slots (my estimate), so the other 15 may well have had earlier ones. Some limits: - A skipped slot shows up as missed. - A slot where they peeked via the relay and then just proposed an ordinary block looks completely normal on chain. - The invalid "false signature" header never reaches the chain at all. Only the relay's logs would show that.
The Flashbots Collective · collective.flashbots.net/t/post-mortem-april-3rd-2023-mev-boost-relay-incident-…Post mortem: April 3rd, 2023 mev-boost relay incident and related timing issueSummary On April 3rd, 2023, a malicious proposer exploited the ultra sound relay through a vulnerability in the open sourced mev-boost-relay implementation maintained by Flashbots to steal ~$20M…
On a Rule 29 motion, a court “must decide the motion on the basis of the evidence at the time the ruling was reserved.” Fed. R. Crim. P. 29(b). The Peraire-Buenos moved for a judgment of acquittal at two points in the trial: at the conclusion of the Government’s case and again, after the Court declared a mistrial. Tr. 2569:21–23, 3660:10–13. The Court therefore adjudicates this motion based on the evidence at the conclusion of the Government’s case
So do defense lawyers always do this as soon as allowed, just in case?
Pretty much, yes. In US federal trials the Rule 29 motion at the close of the government's case is close to routine. Defense lawyers make it even when they expect to lose, for three reasons: - It costs nothing. It's argued outside the jury's presence and often takes a few minutes. - It preserves the issue for appeal. In many circuits, if you never moved for acquittal, an appeal court reviews whether the evidence was sufficient only under a much stricter plain-error standard. - Timing matters. If the defense then puts on its own case, the earlier motion is generally treated as waived, and a renewed motion is judged on all the evidence, including whatever the defense witnesses added. So lawyers move at the close of the government's case, renew at the close of all evidence, and can move again within 14 days after a verdict or after the jury is discharged (Rule 29(c)). The quote shows why the first motion mattered here. The judge reserved her ruling, which Rule 29(b) allows. A reserved ruling has to be decided on the evidence as it stood at that moment, so nothing that came later in the trial could count against the brothers. Judges often reserve for a practical reason. If they acquit after a guilty verdict, the government can appeal and the verdict can be reinstated. In this case the jury hung, so there was no verdict to fall back on. Under United States v. Martin Linen Supply (1977), a judge's acquittal after a hung-jury mistrial is generally final: the government can't appeal it or retry the case. It's a real acquittal, not just a dismissal.
LII / Legal Information Institute · law.cornell.edu/rules/frcrmp/rule_29Rule 29. Motion for a Judgment of Acquittal
Judges often reserve for a practical reason. If they acquit after a guilty verdict, the government can appeal and the verdict can be reinstated.
I don't follow. Why is that a reason for a judge to not just get the motion dealt with right away before any verdict?
Because of double jeopardy. The question isn't whether the judge rules, it's whether the government can appeal the ruling. If the judge grants the motion before the jury decides, that counts as an acquittal. The Double Jeopardy Clause bars an appeal and a retrial, even if the judge got the law badly wrong. The Supreme Court confirmed this in Evans v. Michigan (2013). So a mistake by the judge is final, and no higher court ever looks at it. If the judge waits, the jury decides first: - If the jury acquits, the motion no longer matters. - If the jury convicts and the judge then acquits, the government can appeal. If the appeals court finds the evidence was enough after all, it reinstates the guilty verdict. That needs no second trial, so double jeopardy isn't violated (United States v. Wilson, 1975). So reserving keeps the judge's decision open to review without any cost to the defendant. The 1994 amendment that allowed reserving under Rule 29(b) was made for exactly this reason, as the advisory committee notes explain: law.cornell.edu/rules/frcrmp/rule_29 It also saves work. The jury may acquit anyway, and then the judge never has to write the opinion. In this case the safety net disappeared, because the jury hung and there was no guilty verdict to reinstate. That's why the judge's acquittal of the brothers is final.
LII / Legal Information Institute · law.cornell.edu/rules/frcrmp/rule_29Rule 29. Motion for a Judgment of Acquittal
So reserving keeps the judge's decision open to review without any cost to the defendant.
Isn't there a small cost in that a mistake by the judge could get the defendant irreversibly acquitted?
You're right, "without any cost" was too strong. If the judge would have acquitted by mistake, ruling right away gives the defendant an acquittal nobody can review. Reserving takes that chance away. From the defendant's side, that's a real loss. The law just doesn't count it as an interest worth protecting. The Double Jeopardy Clause is there to stop the government from trying someone again and again, not to guarantee that a judge's mistakes stand. When an appeals court reinstates a guilty verdict, the defendant isn't tried twice; the error is just corrected. The defendant does give up other things by waiting: - A prompt ruling. A correct acquittal at the close of the government's case ends the trial right there. With a reserved ruling the defendant sits through the rest of the trial and the jury's deliberations. If the jury convicts and the judge then acquits, the defendant may still face a government appeal before it's really over. - Certainty about strategy. The defense has to decide whether to call witnesses without knowing whether the motion will be granted. The rule limits this cost: the judge, and later the appeals court, may consider only the evidence that was in at the time the ruling was reserved. The advisory committee notes describe it this way: the court weighs the defendant's interest in an immediate ruling against the government's interest in getting a verdict and so keeping its right to appeal. That's a trade-off, not a free option.
The following seems quite important: “If the wire fraud statute criminalized conduct that merely departed from traditional notions of fundamental honesty and fair play,” the Court has explained, “almost any deceptive act could be criminal.” Chastain, 145 F.4th at 296 (quoting, in part, Ciminelli v. United States, 598 U.S. 306, 315 (2023)). “[T]he fraud statutes do not vest a general power in the Federal Government to enforce its view of integrity in broad swaths of state and local policymaking.” Ciminelli v. United States, 598 U.S. 306, 312 (2023) (cleaned up). “That approach would vastly expand federal jurisdiction without statutory authorization by making a federal crime of an almost limitless variety of deceptive actions traditionally left to state contract and tort law.” Chastain, 145 F.4th at 296
Yes, this passage sets the frame for the rest of the opinion. Federal wire fraud doesn't cover dishonesty in general. It needs a scheme to get money or property by a material misrepresentation. Being sneaky, breaking norms or acting in bad faith isn't enough. The two cases it quotes: - Ciminelli (Supreme Court, 2023) threw out the Second Circuit's "right to control" theory. Prosecutors had treated depriving someone of information they needed to make economic decisions as taking property. The Court said wire fraud protects only traditional property interests. - Chastain (Second Circuit, 2025) is the OpenSea "insider trading" case. The court vacated the conviction because the jury could have convicted for conduct that was merely unethical. The confidential information had to have commercial value to OpenSea. The ruling follows that logic. According to press coverage (e.g. CoinDesk), Judge Clarke found no material misrepresentation: - The bait transactions promised nothing. Placing a trade in the mempool isn't a promise to let anyone sandwich it. - The "false signature" header zeroed fields the relay never checked, so it didn't change what the relay did. A lie that has no effect isn't material. - Ethereum is "a trustless, highly adversarial environment with no terms of use." No rule existed that the bots could rely on. She also said, citing earlier Second Circuit law, that conduct can be "improper, objectionable, or even despicable" without being fraud. Undermining what MEV-Boost was designed to do isn't a crime in itself. What this means in practice: if the bots have a claim, it's civil (contract, tort, maybe unjust enrichment), not federal wire fraud. Ciminelli's point is that these disputes belong to state law. One caveat: this is a district court opinion that can't be appealed, so no higher court will review it. It doesn't bind other judges, but it will be cited. It also follows the same court's Eisenberg (Mango Markets) acquittal in 2025, which used similar "the protocol had no rules" reasoning. coindesk.com/policy/2026/11/18/u-s-judge-says-ethereum-has-…
Nathaniel Chastain was head of product at OpenSea, the NFT marketplace, and picked which NFTs went on its homepage. Being featured tended to raise an NFT's price. He bought NFTs shortly before featuring them and sold them afterwards, using anonymous wallets, for about $57,000 in profit. NFTs weren't treated as securities, so prosecutors couldn't charge insider trading. They charged wire fraud instead, arguing he had taken OpenSea's property: its confidential information about which NFTs would be featured. A jury convicted him in 2023 and he got three months in prison. In July 2025 the Second Circuit vacated the conviction, 2–1, because two jury instructions were wrong: - The jury was told confidential information could be "property" even without commercial value to OpenSea. The court said it must have commercial value to its owner, and vague reputational harm isn't enough. OpenSea didn't sell or trade on that information. - The jury could convict for conduct that departed from "fundamental honesty and fair play." The court said that turns wire fraud into a general ethics law, which Ciminelli forbids. Judge Cabranes dissented. He argued that precedent treats confidential business information as property whatever its commercial value. The second point is the one that matters for the Peraire-Bueno ruling. The passage you quoted comes from it: wire fraud protects specific property interests and requires the elements of fraud, not a general sense that someone played dirty. The two cases turn on different elements, though. In Chastain the question was whether there was any property. With the brothers the property is obvious ($25 million in crypto), so the question is whether they got it through a material misrepresentation. Judge Clarke borrows Chastain's warning so the "this was unfair and sneaky" argument can't stand in for that. After the remand, Inner City Press reported that Chastain signed a deferred prosecution agreement in January 2026 and the charges were dropped in February. I only found that one report. mayerbrown.com/en/insights/publications/2025/09/second-circ… innercitypress.blogspot.com/2026/02/after-chastain-found-gu…
mayerbrown.com/en/insights/publications/2025/09/second-circuit-vacates-nft-insi…Second Circuit Vacates NFT “Insider Trading” Conviction in <i>United States v. Chastain</i>—Clarifies Property Rights…On July 31, 2025, the US Court of Appeals for the Second Circuit vacated the conviction of Nathaniel Chastain, a former OpenSea executive, for wire
The district court gave the jury two ways to find a "scheme to defraud," joined by "or." The jury could find one if Chastain's conduct "was deceptive," or "if you find that the defendant conducted himself in a manner that departed from traditional notions of fundamental honesty and fair play in the general and business life of society." The problem is the "or." Under the second option, the jury didn't need to find any deception at all. Behaving unfairly or unethically by business standards was enough. That instruction also opened with a broad definition of fraud as any "trick, deception, swindle, or overreaching." Judges Menashi and Wesley, the majority, said a scheme to defraud needs more than a breach of duty or unethical behavior. Otherwise "almost any deceptive act" could be a federal crime, which is the line quoted in the Peraire-Bueno ruling. They also found the error wasn't harmless. Prosecutors had largely argued that Chastain broke OpenSea's trust, so the jury may well have convicted on the ethics option alone. A note the jury sent during deliberations pointed the same way. Judge Cabranes dissented on this point too. The "fundamental honesty and fair play" wording comes from older fraud cases, and he said the instruction followed Second Circuit precedent closely enough. Summary of the instruction and the ruling:
ashurstperkinscoie.com/en/insights/second-circuit-narrows-scope-of-federal-crim…Second Circuit Narrows Scope of Federal Criminal Fraud Statute in NFT “Insider Trading” Case | Perkins CoieKey TakeawaysIn United States v.
You mentioned earlier:
What this means in practice: if the bots have a claim, it's civil (contract, tort, maybe unjust enrichment), not federal wire fraud. Ciminelli's point is that these disputes belong to state law.
Have such cases been filed or announced yet?
I couldn't find any civil suit, filed or announced, by the operators of the sandwich bots against the brothers. Coverage of the November 16 acquittal (Decrypt, CoinDesk, Cryptopolitan and others) only says the criminal case is over. It doesn't mention follow-on suits, restitution or a settlement. Some reports say the brothers turned down requests to return the money. I didn't check the court dockets directly, so a quietly filed complaint could have slipped past me. Some reasons it may not happen: - The bot operators are pseudonymous. To sue, they'd have to identify themselves in public. - The bots were sandwiching other users' trades. A civil case would put that business under scrutiny in discovery and in front of a judge or jury. That may not look appealing. - The acquittal doesn't decide civil liability, and the burden of proof is lower in a civil case. But a judge has now said that Ethereum has "no terms of use" and that the bait transactions promised nothing. That makes contract or fraud claims harder. Conversion or unjust enrichment might fare better. - The exploit was in April 2023. Depending on the claim and which state's law applies, some limitation periods are running out. Reportedly only one wallet, holding about $3 million, was ever frozen. I found nothing on what happens to it now. Whoever controls it might be the most likely place for any dispute to show up. decrypt.co/383408/judge-acquits-mit-brothers-in-25m-ethereu… cryptopolitan.com/judge-acquits-mit-brothers-25m-mev-case/
Decrypt · decrypt.co/383408/judge-acquits-mit-brothers-in-25m-ethereum-mev-case-ending-pr…Judge Acquits MIT Brothers in $25M Ethereum MEV Case, Ending Prosecution - DecryptA federal judge ruled prosecutors failed to prove the material misrepresentation needed for wire fraud, a year after a jury deadlocked.
I couldn't find it. I checked your old npub (npub1s6z…wk4c, the one listed on your GitHub Sponsors page). Through njump I can only see its most recent 100 notes, which go back to late April 2025. None of them mention MEV, Ethereum, the Peraire-Bueno brothers, sandwich bots or wire fraud. There's also nothing about the case in the posts after that, including around the November 2025 mistrial. So if you commented, it was probably before April 2025, for example when the indictment came out in May 2024. Or it was a reply buried in someone else's thread. I can't reach that far back: nostr.band's search wouldn't connect, and I can't query relays directly. Web search didn't turn it up either. You could try nostr.band or Primal search with "by:npub1s6z…" and a keyword like MEV or Peraire. If you remember roughly when you posted it, or a link to the note, I can read it from there.

← More from Sjors' Claude