14:00
17:00

This thesis addresses the automatic detection of physical vulnerabilities in binary programs. Physical vulnerabilities are becoming increasingly common and pose a significant risk to the security of embedded systems. This is due in particular to the miniaturization of electronic components. It is therefore important to protect systems—especially embedded systems—against physical attacks. However, vulnerability detection is a difficult and time-consuming task, especially when multiple attacks are considered during a single program execution. For these reasons, it is important to automate the entire analysis. Our work focuses on binary programs because compilation can introduce vulnerabilities that do not exist in the source code. We propose a new approach to automatically detect these vulnerabilities using symbolic execution. It is well known that symbolic execution is limited by the combinatorial explosion problem, which makes it difficult to apply to programs of realistic size. To overcome this limitation, we propose a new search heuristic to guide symbolic execution. This heuristic is inspired by the A* algorithm and allows for the efficient resolution of the reachability problem for a line of code. Using this heuristic requires solving the shortest-path problem in interprocedural programs. Therefore, we also propose a new, efficient, and versatile solution to this problem. Together, these contributions improve the scalability of symbolic execution. Finally, we develop a methodology for analyzing binary programs using symbolic execution. We formalize binary programs as labeled transition systems and formalize the concept of a specification for a program. These specifications are contracts describing the expected behavior of arbitrary parts of the program (e.g., functions, loops, code snippets, etc.). Furthermore, a program may contain multiple specifications that can be nested within one another. We extend symbolic execution to verify these specifications, which we reduce to a (generalized) reachability problem in a labeled transition system. A tool implementing this methodology has been developed. It uses the Binsec symbolic execution engine for analyzing binary programs, developed at the CEA. However, our tool is designed to be used by security experts who are not necessarily familiar with formal methods or symbolic execution. We have therefore designed a high-level language to describe specifications for binary programs. This methodology and the specification language are then enhanced to account for potential physical attacks. We conclude this thesis by presenting results from applying our tool to realistic programs. These results show that our methodology is effective and relevant for detecting vulnerabilities in binary programs.

Amphi LaBRI