基于投票式名称分词与多任务学习增强函数名预测
Enhancing Function Name Prediction using Votes-Based Name Tokenization and Multi-Task Learning
AI总结:
针对现有二进制函数名预测方法难以捕捉优化后二进制函数语义、难以保留函数名标签含义的问题,提出Epitome框架,结合投票分词、多任务学习等技术,在多架构多优化级别的数据集上精度等指标显著优于SOTA且泛化性更强。
摘要:
逆向工程师能从描述性函数名中获取宝贵洞见,而这些函数名在公开发布的二进制文件中是缺失的。近年来,使用数据驱动的机器学习进行二进制函数名预测的研究进展展现出应用前景。然而,现有方法难以在多样的优化后二进制文件中捕捉函数语义,也无法保留函数名中标签的含义。我们提出Epitome——一个基于投票式名称分词与多任务学习增强函数名预测的框架,专门针对不同编译优化的二进制文件设计。Epitome通过预训练汇编语言模型与图神经网络学习全面的函数语义,并引入函数语义相似度预测任务,以最大化不同编译优化级别语境下的函数语义相似度。此外,我们提出两种数据预处理方法以提升函数名的可理解性。我们使用从4种架构(x64、x86、ARM、MIPS)、5种优化级别(O0-Os)编译的二进制文件中提取的2597346个函数评估Epitome的性能。Epitome在精确率、召回率和F1值上分别比当前最优的函数名预测工具最高高出44.34%、64.16%和54.44%,同时还展现出更优的泛化能力。
英文摘要:
Reverse engineers would acquire valuable insights from descriptive function names, which are absent in publicly released binaries. Recent advances in binary function name prediction using data-driven machine learning show promise. However, existing approaches encounter difficulties in capturing function semantics in diverse optimized binaries and fail to reserve the meaning of labels in function names. We propose Epitome, a framework that enhances function name prediction using votes-based name tokenization and multi-task learning, specifically tailored for different compilation optimization binaries. Epitome learns comprehensive function semantics by pre-trained assembly language model and graph neural network, incorporating function semantics similarity prediction task, to maximize the similarity of function semantics in the context of different compilation optimization levels. In addition, we present two data preprocessing methods to improve the comprehensibility of function names. We evaluate the performance of Epitome using 2,597,346 functions extracted from binaries compiled with 5 optimizations (O0-Os) for 4 architectures (x64, x86, ARM, and MIPS). Epitome outperforms the state-of-the-art function name prediction tool by up to 44.34%, 64.16%, and 54.44% in precision, recall, and F1 score, while also exhibiting superior generalizability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。