arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.00435cs.SEcs.AIcs.CR
收藏

关于使用ChatGPT进行软件安全的定性研究:认知与实际可行性

A Qualitative Study on Using ChatGPT for Software Security: Perception vs. Practicality

The University of Adelaide(阿德莱德大学);Cyber Security Cooperative Research Centre(网络安全合作研究中心)

M. Mehdi Kholoosi, M. Ali Babar, Roland Croft

AI总结:

本文通过Twitter实证研究和漏洞检测实验,定性分析了ChatGPT在软件安全中的认知与实际可行性,发现其输出多为通用信息,尚不适合工业应用。

摘要:

人工智能(AI)的进步推动了大型语言模型(LLMs)的发展,这些模型能够以卓越的语义理解和准确性执行各种任务。ChatGPT就是其中一种LLM,因其在辅助各种知识密集型任务方面的出色能力而受到广泛关注。由于安全软件工程的知识密集型特性,人们期望在软件开发和演进过程中探索使用ChatGPT辅助安全相关任务。为了理解ChatGPT作为支持软件安全的新兴技术的潜力,我们采用了两方面的方法。首先,我们进行了一项实证研究,分析那些探索过将ChatGPT用于安全任务并在Twitter上分享观点的人的看法。研究确定,安全从业者认为ChatGPT对各种软件安全任务有益,包括漏洞检测、信息检索和渗透测试。其次,我们设计了一项实验,旨在研究该技术在实际环境中作为oracle部署时的实际可行性。我们特别关注漏洞检测,并针对这一重要软件安全任务中给定提示的ChatGPT输出进行了定性检查。根据我们的分析,ChatGPT在该任务中的回答大多充斥着通用安全信息,可能不适合工业使用。为防止数据泄漏,我们在OpenAI数据截止日期之后从真实世界项目中汇编的漏洞数据集上进行了这一分析,该数据集涵盖40种不同的漏洞类型和12种编程语言。我们断言,本研究的发现将有助于未来旨在开发和评估专门用于软件安全的LLMs的研究。

英文摘要:

Artificial Intelligence (AI) advancements have enabled the development of Large Language Models (LLMs) that can perform a variety of tasks with remarkable semantic understanding and accuracy. ChatGPT is one such LLM that has gained significant attention due to its impressive capabilities for assisting in various knowledge-intensive tasks. Due to the knowledge-intensive nature of engineering secure software, ChatGPT's assistance is expected to be explored for security-related tasks during the development/evolution of software. To gain an understanding of the potential of ChatGPT as an emerging technology for supporting software security, we adopted a two-fold approach. Initially, we performed an empirical study to analyse the perceptions of those who had explored the use of ChatGPT for security tasks and shared their views on Twitter. It was determined that security practitioners view ChatGPT as beneficial for various software security tasks, including vulnerability detection, information retrieval, and penetration testing. Secondly, we designed an experiment aimed at investigating the practicality of this technology when deployed as an oracle in real-world settings. In particular, we focused on vulnerability detection and qualitatively examined ChatGPT outputs for given prompts within this prominent software security task. Based on our analysis, responses from ChatGPT in this task are largely filled with generic security information and may not be appropriate for industry use. To prevent data leakage, we performed this analysis on a vulnerability dataset compiled after the OpenAI data cut-off date from real-world projects covering 40 distinct vulnerability types and 12 programming languages. We assert that the findings from this study would contribute to future research aimed at developing and evaluating LLMs dedicated to software security.

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

↑