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

生成式AI代码助手的安全问题:来自GitHub Copilot在线讨论的洞察

Security Concerns in Generative AI Coding Assistants: Insights from Online Discussions on GitHub Copilot

Hamburg University of Technology(汉堡工业大学);University of Saskatchewan(萨斯喀彻温大学);RMIT University(皇家墨尔本理工大学)

Nicolás E. Díaz Ferreyra, Monika Swetha Gurupathi, Zadia Codabux, Nalin Arachchilage, Riccardo Scandariato

AI总结:

研究分析开发者在公共论坛中提出的安全问题,识别出数据泄露、代码授权、对抗攻击和不安全代码建议等四大安全关切,揭示生成式AI在软件工程中的局限性与权衡。

摘要:

生成式人工智能(GenAI)已成为许多开发工具(如GitHub Copilot)的核心组成部分,支持软件从业者在多个编程任务中进行代码补全、文档生成和错误检测。然而,当前研究已识别出GenAI存在显著的局限性和开放性问题,包括可靠性、非确定性、偏见和版权侵权。尽管先前工作主要集中在评估这些技术在代码生成中的技术性能,但较少关注软件开发人员新兴的安全关切。本文通过分析开发者和软件爱好者在公共在线论坛中提出的安全挑战,探讨GenAI基于代码助手的安全问题。方法:我们从三个流行平台(Stack Overflow、Reddit和Hacker News)中检索了讨论GitHub Copilot安全问题的帖子、评论和讨论线程,使用BERTopic进行聚类,再通过主题分析进行综合分析。结果:识别出四大安全关切领域,包括潜在的数据泄露、代码授权、对抗攻击(如提示注入)和不安全的代码建议,凸显了GenAI在软件工程中的局限性和权衡。意义:我们的发现有助于更全面地理解开发者对GenAI基于代码助手的看法和参与,同时突显了改进其内置安全功能的关键领域。

英文摘要:

Generative Artificial Intelligence (GenAI) has become a central component of many development tools (e.g., GitHub Copilot) that support software practitioners across multiple programming tasks, including code completion, documentation, and bug detection. However, current research has identified significant limitations and open issues in GenAI, including reliability, non-determinism, bias, and copyright infringement. While prior work has primarily focused on assessing the technical performance of these technologies for code generation, less attention has been paid to emerging concerns of software developers, particularly in the security realm. OBJECTIVE: This work explores security concerns regarding the use of GenAI-based coding assistants by analyzing challenges voiced by developers and software enthusiasts in public online forums. METHOD: We retrieved posts, comments, and discussion threads addressing security issues in GitHub Copilot from three popular platforms, namely Stack Overflow, Reddit, and Hacker News. These discussions were clustered using BERTopic and then synthesized using thematic analysis to identify distinct categories of security concerns. RESULTS: Four major concern areas were identified, including potential data leakage, code licensing, adversarial attacks (e.g., prompt injection), and insecure code suggestions, underscoring critical reflections on the limitations and trade-offs of GenAI in software engineering. IMPLICATIONS: Our findings contribute to a broader understanding of how developers perceive and engage with GenAI-based coding assistants, while highlighting key areas for improving their built-in security features.

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

↑