Cross-TEE mutual attestation achieved via formally verified Hema protocol
The Hema protocol enables secure mutual attestation between trusted applications on different TEE types
Security & privacy arXiv 1 Jul 2026 Method Theory
Published as “Know Thy Neighbor: Cross-TEE Mutual Attestation”
Why it matters
Cross-TEE mutual attestation can be deployed with a smaller trusted code base and stronger security guarantees, facilitating secure modular and distributed cloud applications.
Summary
The Hema protocol enables efficient cross-TEE mutual attestation and is formally verified to provide secrecy and all agreement properties, unlike a simplified version that omits identity data and is vulnerable to a man-in-the-middle attack. The evidence consists of Tamarin proofs showing secrecy and aliveness, weak, non-injective and injective agreement for the full protocol, while a variant without identity exchange fails agreement. The paper does not present empirical performance numbers, so the claim rests on formal verification.
What they found 4
- Hema enables mutual attestation across same or different TEE types
“We proposed an architecture and protocol to mutually attest TA instances executing on the same or on different platforms, and on the same or on different TEE types, which is crucial for building cross-TEE distributed systems.”
- The protocol is formally verified using Tamarin
“Our protocol is formally verified using the Tamarin prover.”
- Formal proofs show secrecy holds for all variants
“Secrecy v v v v v v”
- Agreement properties fail for a variant that omits identities
“Aliveness v v f f v v”
Caveats 3
- A simplified version of Hema that does not include the initiator and responder identities in the hash fails aliveness and agreement properties, demonstrating a man-in-the-middle vulnerability.
- Denial of service, rollback [13], [14], and side-channel [15]-[18] attacks are out of scope.
- The model assumes the correctness of the underlying RA protocol.
What’s new here 4
- Provides a single attestation stack for both same-type and cross-type TEEs, reducing TCB and implementation complexity.
- Formally verifies secrecy and authentication properties with the Tamarin prover.
- Supports mutual attestation without requiring each TEE to implement the other's remote-attestation stack.
- Demonstrates that omitting identities from the hash leads to a MitM vulnerability, highlighting the importance of the design.