用于剥离二进制分析的跨模态检索模型
Cross-modal Retrieval Models for Stripped Binary Analysis
AI总结:
本文提出BinSeek模型,通过两阶段跨模态检索框架实现对剥离二进制代码的高效检索,显著提升二进制代码与自然语言描述的相关性检索性能。
摘要:
通过自然语言查询检索二进制代码是软件安全领域下游任务中的关键能力,例如漏洞检测和恶意软件分析。然而,从成千上万个候选者中识别出与用户查询语义相关的二进制函数具有挑战性,因为缺乏符号信息使这项任务区别于源代码检索。在本文中,我们介绍了BinSeek,一种用于剥离二进制代码分析的两阶段跨模态检索框架。它由两个模型组成:BinSeek-Embedding是在大规模数据集上训练以学习二进制代码和自然语言描述的语义相关性,此外,BinSeek-Reranker学习通过上下文增强来仔细判断候选代码与描述的相关性。为此,我们构建了一个基于LLM的数据合成管道来自动化训练构建,同时推导出一个领域基准以供未来研究。我们的评估结果表明,BinSeek在性能上达到了最先进的水平,在Rec@3上比同等规模的模型高出31.42%,在MRR@3上高出27.17%,并且领先于具有16倍更大参数的先进通用模型。
英文摘要:
Retrieving binary code via natural language queries is a pivotal capability for downstream tasks in the software security domain, such as vulnerability detection and malware analysis. However, it is challenging to identify binary functions semantically relevant to the user query from thousands of candidates, as the absence of symbolic information distinguishes this task from source code retrieval. In this paper, we introduce, BinSeek, a two-stage cross-modal retrieval framework for stripped binary code analysis. It consists of two models: BinSeek-Embedding is trained on large-scale dataset to learn the semantic relevance of the binary code and the natural language description, furthermore, BinSeek-Reranker learns to carefully judge the relevance of the candidate code to the description with context augmentation. To this end, we built an LLM-based data synthesis pipeline to automate training construction, also deriving a domain benchmark for future research. Our evaluation results show that BinSeek achieved the state-of-the-art performance, surpassing the the same scale models by 31.42% in Rec@3 and 27.17% in MRR@3, as well as leading the advanced general-purpose models that have 16 times larger parameters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。