arXiv:2609.09668cs.CRSep 2026

Manuscript Offprint

arXiv:2609.09668

Session Attestation for Unmodified TLS Services in Confidential Virtual Machines

Qi Gu, Sheng Ma

Abstract

Confidential virtual machines simplify the migration of existing services into trusted execution environments, yet attesting their network connections often requires changing applications, TLS implementations, or certificates. We present SessionLatch, which provides session attestation while preserving all three. The key insight is that a trusted observation of the server's locally generated ephemeral public key, combined with standard TLS key confirmation, establishes the TEE endpoint guarantee without accessing TLS secrets. This moves attestation integration to the operating system: a temporary latch holds client encrypted records while evidence exchange overlaps the application TLS handshake, then removes itself after verification. The resulting connection retains enterprise service authentication and the native TLS data path, with no additional payload encryption. Mutual attestation uses the same construction and overlaps evidence generation at both endpoints. We implement Linux and Windows integration and evaluate real Hygon CSV attestation. SessionLatch reduces short-upload mean latency by 63.1%/23.0% relative to TNG in interleaved Linux/Windows experiments. These results show that session attestation can strengthen existing confidential services without making a permanent proxy part of their data path.

1 Introduction

Confidential computing is increasingly moving toward confidential virtual machines (CVMs), driven by the ability to migrate entire software stacks with limited application changes [6, 18]. Across major architectures, Arm CCA introduces Realm-based isolation alongside TrustZone, Intel TDX complements SGX's application enclaves with VM-level protection, and AMD SEV-SNP and Hygon CSV protect complete virtual machines [1, 6, 7, 15]. CVMs include the guest operating system, applications, and databases within the protected boundary while excluding the host administrator [3]. This deployment advantage does not automatically extend to remote access. A client must still establish that its connection reaches an approved CVM, while retaining the service's existing application, TLS implementation, domain name, and enterprise certificate.

This requirement combines two distinct forms of authentication. TLS authenticates a service identity and protects transport using session keys; remote attestation provides evidence about the execution environment [2, 16]. Checking both independently is insufficient. As Id-Crisis shows, an environment that satisfies an attestation policy may belong to a different service or administrative domain [18]. Conversely, preserving the enterprise certificate does not establish that the current connection terminates inside a TEE. Certificate private keys may also reside in backup or deployment systems. An insider who obtains such a key can terminate TLS outside the CVM and relay an attestation request to a legitimate instance [23]. The certificate and evidence both verify, yet application data is decrypted by the insider.

Attested TLS must therefore bind service identity, execution evidence, and the current key exchange to the same endpoint. Existing designs place this binding before, within, or after the TLS handshake [17, 18]. Evidence created before the handshake cannot directly commit to its yet-to-be-generated ephemeral keys. Integration within the handshake can establish an early binding, but commonly requires TLS extensions or internal interfaces. Integration after the handshake can use channel-derived material, but requires the application or an intermediary to withhold sensitive data until attestation completes, and can add a serial exchange. A practical gap remains: how can existing TLS services obtain a session-specific TEE endpoint guarantee without modifying their software or retaining an attestation proxy on the data path?

SessionLatch builds on a simple observation: the public handshake already exposes enough material to establish this guarantee. A trusted observer inside the CVM identifies an ephemeral server public key generated by the local TLS endpoint. Attestation authenticates this origin, and standard TLS Finished verification confirms participation in the corresponding key exchange. Together, these checks establish the relevant endpoint property without directly attesting to the ECDHE shared secret. Because the public key appears in ServerHello, the binding is available early and can be observed outside the TLS library.

The remaining challenge is enforcement. SessionLatch installs a temporary OS-level latch on the connection. Hello messages and the server's handshake flight proceed normally; evidence travels over a separate control connection while the application TLS stack continues processing the handshake. The latch holds the client's subsequent encrypted records, including Finished and application data. When evidence verification succeeds, it releases the held records and removes itself from that flow. Subsequent traffic follows the original kernel and TLS paths, without an additional layer of application encryption. For communication between CVMs, the client can start generating its own evidence as soon as ClientHello is available, allowing the two attestation directions to overlap.

This paper makes four contributions:

  1. We prove that, for server-endpoint assurance, binding the TEE attestation report to the observable ephemeral ECDHE public key and combining it with standard TLS Finished verification provides security guarantees comparable to directly binding the report to the ECDHE shared secret. This yields a session-level remote attestation mechanism that relies only on information observable from the on-path TLS handshake.

  2. We design transient OS enforcement that preserves applications, TLS libraries, enterprise certificates, and the application protocol. We implement Linux and Windows client latches, a Linux CSV attestation server, and mutual attestation between Linux CVMs.

  3. We evaluate real CSV attestation on Linux and Windows. SessionLatch reduces mean latency for 1 KiB uploads by 63.1% against the Linux TNG reference and 23.0% in interleaved Windows comparisons. Large transfers approach native TLS performance, while transient packet handling keeps user-space component costs low.

  4. We will release the SessionLatch source code before the formal submission to support independent inspection and reuse.