Securing Optimized Code Against Power Side Channels
Rodothea Myrsini Tsoupidi, Roberto Casta\~neda Lozano, Elena, Troubitsyna, Panagiotis Papadimitratos

TL;DR
This paper introduces SecCG, a constraint-based compiler that generates optimized cryptographic code resistant to power side-channel attacks, balancing security, efficiency, and compiler optimization constraints.
Contribution
It presents a formal model and a compiler approach that produce secure, optimized low-level code against power side channels, addressing limitations of traditional mitigation techniques.
Findings
SecCG speeds up cryptographic code by up to 8 times compared to non-optimized secure code.
The approach incurs only up to 7% overhead compared to non-secure optimized code.
SecCG effectively balances security and efficiency in cryptographic implementations.
Abstract
Side-channel attacks impose a serious threat to cryptographic algorithms, including widely employed ones, such as AES and RSA. These attacks take advantage of the algorithm implementation in hardware or software to extract secret information via side channels. Software masking is a mitigation approach against power side-channel attacks aiming at hiding the secret-revealing dependencies from the power footprint of a vulnerable implementation. However, this type of software mitigation often depends on general-purpose compilers, which do not preserve non-functional properties. Moreover, microarchitectural features, such as the memory bus and register reuse, may also leak secret information. These abstractions are not visible at the high-level implementation of the program. Instead, they are decided at compile time. To remedy these problems, security engineers often sacrifice code…
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.
Taxonomy
TopicsCryptographic Implementations and Security · Security and Verification in Computing · Advanced Malware Detection Techniques
