Sandwich attacks exploit mempool visibility to extract MEV in DeFi. Here’s how they work and the strategies to prevent them.