XFL: Naming Functions in Binaries with Extreme Multi-label Learning

被引:5
作者
Patrick-Evans, James [1 ,2 ]
Dannehl, Moritz [1 ]
Kinder, Johannes [1 ]
机构
[1] Bundeswehr Univ Munich, Res Inst CODE, Munich, Germany
[2] Royal Holloway Univ London, Informat Secur Grp, Egham, Surrey, England
来源
2023 IEEE SYMPOSIUM ON SECURITY AND PRIVACY, SP | 2023年
关键词
CLASSIFICATION;
D O I
10.1109/SP46215.2023.10179439
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 multilabel learning, and that binary function embeddings benefit from including explicit semantic features.
引用
收藏
页码:2375 / 2390
页数:16
相关论文
共 69 条
  • [1] Abadi M., 2015, TENSORFLOW LARGE SCA
  • [2] Agrawal R., 2013, 22 INT WORLD WIDE WE, P13
  • [3] Allamanis M., 2018, INT C LEARNING REPRE
  • [4] Allamanis M, 2016, PR MACH LEARN RES, V48
  • [5] Reducing multiclass to binary: A unifying approach for margin classifiers
    Allwein, EL
    Schapire, RE
    Singer, Y
    [J]. JOURNAL OF MACHINE LEARNING RESEARCH, 2001, 1 (02) : 113 - 141
  • [6] Alon U., 2019, P 7 INT C LEARN REPR
  • [7] Alon U, 2018, ACM SIGPLAN NOTICES, V53, P404, DOI [10.1145/3296979.3192412, 10.1145/3192366.3192412]
  • [8] Compiler-Agnostic Function Detection in Binaries
    Andriesse, Dennis
    Slowinska, Asia
    Bos, Herbert
    [J]. 2017 IEEE EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY (EUROS&P), 2017, : 177 - 189
  • [9] [Anonymous], 2019, 2019 C N AM CHAPT 2019 C N AM CHAPT
  • [10] [Anonymous], 2019, On Evaluating Adversarial Robustness