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

基于深度学习的C/C++代码漏洞检测

Vulnerability Detection in C/C++ Code with Deep Learning

School of Computing, DePaul University(德保罗大学计算学院)

Zhen Huang, Amy Aumpansub

AI总结:

本研究利用从C/C++源代码提取的程序切片训练神经网络,结合多种特征和平衡数据,实现漏洞检测,其中BGRU+ADAM准确率达92.49%。

摘要:

深度学习已被证明是检测软件漏洞的有前途的工具。在这项工作中,我们使用从C/C++程序源代码中提取的程序切片来训练神经网络,以检测软件漏洞。程序切片捕获与漏洞相关的程序结构的语法和语义特征,包括API函数调用、数组使用、指针使用和算术表达式。为了获得对易受攻击代码和非易受攻击代码的强大预测模型,我们比较了不同类型的训练数据、不同的优化器和不同类型的神经网络。我们的结果表明,结合源代码的不同类型特征,并使用平衡数量的易受攻击程序切片和非易受攻击程序切片,可以在预测易受攻击代码和非易受攻击代码方面产生平衡的准确性。在不同的神经网络中,使用ADAM优化器的BGRU在检测软件漏洞方面表现最佳,准确率达到92.49%。

英文摘要:

Deep learning has been shown to be a promising tool in detecting software vulnerabilities. In this work, we train neural networks with program slices extracted from the source code of C/C++ programs to detect software vulnerabilities. The program slices capture the syntax and semantic characteristics of vulnerability-related program constructs, including API function call, array usage, pointer usage, and arithmetic expression. To achieve a strong prediction model for both vulnerable code and non-vulnerable code, we compare different types of training data, different optimizers, and different types of neural networks. Our result shows that combining different types of characteristics of source code and using a balanced number of vulnerable program slices and non-vulnerable program slices produce a balanced accuracy in predicting both vulnerable code and non-vulnerable code. Among different neural networks, BGRU with the ADAM optimizer performs the best in detecting software vulnerabilities with an accuracy of 92.49%.

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

↑