Symbolic Predictive Cache Analysis for Out-of-Order Execution

被引:1
作者
Huang, Zunchen [1 ]
Wang, Chao [1 ]
机构
[1] Univ Southern Calif, Los Angeles, CA 90089 USA
来源
FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, FASE 2022 | 2022年 / 13241卷
基金
美国国家科学基金会;
关键词
program analysis; out-of-order execution; side channel; SMT solver;
D O I
10.1007/978-3-030-99429-7_10
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We propose a trace-based symbolic method for analyzing cache side channels of a program under a CPU-level optimization called out-of-order execution (OOE). The method is predictive in that it takes the in-order execution trace as input and then analyzes all possible out-of-order executions of the same set of instructions to check if any of them leaks sensitive information of the program. The method has two important properties. The first one is accurately analyzing cache behaviors of the program execution under OOE, which is largely overlooked by existing methods for side-channel verification. The second one is efficiently analyzing the cache behaviors using an SMT solver based symbolic technique, to avoid explicitly enumerating a large number of out-of-order executions. Our experimental evaluation on C programs that implement cryptographic algorithms shows that the symbolic method is effective in detecting OOE-related leaks and, at the same time, is significantly more scalable than explicit enumeration.
引用
收藏
页码:163 / 183
页数:21
相关论文
共 32 条
[1]   Scope-aware Data Cache Analysis for WCET Estimation [J].
Bach Khoa Huynh ;
Ju, Lei ;
Roychoudhury, Abhik .
17TH IEEE REAL-TIME AND EMBEDDED TECHNOLOGY AND APPLICATIONS SYMPOSIUM (RTAS 2011), 2011, :203-212
[2]   Automatic Discovery and Quantification of Information Leaks [J].
Backes, Michael ;
Koepf, Boris ;
Rybalchenko, Andrey .
PROCEEDINGS OF THE 2009 30TH IEEE SYMPOSIUM ON SECURITY AND PRIVACY, 2009, :141-+
[3]   Abacus: Precise Side-Channel Analysis [J].
Bao, Qinkun ;
Wang, Zihao ;
Li, Xiaoting ;
Larus, James R. ;
Wu, Dinghao .
2021 IEEE/ACM 43RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2021), 2021, :797-809
[4]   CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation [J].
Brotzman, Robert ;
Liu, Shen ;
Zhang, Danfeng ;
Tan, Gang ;
Kandemir, Mahmut .
2019 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP 2019), 2019, :505-521
[5]  
Chattopadhyay S., 2017, P 15 ACM IEEE INT C, p25{35
[6]   Z3: An efficient SMT solver [J].
de Moura, Leonardo ;
Bjorner, Nikolaj .
TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, 2008, 4963 :337-340
[7]  
Doychev G., 2013, IACR CRYPTOL EPRINT, P253
[8]  
Eldib H, 2014, DES AUT CON
[9]  
Ganai M. K., 2011, 2011 26th IEEE/ACM International Conference on Automated Software Engineering, P596, DOI 10.1109/ASE.2011.6100134
[10]  
Guan N, 2013, DES AUT TEST EUROPE, P296