A sandwich attack is a form of MEV (Maximal Extractable Value) exploitation where an attacker observes a pending transaction in the mempool, front-runs it (places a transaction before), profits from the price movement, then back-runs it (places a transaction after). Example: Attacker sees user swapping 1 ETH for USDC, front-runs with a swap to drive up USDC price, watches user execute at worse price, then sells USDC for profit. Prevention strategies include: