The Forking Way: When TEEs Meet Consensus
Annika Wilde, Tim Niklas Gruel, Claudio Soriente, Ghassan Karame
TL;DR
The paper systematically analyzes how TEEs are integrated with blockchains to counter forking attacks, evaluating 29 TEE-based blockchain proposals and identifying four broad anti-forking techniques. It reveals practical cloning and rollback vulnerabilities in production-ready platforms (Phala, The Secret Network, and Ten) and discusses trade-offs between application expressiveness, throughput, and security depending on the chosen mitigation strategy. By examining stateless enclaves, ephemeral identities, fixed client sets, and state serialization, the authors demonstrate that many designs overlook key attack vectors and advocate for mitigations such as ephemeral IDs and ledger-backed serialization, with case studies illustrating real-world exploits. The work emphasizes that architecture choices—especially the layer of finality, throughput constraints, and trust assumptions—greatly influence the effectiveness of anti-forking measures, and it contributes concrete countermeasures and responsible disclosure to improve the security of TEE-based confidential blockchains.
Abstract
An increasing number of distributed platforms combine Trusted Execution Environments (TEEs) with blockchains. Indeed, many hail the combination of TEEs and blockchains a good "marriage": TEEs bring confidential computing to the blockchain while the consensus layer could help defend TEEs from forking attacks. In this paper, we systemize how current blockchain solutions integrate TEEs and to what extent they are secure against forking attacks. To do so, we thoroughly analyze 29 proposals for TEE-based blockchains, ranging from academic proposals to production-ready platforms. We uncover a lack of consensus in the community on how to combine TEEs and blockchains. In particular, we identify four broad means to interconnect TEEs with consensus, analyze their limitations, and discuss possible remedies. Our analysis also reveals previously undocumented forking attacks on three production-ready TEE-based blockchains: Ten, Phala, and the Secret Network. We leverage our analysis to propose effective countermeasures against those vulnerabilities; we responsibly disclosed our findings to the developers of each affected platform.
