arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.09225cs.AIcs.SE
收藏

基于多上下文注意力融合神经网络的软件漏洞识别

Multi-context Attention Fusion Neural Network for Software Vulnerability Identification

Cisco Systems(思科系统公司)

Anshul Tanwar, Hariharan Manikandan, Krishna Sundaresan, Prasanna Ganesan, Sathish Kumar Chandrasekaran, Sriram Ravi

摘要:

交付代码中的安全问题可能会导致不可预见的设备故障、系统崩溃或部署后被黑客恶意利用。这些漏洞会产生修复成本,最重要的是会危及公司的信誉。如果这些问题在发布之前就被检测到并被修复,这是值得的。通用弱点估计(CWE)是一个术语,描述了在C代码中观察到的一般漏洞模式。在这项工作中,我们提出了一个深度学习模型,学习有效地检测源代码中的一些常见类别的安全漏洞。AI架构是一种注意力融合模型,它结合了递归、卷积和自注意力网络的有效性,以解码代码中的漏洞热点。利用代码AST结构,我们的模型建立了一个准确的理解代码语义与少得多的可学习的参数。除了一种有效检测代码漏洞的新方法外,该模型的另一个新颖之处是精确指向模型认为易受攻击的代码部分。从而帮助开发人员快速关注易受攻击的代码部分;这成为漏洞检测的“可解释”部分。建议的AI在来自基准NIST SARD数据集的特定CWE上实现了98.40%的F1分数,并与最先进的技术水平进行了比较。

英文摘要:

Security issues in shipped code can lead to unforeseen device malfunction, system crashes or malicious exploitation by crackers, post-deployment. These vulnerabilities incur a cost of repair and foremost risk the credibility of the company. It is rewarding when these issues are detected and fixed well ahead of time, before release. Common Weakness Estimation (CWE) is a nomenclature describing general vulnerability patterns observed in C code. In this work, we propose a deep learning model that learns to detect some of the common categories of security vulnerabilities in source code efficiently. The AI architecture is an Attention Fusion model, that combines the effectiveness of recurrent, convolutional and self-attention networks towards decoding the vulnerability hotspots in code. Utilizing the code AST structure, our model builds an accurate understanding of code semantics with a lot less learnable parameters. Besides a novel way of efficiently detecting code vulnerability, an additional novelty in this model is to exactly point to the code sections, which were deemed vulnerable by the model. Thus helping a developer to quickly focus on the vulnerable code sections; and this becomes the "explainable" part of the vulnerability detection. The proposed AI achieves 98.40% F1-score on specific CWEs from the benchmarked NIST SARD dataset and compares well with state of the art.

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

↑