XFL: Naming Functions in Binaries with Extreme Multi-label Learning
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding 引用了 CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Code
- BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding 引用了 Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
- BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding 引用了 PalmTree: Learning an Assembly Language Model for Instruction Embedding
- CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Code 引用了 Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
- CADE: Detecting and Explaining Concept Drift Samples for Security Applications 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features 引用了 CADE: Detecting and Explaining Concept Drift Samples for Security Applications
- Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features 引用了 Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
- Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features 引用了 PalmTree: Learning an Assembly Language Model for Instruction Embedding
- Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features 引用了 Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
- PalmTree: Learning an Assembly Language Model for Instruction Embedding 引用了 Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
- PalmTree: Learning an Assembly Language Model for Instruction Embedding 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
- PalmTree: Learning an Assembly Language Model for Instruction Embedding 引用了 Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
- Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs 引用了 Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
- Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs 引用了 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
引用它的顶会 Paper8
- ACETest: Automated Constraint Extraction for Testing Deep Learning OperatorsJingyi Shi, Yang Xiao, Yuekang Li, Yeting Li 等ISSTA 2023 · 24 次引用
- Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph FeaturesJialai Wang, Chao Zhang, Longfei Chen, Yi Rong 等USENIX Security 2024 · 15 次引用
- CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo CodeTong Ye, Lingfei Wu, Tengfei Ma, Xuhong Zhang 等EMNLP 2023 · 4 次引用
- BLens: Contrastive Captioning of Binary Functions using Ensemble EmbeddingTristan Benoit, Yunru Wang, Moritz Dannehl, Johannes KinderUSENIX Security 2025
- Beyond Classification: Inferring Function Names in Stripped Binaries via Domain Adapted LLMsLinxi Jiang, Xin Jin, Zhiqiang LinNDSS 2025
它引用的 Paper12
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity DetectionXiaojun Xu, Chang Liu, Qian Feng, Heng Yin 等CCS 2017 · 682 次引用
- Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler OptimizationSteven H. H. Ding, Benjamin C. M. Fung, Philippe CharlandS&P 2019 · 447 次引用
- Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function PairsFei Zuo, Xiaopeng Li, Patrick Young, Lannan Luo 等NDSS 2019 · 262 次引用
- CADE: Detecting and Explaining Concept Drift Samples for Security ApplicationsLimin Yang, Wenbo Guo, Qingying Hao, Arridhana Ciptadi 等USENIX Security 2021 · 241 次引用
- PalmTree: Learning an Assembly Language Model for Instruction EmbeddingXuezixiang Li, Yu Qu, Heng YinCCS 2021 · 139 次引用
相关 Paper
- Enhancing Function Name Prediction using Votes-Based Name Tokenization and Multi-task LearningXiaoling Zhang, Zhengzi Xu, Shouguo Yang, Zhi Li 等FSE 2024 · 5 次引用
- SymLM: Predicting Function Names in Stripped Binaries via Context-Sensitive Execution-Aware Code EmbeddingsXin Jin, Kexin Pei, Jun Yeon Won, Zhiqiang LinCCS 2022 · 56 次引用
- A lightweight framework for function name reassignment based on large-scale stripped binariesHan Gao, Shaoyin Cheng, Yinxing Xue, Weiming ZhangISSTA 2021 · 46 次引用
- Hieronym: Leveraging Hierarchical Multi-Source Information for Function Renaming in Stripped BinaryXiaoling Zhang, Jian Sun, Dawei Wang, Chongyu Wang 等CCS 2026
- Debin: Predicting Debug Information in Stripped BinariesJingxuan He, Pesho Ivanov, Petar Tsankov, Veselin Raychev 等CCS 2018 · 148 次引用
