Papers
Topics
Authors
Recent
Search
2000 character limit reached

Sandwich Attacks on Ethereum Rollups

Updated 29 January 2026
  • Sandwich attacks on Ethereum rollups are MEV strategies that exploit cross-layer ordering to extract profit from victim trades.
  • Formal models quantify attack profitability by optimizing trade sizes, evaluating slippage effects, and assessing batch execution probabilities.
  • Empirical analyses reveal low success rates and negative median net PnL, driving recommendations for private mempools and randomized sequencing.

A sandwich attack is a maximal extractable value (MEV) strategy whereby an adversary observes a victim’s pending swap and orchestrates two trades: a frontrun to buy into the victim’s intended asset before their transaction, and a backrun to sell after, extracting profit by manipulating the local price. While endemic on Ethereum Layer-1 (L1) owing to its public mempool, Ethereum rollups—Layer-2 (L2) solutions such as Arbitrum, Optimism, Base, Unichain, and zkSync—introduce sequencing architectures that fundamentally alter the feasibility and profitability of sandwiching. Recent research rigorously models these attacks, analyzes transaction-level data, and clarifies both the empirical rarity and the cross-layer nuances of sandwiching in the rollup context (Torres et al., 2024, Gogol et al., 27 Jan 2026).

1. Classical Sandwich Attacks and the Role of the Mempool

On Ethereum L1, the public mempool discloses all pending transactions, enabling adversaries to monitor for victim swaps and submit sandwich legs to sandwich the victim’s trade in the same block. The canonical workflow is:

  • The attacker submits TA1T_{A_1} (frontrun: buy) before the victim’s swap TVT_V,
  • The attacker submits TA2T_{A_2} (backrun: sell) immediately after TVT_V.

The profit per sandwich is given by

Profit=(psellpbuy)×qcgas\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}

where qq is the trade quantity and cgasc_{\text{gas}} is total gas expended. Public mempool visibility and atomic builder markets make this exploitation deterministic and highly competitive.

In contrast, rollups employ private sequencer mempools: unless a user controls the sequencer, pending swaps are invisible—rendering public sandwich strategies infeasible. As a result, empirical analysis over a multi-year window detects zero standard on-chain sandwich attacks on Arbitrum, Optimism, and zkSync (Torres et al., 2024).

2. Formal Modeling of Sandwich Profitability in Rollups

Recent formalization extends the sandwich paradigm to automated market makers (AMMs) on rollups, considering both constant product (CPMM) and concentrated liquidity (CLMM) models (Gogol et al., 27 Jan 2026). The attacker operates three trades: front-run (ff) of size xfx_f, victim trade (vv) of size TVT_V0, and back-run (TVT_V1) of size TVT_V2.

In the small-trade regime (TVT_V3, with TVT_V4 being pool liquidity), the incremental profit before gas is: TVT_V5 where TVT_V6 is the swap fee. The optimal attack size without slippage constraint is

TVT_V7

and the net expected profit accounts for both slippage and gas costs.

For CLMMs, optimization takes into account tick boundaries. Crossing into lower liquidity ticks can amplify profits if TVT_V8 is sufficient to push the price across a tick, but is limited by slippage tolerance.

3. Execution Feasibility Under Rollup Sequencer Architectures

Sandwiches in private-mempool rollups are constrained by sequencers’ batching and ordering policies, and the lack of atomic inclusion (i.e., the inability to guarantee that TVT_V9, TA2T_{A_2}0, TA2T_{A_2}1 land together).

Three principal probabilistic factors determine success:

  • Same-batch probability: For batch window TA2T_{A_2}2 and attack submission separation TA2T_{A_2}3, probability TA2T_{A_2}4.
  • Priority ordering: Under FCFS, background arrivals modeled as Poisson process (TA2T_{A_2}5) yield TA2T_{A_2}6; under tip-priority, the probability is TA2T_{A_2}7 as an expected value over background tip distribution.
  • Arrival-time noise: Modeled as Gaussian variance TA2T_{A_2}8, with TA2T_{A_2}9.

The aggregate co-inclusion probability is

TVT_V0

Empirical measurements under typical rollup parameters (TVT_V1–TVT_V2ms) yield TVT_V3; only 5–20% of attempted sandwiches are expected to land as valid same-batch, correctly ordered sandwiches (Gogol et al., 27 Jan 2026).

4. Cross-Layer Sandwiching: Attack Strategies and Empirical Outcomes

Although direct same-chain sandwiching is stymied, cross-layer communication reintroduces sandwich vectors (Torres et al., 2024). Researchers systematically catalog three attack strategies exploiting the public visibility of L2-call transactions on the Ethereum L1 mempool:

Strategy Key Steps Execution Site(s)
S₁: Classical Cross-Layer Frontrun/backrun on L1 to sandwich L2 swap transaction (visible on L1) L1, with effects on L2
S₂: Hybrid Frontrun on L1, backrun directly to L2 sequencer ahead of victim batch L1 (frontrun), L2 (backrun)
S₃: Speculative React to finalized L1 blocks, insert both legs on L2 before relayed victim L2 only

Simulation of these strategies over historical L1→L2 bridge traffic (notably, Hop Protocol) identifies approximately 170,000 potential targets. Total simulated extractable profit is approximately 2 million USD over 32 months: Arbitrum (TVT_V41.2 million per strategy), Optimism (TVT_V50.75 million per strategy) (Torres et al., 2024). These scenarios assume attacker capital in the TVT_V6–“infinite” range; even modest budgets suffice for hundreds of profitable opportunities. The cross-layer delay (mean TVT_V713 minutes on Arbitrum) provides attackers with a generous window for S₃-type insertions.

5. Empirical Prevalence, Profitability, and False Positive Analysis

Automated sandwich detection on rollups suffers from high false-positive rates. Naïve heuristics overestimate sandwiching due to shared routers and fragmented actor identity. Enhanced methods group transactions by (chain, block, pool), then filter based on actor identities and swap directions.

Analysis across Arbitrum, Base, Optimism, Unichain, and zkSync (2025 data) yields:

  • Only 5–25% of candidate sandwich patterns meet the “strong signature” (TVT_V8).
  • Front–back run correlation: as low as 0.08 (Optimism), maximum 0.63 (Arbitrum); victim–attacker leg correlation TVT_V9 everywhere.
  • Median net PnL per sandwich is negative across all chains:
Chain Median Net PnL (USD) IQR Net PnL
Arbitrum Profit=(psellpbuy)×qcgas\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}01.96, +$0.40]
Base –$\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}$14.06, +$0.91]
Optimism Profit=(psellpbuy)×qcgas\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}21.47, +$0.21]
Unichain –$\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}$33.30, +$0.27]
ZKsync Profit=(psellpbuy)×qcgas\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}40.66, +$0.26]

Prevalence is extremely low: 95% of supposed sandwich structures fail economic checks, and bot-level “sandwich efficiency” remains $\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}$5 everywhere (Gogol et al., 27 Jan 2026).

6. Policy Implications and Mitigation Recommendations

Research consensus is that the private mempool design and lack of public builder markets render same-block sandwiching rare and unprofitable in current rollup architectures (Gogol et al., 27 Jan 2026). Nevertheless, cross-layer attack surfaces persist so long as L2 swaps are relayed via Ethereum L1’s public mempool (Torres et al., 2024).

Key defensive strategies include:

  • Maintaining private or encrypted mempools: Blocks S₁/S₂ by concealing pending swaps.
  • Batching window minimization: Short batch periods ($\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}$6ms) reduce $\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}$7 and thus attack feasibility.
  • FCFS (first-come, first-served) sequencing: Promotes timing noise and impedes tip-ordering attacks.
  • Economic-consistency checks: Sequencer logic rejects suspicious $\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}$8/$\text{Profit} = (p_{\text{sell}} - p_{\text{buy}}) \times q - c_{\text{gas}}$9 pairs unless victim size justifies the wedge.
  • Proof-of-delay or randomized time-locks: Hinder adversarial timing.
  • Proposer-builder separation: Rollup builders selectively admit only profitable cross-layer bundles, rejecting inefficient MEV attempts.

A plausible implication is that, as rollups move toward public mempools or builder markets, or as transaction sizes increase, probabilistic sandwiching may regain practical feasibility. Sequencer and protocol designs must anticipate these economic models and preemptively incorporate countermeasures, rather than retrofitting controls after vulnerabilities emerge (Gogol et al., 27 Jan 2026, Torres et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Sandwich Attacks on Ethereum Rollups.