Data-Driven Synthesis of Provably Sound Side Channel Analyses
Authors:
- 1 May 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 15581225,p. 810-822
Abstract
We propose a data-driven method for synthesizing static analyses to detect side-channel information leaks in cryptographic software. Compared to the conventional way of manually crafting such static analyzers, which can be tedious, error prone and suboptimal, our learning-based technique is not only automated but also provably sound. Our analyzer consists of a set of type-inference rules learned from the training data, i.e., example code snippets annotated with the ground truth. Internally, we use syntax-guided synthesis (SyGuS) to generate new recursive features and decision tree learning (DTL) to generate analysis rules based on these features. We guarantee soundness by proving each learned analysis rule via a technique called query containment checking. We have implemented our technique in the LLVM compiler and used it to detect power side channels in C programs that implement cryptographic protocols. Our results show that, in addition to being automated and provably sound during synthesis, our analyzer can achieve the same empirical accuracy as two state-of-the-art, manually-crafted analyzers while being 300X and 900X faster, respectively.Keywords
All Related Versions
Funding Information
- National Science Foundation
This publication has 76 references indexed in Scilit:
- Sleuth: Automated Verification of Software Power Analysis Countermeasures2013
- Spreadsheet data manipulation using examplesCommunications of the ACM, 2012
- Provably Secure Higher-Order Masking of AES2010
- Using Counterexamples for Improving the Precision of Reachability Computation with Polyhedra2007
- Top-Down Induction of Decision Trees Classifiers—A SurveyIEEE Transactions on Systems, Man and Cybernetics, Part C (Applications and Reviews), 2005
- Decidable containment of recursive queriesTheoretical Computer Science, 2005
- Provably Secure Masking of AES2004
- Reasoning on regular path queriesACM SIGMOD Record, 2003
- Private Circuits: Securing Hardware against Probing Attacks2003
- Checking Safety Properties Using Induction and a SAT-Solver2000