arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.06587cs.SEcs.CR
收藏

Copilot 的以用户为中心的安全评估

A User-centered Security Evaluation of Copilot

Owura Asare, Meiyappan Nagappan, N. Asokan

AI总结:

本文对 GitHub Copilot 进行以用户为中心的安全评估,通过用户研究(n=25)发现使用 Copilot 在处理较难问题时能带来更安全的解决方案,对简单问题无影响,且对特定漏洞类型无不成比例影响,表明其具潜在安全益处但需更多研究。

摘要:

人工智能驱动的代码生成工具因深度学习和自然语言处理的进步而能力提升,近期变得更加普及。这些工具的普及可能是一把双刃剑,因为虽然它们能通过简化代码编写来提高开发者生产力,但研究表明它们也可能生成不安全的代码。在本文中,我们对 GitHub 的 Copilot 进行了以用户为中心的评估,以更好地理解其在代码安全方面的优缺点。我们开展了一项用户研究,参与者在其中解决编程问题(在有 Copilot 协助和没有协助的情况下),这些问题存在潜在的易受攻击解决方案。该用户研究的主要目标是确定 Copilot 的使用如何影响参与者的安全表现。在我们的参与者集合(n=25)中,我们发现使用 Copilot 在处理较难问题时伴随着更安全的解决方案。对于较简单的问题,我们观察到 Copilot 的使用对解决方案的安全性没有影响。我们还观察到 Copilot 的使用对特定类型的漏洞没有不成比例的影响。我们的结果表明,使用 Copilot 具有潜在的安全益处,但需要更多关于代码生成工具的使用对具有安全要求的技术复杂问题影响的研究。

英文摘要:

Code generation tools driven by artificial intelligence have recently become more popular due to advancements in deep learning and natural language processing that have increased their capabilities. The proliferation of these tools may be a double-edged sword because while they can increase developer productivity by making it easier to write code, research has shown that they can also generate insecure code. In this paper, we perform a user-centered evaluation GitHub's Copilot to better understand its strengths and weaknesses with respect to code security. We conduct a user study where participants solve programming problems (with and without Copilot assistance) that have potentially vulnerable solutions. The main goal of the user study is to determine how the use of Copilot affects participants' security performance. In our set of participants (n=25), we find that access to Copilot accompanies a more secure solution when tackling harder problems. For the easier problem, we observe no effect of Copilot access on the security of solutions. We also observe no disproportionate impact of Copilot use on particular kinds of vulnerabilities. Our results indicate that there are potential security benefits to using Copilot, but more research is warranted on the effects of the use of code generation tools on technically complex problems with security requirements.

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

↑