LLMBisect:通过比较分析流水线打破缺陷二分中的障碍
LLMBisect: Breaking Barriers in Bug Bisection with A Comparative Analysis Pipeline
AI总结:
针对传统基于补丁的缺陷二分方法的局限性,提出利用LLM的多阶段流水线LLMBisect,通过充分利用补丁信息、比较候选提交和逐步缩小范围,将准确率提升超过38%。
摘要:
缺陷二分一直是一项重要的安全任务,旨在了解受缺陷影响的软件版本范围,即识别引入缺陷的提交。然而,传统的基于补丁的二分方法面临几个重大障碍:例如,它们假设引入缺陷的提交(BIC)和补丁提交修改相同的函数,但这并不总是正确的。它们通常仅依赖代码更改,而提交消息经常包含大量与漏洞相关的信息。它们还基于简单的启发式方法(例如,假设BIC初始化在补丁中删除的行),并且缺乏对漏洞的任何逻辑分析。在本文中,我们观察到大型语言模型(LLMs)非常适合打破现有解决方案的障碍,例如理解补丁和提交中的文本数据和代码。与之前产生较差结果的BIC识别方法不同,我们提出了一个综合多阶段流水线,利用LLMs来:(1)充分利用补丁信息,(2)在上下文中比较多个候选提交,以及(3)通过一系列下选步骤逐步缩小候选范围。在我们的评估中,我们证明我们的方法比最先进的解决方案准确率显著提高超过38%。我们的结果进一步证实,综合多阶段流水线是必不可少的,因为它比基于基线LLM的二分方法提高了60%的准确率。
英文摘要:
Bug bisection has been an important security task that aims to understand the range of software versions impacted by a bug, i.e., identifying the commit that introduced the bug. However, traditional patch-based bisection methods are faced with several significant barriers: For example, they assume that the bug-inducing commit (BIC) and the patch commit modify the same functions, which is not always true. They often rely solely on code changes, while the commit message frequently contains a wealth of vulnerability-related information. They are also based on simple heuristics (e.g., assuming the BIC initializes lines deleted in the patch) and lack any logical analysis of the vulnerability. In this paper, we make the observation that Large Language Models (LLMs) are well-positioned to break the barriers of existing solutions, e.g., comprehend both textual data and code in patches and commits. Unlike previous BIC identification approaches, which yield poor results, we propose a comprehensive multi-stage pipeline that leverages LLMs to: (1) fully utilize patch information, (2) compare multiple candidate commits in context, and (3) progressively narrow down the candidates through a series of down-selection steps. In our evaluation, we demonstrate that our approach achieves significantly better accuracy than the state-of-the-art solution by more than 38\%. Our results further confirm that the comprehensive multi-stage pipeline is essential, as it improves accuracy by 60\% over a baseline LLM-based bisection method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。