Side-Channel Attacks and Defenses for SGX and SEV
Yinqian Zhang Associate Professor
Computer Science & Engineering The Ohio State University
Open Source Enclave Workshop 2019
Side-Channel Attacks and Defenses for SGX and SEV Yinqian Zhang - - PowerPoint PPT Presentation
Open Source Enclave Workshop 2019 Side-Channel Attacks and Defenses for SGX and SEV Yinqian Zhang Associate Professor Computer Science & Engineering The Ohio State University Userland TEEs on Commodity Processors Application VM VM
Computer Science & Engineering The Ohio State University
Open Source Enclave Workshop 2019
2
Software Guard Extension (2015)
Secure Encrypted Virtualization (2016-2017)
3
handling
4
handling
5
Application
Page 1 ec_mul Page 2 add_points Page 3 dup_point
Page Fault Handler
Page Trace P1 P2 P1 P3 P2 P1
…
Physical Page Address 0 DA G U W C R 51 9 12 Page Table Entry 11 X D 52 62 63
Global DIR Offset Table Middle DIR Upper DIR
+
Page Global Directory Page Upper Directory Page Middle Directory Page Table
cr3
+ + +
P
6
1 instruction
7
register values at VMExit
register values
SWIOTLB SWIOTLB Li, Zhang, Lin, Solihin, “Exploiting Unprotected I/O Operations in AMD’s Secure Encrypted Virtualization”, Usenix Security 2019
8
Translation Units ITLB DTLB STLB paging caches page tables
port n port 0 port 1 port 2 Execution Units
port 3 BPU BTB RSB store buffer load buffer Cache & Memory
L1-I
L2 LLC DRAM LFB
L1-D
17
18
Xiao, Li, Zhang, “Stacco: Differentially Analyzing Side-Channel Traces for Detecting SSL/TLS Vulnerabilities in Secure Enclaves”, ACM CCS 2017 Chen, Chen, Xiao, Zhang, Lin, Lai, “SGXPECTRE: Stealing Intel Secrets from SGX Enclaves via Speculative Execution”, IEEE EuroS&P 2019 Wang, Zhang, Lin, “Time and Order: Towards Automatically Identifying Side-Channel Vulnerabilities in Enclave Binaries”, RAID 2019
code to eliminate
memory access
19
channel attacks by enforcing oblivious execution
Ahmad, Joe, Xiao, Zhang, Shin, Lee, “OBFUSCURO: A Commodity Obfuscation Engine on Intel SGX”, NDSS 2019
code to eliminate
memory access
20
channel attacks at runtime via program instrumentation
Chen, Zhang, Reiter, Zhang, “Detecting Privileged Side-Channel Attacks in Shielded Execution with DEJA VU”, ACM AsiaCCS 2017 Chen, Wang, Chen, Chen, Zhang, Wang, Lai, Lin, Racing in Hyperspace: Closing Hyper- Threading Side Channels on SGX with Contrived Data Races, IEEE S&P 2018
channel attacks by enforcing oblivious execution
code to eliminate
memory access
Yinqian Zhang Associate Professor
Computer Science & Engineering The Ohio State University