arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.06177cs.SEcs.AIcs.LG
收藏

程序设计语言间软件漏洞预测知识传递

Software Vulnerability Prediction Knowledge Transferring Between Programming Languages

Ericsson Security Research(爱立信安全研究院);Vodafone(沃达丰)

Khadija Hanifi, Ramin F Fouladi, Basak Gencer Unsalver, Goksu Karadag

摘要:

开发自动化和智能化的软件漏洞检测模型一直受到研究和开发社区的极大关注。这方面最大的挑战之一是缺乏适用于所有不同程序设计语言的代码示例。在这项研究中,我们通过提出一种迁移学习技术来解决这个问题,该技术利用可用的数据集并生成一个模型来检测不同程序设计语言中的常见漏洞。我们使用C源代码样本来训练一个卷积神经网络(CNN)模型,然后,我们使用Java源代码样本来采用和评估学习的模型。我们使用来自两个基准数据集的代码样本:NIST软件保障参考数据集(SARD)和Draper VDISC数据集。实验结果表明,该模型能够检测出C和Java代码中的漏洞,平均召回率为72%.此外,我们采用可解释的人工智能来研究每个功能对所提出的模型中C和Java之间的知识转移机制的贡献。

英文摘要:

Developing automated and smart software vulnerability detection models has been receiving great attention from both research and development communities. One of the biggest challenges in this area is the lack of code samples for all different programming languages. In this study, we address this issue by proposing a transfer learning technique to leverage available datasets and generate a model to detect common vulnerabilities in different programming languages. We use C source code samples to train a Convolutional Neural Network (CNN) model, then, we use Java source code samples to adopt and evaluate the learned model. We use code samples from two benchmark datasets: NIST Software Assurance Reference Dataset (SARD) and Draper VDISC dataset. The results show that proposed model detects vulnerabilities in both C and Java codes with average recall of 72\%. Additionally, we employ explainable AI to investigate how much each feature contributes to the knowledge transfer mechanisms between C and Java in the proposed model.

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

↑