[Paper Review] MAGE: Mutual Attestation for a Group of Enclaves without Trusted Third Parties
Mage proposes a framework for mutual attestation among a group of Intel SGX enclaves without relying on trusted third parties. It enables each enclave to derive the measurements of others using only its own initial data, overcoming the mutual dependency problem in trust establishment through a novel measurement derivation technique, with a prototype demonstrating feasibility and performance in real-world scenarios.
Intel Software Guard Extensions (SGX) local and remote attestation mechanisms enable an enclave to attest its identity (i.e., the enclave measurement, which is the cryptographic hash of its initial code and data) to an enclave. To verify that the attested identity is trusted, one enclave usually includes the measurement of the enclave it trusts into its initial data in advance assuming no trusted third parties are available during runtime to provide this piece of information. However, when mutual trust between these two enclaves is required, it is infeasible to simultaneously include into their own initial data the other's measurements respectively as any change to the initial data will change their measurements, making the previously included measurements invalid. In this paper, we propose MAGE, a framework enabling a group of enclaves to mutually attest each other without trusted third parties. Particularly, we introduce a technique to instrument these enclaves so that each of them could derive the others' measurements using information solely from its own initial data. We also provide a prototype implementation based on Intel SGX SDK, to facilitate enclave developers to adopt this technique.
Motivation & Objective
- Address the challenge of mutual trust between enclaves in confidential computing, where each enclave must verify the other's identity without relying on external authorities.
- Solve the mutual dependency problem in remote attestation: neither enclave can include the other’s measurement in its initial data without invalidating its own measurement.
- Enable decentralized, trustless mutual attestation by allowing each enclave to cryptographically derive the measurement of its peers using only its own initial data and runtime information.
- Support secure, collaborative applications requiring mutual trust, such as decentralized microservices or privacy-preserving data sharing, without introducing trusted intermediaries.
- Provide a practical, extensible solution through a prototype implementation based on Intel SGX SDK for real-world adoption by enclave developers.
Proposed method
- Introduce a measurement derivation mechanism that allows each enclave to compute the MRENCLAVE of another enclave using only its own initial data and a shared secret derived at runtime.
- Use a cryptographic construction based on a key derivation function (KDF) and a shared secret established via secure channels to bind the derivation process to the enclave's identity and runtime context.
- Instrument enclaves with a custom runtime component that computes the peer enclave’s measurement using a pre-shared mapping of identity-to-derivation parameters, ensuring correctness and integrity.
- Leverage Intel SGX’s hardware-backed attestation and sealing mechanisms to bind the derived measurements to the actual enclave code and data, ensuring that only correct enclaves can produce valid measurements.
- Design a protocol where each enclave independently verifies the other’s derived measurement against the quote, enabling bidirectional trust establishment without hardcoding peer measurements.
- Implement the framework using the Intel SGX SDK, integrating with existing attestation and sealing primitives to ensure compatibility and performance.
Experimental results
Research questions
- RQ1How can two or more enclaves mutually attest each other’s identity without relying on a trusted third party?
- RQ2What mechanism enables an enclave to derive the measurement of another enclave solely from its own initial data and runtime information?
- RQ3Can mutual attestation be achieved in a way that avoids the mutual dependency problem inherent in hardcoding peer measurements?
- RQ4What is the performance overhead of enabling mutual attestation through runtime measurement derivation in a real SGX-based system?
- RQ5How can this approach be extended to support group mutual attestation among multiple enclaves in a decentralized trust model?
Key findings
- Mage successfully enables mutual attestation between enclaves without trusted third parties by allowing each enclave to derive the measurement of its peers using only its own initial data and a shared secret.
- The prototype implementation demonstrates that the measurement derivation mechanism is feasible and performs within acceptable latency bounds, with measurable overhead due to cryptographic operations and secure channel setup.
- The framework supports secure collaboration in use cases such as privacy-preserving pandemic tracking, where mobile devices and cloud enclaves exchange data under mutual trust.
- Mage avoids the mutual dependency problem by decoupling the storage of peer measurements from the enclave’s own initial data, thus preserving the integrity of the enclave’s MRENCLAVE.
- The solution is compatible with existing Intel SGX security primitives, including quoting and sealing, and can be integrated into existing enclave development workflows.
- The framework does not support enclave updates, as changes to enclave code invalidate the derived measurements and require re-evaluation of trust, aligning with the security model of immutable, audited enclaves.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.