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

评估 ChatGPT 对软件安全课程练习的影响

Evaluating the Impact of ChatGPT on Exercises of a Software Security Course

Jingyue Li, Per Håkon Meland, Jakob Svennevik Notland, André Storhaug, Jostein Hjortland Tysse

AI总结:

本文通过将含漏洞代码输入 ChatGPT,评估其在软件安全课程练习中的表现,发现 GPT-4 能识别 28 个漏洞中的 20 个,并为 10 个待修复漏洞中的 9 个提供有效建议,表明其对安全教学具有显著影响。

摘要:

随着大语言模型(LLMs,如 ChatGPT)的发展,许多现有的软件安全方法和工具正在发生变化。因此,理解这些模型的安全意识程度以及它们如何影响软件安全实践和教育至关重要。在我们大学软件安全课程的练习中,我们要求学生使用最先进的工具识别并修复我们插入到 Web 应用程序中的漏洞。在 ChatGPT(尤其是 GPT-4 版本)出现之后,我们希望了解学生可能如何利用 ChatGPT 来完成练习任务。我们将存在漏洞的代码输入 ChatGPT,并衡量其在漏洞识别和修复方面的准确性。此外,我们还调查了 ChatGPT 是否能够提供合适的信息来源来支持其输出。结果表明,在白盒设置下,ChatGPT 能够识别出我们插入到 Web 应用程序中的 28 个漏洞中的 20 个,报告了 3 个误报,并发现了 4 个超出我们插入范围的额外漏洞。对于我们希望学生修复的 10 个漏洞,ChatGPT 给出了 9 个令人满意的渗透测试和修复建议,并且通常能够指出相关的信息来源。

英文摘要:

Along with the development of large language models (LLMs), e.g., ChatGPT, many existing approaches and tools for software security are changing. It is, therefore, essential to understand how security-aware these models are and how these models impact software security practices and education. In exercises of a software security course at our university, we ask students to identify and fix vulnerabilities we insert in a web application using state-of-the-art tools. After ChatGPT, especially the GPT-4 version of the model, we want to know how the students can possibly use ChatGPT to complete the exercise tasks. We input the vulnerable code to ChatGPT and measure its accuracy in vulnerability identification and fixing. In addition, we investigated whether ChatGPT can provide a proper source of information to support its outputs. Results show that ChatGPT can identify 20 of the 28 vulnerabilities we inserted in the web application in a white-box setting, reported three false positives, and found four extra vulnerabilities beyond the ones we inserted. ChatGPT makes nine satisfactory penetration testing and fixing recommendations for the ten vulnerabilities we want students to fix and can often point to related sources of information.

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

↑