TY - JOUR AU - Huo, Tianlin AU - Meng, Xiaoni AU - Wang, Wenhao AU - Hao, Chunliang AU - Zhao, Pei AU - Zhai, Jian AU - Li, Mingshu PY - 2019/11/19 Y2 - 2024/03/29 TI - Bluethunder: A 2-level Directional Predictor Based Side-Channel Attack against SGX JF - IACR Transactions on Cryptographic Hardware and Embedded Systems JA - TCHES VL - 2020 IS - 1 SE - Articles DO - 10.13154/tches.v2020.i1.321-347 UR - https://tches.iacr.org/index.php/TCHES/article/view/8401 SP - 321-347 AB - <p>Software Guard Extension (SGX) is a hardware-based trusted execution environment (TEE) implemented in recent Intel commodity processors. By isolating the memory of security-critical applications from untrusted software, this mechanism provides users with a strongly shielded environment called enclave for executing programs safely. However, recent studies have demonstrated that SGX enclaves are vulnerable to side-channel attacks. In order to deal with these attacks, several protection techniques have been studied and utilized.<br>In this paper, we explore a new pattern history table (PHT) based side-channel attack against SGX named <em>Bluethunder</em>, which can bypass existing protection techniques and reveal the secret information inside an enclave. Comparing to existing PHT-based attacks (such as Branchscope [ERAG+18]), Bluethunder abuses the 2-level directional predictor in the branch prediction unit, on top of which we develop an exploitation methodology to disclose the input-dependent control flow in an enclave. Since the cost of training the 2-level predictor is pretty low, Bluethunder can achieve a high bandwidth during the attack. We evaluate our attacks on two case studies: extracting the format string information in the vfprintf function in the Intel SGX SDK and attacking the implementation of RSA decryption algorithm in mbed TLS. Both attacks show that Bluethunder can recover fine-grained information inside an enclave with low training overhead, which outperforms the latest PHT-based side channel attack (Branchscope) by 52×. Specifically, in the second attack, Bluethunder can recover the RSA private key with 96.76% accuracy in a single run.</p> ER -