arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.25973cs.SEcs.AI
收藏

有益还是有害?通过人类研究评估LLM辅助的漏洞修补

Helpful or Harmful? Evaluating LLM-Assisted Vulnerability Patching via a Human Study

Giulian Biolo, Michael Tezza, Yuanjun Gong, Fabio Massacci

AI总结:

通过人类实验研究LLM辅助漏洞修补的效果,发现其可能加速修补但增加生成不安全代码的风险。

摘要:

软件漏洞修复是一项认知要求高的任务,需要一般开发者通常缺乏的专业安全知识。与此同时,大型语言模型(LLM)辅助工具在漏洞检测、定位和修复任务中显示出潜力。[假设]虽然LLM辅助被认为可以加速修补,但它也有引入幻觉或不安全代码的风险,导致更可能生成绕过标准功能检查但未能通过安全验证的表面修复。[目标]我们旨在通过实证实验,揭示LLM辅助漏洞修补与手动调试在真实场景中对人类参与者的能力。[方法]我们计划使用平衡交叉设计进行对照实验。为此,我们开发了一个用于代码执行的WebApp,并集成了隐藏的Ghost测试,以验证修补完整性超出可见功能需求。实验包括训练和评估场景。将评估修补速度、标准功能测试和安全测试的修补效果,以及参与者的感知。[试点研究]已进行小样本试点实验,为后续研究提供见解。

英文摘要:

Software vulnerability remediation is a cognitively demanding task that requires specialized security expertise often lacking in general developers. In the meantime, Large Language Models (LLMs) assisted tools show potential in vulnerability detection, location, and repair tasks. [Hypothesis:] While LLM-assistance is hypothesized to accelerate patching, it also risks introducing hallucinations or insecure code, leading to a higher likelihood of generating superficial repairs that bypass the standard functionality checks but fail the security validation. [Objective:] We aim to present an empirical experiment, unveiling the capability of LLM-assisted vulnerability patching compared to manual debugging on human participants in real-world scenarios. [Method:] We plan to conduct a controlled experiment using a Balanced Crossover design. For that, we have developed a WebApp for code execution and integrated hidden Ghost Tests to verify patch integrity beyond visible functional requirements. The experiment involves training and evaluation scenarios. The remediation speed, remediation efficacy for both standard functionality tests and security tests, and participant perception will be evaluated. [Pilot Study:] A pilot experiment with a small sample of participants has been conducted, providing insights for the following study.

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

↑