Researchers from IIT Kharagpur and Intel Corporation have discovered a critical security vulnerability in Intel Trust Domain Extensions (TDX), a technology designed to isolate virtual machines (VMs) within secure environments. TDX aims to provide robust security by ensuring full isolation between the memory, computation, and CPU state of a Trust Domain (TD) and the Virtual Machine Manager (VMM). However, the study reveals that the hardware performance counters (HPCs), used for performance monitoring, can be exploited to break this isolation. This allows attackers to gain insights into the operations of a TD, undermining the core promise of TDX to provide a secure execution environment.
The vulnerability arises when a TD and VMM share the same core, creating resource contention that reveals variations in HPC metrics like branch misses, CPU cycles, and cache load misses. These variations are accessible to the VMM, which can then exploit the data to distinguish between idle and active TDs. Researchers demonstrated that by analyzing HPC metrics, they could fingerprint running processes and extract sensitive details about machine learning inference tasks.
This breach shows that TDX’s current protections are inadequate, especially when the TD and VMM compete for the same hardware resources.
The researchers further revealed that this vulnerability could enable sophisticated attacks, including process fingerprinting and class leakage in machine learning models. By using HPC data, they were able to identify distinct patterns in UnixBench workload processes running within a TD with near-perfect classification accuracy. Additionally, the study showed that HPC monitoring during machine learning model inference on image datasets could lead to class leakage, where sensitive model outputs are exposed to malicious VMMs. This is particularly alarming as it compromises the confidentiality of machine learning models and sensitive data.
The findings highlight the urgent need for Intel to address these vulnerabilities within TDX’s architecture. Despite memory encryption and restricted access controls, the current design still allows critical internal TD information to leak through HPCs, making side-channel attacks feasible. While TDX offers enhanced security over previous technologies like Intel SGX, this vulnerability demonstrates the need for further architectural improvements to prevent covert channels and ensure the security of sensitive workloads in virtualized environments. Without these enhancements, TDX’s effectiveness as a trusted execution technology remains compromised.