arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.06530cs.SEcs.AIcs.CLcs.CR
收藏

探索ChatGPT在漏洞管理中的能力

Exploring ChatGPT's Capabilities on Vulnerability Management

Zhejiang University(浙江大学);Zhejiang University NGICS Platform(浙江大学NGICS平台);Hangzhou Dianzi University(杭州电子科技大学);University of Minnesota(明尼苏达大学);Jianghuai Advance Technology Center(江淮先进技术中心);Ant Group(蚂蚁集团)

Peiyu Liu, Junming Liu, Lirong Fu, Kangjie Lu, Yifan Xia, Xuhong Zhang, Wenzhi Chen, Haiqin Weng, Shouling Ji, Wenhai Wang

AI总结:

该研究基于70346样本的大规模数据集,探究ChatGPT在6项漏洞管理全流程任务中的能力,对比其与SOTA方法的表现,分析提示词影响与现存难点,指明自启发式应用等未来研究方向。

摘要:

近年来,ChatGPT在代码分析领域受到了广泛关注。已有研究表明,ChatGPT具备处理基础代码分析任务的能力,例如抽象语法树生成,这显示出ChatGPT在理解代码语法和静态行为方面的潜力。然而,目前尚不清楚ChatGPT是否能够完成更复杂的现实世界漏洞管理任务,例如安全相关性预测和补丁正确性验证,这类任务需要对代码语法、程序语义及相关人工注释等多个方面具备全面的理解。\n 在本文中,我们借助包含70346个样本的大规模数据集,探究了ChatGPT在覆盖完整漏洞管理流程的6项任务上的能力。针对每一项任务,我们将ChatGPT与SOTA(当前最优)方法进行对比,研究不同提示词的影响,并探索其中存在的难点。结果表明,利用ChatGPT辅助漏洞管理具有可观的潜力,一个显著的例子是ChatGPT擅长为软件错误报告生成标题这类任务。此外,我们的发现揭示了ChatGPT面临的困难,并指明了有前景的未来研究方向。例如,在提示词中直接提供随机示例无法始终保证漏洞管理任务的良好性能。相比之下,以自启发的方式使用ChatGPT——即从示例本身中提取专业知识,并将提取的专业知识整合到提示词中——是一个有前景的研究方向。除此之外,ChatGPT可能会误解并误用提示词中的信息。因此,如何有效引导ChatGPT关注有用信息而非无关内容,仍然是一个有待解决的问题。

英文摘要:

Recently, ChatGPT has attracted great attention from the code analysis domain. Prior works show that ChatGPT has the capabilities of processing foundational code analysis tasks, such as abstract syntax tree generation, which indicates the potential of using ChatGPT to comprehend code syntax and static behaviors. However, it is unclear whether ChatGPT can complete more complicated real-world vulnerability management tasks, such as the prediction of security relevance and patch correctness, which require an all-encompassing understanding of various aspects, including code syntax, program semantics, and related manual comments. In this paper, we explore ChatGPT's capabilities on 6 tasks involving the complete vulnerability management process with a large-scale dataset containing 70,346 samples. For each task, we compare ChatGPT against SOTA approaches, investigate the impact of different prompts, and explore the difficulties. The results suggest promising potential in leveraging ChatGPT to assist vulnerability management. One notable example is ChatGPT's proficiency in tasks like generating titles for software bug reports. Furthermore, our findings reveal the difficulties encountered by ChatGPT and shed light on promising future directions. For instance, directly providing random demonstration examples in the prompt cannot consistently guarantee good performance in vulnerability management. By contrast, leveraging ChatGPT in a self-heuristic way -- extracting expertise from demonstration examples itself and integrating the extracted expertise in the prompt is a promising research direction. Besides, ChatGPT may misunderstand and misuse the information in the prompt. Consequently, effectively guiding ChatGPT to focus on helpful information rather than the irrelevant content is still an open problem.

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

↑