Skip to main content
QUICK REVIEW

[Paper Review] SvTPM: A Secure and Efficient vTPM in the Cloud

Juan Wang, Chengyang Fan|arXiv (Cornell University)|May 21, 2019
Security and Verification in ComputingComputer Science33 references8 citations
TL;DR

SvTPM proposes a software-based vTPM secured via Intel SGX, eliminating reliance on physical TPMs to achieve strong runtime isolation and high performance. It mitigates NVRAM replacement, rollback, trust establishment, and trusted clock challenges, achieving 2600× faster launch than hardware-protected vTPMs and sub-millisecond command latency.

ABSTRACT

Virtual Trusted Platform Modules (vTPMs) have been widely used in commercial cloud platforms (e.g. Google Cloud, VMware Cloud, and Microsoft Azure) to provide virtual root-of-trust for virtual machines. Unfortunately, current state-of-the-art vTPM implementations are suffering from confidential data leakage and high performance overhead. In this paper, we present SvTPM, a secure and efficient software-based vTPM implementation based on hardware-rooted Trusted Execution Environment (TEE), providing a whole life cycle protection of vTPMs in the cloud. SvTPM offers strong isolation protection, so that cloud tenants or even cloud administrators cannot get vTPM's private keys or any other sensitive data. In SvTPM, we identify and solve a couple of critical security challenges for vTPM protection with SGX, such as NVRAM replacement attack, rollback attacks, trust establishment, and a fine-grained trusted clock. We implement a prototype of SvTPM on both QEMU and KVM. Performance evaluation results show that SvTPM achieves orders of magnitude of performance gains comparing to the vTPMs protected with physical TPM. The launch time of SvTPM is 2600$ imes$ faster than vTPMs built upon hardware TPM. In the micro-benchmarks evaluation, we find that the command execution latency of SvTPM is smaller than or equal to the existing schemes.

Motivation & Objective

  • Address the lack of runtime security protection in existing vTPM solutions, which rely on physical TPMs or weak isolation mechanisms.
  • Overcome performance bottlenecks caused by low I/O throughput and limited resources of physical TPMs in virtualized cloud environments.
  • Enable strong isolation of vTPM components from cloud tenants and administrators using hardware-rooted trusted execution environments (SGX).
  • Solve critical security challenges unique to software-based vTPMs in SGX enclaves, including NVRAM replacement, rollback attacks, and trust establishment.
  • Design a fine-grained trusted clock mechanism to support TPM’s integrity and authorization policies in a software-only vTPM.

Proposed method

  • Deploy a software-based vTPM inside an Intel SGX enclave to provide hardware-rooted isolation, ensuring that private keys and sensitive data remain protected from the hypervisor and cloud administrators.
  • Implement a secure NVRAM file abstraction that is cryptographically bound to the SGX enclave, preventing unauthorized replacement by malicious hypervisors or cloud administrators.
  • Introduce a novel trust establishment protocol that binds the vTPM’s identity to the SGX platform using a remote attestation mechanism, replacing the need for a physical EK from a TPM chip.
  • Design a rollback protection mechanism based on monotonic counters and sealed state to prevent replay and downgrade attacks on vTPM state.
  • Implement a fine-grained trusted clock using SGX’s time-stamp counter and secure time synchronization to support TPM’s lockout and authorization policies.
  • Integrate the vTPM with KVM and QEMU virtualization platforms, supporting the full TPM 2.0 specification and multiple cryptographic algorithms.

Experimental results

Research questions

  • RQ1How can a software-based vTPM be securely isolated from the cloud environment and virtual machine monitors using only hardware-rooted trusted execution environments?
  • RQ2What mechanisms can prevent NVRAM replacement attacks when the vTPM’s persistent storage is stored in untrusted guest memory?
  • RQ3How can trust be established for a software-generated vTPM identity without relying on a physical TPM’s endorsement key?
  • RQ4What secure mechanisms can prevent rollback attacks on vTPM state and cryptographic values?
  • RQ5How can a fine-grained, trusted clock be implemented in a software vTPM to support TPM’s integrity and authorization policies?

Key findings

  • SvTPM achieves a 2600× faster launch time compared to vTPMs protected by physical TPMs, demonstrating significant performance improvement.
  • Command execution latency in SvTPM is smaller than or equal to existing schemes, indicating low overhead for cryptographic operations.
  • The prototype implementation supports both KVM and QEMU virtualization platforms, confirming compatibility with mainstream cloud virtualization stacks.
  • SvTPM successfully mitigates NVRAM replacement attacks by binding the NVRAM file to the SGX enclave through cryptographic sealing and attestation.
  • The system prevents rollback attacks using monotonic counters and state sealing, ensuring that vTPM state cannot be reverted to a previous, compromised version.
  • SvTPM establishes trust for the vTPM identity via remote attestation of the SGX enclave, eliminating dependency on physical TPM hardware.

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.