arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2302.02345cs.SEcs.AI
收藏

VuLASTE:基于抽象树嵌入的长序列漏洞检测模型

VuLASTE: Long Sequence Model with Abstract Syntax Tree Embedding for vulnerability Detection

Botong Zhu, Huobin Tan

摘要:

在本文中,我们建立了一个名为VuLASTE模型,它把漏洞检测作为一个特殊的文本分类任务。为了解决词汇爆炸问题,VuLASTE使用了来自自然语言处理的字节级BPE算法。在VuLASTE中,添加了一个新的AST路径嵌入来表示源代码嵌套信息。我们还使用Longformer的全局和扩张窗口注意力的组合从源代码中提取长序列语义。为了解决漏洞检测数据集中普遍存在的数据不平衡问题,采用焦点损失作为损失函数,使模型在训练时集中于分类不好的案例。为了测试我们的模型在真实源代码上的性能,我们从Github安全咨询数据库中构建了一个跨语言和多存储库的漏洞数据集。在这个数据集上,VuLASTE获得了29,51,86,228的前50,前100,前200,前500的点击率,高于最先进的研究。

英文摘要:

In this paper, we build a model named VuLASTE, which regards vulnerability detection as a special text classification task. To solve the vocabulary explosion problem, VuLASTE uses a byte level BPE algorithm from natural language processing. In VuLASTE, a new AST path embedding is added to represent source code nesting information. We also use a combination of global and dilated window attention from Longformer to extract long sequence semantic from source code. To solve the data imbalance problem, which is a common problem in vulnerability detection datasets, focal loss is used as loss function to make model focus on poorly classified cases during training. To test our model performance on real-world source code, we build a cross-language and multi-repository vulnerability dataset from Github Security Advisory Database. On this dataset, VuLASTE achieved top 50, top 100, top 200, top 500 hits of 29, 51, 86, 228, which are higher than state-of-art researches.

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

↑