NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Security Analysis of Filecoin's Expected Consensus in the Byzantine vs Honest Model

Xuechao Wang, Sarah Azouvi, Marko Vukolic

Abstract

Filecoin utilizes a unique consensus mechanism known as Expected Consensus (EC), which allows for multiple leaders per epoch to increase throughput via block-grouping structures called tipsets. While functional, the protocol lacked a formal security proof regarding its resilience against Byzantine actors. This paper provides the first rigorous analysis of EC, identifying a novel "n-split attack" that exploits the tipset mechanism. By extending Nakamoto-style proof techniques to Directed Acyclic Graph (DAG) structures, the authors establish a tight security threshold of approximately 20% adversarial storage for the network's current configuration and propose a "Consistent Broadcast" mitigation currently being implemented as FIP-0051.

Introduction

As a decentralized storage network, Filecoin relies on an underlying ordering protocol to maintain a consistent and live ledger. This protocol, Expected Consensus (EC), differs significantly from the single-leader-per-round model popularized by Bitcoin. In EC, multiple miners can be elected as leaders in a single round (epoch), and their blocks are aggregated into a "tipset." While this design enhances throughput, it introduces complex dependencies: the growth and stability of the chain become inextricably linked to the specific structure of the DAG formed by these tipsets.

Prior to this research, the exact conditions under which EC remains secure were not formally defined. This analysis seeks to determine the maximum power an adversary can wield before they can successfully fork the chain and to establish the mathematical conditions required for persistence and liveness.

Methodology: Modeling the DAG

The authors employ formal stochastic modeling to analyze the protocol's behavior. Leader election is modeled as a Poisson process where $m$ represents the expected number of blocks per round (currently $m=5$ in the Filecoin mainnet).

To prove security, the researchers extended the "Nakamoto block" proof technique. While originally designed for simple linear chains, the technique was adapted to account for the DAG structure of tipsets. A critical component of this analysis is the identification of "Nakamoto epochs"—rare rounds where exactly one honest miner produces a block and no other miners (honest or adversarial) do. These epochs serve as stability anchors, effectively pruning competing forks and finalizing the chain's history.

The n-split Attack

To find the "tight" breaking point of the protocol, the authors designed the n-split attack. This Byzantine strategy focuses on equivocation: an adversarial leader sends different blocks to different subsets of honest miners.

By doing so, the attacker forces honest miners to split their power across multiple divergent tipsets. This fragmentation dilutes the "weight" of the honest chain, allowing the adversary to build a private chain that can eventually overtake the fragmented honest branches. This attack demonstrates that the primary vulnerability in EC is not just the adversary's storage power, but their ability to manipulate the honest miners' view of the network state.

Key Insights and Security Thresholds

The analysis reveals a fundamental trade-off inherent in the tipset mechanism. While tipsets make it difficult for an adversary to outpace the network through raw block production (as honest miners produce many blocks per round), they increase susceptibility to splitting attacks.

The paper establishes a formal security condition. EC is secure as long as: $$\beta m < 1 - e^{-(1-\beta)m}$$ Where $\beta$ is the fraction of adversarial storage and $m$ is the expected blocks per round.

Numerical Breaking Points

The security threshold is highly sensitive to the value of $m$:

  • For $m=3$: The threshold is ~29.3%.
  • For $m=5$ (Current Filecoin state): The threshold is ~19.6%.
  • For $m=7$: The threshold drops to ~14.3%.

These results show that as the expected number of blocks per round increases, the network becomes more vulnerable to equivocation-based splitting attacks, lowering the percentage of storage an attacker needs to compromise the system.

Mitigation: Consistent Broadcast

To address the n-split vulnerability, the authors proposed a Consistent Broadcast mechanism. This mitigation introduces a "cutoff" time during which miners check for equivocating blocks. If a miner detects two different blocks from the same leader for the same epoch, both blocks are discarded. This nullifies the attacker's ability to fragment the honest miners' power. This proposal has been formalized as FIP-0051 and is a key step in hardening Filecoin's consensus layer.

Limitations and Future Directions

While this paper provides a foundational security proof, it operates under specific assumptions:

  1. Static Adversaries: The model assumes the adversary chooses which nodes to corrupt at the beginning of the process. Future work is required to analyze "adaptive" adversaries who can corrupt nodes dynamically.
  2. Synchronous Network: The proof assumes a lock-step synchronous environment. The impact of unpredictable network delays (asynchrony) on these thresholds remains an open question.
  3. Weight Function: The analysis assumes chain weight is determined by block count. Filecoin’s actual weight function involves total storage power, which may introduce additional nuances.
  4. Rationality: The study focuses on Byzantine (malicious) behavior rather than rational (profit-maximizing) behavior. An analysis of incentive compatibility is necessary to ensure miners do not have financial reasons to deviate from the protocol.

Summary updated

BibTeX
@inproceedings{wang2023security,
  author = {Xuechao Wang and Sarah Azouvi and Marko Vukolic},
  title = {{Security Analysis of Filecoin's Expected Consensus in the Byzantine vs Honest Model}},
  booktitle = {Aft},
  year = {2023},
  doi = {10.4230/lipics.aft.2023.5},
}
Figure