Hannes Weissteiner and Fabian Rauscher, Graz University of Technology; Robin Leander Schröder, Fraunhofer SIT and Fraunhofer Austria; Jonas Juffinger and Stefan Gast, Graz University of Technology; Jan Wichelmann and Thomas Eisenbarth, University Luebeck; Daniel Gruss, Graz University of Technology
Trusted-execution environments (TEEs) offer confidentiality in shared environments. While Intel restricts performance counter access, limiting load-balancing and anomaly detection on TEEs, AMD exposes performance counters to the host, leaving the TEE vulnerable to side-channel leakage.
In this paper, we propose TEEcorrelate, a lightweight information-preserving defense against performance-counter attacks on TEEs. TEEcorrelate reconciles monitoring capabilities of the host and confidentiality requirements of the TEE, by statistically decorrelating performance counters. TEEcorrelate combines two components, temporal decorrelation using counter aggregation windows, and value decorrelation using fuzzy performance counter increases. With default parameters, TEEcorrelate guarantees that the host can read performance counters hundreds of times per second, while the read value never deviates by more than 1024 from the actual value. Hence, the host can still use them for load-balancing, accounting, and detection of unusual or malicious activity. In state-of-the-art attacks on MbedTLS RSA 4096, a TOTP implementation, and the post-quantum HQC key-encapsulation mechanism, attack runtimes increase from 0.58 - 429 seconds to 1 -775.6 days, even for a powerful, fully-informed attacker. We estimate that TEEcorrelate on AMD SEV-SNP has a negligible performance impact of 0.03 % for most context switches, and overall less than 0.09 %. Hence, TEEcorrelate is an effective low cost mitigation for all TEEs.
Open Access Media
USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.
author = {Hannes Weissteiner and Fabian Rauscher and Robin Leander Schr{\"o}der and Jonas Juffinger and Stefan Gast and Jan Wichelmann and Thomas Eisenbarth and Daniel Gruss and Thomas Eisenbarth},
title = {{TEEcorrelate}: An {Information-Preserving} Defense against {Performance-Counter} Attacks on {TEEs}},
booktitle = {34th USENIX Security Symposium (USENIX Security 25)},
year = {2025},
isbn = {978-1-939133-52-6},
address = {Seattle, WA},
pages = {2481--2498},
url = {https://www.usenix.org/conference/usenixsecurity25/presentation/weissteiner},
publisher = {USENIX Association},
month = aug
}


