Skip to main content
QUICK REVIEW

[Paper Review] When Is Spring Coming? A Security Analysis of Avalanche Consensus

Ignacio Amores-Sesar, Christian Cachin|arXiv (Cornell University)|Oct 7, 2022
Blockchain Technology Applications and SecurityComputer Science5 citations
TL;DR

This paper provides the first formal specification and security analysis of the Avalanche consensus protocol, revealing a critical liveness vulnerability where an adversary can arbitrarily delay transactions via vote dependency attacks. It proposes Glacier, a modified protocol that breaks these dependencies to restore liveness while preserving safety and improving latency and throughput over the original Avalanche design.

ABSTRACT

Avalanche is a blockchain consensus protocol with exceptionally low latency and high throughput. This has swiftly established the corresponding token as a top-tier cryptocurrency. Avalanche achieves such remarkable metrics by substituting proof of work with a random sampling mechanism. The protocol also differs from Bitcoin, Ethereum, and many others by forming a directed acyclic graph (DAG) instead of a chain. It does not totally order all transactions, establishes a partial order among them, and accepts transactions in the DAG that satisfy specific properties. Such parallelism is widely regarded as a technique that increases the efficiency of consensus. Despite its success, Avalanche consensus lacks a complete abstract specification and a matching formal analysis. To address this drawback, this work provides first a detailed formulation of Avalanche through pseudocode. This includes features that are omitted from the original whitepaper or are only vaguely explained in the documentation. Second, the paper gives an analysis of the formal properties fulfilled by Avalanche in the sense of a generic broadcast protocol that only orders related transactions. Last but not least, the analysis reveals a vulnerability that affects the liveness of the protocol. A possible solution that addresses the problem is also proposed.

Motivation & Objective

  • To provide a complete, formal pseudocode specification of the Avalanche consensus protocol, filling gaps omitted or vaguely described in the original whitepaper.
  • To formally verify that Avalanche satisfies key properties of generic broadcast, including integrity, partial order, and external validity.
  • To identify and analyze a critical liveness vulnerability in Avalanche caused by hidden dependencies in honest parties' voting behavior.
  • To propose and formally verify Glacier, a modified protocol that eliminates the vulnerability by restricting sampling dependencies.
  • To demonstrate that Glacier maintains or improves performance metrics such as latency and throughput compared to original Avalanche.

Proposed method

  • Formalizing the Avalanche protocol using detailed pseudocode to capture all operational nuances, including previously undocumented behaviors.
  • Modeling the protocol as a generic broadcast primitive with partial ordering of transactions, focusing on safety and liveness properties.
  • Identifying the liveness flaw through analysis of vote dependency chains: when a descendant transaction fails, it can indirectly reset the acceptance counter of its ancestor, enabling denial-of-service via strategic query failure.
  • Proposing Glacier as a protocol modification that decouples vote acceptance from descendant queries, ensuring counters are not reset by unrelated failures.
  • Proving that Glacier satisfies integrity, partial order, external validity, agreement, and validity using reductions to Snowball consensus and formal lemmas.
  • Comparing performance characteristics of Avalanche and Glacier via analytical expressions for expected acceptance latency, showing Glacier achieves lower or equal latency.

Experimental results

Research questions

  • RQ1What are the complete and precise operational rules of the Avalanche consensus protocol, including behaviors not specified in the original whitepaper?
  • RQ2To what extent does Avalanche satisfy the formal properties of a generic broadcast protocol, particularly regarding safety and liveness?
  • RQ3What specific vulnerability in Avalanche's voting mechanism allows an adversary to delay transaction acceptance indefinitely?
  • RQ4How can the protocol be modified to eliminate this liveness vulnerability without sacrificing performance or safety?
  • RQ5Does the proposed modification, Glacier, preserve or improve the low-latency and high-throughput characteristics of the original Avalanche protocol?

Key findings

  • A vulnerability exists in the original Avalanche protocol where a single malicious party can delay targeted transactions by exploiting dependencies between votes on ancestor and descendant transactions.
  • The attack succeeds because a failed query on a descendant transaction can reset the acceptance counter of its ancestor, even if the ancestor’s own queries succeed.
  • The original Avalanche protocol’s counter reset mechanism is exploitable: a single malicious party with network topology insight can trigger repeated resets, delaying acceptance indefinitely.
  • The proposed Glacier protocol prevents this by decoupling vote acceptance from descendant queries, ensuring counters are not reset by unrelated failures.
  • Glacier maintains or improves performance: its acceptance counter is always greater than or equal to Avalanche’s, leading to lower or equal latency and at least equal throughput.
  • Formal proof shows that Glacier satisfies all properties of generic broadcast, including integrity, partial order, external validity, agreement, and validity, under an adversary controlling O(√n) parties.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.