XFL: Naming Functions in Binaries with Extreme Multi-label Learning
Authors:
- 1 May 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 2375-2390
Abstract
Reverse engineers benefit from the presence of identifiers such as function names in a binary, but usually these are removed for release. Training a machine learning model to predict function names automatically is promising but fundamentally hard: unlike words in natural language, most function names occur only once. In this paper, we address this problem by introducing eXtreme Function Labeling (XFL), an extreme multi-label learning approach to selecting appropriate labels for binary functions. XFL splits function names into tokens, treating each as an informative label akin to the problem of tagging texts in natural language. We relate the semantics of binary code to labels through Dexter, a novel function embedding that combines static analysis-based features with local context from the call graph and global context from the entire binary. We demonstrate that XFL/Dexter outperforms the state of the art in function labeling on a dataset of 10,047 binaries from the Debian project, achieving a precision of 83.5%. We also study combinations of XFL with alternative binary embeddings from the literature and show that Dexter consistently performs best for this task. As a result, we demonstrate that binary function labeling can be effectively phrased in terms of multi-label learning, and that binary function embeddings benefit from including explicit semantic features.Keywords
All Related Versions
This publication has 37 references indexed in Scilit:
- FastXML2014
- Multi-label learning with millions of labels2013
- Multilabel Classification with Principal Label Space TransformationNeural Computation, 2012
- The impact of copyright on the development of cutting edge binary reverse engineering technology2003
- Improved backing-off for M-gram language modeling2002
- Cumulated gain-based evaluation of IR techniquesACM Transactions on Information Systems, 2002
- Bug hunting: the seven ways of the Security SamuraiComputer, 2002
- Text categorization with Support Vector Machines: Learning with many relevant features1998
- An empirical study of smoothing techniques for language modeling1996
- The central role of the propensity score in observational studies for causal effectsBiometrika, 1983