TypeMiner: Recovering Types in Binary Programs Using Machine Learning

Alwin Maier, Hugo Gascon, Christian Wressnegger, Konrad Rieck

Abstract

Closed-source software is a major hurdle for assessing the security of computer systems. In absence of source code, it is particularly difficult to locate vulnerabilities and malicious functionality, as crucial information is removed by the compilation process. Most notably, binary programs usually lack type information, which complicates spotting vulnerabilities such as integer flaws or type confusions dramatically. Moreover, data types are often essential for gaining a deeper understanding of the program logic. In this paper we present TypeMiner, a static method for recovering types in binary programs. We build on the assumption that types leave characteristic traits in compiled code that can be automatically identified using machine learning starting at usage locations determined by an analyst. We evaluate the performance of our method with 14 real world software projects written in C and show that it is able to correctly recover the data types in 76%–93% of the cases.
BibTeX
@inproceedings{maier2019typeminer,
  author = {Alwin Maier and Hugo Gascon and Christian Wressnegger and Konrad Rieck},
  title = {{TypeMiner: Recovering Types in Binary Programs Using Machine Learning}},
  booktitle = {DIMVA},
  year = {2019},
  doi = {10.1007/978-3-030-22038-9\_14},
}

Loading related content...

Figure