Skip to main content
QUICK 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 Science被引用 5
一句话总结

本文提供了Avalanche共识协议的首个形式化规格说明与安全分析,揭示了一个关键的活性漏洞:攻击者可通过投票依赖性攻击任意延迟交易。论文提出Glacier协议,通过打破这些依赖关系恢复活性,同时保持安全性,并在原始Avalanche设计的基础上提升了延迟与吞吐量性能。

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.

研究动机与目标

  • 提供Avalanche共识协议的完整、形式化伪代码规格说明,填补原始白皮书中遗漏或描述模糊的空白。
  • 形式化验证Avalanche是否满足通用广播的关键属性,包括完整性、偏序性及外部有效性。
  • 识别并分析Avalanche中因诚实参与方投票行为中隐藏依赖关系而引发的关键活性漏洞。
  • 提出并形式化验证Glacier协议,该协议通过限制采样依赖关系消除该漏洞。
  • 证明Glacier在延迟与吞吐量等性能指标上与原始Avalanche相比保持或提升。

提出的方法

  • 使用详尽的伪代码形式化Avalanche协议,以捕捉所有操作细节,包括此前未记录的行为。
  • 将协议建模为具有交易偏序关系的通用广播原原子,聚焦于安全性和活性属性。
  • 通过分析投票依赖链识别活性缺陷:当后代交易失败时,可能间接重置其祖先的接受计数器,从而通过策略性查询失败实现拒绝服务攻击。
  • 提出Glacier作为协议修改方案,通过解耦投票接受与后代查询,确保计数器不会因无关失败而被重置。
  • 通过归约至Snowball共识及形式化引理,证明Glacier满足完整性、偏序性、外部有效性、一致性与正确性。
  • 通过分析表达式比较Avalanche与Glacier的性能特征,显示Glacier实现更低或相等的预期接受延迟。

实验结果

研究问题

  • RQ1Avalanche共识协议的完整且精确的操作规则是什么,包括原始白皮书中未说明的行为?
  • RQ2Avalanche在多大程度上满足通用广播协议的形式化属性,特别是关于安全性和活性?
  • RQ3Avalanche投票机制中存在何种具体漏洞,使得攻击者能够无限期延迟交易接受?
  • RQ4如何修改协议以在不牺牲性能或安全性的情况下消除此活性漏洞?
  • RQ5所提出的修改方案Glacier是否保持或改善了原始Avalanche协议的低延迟与高吞吐量特性?

主要发现

  • 原始Avalanche协议中存在一个漏洞:单个恶意参与方可通过利用祖先与后代交易之间投票的依赖关系,延迟目标交易。
  • 该攻击成功的原因在于:对后代交易的查询失败,可重置其祖先的接受计数器,即使祖先自身的查询成功。
  • 原始Avalanche协议的计数器重置机制具有可利用性:仅需一个具备网络拓扑洞察力的恶意参与方,即可触发重复重置,导致接受过程无限延迟。
  • 所提出的Glacier协议通过解耦投票接受与后代查询,防止此类问题,确保计数器不会因无关失败而被重置。
  • Glacier保持或改善了性能:其接受计数器始终大于或等于原始Avalanche,从而实现更低或相等的延迟,以及至少相等的吞吐量。
  • 形式化证明表明,在控制O(√n)个参与方的敌手模型下,Glacier满足通用广播的所有属性,包括完整性、偏序性、外部有效性、一致性和正确性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。