Veritas:一种语义导向的代理框架,用于二进制中的内存破坏漏洞检测
Veritas: Grounding LLM Agents for Reliable Vulnerability Reasoning over Stripped Binaries
AI总结:
Veritas通过结合静态切片、双视角LLM检测器和多代理验证器,利用语义基础和运行时证据检测二进制中的内存破坏漏洞,实现了90%的召回率,并在实际应用中发现了一个未知的Apple漏洞。
摘要:
检测剥离二进制中的内存破坏漏洞需要从低级、失真表示中恢复对象语义、跨过程传播和可行触发器。最近基于LLM的方法改进了代码理解,但可靠的检测仍需要基于内存相关语义和运行时可行性证据。我们提出了Veritas,一种用于二进制内存破坏漏洞检测的语义导向框架。Veritas结合了基于RetDec提升的LLVM IR的静态切片器、一个双视角LLM检测器,该检测器通过解编C和选择性LLVM IR逐步推理 grounded flows,以及一个多代理验证器,该验证器通过调试器可见的artifacts和运行时证据检查假设。切片器从LLVM-IR事实中重建值流关系,包括def-use、calls、returns、globals和指针操作,并生成紧凑的见证支持的流对象。检测器利用这些artifacts进行控制流、边界和对象对应性的推理,而无需重新发现整个二进制传播。验证器通过引导调试、断点检查和内存检查oracles确认或拒绝候选者。我们实现了Veritas作为模块化流水线,并在经过筛选的现实二进制漏洞案例上进行了评估。Veritas实现了90%的召回率。对于假阳性评估,我们彻底验证并手动验证了623个检测器候选者,并审计了更多候选者。彻底的子集产生没有假阳性,而额外的审计识别出两个确认的假阳性。在实际应用中,Veritas发现了之前未知的Apple漏洞,该漏洞已被确认并分配了CVE。这些结果支持语义基础作为实际二进制漏洞检测的操作设计原则。
英文摘要:
Frontier LLM agents are increasingly capable of localizing suspicious code, but vulnerability reasoning requires more than access to program artifacts. An agent must carry forward the evidence that actually decides whether a vulnerability exists. Otherwise, safety-relevant facts may be present in the artifact but absent from the reasoning used to justify the claim, creating a semantic gap between available program facts and the evidence used by the agent. This problem is especially acute for stripped binaries, where source-level cues are removed and relevant evidence is fragmented across noisy lifted IR and lossy decompiled views. We formulate stripped-binary vulnerability reasoning as a semantic grounding problem and present Veritas, a three-stage framework for reliable analysis. First, a static-analysis Slicer recovers witness-backed source-to-sink flows from lifted LLVM IR. Second, an LLM-based Discover stage aligns decompiled code with IR witnesses to construct vulnerability claims. Third, a multi-agent Validator checks these claims through guided debugging and runtime oracles. Together, these stages turn fragmented binary views into checkable claims rather than relying on direct agent inference. We instantiate Veritas for out-of-bounds vulnerabilities and evaluate it on a curated benchmark with flow-level annotations. Veritas achieves 90% recall, outperforms static, dynamic, binary-analysis, and agentic baselines, and reports no false positives among 623 exhaustively validated candidates and only two observed false positives in sampled audits. In a real-world case study, Veritas discovered a previously unknown Apple vulnerability that was confirmed and assigned a CVE, demonstrating that grounded reasoning can produce actionable findings beyond the curated benchmark.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。