Overview of Intel TDX

To enable secure boot process for your RHEL instance, use Intel Trust Domain Extensions (TDX).

Intel TDX advances the former Intel Software Guard Extensions (SGX) technology. SGX provides virtual machine (VM) isolation from hypervisors and cloud providers by creating secure memory regions called enclaves. Application code stored in enclaves has access to memory and data stored inside the enclave, making it inaccessible to outside entities. TDX is a hardware-based trusted execution environment (TEE).

TDX creates hardware-isolated VMs called Trusted Domains (TDs). TDs isolate VMs from virtual machine manager (VMM), hypervisors, other VMs, and the host. Only the VM can access its resources. This ensures TD VMs remain secure while using hypervisor and CPU resources. Data confidentiality and integrity are maintained.

The main difference between SGX and TDX is that SGX works at application level while TDX works at virtualization level by limiting hypervisor access.

Note

Before deploying Red Hat Enterprise Linux (RHEL) on a public cloud platform, always check with the corresponding cloud service provider for the support status and certification of the particular RHEL instance type.

The Intel TDX Secure Boot process

To ensure that the VM is running in a trusted and secured environment, use Intel Trust Domain Extensions (TDX) on your Red Hat Enterprise Linux (RHEL) instance to use the Intel TDX Secure Boot process.

  1. Initialization and measurement: A TDX-enabled hypervisor sets the initial state of a VM.
    1. This hypervisor loads the firmware binary file into the VM memory and sets the initial register state.
    2. The Intel processor measures the initial state of the VM and provides details to verify the initial state of the VM.
  2. Firmware: The VM initiates the UEFI firmware. The firmware might include stateful or stateless Virtual Trusted Platform Module (vTPM) implementation.
    1. Stateful vTPM maintains persistent cryptographic state across VM reboots and migrations.
    2. Stateless vTPM generates fresh cryptographic state for each VM session without persistence.
    3. Virtual Machine Privilege Levels (VMPL) technology isolates vTPM from the guest. VMPL offers hardware-enforced privilege isolation between different VM components and the hypervisor.
  3. vTPM: Depending on your cloud service provider, for stateful vTPM implementation, the UEFI firmware might perform a remote attestation to decrypt the persistent state of vTPM.
    1. The vTPM also gathers data about the boot process, such as Secure Boot state, certificates used for signing boot artifacts, or UEFI binary hashes.
  4. Shim : When the UEFI firmware finishes the initialization process, it searches for the extended firmware interface (EFI) system partition.
    1. Then, the UEFI firmware verifies and runs the first stage boot loader from there.
    2. For RHEL, this is shim. The shim program allows non-Microsoft operating systems to load the second stage boot loader from the EFI system partition.
    3. shim uses a Red Hat certificate to verify the second stage boot loader (grub) or Red Hat Unified Kernel Image (UKI).
    4. grub or UKI unpacks, verifies, and runs Linux kernel and initramfs, and the kernel command line. This process ensures that the Linux kernel is loaded in a trusted and secured environment.
  5. Initramfs: In initramfs, vTPM information automatically unlocks the encrypted root partition in case of full disk encryption technology.
    1. When the root volume becomes available, initramfs transfers the execution flow there.
  6. Attestation: The VM tenant gets access to the system and can perform a remote attestation to ensure that the accessed VM is an untampered Confidential Virtual Machine (CVM).
    1. Attestation is performed based on information from the Intel processor and vTPM.
    2. This process confirms the authenticity and reliability of the initial CPU and memory state of the RHEL instance and Intel processor.
  7. TEE: This process creates a Trusted Execution Environment (TEE) to ensure that booting of the VM is in a trusted and secured environment.