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

Lost at C:用户对大语言模型代码助手安全性影响的研究

Lost at C: A User Study on the Security Implications of Large Language Model Code Assistants

Gustavo Sandoval, Hammond Pearce, Teo Nys, Ramesh Karri, Siddharth Garg, Brendan Dolan-Gavitt

摘要:

像OpenAI Codex这样的大语言模型(LLM)越来越多地被用作基于AI的编码助手。了解这些工具对开发人员代码的影响至关重要,特别是最近的工作表明,LLM可能表明网络安全漏洞。我们进行了一项安全驱动的用户研究(N=58),以评估学生程序员在LLM的帮助下编写的代码。考虑到低级错误的潜在严重性以及它们在现实项目中的相对频率,我们要求参与者在C中实现一个单链接的“购物清单”结构。我们的研究结果表明,这种设置(使用指针和数组操作的低级C语言)的安全影响很小:人工智能辅助用户产生关键安全错误的比率不超过对照组的10%,这表明使用LLM不会引入新的安全风险。

英文摘要:

Large Language Models (LLMs) such as OpenAI Codex are increasingly being used as AI-based coding assistants. Understanding the impact of these tools on developers' code is paramount, especially as recent work showed that LLMs may suggest cybersecurity vulnerabilities. We conduct a security-driven user study (N=58) to assess code written by student programmers when assisted by LLMs. Given the potential severity of low-level bugs as well as their relative frequency in real-world projects, we tasked participants with implementing a singly-linked 'shopping list' structure in C. Our results indicate that the security impact in this setting (low-level C with pointer and array manipulations) is small: AI-assisted users produce critical security bugs at a rate no greater than 10% more than the control, indicating the use of LLMs does not introduce new security risks.

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

↑