Abstract
We address a fundamental problem in reverse engineering of object-oriented code: the reconstruction of a program's class hierarchy from its stripped binary. Existing approaches rely heavily on structural information that is not always available, e.g., calls to parent constructors. As a result, these approaches often leave gaps in the hierarchies they construct, or fail to construct them altogether. Our main insight is that behavioral information can be used to infer subclass/superclass relations, supplementing any missing structural information. Thus, we propose the first statistical approach for static reconstruction of class hierarchies based on behavioral similarity. We capture the behavior of each type using a statistical language model (SLM), define a metric for pair-wise similarity between types based on the Kullback-Leibler divergence between their SLMs, and lift it to determine the most likely class hierarchy. We implemented our approach in a tool called Rock and used it to automatically reconstruct the class hierarchies of several real-world stripped C++ binaries. Our results demonstrate that Rock obtained significantly more accurate class hierarchies than those obtained using structural analysis alone.
Original language | English |
---|---|
Title of host publication | Proceedings of the 23rd International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS 2018 |
Publisher | Association for Computing Machinery |
Pages | 363-376 |
Number of pages | 14 |
Volume | 53 |
Edition | 2 |
ISBN (Electronic) | 9781450349116 |
DOIs | |
State | Published - 19 Mar 2018 |
Event | 23rd International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS 2018 - Williamsburg, United States Duration: 24 Mar 2018 → 28 Mar 2018 |
Conference
Conference | 23rd International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS 2018 |
---|---|
Country/Territory | United States |
City | Williamsburg |
Period | 24/03/18 → 28/03/18 |