Decompiling for Constant-Time Analysis
Santiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Youcef Bouzid, S\"oren van der Wall, Zhiyuan Zhang

TL;DR
This paper investigates the impact of decompiler transformations on constant-time security verification, proposing a formal framework for assessing transformation transparency and developing a tool to improve binary-level cryptographic analysis.
Contribution
It introduces the concept of CT transparency, provides a method to prove it, and modifies an existing decompiler to enhance constant-time analysis accuracy.
Findings
Popular decompilers can eliminate or introduce CT violations.
Modifications to RetDec affect its performance significantly.
Some binary analysis tools rely on non-CT transparent transformations.
Abstract
Cryptographic libraries are a main target of timing side-channel attacks. A practical means to protect against these attacks is to adhere to the constant-time (CT) policy. However, it is hard to write constant-time code, and even constant-time code can be turned vulnerable by mainstream compilers. So how can we verify that binary code is constant-time? The obvious answer is to use binary-level CT tools. To do so, a common approach is to use decompilers or lifters as a front-end for CT analysis tools operating on source code or IR. Unfortunately, this approach is problematic with current decompilers. To illustrate this fact, we use the recent Clangover vulnerability and other constructed examples to show that five popular decompilers eliminate CT violations, rendering them not applicable with the approach. In this paper, we develop foundations to asses whether a decompiler is fit for…
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 · Embedded Systems Design Techniques · Radiation Effects in Electronics
