Skip to main content
QUICK REVIEW

[Paper Review] Blockchain and Trusted Computing: Problems, Pitfalls, and a Solution for Hyperledger Fabric

Yandamuri, Sravya, Abraham, Ittai|arXiv (Cornell University)|May 22, 2018
Security and Verification in ComputingComputer Science34 references97 citations
TL;DR

This paper proposes a secure architecture for executing smart contracts within Intel SGX enclaves on Hyperledger Fabric, addressing rollback attacks and state continuity issues inherent in non-final consensus blockchains. By isolating each application in a dedicated enclave and ensuring enclave state reflects only final blockchain blocks, the solution achieves 80–90% of native performance with a minimal trusted computing base, enabling strong privacy for enterprise blockchain workloads.

ABSTRACT

A smart contract on a blockchain cannot keep a secret because its data is replicated on all nodes in a network. To remedy this problem, it has been suggested to combine blockchains with trusted execution environments (TEEs), such as Intel SGX, for executing applications that demand privacy. Untrusted blockchain nodes cannot get access to the data and computations inside the TEE. This paper first explores some pitfalls that arise from the combination of TEEs with blockchains. Since TEEs are, in principle, stateless they are susceptible to rollback attacks, which should be prevented to maintain privacy for the application. However, in blockchains with non-final consensus protocols, such as the proof-of-work in Ethereum and others, the contract execution must handle rollbacks by design. This implies that TEEs for securing blockchain execution cannot be directly used for such blockchains; this approach works only when the consensus decisions are final. Second, this work introduces an architecture and a prototype for smart-contract execution within Intel SGX technology for Hyperledger Fabric, a prominent platform for enterprise blockchain applications. Our system resolves difficulties posed by the execute-order-validate architecture of Fabric and prevents rollback attacks on TEE-based execution as far as possible. For increasing security, our design encapsulates each application on the blockchain within its own enclave that shields it from the host system. An evaluation shows that the overhead moving execution into SGX is within 10%-20% for a sealed-bid auction application.

Motivation & Objective

  • To address the critical problem of rollback attacks in TEE-based blockchain execution, especially in systems with non-final consensus.
  • To ensure state continuity and confidentiality in smart contracts running inside Intel SGX enclaves on Hyperledger Fabric.
  • To minimize the trusted computing base (TCB) by isolating each application in its own enclave, reducing attack surface.
  • To enable practical, privacy-preserving smart contract execution on enterprise blockchains with final consensus.
  • To evaluate the performance overhead of the proposed solution on a real-world sealed-bid auction use case.

Proposed method

  • Designing a prototype that executes smart contracts inside Intel SGX enclaves on Hyperledger Fabric, ensuring each application runs in a separate, isolated enclave.
  • Using the final, committed state of the blockchain as input to the enclave to prevent rollback attacks, thereby maintaining state continuity.
  • Integrating the enclave execution with Fabric’s execute-order-validate architecture by ensuring transaction outcomes are only processed after consensus finality.
  • Minimizing the TCB by including only essential code in each enclave, excluding the full blockchain node logic.
  • Implementing a secure communication channel between the blockchain peer and the enclave for state updates and cryptographic operations.
  • Evaluating the prototype using a sealed-bid auction workloads to measure performance overhead and security guarantees.

Experimental results

Research questions

  • RQ1Can trusted execution environments like Intel SGX be securely integrated with blockchain platforms that use non-final consensus protocols?
  • RQ2How can rollback attacks be prevented in TEE-based smart contract execution when the underlying blockchain may fork?
  • RQ3What architectural patterns minimize the trusted computing base while preserving privacy and correctness in blockchain execution?
  • RQ4To what extent does executing smart contracts in SGX enclaves impact performance on enterprise blockchain platforms like Hyperledger Fabric?
  • RQ5Can application-level isolation in SGX enclaves provide strong confidentiality without requiring full blockchain node execution inside the TEE?

Key findings

  • The proposed architecture successfully prevents rollback attacks by ensuring enclave state is always synchronized with the final, committed blockchain state.
  • The performance overhead of executing smart contracts inside SGX enclaves is within 10%–20% compared to unprotected execution, as measured on a sealed-bid auction application.
  • Isolating each application in its own enclave significantly reduces the trusted computing base, enhancing security and reducing attack surface.
  • The solution is compatible with Hyperledger Fabric’s execute-order-validate model by deferring enclave execution until consensus finality is achieved.
  • The prototype demonstrates that strong privacy guarantees can be achieved with acceptable performance overhead, making TEE-based execution viable for enterprise blockchain use cases.
  • The approach is not directly applicable to public blockchains like Ethereum or Bitcoin due to their non-final consensus, which inherently undermines state continuity in TEEs.

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.