Blog Post

Azure Confidential Computing Blog
5 MIN READ

Not All TPMs Are Created Equal: Inside Azure’s Confidential vTPM

PushkarcMS's avatar
PushkarcMS
Icon for Microsoft rankMicrosoft
Dec 01, 2026

Azure confidential VMs use the familiar TPM model for secure boot, measured boot, disk protection, and guest attestation. The key difference is where that trust begins: the Azure vTPM runs inside the confidential-computing boundary and is measured by hardware. When vTPM state is persisted, it is encrypted and unlocked after successful platform attestation. For customers, this means disk encryption, attestation, and key release are anchored in a hardware-isolated vTPM, not in the host.

The TPM is the VM’s root of trust

A Trusted Platform Module records measurements, protects cryptographic keys, and produces signed evidence about system state. Operating systems build on that foundation: disk-encryption keys can be sealed to TPM policy, relying parties can evaluate PCR quotes before releasing secrets, and security services can monitor boot integrity.

That TPM model applies to physical computers, conventional virtual machines, and confidential virtual machines, but a confidential VM changes the threat model because it is expected to protect code and data from privileged host software and operators. Its vTPM can serve as the root of trust only when its implementation, keys, measurements, and state receive equivalent protection.

 

If the trust chain depends on the TPM, what protects the TPM itself?

A single hardware root of trust for the vTPM and VM

In an Azure confidential VM, the vTPM runs inside the confidential-computing boundary, where hardware isolates the vTPM and its state from the host. Hardware attestation provides evidence that the vTPM is running in that isolated environment.

Within the confidential boundary, hardware-based privilege-level separation isolates the vTPM from both UEFI and the guest operating system. These protections allow the hardware-rooted, measured, and isolated vTPM to serve as a trusted security component, recording VM integrity measurements and protecting secrets much like a physical TPM.
 

Figure 1: Hardware measures the vTPM; the vTPM measures the guest

Layered attestation

The guest operating system uses familiar TPM evidence (quotes, PCRs, and the measured-boot event log) to describe the state of UEFI and the guest boot chain. It relies on standard TPM endorsement and attestation identities, such as the endorsement key (EK) and attestation key (AK).

Trust in the vTPM is established explicitly through the confidential VM hardware report. That report describes the VM’s security properties, provides evidence that the vTPM is running at the protected privilege level, and binds TPM identities such as EKpub and AKpub to the measured confidential environment.

Together, these layers provide composite attestation for the confidential VM: guest measurements are rooted in the vTPM, while the vTPM’s identity, execution environment, and protected state are rooted in hardware.

 

Figure 2: Attestation and secure key release, from hardware and vTPM evidence to a released key

Figure 2 shows the high-level flow for layered attestation. The application sends hardware and vTPM evidence to an attestation service, which verifies that the confidential VM is in a trusted state. The service returns a signed composite token that captures both layers of trust: hardware TEE claims and guest boot claims extracted from the TCG log bound to the TPM PCRs. Any relying party, including third-party services, can evaluate the token and enforce authorization policies over claims. For example, Azure Key Vault or Managed HSM checks the token and releases a key only when the claims meet its policy. The released key is wrapped to a key bound to the vTPM, so it can be unwrapped inside the confidential VM. For more detail, see What is guest attestation for confidential VMs? on Microsoft Learn. To see the secure key release flow in code, explore the GitHub sample application.

Trust the binary and the state

A physical TPM is commonly trusted through its manufacturer, endorsement hierarchy, and physical properties. A virtual TPM needs a more explicit argument. First, the binary implementing the TPM must be identified and measured inside an isolation boundary. Second, the TPM’s mutable state must be protected so that the host cannot read it, replace it with unrelated state, or cause the guest to accept an unauthenticated history.

Azure includes the firmware binary and the vTPM in hardware-backed attestation. Persisted firmware state, including vTPM state, is encrypted at rest. Its decryption key is released after successful platform attestation. After the state is unlocked, the VM proceeds through standard secure boot and measured boot. Azure is not replacing TPM semantics. It is making them credible under a confidential-computing threat model.

Figure 3 shows this boot-time sequence. First, the hardware measures and launches the guest firmware. The firmware then uses hardware attestation to request the key that unlocks its persisted state. Only after that state is unlocked does the VM load its boot manager.

 

Figure 3: Boot-time attestation to securely unlock persisted firmware state for a confidential VM

Design summary

Property

Azure confidential VM design

Customer benefit

Protected placement

The vTPM runs inside the hardware-isolated confidential boundary and is separated from the guest OS.

Less to trust. The vTPM does not run in the host environment, so host software cannot access it or its secrets.

Proven identity

Hardware measures the vTPM environment and binds its EKpub and AKpub to the attestation report.

Connected evidence. Hardware measures the vTPM and the vTPM measures the guest boot chain.

Standard boot evidence

The vTPM supplies standard quotes, PCRs, and event logs for Windows and Linux guests on both AMD SEV-SNP and Intel TDX.

Familiar tools. Customers keep TPM 2.0, secure boot, measured boot, PCR policy, and key sealing.

Policy-gated secrets

An attestation service verifies the evidence and issues claims for secure key release.

Release keys only when trusted. Sensitive material is released only when the VM meets policy.

Protected state

UEFI and vTPM state is encrypted, and its key is released after successful platform attestation.

Persistence across boots. The VM’s state is encrypted at rest and tied to the attested platform.

The takeaway

Put simply, not all virtual TPMs are the same. Confidential VMs may expose the same TPM 2.0 interface, but that does not make their roots of trust equivalent. What matters is where the vTPM executes, what measures it, who can access its keys, how its state is protected, and whether hardware evidence connects to guest measurements.

Azure runs each confidential VM’s vTPM inside the hardware-isolated confidential-computing boundary. Customers can use it to seal keys, check PCRs, and attest boot state with familiar tools. What differs is the evidence: claims made by the vTPM can be traced back to hardware, not to the host. That link is what makes composite attestation and policy-gated key release practical.

Same TPM interface with hardware-rooted trust.

What you still trust

A hardware root of trust removes the host (hypervisor, host OS, and operators) from the trust boundary, but it does not make the system trust-free. An Azure confidential VM still relies on:

The CPU and hardware vendor: AMD, Intel, or NVIDIA provides the isolation guarantees through hardware, firmware, and published certificate chains used to endorse the environment.

The firmware image: Microsoft builds the privileged guest firmware that hosts the vTPM, and its measurement is captured in the hardware report. The UEFI firmware (Project Mu) and the OpenHCL paravisor are open source, so their design and code can be reviewed.

The attestation service (if you use one): A token is only as trustworthy as the service that issued it. Relying parties that prefer not to depend on a service can verify the hardware report and vTPM evidence themselves.

What’s next in this series

Next: Now You See Me: Transparency for Confidential VM Firmware and State. Attestation tells a relying party what is running. In the next post, we look at how customers can confirm it is what they expect: by verifying the transparency, auditability, and origin of guest firmware binaries, configuration, and state.

References

Published Dec 01, 2026
Version 1.0
No CommentsBe the first to comment