在软件开发中使用AI助手:关于安全实践与担忧的定性研究
Using AI Assistants in Software Development: A Qualitative Study on Security Practices and Concerns
AI总结:
本文通过访谈和Reddit数据分析发现,尽管存在安全担忧,软件专业人员仍广泛使用AI助手执行代码生成等安全关键任务,并建议各方批判性检查建议、提升安全能力及深入研究通用AI应用。
摘要:
随着OpenAI的ChatGPT和GitHub Copilot等AI助手的最新发布,软件行业迅速利用这些工具进行软件开发任务,例如生成代码或向AI咨询建议。尽管近期研究表明AI生成的代码可能包含安全问题,但软件专业人员如何平衡AI助手的使用与安全仍不清楚。本文调查了软件专业人员在安全软件开发中如何使用AI助手,出现了哪些安全隐患和考量,以及他们预见到这些工具对安全软件开发有何影响。我们对包括软件工程师、团队负责人和安全测试人员在内的软件专业人员进行了27次半结构化访谈。我们还审查了190条相关的Reddit帖子和评论,以深入了解当前关于软件开发AI助手的相关讨论。我们对访谈和Reddit帖子的分析发现,尽管存在许多安全和质量方面的担忧,参与者仍广泛使用AI助手执行安全关键任务,例如代码生成、威胁建模和漏洞检测。他们的总体不信任导致其以类似于人工编写代码的方式检查AI的建议,尽管他们期望未来会有所改进,因此会在安全任务中更频繁地使用。最后,我们提出了建议:软件专业人员应批判性地检查AI建议,AI创建者应提升建议的安全性及执行伦理安全任务的能力,学术研究人员应考虑在软件开发中使用通用AI。
英文摘要:
Following the recent release of AI assistants, such as OpenAI's ChatGPT and GitHub Copilot, the software industry quickly utilized these tools for software development tasks, e.g., generating code or consulting AI for advice. While recent research has demonstrated that AI-generated code can contain security issues, how software professionals balance AI assistant usage and security remains unclear. This paper investigates how software professionals use AI assistants in secure software development, what security implications and considerations arise, and what impact they foresee on secure software development. We conducted 27 semi-structured interviews with software professionals, including software engineers, team leads, and security testers. We also reviewed 190 relevant Reddit posts and comments to gain insights into the current discourse surrounding AI assistants for software development. Our analysis of the interviews and Reddit posts finds that despite many security and quality concerns, participants widely use AI assistants for security-critical tasks, e.g., code generation, threat modeling, and vulnerability detection. Their overall mistrust leads to checking AI suggestions in similar ways to human code, although they expect improvements and, therefore, a heavier use for security tasks in the future. We conclude with recommendations for software professionals to critically check AI suggestions, AI creators to improve suggestion security and capabilities for ethical security tasks, and academic researchers to consider general-purpose AI in software development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。