Dark Forest (Mempool)

The mempool seen as a hostile place where bots prey on pending transactions.

Basically

The dark forest means public blockchain waiting areas where bots can see your pending transaction and take its profit. If bots can see a way to make money from your transaction, they can act before you.

Key Takeaways

  • The dark forest is a metaphor for the blockchain mempool, where every pending transaction is visible to predatory bots that extract value through front-running, sandwich attacks, and other MEV strategies.
  • The term comes from a 2020 blog post by Paradigm researchers Dan Robinson and Georgios Konstantopoulos. It draws on Liu Cixin's science fiction novel, where detection in the universe means certain death at the hands of advanced predators.
  • Defences have matured significantly. Private transaction submission through Flashbots Protect, MEV-aware DEX routing, and encrypted mempools now shield billions of dollars in transaction volume from predatory extraction.

What Is the Dark Forest?

The dark forest is a metaphor for the hostile environment of public blockchain mempools. Anyone can see pending transactions there, and automated bots routinely exploit them. Liu Cixin's novel depicts a universe where broadcasting your position invites annihilation, and the blockchain mempool similarly punishes any transaction that reveals a profit opportunity.

The concept was introduced in August 2020 when Paradigm researchers Dan Robinson and Georgios Konstantopoulos published "Ethereum is a Dark Forest." Robinson had discovered approximately $12,000 worth of Uniswap liquidity tokens accidentally sent to a pair contract. Despite designing an elaborate two-contract obfuscation strategy to recover the funds, a generalised front-running bot detected and replicated the profitable transaction before Robinson could execute it, showing that making a profitable transaction visible in the mempool effectively hands the profit to predators.

The academic groundwork was laid a year earlier in the "Flash Boys 2.0" paper by Phil Daian and colleagues. The paper coined the term "miner extractable value", later renamed maximal extractable value. It documented how bots on decentralised exchanges were replicating high-frequency trading strategies from traditional finance.

How It Works

The mempool receives a user's transaction on most blockchains before a validator or miner includes it in a block. It is a public waiting area where the transaction's full contents are visible to every node on the network during this period. Visible details include its parameters, gas price, and the value it creates or moves.

Predatory bots continuously scan the mempool and simulate every pending transaction to identify profit opportunities. A bot that finds one submits its own transaction with a higher gas fee to ensure inclusion first. It can also strategically place transactions around the victim's trade to extract value.

The Predator Taxonomy

Several categories of bots operate in the dark forest. Each exploits different aspects of transaction visibility:

Anatomy of a Sandwich Attack

Sandwich attacks are the most common dark forest predation strategy. They accounted for over 50% of MEV transaction volume on Ethereum in 2025. The attack unfolds in three steps:

The most notorious sandwich bot, known as "JaredFromSubway.eth," executed hundreds of thousands of attacks starting in early 2023. Its peak daily revenues reached hundreds of thousands of dollars. In June 2026, the bot was itself exploited for $7.5 million through a reverse honeypot attack using fake token contracts.

The Scale of the Problem

The European Securities and Markets Authority (ESMA) estimated in July 2025 that MEV extraction on Ethereum runs at approximately $180 million per month. Solana adds another $45 million per month through Jito-based auction infrastructure. Post-Merge cumulative MEV on Ethereum has exceeded $1 billion.

Roughly 90% of Ethereum blocks are now built through MEV-Boost, which separates the roles of block builders and proposers under proposer-builder separation. This architecture formalises MEV extraction rather than eliminating it. Specialised builders compete to construct the most profitable blocks, and two to three dominant builders produce 80% to 95% of all MEV-Boost blocks.

Competition among searchers has compressed per-unit profitability over time. The average profit per sandwich attack has fallen to approximately $3, and total monthly MEV profit on Ethereum declined from $10 million in late 2024 to $2.5 million by October 2025. The dark forest has not become less dangerous, but it has become more efficient.

Defenses Against the Dark Forest

MEV extraction has grown, and so have the tools to mitigate it. Defences generally work by hiding transaction contents, redistributing extracted value back to users, or bypassing the public mempool entirely.

Private Transaction Submission

Flashbots Protect is an RPC endpoint that routes transactions through a private channel instead of broadcasting them to the public mempool. Bots cannot see or front-run transactions they never observe. As of October 2024, Flashbots Protect had served 2.1 million unique Ethereum accounts and shielded $43 billion in DEX volume, and in December 2024, Flashbots migrated to BuilderNet, a decentralised block-building network jointly operated with Beaverbuild and Nethermind.

MEV-Aware DEX Routing

Some decentralised exchanges and aggregators are designed specifically to neutralise dark forest predation. Their designs counter the ways bots exploit visible transactions:

MEV-Blocker implements order flow auctions where searchers bid for the right to backrun user transactions. Users receive 90% of the extracted value.

Encrypted Mempools

Encrypted mempools represent a protocol-level defence where transactions are submitted as encrypted ciphertexts and only decrypted after block commitment. Shutter Network uses threshold encryption where decryption requires cooperation of at least a threshold number of independent "keypers", preventing any single party from reading transaction contents before ordering is finalised. Encrypted mempool proposals are advancing as Ethereum Improvement Proposals in 2026.

Layer 2 and Alternative Architectures

Layer 2 networks and alternative transaction architectures can structurally reduce dark forest risks. Systems that use centralised sequencers process transactions in the order received, eliminating the gas-auction dynamic that enables front-running. Bitcoin-native Layer 2 solutions like Spark avoid the dark forest problem altogether because their transaction models do not expose pending state to a public mempool the way Ethereum does.

The Dark Forest Across Chains

The dark forest metaphor originated on Ethereum. MEV extraction exists wherever transactions are publicly visible before finalisation:

Why It Matters

The dark forest represents a fundamental challenge for blockchain usability because users lose value on every transaction that interacts with a public mempool. Sandwich attacks function as an invisible tax on DEX traders, and front-running discourages participation in DeFi protocols. The concentration of MEV extraction among a small number of sophisticated builders also raises censorship resistance concerns.

The dark forest affects anyone building or using decentralised applications. Your choice of MEV-aware infrastructure directly determines how much value you retain versus how much bots extract. Options include private RPCs, MEV-protected DEX routing, or architectures that avoid public mempools entirely.

Risks and Considerations

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms