arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.05772cs.SEcs.CR
收藏

StriderSPD:基于结构的二进制安全补丁检测联合表示学习

StriderSPD: Structure-Guided Joint Representation Learning for Binary Security Patch Detection

Nanjing University(南京大学);Harbin Institute Of Technology Shenzhen(哈尔滨工业大学(深圳));Chinese University of Hong Kong(香港中文大学)

Qingyuan Li, Chenchen Yu, Chuanyi Li, Xin-Cheng Wen, Cheryl Lee, Cuiyun Gao, Bin Luo

AI总结:

StriderSPD通过整合图分支与大型语言模型,利用结构信息提升二进制安全补丁检测的准确性与效率。

摘要:

漏洞严重威胁软件系统,及时应用安全补丁对于缓解攻击至关重要。然而,软件供应商常常在有限披露的情况下修补漏洞,其中安全补丁检测(SPD)用于保护软件资产。最近,大多数SPD研究针对开源软件(OSS),但现实世界中的大部分软件是闭源的,其中补丁以二进制形式分发,没有可访问的源代码。有限的二进制SPD方法通常将二进制提升到抽象级别,即汇编代码或伪代码。然而,汇编代码是基于寄存器的指令,语义有限,而伪代码缺乏可解析的语法来提取结构,两者都阻碍了准确的漏洞修复表示学习。此外,先前的研究通常从同一项目获取训练和测试数据进行评估,这未能反映闭源条件。为缓解上述挑战,我们提出了StriderSPD,一种将图分支整合到大型语言模型(LLM)中的二进制代码联合表示学习框架,利用结构信息指导LLM识别安全补丁。我们设计的图分支中的适配器新方案有效在LLM的token级别对汇编代码和伪代码的表示进行对齐。我们进一步提出一种两阶段训练策略,以解决由于StriderSPD两个分支参数差异大导致的优化不平衡问题,从而实现适当的分支拟合。为了使评估更加真实,我们构建了一个二进制SPD基准,该基准在项目和领域上都与先前数据集无关,并在该基准上对StriderSPD进行了广泛评估。

英文摘要:

Vulnerabilities severely threaten software systems, making the timely application of security patches crucial for mitigating attacks. However, software vendors often silently patch vulnerabilities with limited disclosure, where Security Patch Detection (SPD) comes to protect software assets. Recently, most SPD studies have targeted Open-Source Software (OSS), yet a large portion of real-world software is closed-source, where patches are distributed as binaries without accessible source code. The limited binary SPD approaches often lift binaries to abstraction levels, i.e., assembly code or pseudo-code. However, assembly code is register-based instructions conveying limited semantics, while pseudo-code lacks parser-compatible grammar to extract structure, both hindering accurate vulnerability-fix representation learning. In addition, previous studies often obtain training and testing data from the same project for evaluation, which fails to reflect closed-source conditions. To alleviate the above challenges, we propose \textbf{\textit{StriderSPD}}, a \underline{Str}ucture-gu\underline{ide}d joint \underline{r}epresentation \underline{SPD} framework of binary code that integrates a graph branch into a large language model (LLM), leveraging structural information to guide the LLM in identifying security patches. Our novel design of the adapters in the graph branch effectively aligns the representations between assembly code and pseudo-code at the LLM's token level. We further present a two-stage training strategy to address the optimization imbalance caused by the large parameter disparity between StriderSPD's two branches, which enables proper branch fitting. To enable more realistic evaluation, we construct a binary SPD benchmark that is disjoint from prior datasets in both projects and domains and extensively evaluate StriderSPD on this benchmark.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