AI漏洞发现工具为何会失效:结构假阴性与隐藏漏洞
Where AI Vulnerability Discovery Harnesses Go Quiet: Structural False Negatives and Hidden Vulnerabilities
AI总结:
本文研究LLM漏洞发现工具链的结构假阴性问题,梳理13个漏洞丢弃点,提出工程失败模式,给出准确报告的设计原则,成果可推广至其他LLM工具链。
摘要:
基于大语言模型(LLM)的漏洞发现工具可能会遗漏真实且可利用的漏洞,原因在于围绕模型构建的工具链(harness)存在缺陷。选择代码、过滤代码、存储及合并结果的步骤可能会在模型运行前后丢弃漏洞,这与模型的能力无关,且相关报告通常不会体现这种情况。这些丢弃源于工程选择和错误,导致漏洞未被检测到,而了解工具链规则的攻击者也可利用这些漏洞故意隐藏漏洞。理解这些丢弃情况有助于构建能修复或披露此类问题、更难被规避的工具链。从我们维护的两个工具链Knostic's OpenAnt和raptor出发,我们检查了另外10个开源工具链,绘制出13个发生此类丢弃的点并将其组织成分类体系。利用每个工具链的代码,我们展示了一个文件被6个工具链在模型处理代码前丢弃,其中5个未被察觉。我们提出了对应这些丢弃的工程失败模式,并将其与Ptacek和Newsham关于入侵检测规避的研究相关联。本文还涵盖了内容导向的裁决和提示注入,给出了能准确报告所分析内容的工具链的设计原则和测试。可靠性发现可能适用于漏洞研究和应用安全之外的其他LLM工具链,而规避发现适用于攻击者可编写或影响被检查代码的任何场景。我们还认为,旨在描述性的工具链实际上可以是规定性的:用于描述典型代码和典型模型回复的规则最终会决定分析内容,任何不符合的内容都会被视为不存在或“无漏洞”。
英文摘要:
LLM-based vulnerability discovery harnesses can miss real, reachable vulnerabilities because of how the harness around the model is built. Steps that select code, filter it, and store and merge findings can drop a vulnerability before or after the model runs, independently of the model's capability, and the report usually gives no sign that this happened. These drops come from engineering choices, and errors. They leave vulnerabilities undetected, and an attacker who knows the harness's rules can also use them to hide a vulnerability on purpose. Understanding these drops shows how to build harnesses that fix or disclose them and are harder to evade. Starting from the two harnesses we maintain, Knostic's OpenAnt and raptor, and then examining 10 additional open-source harnesses, we mapped 13 points where such drops occur and organized them into a taxonomy. Using each harness's own code, we show a single file that six harnesses dropped before their model saw its code, five of them without notice. We propose engineering failure patterns mapped to these drops, and relate them to Ptacek and Newsham's work on intrusion detection evasion. The paper also covers content-steered verdicts and prompt injection, and gives design principles and tests for harnesses that report accurately what they analyzed. The reliability findings likely apply to other LLM harnesses, beyond vulnerability research and application security, and the evasion findings apply wherever an attacker can write or influence the code being checked. We also argue that harnesses built to be descriptive can, in effect, be prescriptive. Rules written to describe typical code and typical model replies end up deciding what is analyzed, and anything that does not conform is treated as absent or as "no vulnerability."
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。