arXiv:2609.11411cs.CRSep 2026

Manuscript Offprint

arXiv:2609.11411

"They don't care about this": A Systematic Study of TEE Build Reproducibility in the Wild

Annika Wilde, Marco Gutfleisch, Felix Reichmann, Anirban Chakraborty, Yuval Yarom, M. Angela Sasse, Ghassan Karame

Annika Wilde

Ruhr University Bochum

Bochum, Germany

annika.wilde@rub.de

Marco Gutfleisch

LMU Munich

Munich, Germany

marco.gutfleisch@ifi.lmu.de

Felix Reichmann

Ruhr University Bochum

Bochum, Germany

felix.reichmann@rub.de

Anirban Chakraborty

Max Planck Institute for

Security and Privacy

Bochum, Germany

anirban.chakraborty@mpi-

sp.org

Yuval Yarom

Ruhr University Bochum

Bochum, Germany

yuval.yarom@rub.de

M. Angela Sasse

Ruhr University Bochum

Bochum, Germany

martina.sasse@rub.de

Ghassan Karame

Ruhr University Bochum

Bochum, Germany

ghassan@karame.org

Abstract

Trusted Execution Environments (TEEs) have become a cornerstone of modern cloud computing, providing strong confidentiality and integrity guarantees for both code and data. A critical component of this trust model is remote attestation, which enables external entities to verify the authenticity and integrity of code executing within a TEE through cryptographic measurements. However, the effectiveness of remote attestation fundamentally depends on the verifier's ability to trace the reported measurement back to the original source code—a property that can only be guaranteed through reproducible builds.

In this paper, we investigate the reproducibility of TEE builds through a technical analysis of 115 TEE deployments. Our analysis spans popular TEEs such as Intel SGX, Intel TDX, and AMD SEV, and reveals that a striking 91% of those deployments were not reproducible, with 80% failing to provide both source code and a reference build, the two essential prerequisites for reproducibility. To explore the root causes, we contacted the maintainers of 50 SGX projects and managed to recruit 12 developers from industry and academia for interviews. Only one of our participants reported that reproducibility is a priority during development, effectively confirming our technical findings. Beyond technical barriers (e.g., timestamps included in the binary) that can be readily addressed, we identify broader ecosystem-level challenges, such as the lack of control over the build environment in projects involving multiple stakeholders. We argue that achieving reproducibility in TEEs requires a holistic development approach that extends beyond individual developers and calls for stronger commitments—rather than treating TEEs as a “security badge”.

1 Introduction

The rapid adoption of cloud computing has increased the demand for distributed and decentralized applications, where infrastructure resources—including hardware, platforms, and software—are owned and operated by different entities. This paradigm shift in the IT landscape has also intensified concerns about the confidentiality and integrity of sensitive data and computations performed on remote systems. Confidential computing has emerged as a promising approach to address these challenges and ensure data protection in the cloud. At its core, confidential computing relies on Trusted Execution Environments (TEEs), specialized hardware components within modern CPUs that create isolated regions of execution, often called enclaves or confidential virtual machines (CVMs). These environments safeguard both the data being processed and the integrity of the code performing the computation, offering strong assurances even when the surrounding system or cloud provider cannot be fully trusted.

To provide these security guarantees, TEEs minimize the Trusted Computing Base (TCB)—the set of components that must be trusted to remain secure—to contain only the CPU, the TEE firmware, and the code running inside the enclave. Users can verify the integrity of this TCB and the code running inside the enclave through remote attestation (details in Section 2.1). As such, they are expected to entrust their sensitive data to an enclave if and only if its attested measurement matches a known, trusted reference.

The TEE ecosystem has enabled a wide range of applications, including secure messaging platforms, such as Signal [49], privacy-preserving databases [12], distributed machine learning [37], and blockchain systems [47, 58], that leverage the ability to delegate computation to remote infrastructure while maintaining strong guarantees of data confidentiality and integrity. For example, consider a privacy-preserving machine learning (PPML) service [48] that processes anonymized medical data using open-source models hosted on a remote server. Multiple users, such as hospitals, diagnostic centers, insurance companies, etc., can securely contribute their datasets to train a shared model for tasks like early disease detection or patient health assessment. The security assurances provided by TEEs ensure that data is protected, even from strong adversaries, such as compromised or corrupt cloud providers.

