SgxPectre Attacks: Stealing Intel Secrets from SGX Enclaves via Speculative Execution
Guoxing Chen, Sanchuan Chen, Yuan Xiao, Yinqian Zhang, Zhiqiang Lin,, Ten H. Lai

TL;DR
This paper introduces SgxPectre Attacks, exploiting speculative execution vulnerabilities in Intel SGX enclaves to compromise confidentiality, allowing attackers to steal cryptographic keys and forge attestations, thereby defeating SGX security guarantees.
Contribution
The paper systematically demonstrates the feasibility of SgxPectre Attacks, explores attack vectors, and evaluates existing countermeasures against these new speculative execution vulnerabilities.
Findings
Successfully stole seal and attestation keys from SGX enclaves
Most SGX runtimes are vulnerable due to common code patterns
Existing countermeasures are insufficient to prevent SgxPectre Attacks
Abstract
This paper presents SgxPectre Attacks that exploit the recently disclosed CPU bugs to subvert the confidentiality and integrity of SGX enclaves. Particularly, we show that when branch prediction of the enclave code can be influenced by programs outside the enclave, the control flow of the enclave program can be temporarily altered to execute instructions that lead to observable cache-state changes. An adversary observing such changes can learn secrets inside the enclave memory or its internal registers, thus completely defeating the confidentiality guarantee offered by SGX. To demonstrate the practicality of our SgxPectre Attacks, we have systematically explored the possible attack vectors of branch target injection, approaches to win the race condition during enclave's speculative execution, and techniques to automatically search for code patterns required for launching the attacks.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
