Undetectable Selfish Mining

Maryam Bahrani, S. Matthew Weinberg

This paper, titled "Undetectable Selfish Mining" by Maryam Bahrani (a16z crypto) and S. Matthew Weinberg (Princeton University), challenges a long-standing assumption in blockchain security: that "selfish mining" attacks are too easy to spot to be a practical threat.

TL;DR

The authors introduce a new variant of the "selfish mining" attack that is mathematically indistinguishable from natural network latency. They prove that an attacker with as little as 38.2% of the total hashrate can secretly increase their Bitcoin rewards while appearing to be a perfectly honest miner suffering from a slightly laggy internet connection.

What Problem Does This Paper Address?

In the Bitcoin protocol, miners are supposed to broadcast new blocks immediately. In 2014, Eyal and Sirer famously showed that a "selfish miner" could earn more rewards by withholding blocks and creating a private chain, eventually orphaning the blocks of honest miners.

However, a major critique of this attack is its statistical detectability. Selfish mining creates a specific, "unnatural" pattern of orphaned blocks. If the community detects an attack, the market value of the cryptocurrency might crash, making the attacker’s extra coins worth less in USD. This paper asks: Can an attacker be selfish and profitable without being caught?

Methods

The authors develop a stylized model of network latency called the $\ell$-Nakamoto Consensus Game ($\ell$-NCG). In this model, even honest miners occasionally produce orphaned blocks because two miners might find a block at nearly the same time due to network delays.

The core of their approach is a Labeling Strategy. Instead of mining as aggressively as possible, the attacker carefully manages when they broadcast their withheld blocks. They aim to ensure that the pattern of "Pairs" (heights in the blockchain where two competing blocks were found) matches the statistical distribution of a world with only honest miners but higher network latency.

To prove this works, the authors:

  • Define "statistical undetectability" as a state where the "view" of the blockchain is identically distributed to an honest world.
  • Use Markov Chain analysis to calculate the exact rewards of this stealthy strategy.
  • Develop a "Short Selfish Mining" strategy as a lower bound to prove profitability.

Datasets

Not discussed in the paper. This is a theoretical and mathematical research paper. It relies on game-theoretic modeling and formal proofs rather than empirical training or real-world blockchain datasets.

Key Insights and Ideas

  • Mimicry as a Cloak: The most profound insight is that an attacker doesn't need to be perfectly efficient; they just need to be "honest-looking." By "wasting" some of their competitive lead to broadcast blocks that don't orphan others, they can maintain a statistical profile that looks like natural latency.
  • The Cost of Stealth: Being undetectable requires a higher hashrate than standard selfish mining. While standard selfish mining can be profitable at ~33% hashrate, the "undetectable" version requires ~38.2%.
  • The 50% Myth: For years, 50% was considered the "gold standard" for Bitcoin security. This paper reinforces that the true threshold for a "stealth" takeover is significantly lower, even when accounting for the risk of detection.

Key Results

  • Theorem 4 & 5: The authors prove the existence of a strategy that is both strictly profitable and provably undetectable.
  • The 38.2% Threshold: The strategy is strictly profitable for any attacker controlling $\ge 38.2\%$ of the total network hashrate. This holds true regardless of the "natural" orphan rate of the network.
  • Mathematical Identity: They demonstrate that the pattern of orphaned blocks produced by their strategy is statistically identical to a world with honest miners and increased latency.

Limitations and Future Work

  • Stylized Latency: The model assumes that orphaned blocks occur independently at each height. In reality, network latency can be "bursty" or correlated, which might provide more complex patterns for a sophisticated statistical test to find.
  • Timestamps and Metadata: The paper focuses on the shape of the blockchain (the graph of blocks). It does not account for timing-based detection, such as analyzing the exact millisecond a block propagates through the network. The authors note that while timestamps can be manipulated, they represent a different vector for detection.
  • Alternative Latency Models: The authors suggest that future work should explore more "rich" latency models from distributed systems to see if the 38.2% threshold holds up under more realistic conditions.

Summary updated

BibTeX
@inproceedings{bahrani2024undetectable,
  author = {Maryam Bahrani and S. Matthew Weinberg},
  title = {{Undetectable Selfish Mining}},
  booktitle = {EC},
  year = {2024},
  doi = {10.1145/3670865.3673485},
}
Figure