Establishing a refinement relation between binaries and abstract code

Autor: Joshua A. Bockenek, Binoy Ravindran, Abhijith Bharadwaj, Freek Verbeek, Ian Roessle
Rok vydání: 2019
Předmět:
Zdroj: MEMOCODE
DOI: 10.1145/3359986.3361215
Popis: This paper presents a method for establishing a refinement relation between a binary and a high-level abstract model. The abstract model is based on standard notions of control flow, such as if-then-else statements, while loops and variable scoping. Moreover, it contains high-level data structures such as lists and records. This makes the abstract model amenable for off-the-shelf verification techniques such as model checking or interactive theorem proving. The refinement relation translates, e.g., sets of memory locations to high-level datatypes, or pointer arithmetic to standard HOL functions such as list operations or record accessors. We show applicability of our approach by verifying functions from a binary containing the Network Security Services framework from Mozilla Firefox, running on the x86-64 architecture. Our methodology is interactive. We show that we are able to verify approximately 1000 lines of x86-64 machine code (corresponding to about 400 lines of source code) in one person month.
Databáze: OpenAIRE