arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.08512cs.SE
收藏

学习基于图的补丁表示以识别和评估静默漏洞修复

Learning Graph-based Patch Representations for Identifying and Assessing Silent Vulnerability Fixes

Mei Han, Lulu Wang, Jianming Chang, Bixin Li, Chunguang Zhang

AI总结:

针对现有漏洞修复识别忽略代码结构信息的问题,提出基于图的补丁表示框架GRAPE,通过联合图结构与图卷积网络学习结构特征,在三项相关任务上表现优于基线方法。

摘要:

软件项目依赖众多第三方库,因此高风险漏洞可通过依赖链传播至下游项目。由于补丁管理存在主观性,软件供应商通常会静默修复漏洞。静默漏洞修复会导致下游软件无法及时知晓紧急安全问题,给软件带来安全风险。目前,现有的漏洞修复识别研究大多仅将变更代码视为顺序文本序列,忽略了代码的结构信息。本文提出GRAPE(基于图的补丁表示),旨在:1)提供一个获取漏洞修复补丁表示的统一框架;2)通过提取代码的结构信息,增强对补丁意图及潜在影响的理解。GRAPE采用一种新颖的联合图结构MCPG来表示修复补丁的语法和语义信息,并对节点和边均进行嵌入。随后,利用精心设计的图卷积神经网络NE-GCN,通过节点和边的属性充分学习结构特征。此外,我们构建了一个包含2251个静默修复的数据集。在实验部分,我们在三项任务上评估了补丁表示效果,包括漏洞修复识别、漏洞类型分类和漏洞严重程度分类。实验结果表明,与基线方法相比,GRAPE能更有效地减少漏洞修复识别的误报和漏报,并提供准确的漏洞评估。

英文摘要:

Software projects are dependent on many third-party libraries, therefore high-risk vulnerabilities can propagate through the dependency chain to downstream projects. Owing to the subjective nature of patch management, software vendors commonly fix vulnerabilities silently. Silent vulnerability fixes cause downstream software to be unaware of urgent security issues in a timely manner, posing a security risk to the software. Presently, most of the existing works for vulnerability fix identification only consider the changed code as a sequential textual sequence, ignoring the structural information of the code. In this paper, we propose GRAPE, a GRAph-based Patch rEpresentation that aims to 1) provide a unified framework for getting vulnerability fix patches representation; and 2) enhance the understanding of the intent and potential impact of patches by extracting structural information of the code. GRAPE employs a novel joint graph structure (MCPG) to represent the syntactic and semantic information of fix patches and embeds both nodes and edges. Subsequently, a carefully designed graph convolutional neural network (NE-GCN) is utilized to fully learn structural features by leveraging the attributes of the nodes and edges. Moreover, we construct a dataset containing 2251 silent fixes. For the experimental section, we evaluated patch representation on three tasks, including vulnerability fix identification, vulnerability types classification, and vulnerability severity classification. Experimental results indicate that, in comparison to baseline methods, GRAPE can more effectively reduce false positives and omissions of vulnerability fixes identification and provide accurate vulnerability assessments.

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

↑