Front-running Attack in Sharded Blockchains and Fair Cross-shard Consensus
Jianting Zhang, Wuhui Chen, Sifu Luo, Tiantian Gong, Zicong Hong, Aniket Kate
摘要
Sharding is a prominent technique for scaling blockchains. By dividing the network into smaller components known as shards, a sharded blockchain can process transactions in parallel without introducing inconsistencies through the coordination of intra-shard and cross-shard consensus protocols. However, we observe a critical security issue with sharded systems: transaction ordering manipulations can occur when coordinating intra-shard and cross-shard consensus protocols, leaving the system vulnerable to attack. Specifically, we identify a novel security issue known as finalization fairness, which can be exploited through a front-running attack. This attack allows an attacker to manipulate the execution order of transactions, even if the victim's transaction has already been processed and added to the blockchain by a fair intra-shard consensus. To address the issue, we offer Haechi, a novel cross-shard protocol that is immune to front-running attacks. Haechi introduces an ordering phase between transaction processing and execution, ensuring that the execution order of transactions is the same as the processing order and achieving finalization fairness. To accommodate different consensus speeds among shards, Haechi incorporates a finalization fairness algorithm to achieve a globally fair order with minimal performance loss. By providing a global order, Haechi ensures strong consistency among shards, enabling better parallelism in handling conflicting transactions across shards. These features make Haechi a promising solution for supporting popular smart contracts in the real world. To evaluate Haechi's performance, we implemented the protocol using Tendermint and conducted extensive experiments on a geo-distributed AWS environment. Our results demonstrate that Haechi achieves finalization fairness with little performance sacrifice compared to existing cross-shard consensus protocols.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Optimal Sharding for Scalable Blockchains with Deconstructed SMR 引用了 A Secure Sharding Protocol For Open Blockchains
- Optimal Sharding for Scalable Blockchains with Deconstructed SMR 引用了 OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
- Optimal Sharding for Scalable Blockchains with Deconstructed SMR 引用了 Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead
- Optimal Sharding for Scalable Blockchains with Deconstructed SMR 引用了 RapidChain: Scaling Blockchain via Full Sharding
- OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding 引用了 A Secure Sharding Protocol For Open Blockchains
- Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead 引用了 A Secure Sharding Protocol For Open Blockchains
- Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead 引用了 OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
- Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead 引用了 RapidChain: Scaling Blockchain via Full Sharding
- Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding 引用了 A Secure Sharding Protocol For Open Blockchains
- Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding 引用了 OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
- Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding 引用了 RapidChain: Scaling Blockchain via Full Sharding
- Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead 引用了 A Secure Sharding Protocol For Open Blockchains
- Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead 引用了 OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
- Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead 引用了 Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead
- Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead 引用了 Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding
- Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead 引用了 RapidChain: Scaling Blockchain via Full Sharding
- Quantifying Blockchain Extractable Value: How dark is the forest? 引用了 Flash Boys 2.0: Frontrunning in Decentralized Exchanges, Miner Extractable Value, and Consensus Instability
引用它的顶会 Paper5
- Optimal Sharding for Scalable Blockchains with Deconstructed SMRJianting Zhang, Zhongtang Luo, Raghavendra Ramesh, Aniket KateVLDB 2025 · 7 次引用
- Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized OverheadYizhong Liu, Andi Liu, Yuan Lu, Zhuocheng Pan 等NDSS 2025
- Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered ShardingChunjiang Che, Songze Li, Xuechao WangNDSS 2025
- Does Finality Gadget Finalize Your Block? A Case Study of Binance ConsensusRujia Li, Jingyuan Ding, Qin Wang, Keting Jia 等USENIX Security 2025
- Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard OverheadYizhong Liu, Boyu Zhao, Yuxuan Hu, Haojun Tan 等USENIX Security 2026
它引用的 Paper21
- A Secure Sharding Protocol For Open BlockchainsLoi Luu, Viswesh Narayanan, Chaodong Zheng, Kunal Baweja 等CCS 2016 · 1,392 次引用
- OmniLedger: A Secure, Scale-Out, Decentralized Ledger via ShardingEleftherios Kokoris-Kogias, Philipp Jovanovic, Linus Gasser, Nicolas Gailly 等S&P 2018 · 1,145 次引用
- RapidChain: Scaling Blockchain via Full ShardingMahdi Zamani, Mahnush Movahedi, Mariana RaykovaCCS 2018 · 1,084 次引用
- Flash Boys 2.0: Frontrunning in Decentralized Exchanges, Miner Extractable Value, and Consensus InstabilityPhilip Daian, Steven Goldfeder, Tyler Kell, Yunqi Li 等S&P 2020 · 607 次引用
- Quantifying Blockchain Extractable Value: How dark is the forest?Kaihua Qin, Liyi Zhou, Arthur GervaisS&P 2022 · 336 次引用
相关 Paper
- Separation is Good: A Faster Order-Fairness Byzantine ConsensusKe Mu, Bo Yin, Alia Asheralieva, Xuetao WeiNDSS 2024
- LightCross: Sharding with Lightweight Cross-Shard Execution for Smart ContractsXiaodong Qi, Yi LiINFOCOM 2024 · 22 次引用
- CoChain: High Concurrency Blockchain Sharding via Consensus on ConsensusMingzhe Li, You Lin, Jin Zhang, Wei WangINFOCOM 2023 · 42 次引用
- Sharon: Secure and Efficient Cross-shard Transaction Processing via Shard RotationShan Jiang, Jiannong Cao, Cheung Leong Tung, Yuqin Wang 等INFOCOM 2024 · 22 次引用
- Prophet: Conflict-Free Sharding Blockchain via Byzantine-Tolerant Deterministic OrderingZicong Hong, Song Guo, Enyuan Zhou, Jianting Zhang 等INFOCOM 2023 · 40 次引用
