Sandwich Attacks

Definition

A sandwich attack is a form of Miner Extractable Value (MEV) exploitation where an attacker observes a pending transaction in the mempool and places two of their own transactions around it: one immediately before and one immediately after. The front-running transaction drives up the price for the victim’s buy order, and the back-running transaction profits from the victim’s increased price impact. This extracts value from the victim.