Lune

S&P2023Top-tier venue

Tyr: Finding Consensus Failure Bugs in Blockchain System with Behaviour Divergent Model

Yuanliang Chen, Fuchen Ma, Yuanhang Zhou, Yu Jiang, Ting Chen, Jia-Guang Sun

Abstract

Blockchain is a decentralized distributed system on which a large number of financial applications have been deployed. The consensus process in it plays an important role, which guarantees that legal transactions on the chain can be executed and recorded fairly and consistently. However, because of Consensus Failure Bugs (CFBs), many blockchain systems do not provide even this basic guarantee. The validity and consistency of blockchain systems rely on the soundness of complex consensus logic implementation. Any bugs which cause the blockchain consensus failure can be crucial.In this work, we introduce Tyr, an open-source tool for detecting CFBs in blockchain systems with a large number of abnormal divergent consensus behaviors. First, we design four oracle detectors to monitor the behaviors of nodes and analyze the violation of consensus properties. To trigger these oracles effectively, Tyr harnesses a behavior divergent model to constantly generate consensus messages and make nodes behave as differently as possible. We implemented and evaluated Tyr on six widely used commercial blockchain consensus systems, including IBM Fabric, WeBank FISCO-BCOS, ConsenSys Quorum, Facebook Diem, Go-Ethereum, and EOS. Compared with the state-of-the-art tools Peach, Fluffy, and Twins, Tyr covers 27.3%, 228.2%, and 297.1% more branches, respectively. Furthermore, Tyr has detected 20 serious previously unknown vulnerabilities, all of which have been repaired by the corresponding maintainers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • fAmulet: Finding Finalization Failure Bugs in Polygon zkRollup cites Nurgle: Exacerbating Resource Consumption in Blockchain State Storage via MPT Manipulation
  • fAmulet: Finding Finalization Failure Bugs in Polygon zkRollup cites Making Smart Contracts Smarter
  • fAmulet: Finding Finalization Failure Bugs in Polygon zkRollup cites Phoenix: Detect and Locate Resilience Issues in Blockchain via Context-Sensitive Chaos
  • fAmulet: Finding Finalization Failure Bugs in Polygon zkRollup cites Securify: Practical Security Analysis of Smart Contracts
  • Chronos: Finding Timeout Bugs in Practical Distributed Systems by Deep-Priority Fuzzing with Transient Delay cites Phoenix: Detect and Locate Resilience Issues in Blockchain via Context-Sensitive Chaos
  • Empirical evaluation of smart contract testing: what is the best choice? cites Making Smart Contracts Smarter
  • Empirical evaluation of smart contract testing: what is the best choice? cites Securify: Practical Security Analysis of Smart Contracts
  • Phoenix: Detect and Locate Resilience Issues in Blockchain via Context-Sensitive Chaos cites Empirical evaluation of smart contract testing: what is the best choice?
  • Phoenix: Detect and Locate Resilience Issues in Blockchain via Context-Sensitive Chaos cites Making Smart Contracts Smarter
  • Phoenix: Detect and Locate Resilience Issues in Blockchain via Context-Sensitive Chaos cites Securify: Practical Security Analysis of Smart Contracts
  • Securify: Practical Security Analysis of Smart Contracts cites Making Smart Contracts Smarter
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Nurgle: Exacerbating Resource Consumption in Blockchain State Storage via MPT ManipulationZheyuan He, Zihao Li, Ao Qiao, Xiapu Luo et al.S&P 2024 · 21 citations
  2. Chronos: Finding Timeout Bugs in Practical Distributed Systems by Deep-Priority Fuzzing with Transient DelayYuanliang Chen, Fuchen Ma, Yuanhang Zhou, Ming Gu et al.S&P 2024 · 12 citations
  3. Phoenix: Detect and Locate Resilience Issues in Blockchain via Context-Sensitive ChaosFuchen Ma, Yuanliang Chen, Yuanhang Zhou, Jingxuan Sun et al.CCS 2023 · 10 citations
  4. Understanding Ethereum Mempool Security under Asymmetric DoS by Symbolized Stateful FuzzingYibo Wang, Yuzhe Tang, Kai Li, Wanning Ding et al.USENIX Security 2024 · 9 citations
  5. fAmulet: Finding Finalization Failure Bugs in Polygon zkRollupZihao Li, Xinghao Peng, Zheyuan He, Xiapu Luo et al.CCS 2024 · 5 citations

Builds on8

  1. Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
  2. Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
  3. Elle: Inferring Isolation Anomalies from Experimental ObservationsPeter Alvaro, Kyle KingsburyVLDB 2021 · 88 citations
  4. Empirical evaluation of smart contract testing: what is the best choice?Meng Ren, Zijing Yin, Fuchen Ma, Zhenyang Xu et al.ISSTA 2021 · 83 citations
  5. ICS Protocol Fuzzing: Coverage Guided Packet Crack and GenerationZhengxiong Luo, Feilong Zuo, Yuheng Shen, Xun Jiao et al.DAC 2020 · 72 citations

Related papers

  1. LOKI: State-Aware Fuzzing Framework for the Implementation of Blockchain Consensus ProtocolsFuchen Ma, Yuanliang Chen, Meng Ren, Yuanhang Zhou et al.NDSS 2023
  2. Fuzzing Enterprise-Grade Blockchain Systems: Industrial Practice and SolutionsFuchen Ma, Yuanliang Chen, Zhen Yan, Yuanhang Zhou et al.EuroSys 2026
  3. Fork State-Aware Differential Fuzzing for Blockchain Consensus ImplementationsWonhoi Kim, Hocheol Nam, Muoi Tran, Amin Jalilov et al.ICSE 2025 · 1 citation
  4. Auspex: Unveiling Inconsistency Bugs of Transaction Fee Mechanism in BlockchainZheyuan He, Zihao Li, Jiahao Luo, Feng Luo et al.USENIX Security 2025
  5. Agora: Toward Autonomous Bug Detection in Production-Level Consensus Protocols with LLM AgentsXiang Liu, Sa Song, Zhaowei Zhang, Huiying Lan et al.ICML 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines