Neural reverse engineering of stripped binaries using augmented control flow graphs
Authors:
Open Access
- 13 November 2020
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 4 (OOPSLA) , 1-28
Abstract
We address the problem of reverse engineering of stripped executables, which contain no debug information. This is a challenging problem because of the low amount of syntactic information available in stripped executables, and the diverse assembly code patterns arising from compiler optimizations. We present a novel approach for predicting procedure names in stripped executables. Our approach combines static analysis with neural models. The main idea is to use static analysis to obtain augmented representations of call sites; encode the structure of these call sites using the control-flow graph (CFG) and finally, generate a target name while attending to these call sites. We use our representation to drive graph-based, LSTM-based and Transformer-based architectures. Our evaluation shows that our models produce predictions that are difficult and time consuming for humans, while improving on existing methods by 28% and by 100% over state-of-the-art neural textual models that do not use any static analysis. Code and data for this evaluation are available at https://github.com/tech-srl/Nero.Keywords
All Related Versions
Funding Information
- Israel Ministry of Science and Technology (3-9779)
This publication has 25 references indexed in Scilit:
- Probabilistic model for code with decision trees2016
- Learning programs from noisy data2016
- Suggesting accurate method and class names2015
- Cross-Architecture Bug Search in Binary Executables2015
- Effective Approaches to Attention-based Neural Machine Translation2015
- Code completion with statistical language models2014
- Labeling library functions in stripped binaries2011
- Debugging Method Names2009
- A Next-Generation Platform for Analyzing ExecutablesLecture Notes in Computer Science, 2005
- Long Short-Term MemoryNeural Computation, 1997