迈向揭示与修复LLM-in-the-Loop漏洞
Towards Demystifying and Repairing LLM-in-the-Loop Vulnerabilities
AI总结:
通过构建首个LLM-in-the-loop漏洞数据集LLMCVE,分析发现LLM常作为目标或传播向量而非根因,并评估现有修复方法,揭示此类漏洞修复更具挑战性。
摘要:
大型语言模型(LLMs)已被积极集成到现代软件系统中作为关键组件。LLM-in-the-loop漏洞,即由LLMs及其依赖的下游组件(如框架)引入的漏洞,带来了新的风险。尽管已构建了一些基准数据集来研究此类漏洞的影响,但大多数工作仍停留在传统软件层面的分析,忽视了LLMs实际造成的危害。理解真实世界的LLM-in-the-loop漏洞仍然是一个开放问题。为弥补这一空白,我们构建了首个LLM-in-the-loop漏洞数据集LLMCVE,以促进LLM集成软件的风险分析。为此,我们首先收集了230个流行LLM组件的2,888个多源漏洞。然后,通过人工分析,我们识别出205个严格符合LLM-in-the-loop漏洞概念的漏洞。通过分析,我们发现LLMs在这些漏洞中更多扮演目标或传播向量的角色,而非根本原因。此外,基于LLMCVE,我们评估了现有基于代理的漏洞修复方法(如SWE-Agent)的修复能力。实验结果表明,与传统软件漏洞相比,LLM-in-the-Loop漏洞更难精确修复,尤其是涉及提示注入的漏洞,其Pass@1率仅为28.57%。
英文摘要:
Large Language Models (LLMs) have been actively integrated into modern software systems as critical components, introducing a new type of software vulnerability, LLM-in-the-Loop (LiL) vulnerability, in which threats are caused by LLMs. Although some studies have attempted to investigate the impact of LiL vulnerabilities, they have unfortunately failed to clearly distinguish LiL vulnerabilities from conventional ones, leaving the understanding of real-world LiL vulnerabilities an open problem. To address this gap, we first clearly define the scope of LiL vulnerability, and discuss the differences between LiL vulnerabilities and vulnerabilities that exist in LLM systems but are not really caused by LLMs (i.e., LLM-ecosystem vulnerabilities). Then, we construct the first LiL vulnerability dataset, LiLCVE, covering 41 LiL vulnerabilities and 75 LLM-ecosystem vulnerabilities, to facilitate the risk analysis of LLM-integrated software. The analysis of LiLCVE reveals that LiL vulnerabilities have higher severity than LLM-ecosystem vulnerabilities and conventional software vulnerabilities, with 15.5% and 30.3% more critical vulnerabilities, respectively. Furthermore, given the high severity of LiL vulnerabilities and the potential of LLM-based vulnerability repair methods in patching conventional software vulnerabilities. We explore the capabilities of existing widely-used LLM-based methods in repairing vulnerabilities in LiLCVE. Experimental results on 20 agent-model configuration demonstrate that LiL vulnerabilities are far more challenging to fix, with an average decrease of 10.8% Pass@1 rate compared to other types of vulnerabilities. More critically, three categories, Generated Query Execution, Agent Action, and Model Output Rendering, frequently receive 0% repair success rates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。