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

基于大语言代码嵌入与语义漏洞图的开源软件安全因果洞察

Causative Insights into Open Source Software Security using Large Language Code Embeddings and Semantic Vulnerability Graph

Nafis Tanveer Islam, Gonzalo De La Torre Parra, Dylan Manual, Murtuza Jadliwala, Peyman Najafirad

AI总结:

本文提出将漏洞与根本原因关联的系统,结合大语言代码嵌入和语义漏洞图教育开发者安全编码,并通过可用性研究证明其使代码修复能力提升24%,约9%的开发者经训练后自然编写更安全代码。

摘要:

开源软件(OSS)的安全性与韧性是阻碍经济和技术创新的全球性现象。OSS漏洞可能导致未授权访问、数据泄露、网络中断和隐私侵犯,使任何收益化为乌有。尽管最近的深度学习技术在识别和定位源代码漏洞方面展现出巨大前景,但由于缺乏适当的方法论分析,这些研究技术从可用性角度看究竟有多大效果仍不清楚。通常,这些方法将开发者分类和定位易受攻击代码的任务卸载给模型;然而,目前尚未开展合理的研究来衡量这些系统对最终用户的实际有效性。为了解决先前方法中开发者培训不足的问题,我们提出一个将漏洞与其根本原因联系起来的系统,从而直观地教育开发者更安全地编写代码。此外,我们提供了一项全面的可用性研究,以测试我们的系统在修复漏洞方面的有效性及其协助开发者编写更安全代码的能力。我们通过展示系统帮助开发者修复含漏洞源代码的功效来证明其有效性。我们的研究表明,与先前方法相比,代码修复能力提高了24%。我们还表明,在经过我们的系统训练后,平均约9%的开发者自然倾向于编写漏洞更少、更安全的代码。

英文摘要:

Open Source Software (OSS) security and resilience are worldwide phenomena hampering economic and technological innovation. OSS vulnerabilities can cause unauthorized access, data breaches, network disruptions, and privacy violations, rendering any benefits worthless. While recent deep-learning techniques have shown great promise in identifying and localizing vulnerabilities in source code, it is unclear how effective these research techniques are from a usability perspective due to a lack of proper methodological analysis. Usually, these methods offload a developer's task of classifying and localizing vulnerable code; still, a reasonable study to measure the actual effectiveness of these systems to the end user has yet to be conducted. To address the challenge of proper developer training from the prior methods, we propose a system to link vulnerabilities to their root cause, thereby intuitively educating the developers to code more securely. Furthermore, we provide a comprehensive usability study to test the effectiveness of our system in fixing vulnerabilities and its capability to assist developers in writing more secure code. We demonstrate the effectiveness of our system by showing its efficacy in helping developers fix source code with vulnerabilities. Our study shows a 24% improvement in code repair capabilities compared to previous methods. We also show that, when trained by our system, on average, approximately 9% of the developers naturally tend to write more secure code with fewer vulnerabilities.

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

↑