Although remote attestation guarantees that the application running in the enclave is signed and authenticated by the developer, it does not provide any assurances about the trustworthiness of the application code itself. A key challenge in the adoption of TEEs is ensuring that the code executed inside the enclave is trustworthy and free from malicious backdoors or vulnerabilities that could leak sensitive data to the application developer. In essence, TEEs aim to shift trust from developers to code: rather than relying on developers' integrity, users can inspect and verify the enclave code to confirm that it meets required security and privacy guarantees.

Figure

Figure 1: Interplay between remote attestation and reproducible builds. Remote attestation links a service to the specific deployed binary (Step ①), while source code inspection (Step ②) and reproducible builds (Step ③) establish trust in the source code and connect it to the attested binary.

Returning to the example of the PPML service, before sharing private patient information, users could examine the open-source enclave code to ensure it does not intentionally or inadvertently expose sensitive data. Similarly, for other sensitive applications, such as cryptocurrencies, smart contracts, or electronic-voting systems, it is essential to validate the trustworthiness of the code before entrusting the service with sensitive information.

Once users are satisfied with the source code, they must be able to confirm that the deployed binary was genuinely built from the vetted source code. This requires linking the enclave's measurement to the source code, typically by recompiling the source locally and comparing the resulting binary to the attested one. 1^{1} For this comparison to succeed, the locally compiled binary must be bit-by-bit identical to the deployed version. Achieving such identity depends on reproducible builds—ensuring that identical inputs and environments always yield identical outputs. Figure 1 shows such a verification process, depicting the interplay between remote attestation and reproducible builds.

The example above highlights that the reproducibility of the build process is a critical component of TEE security. However, it remains unclear whether state-of-the-art and widely deployed TEEs actually support reproducible builds. Furthermore, there is limited understanding of whether TEE developers themselves recognize the importance of reproducibility in ensuring software integrity and trust.

In this paper, we present the first comprehensive study of reproducibility in TEE builds, combining two complementary approaches: ① an empirical analysis of 115 TEE projects drawn from [19, 29, 36], covering widely used TEEs including Intel SGX, Intel TDX, and AMD SEV-SNP; and ② a qualitative interview study with 12 SGX developers. Our findings paint a stark picture: reproducible builds remain the exception rather than the norm across today's TEE ecosystem. Of the 115 projects examined, 94% lack the documentation or tooling needed to reproduce enclave measurements, and 77% fail to provide both source code and a reference build—two fundamental prerequisites for reproducibility. Even when developers supplied additional information directly, 91% of the projects remained unreproducible. We further demonstrate that these challenges are not specific to any particular TEE technology, persisting across SGX, TDX, and SEV-SNP alike; however, we observe that reproducibility rates vary depending on the primary build system used, with notable differences observed across systems such as pre-built Docker images and dependency-pinning tools such as Nix [6] (cf. Section 3). These results are echoed in our interview study, where 10 of the 12 developers reported that reproducibility is neither prioritized nor considered during development (cf. Section 4).

We analyze the reasons behind this lack of reproducibility and identify several issues that prevent users from reproducing the enclave binary, as well as challenges faced by developers. To our surprise, many of the technical obstacles, such as embedded timestamps or non-deterministic file system ordering, seem to be well-known in the broader, traditional reproducible-builds community. Other reasons include an occasional inclusion of secret material within the enclaves, which cannot be reproduced by anyone outside the project. Beyond these technical factors, our qualitative study uncovers several ecosystem-level and procedural challenges. In particular, the traditional software development model process, where components are built in isolation, is incongruent with the requirements of TEE development. Since every component in the build pipeline can influence the enclave's final measurement, developers must adopt a broader, system-level view of the build process. This mismatch undermines one of the core security mechanisms of TEEs: if an enclave's measurement cannot be reproduced, remote attestation loses its true meaning (cf. Section 5). We conclude that ensuring build reproducibility in TEE applications requires more than simple technical solutions—it demands a rethinking of development practices. We therefore argue for a TEE-specific development process that explicitly prioritizes reproducibility and enables developers to regain control over their build environments to ultimately seize the value of cloud computing (cf. Section 6).

References (12)