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

变量是软件漏洞预测中的一种诅咒

Variables are a Curse in Software Vulnerability Prediction

Institute of Information Systems (IFIS), University of Lübeck(吕贝克大学信息系统研究所(IFIS))

Jinghua Groppe, Sven Groppe, Ralf Möller

AI总结:

本文针对变量命名无限多样导致深度学习漏洞预测难以学习程序内在功能的问题,提出名称依赖边、抽象语法图和3属性编码方案,去除具体变量名,显著提升预测性能并大幅降低内存占用。

摘要:

当前基于深度学习的软件漏洞预测方法主要依赖软件代码的原始文本作为代码图中节点的特征,因此只能学习到仅针对代码文本的表示,而无法学习隐藏在文本表示中的程序“内在”功能表示。造成这一问题的一个诅咒是变量命名存在无限多种可能性。为了解除这一诅咒,本文引入了一种称为名称依赖的新型边、一种基于名称依赖的抽象语法图,以及一种名为3属性编码方案的高效节点表示方法。这些技术将使我们能够从代码中移除具体变量名,并促进深度学习模型学习隐藏在多样化代码表达式中的软件功能。实验结果表明,基于这些技术构建的深度学习模型不仅在漏洞预测方面优于基于现有方法的模型,而且在内存需求方面也表现更优。与现有方法相比,我们的技术在内存使用量上的降低幅度最高可达30,000倍。

英文摘要:

Deep learning-based approaches for software vulnerability prediction currently mainly rely on the original text of software code as the feature of nodes in the graph of code and thus could learn a representation that is only specific to the code text, rather than the representation that depicts the 'intrinsic' functionality of a program hidden in the text representation. One curse that causes this problem is an infinite number of possibilities to name a variable. In order to lift the curse, in this work we introduce a new type of edge called name dependence, a type of abstract syntax graph based on the name dependence, and an efficient node representation method named 3-property encoding scheme. These techniques will allow us to remove the concrete variable names from code, and facilitate deep learning models to learn the functionality of software hidden in diverse code expressions. The experimental results show that the deep learning models built on these techniques outperform the ones based on existing approaches not only in the prediction of vulnerabilities but also in the memory need. The factor of memory usage reductions of our techniques can be up to the order of 30,000 in comparison to existing approaches.

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

↑