arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.05375cs.CRcs.LG
收藏

用于源代码漏洞识别的序列图神经网络

Sequential Graph Neural Networks for Source Code Vulnerability Identification

University of Minnesota(明尼苏达大学);Vanderbilt University(范德堡大学)

Ammar Ahmed, Anwar Said, Mudassir Shabbir, Xenofon Koutsoukos

AI总结:

针对现有源代码漏洞识别依赖人工、误报率高的问题,本文构建了CVEFGE漏洞数据集,提出含序列学习模块的SEGNN图神经网络框架,在图分类任务上取得了SOTA结果。

摘要:

漏洞识别是网络安全领域一项极为重要的任务,对大型应用中漏洞函数的定位与修复大有帮助。但由于缺乏可靠且管理完善的数据集与学习模型,该任务颇具挑战性。现有方案通常依赖人类专业知识标注数据集或指定特征,容易产生误差,且学习模型的误报率较高。为填补这一空白,本文构建了一个经过精心整理的C/C++源代码漏洞数据集,名为CVEFunctionGraphEmbeddings(CVEFGE),以助力模型开发。CVEFGE从CVE数据库自动爬取,包含真实且公开披露的源代码漏洞。我们还提出了一种基于图神经网络的学习框架,名为SEquential Graph Neural Network(SEGNN),用于学习大量代码语义表示。SEGNN由序列学习模块、图卷积层、池化层和全连接层组成。我们在图分类设置下,基于两个数据集和四种基线方法开展评估,结果表明该方法取得了当前最优的性能。

英文摘要:

Vulnerability identification constitutes a task of high importance for cyber security. It is quite helpful for locating and fixing vulnerable functions in large applications. However, this task is rather challenging owing to the absence of reliable and adequately managed datasets and learning models. Existing solutions typically rely on human expertise to annotate datasets or specify features, which is prone to error. In addition, the learning models have a high rate of false positives. To bridge this gap, in this paper, we present a properly curated C/C++ source code vulnerability dataset, denoted as CVEFunctionGraphEmbeddings (CVEFGE), to aid in developing models. CVEFGE is automatically crawled from the CVE database, which contains authentic and publicly disclosed source code vulnerabilities. We also propose a learning framework based on graph neural networks, denoted SEquential Graph Neural Network (SEGNN) for learning a large number of code semantic representations. SEGNN consists of a sequential learning module, graph convolution, pooling, and fully connected layers. Our evaluations on two datasets and four baseline methods in a graph classification setting demonstrate state-of-the-art results.

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

↑