Revelio: 面向仓库级代码库的高性价比智能体内存安全漏洞检测
Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebases
AI总结:
提出Revelio框架,通过生成可执行漏洞证明并用确定性消毒器验证,结合低成本LLM和轻量静态分析,在仓库级代码库中高效发现内存安全漏洞,7个项目中19个新漏洞,成本约300美元。
摘要:
内存安全漏洞即使对于经过广泛模糊测试和手动审计的项目仍然是一个重大威胁。最近的结果表明,大型语言模型在检测此类漏洞方面具有很大潜力,但它们不可靠,存在幻觉风险,并且难以扩展到仓库级代码库。本文提出了Revelio,一个高性价比的端到端智能体框架,用于内存安全漏洞发现。Revelio通过生成可执行的漏洞证明并用确定性消毒器检查来解决幻觉问题。它使用廉价LLM和轻量级静态分析来帮助生成和排序漏洞假设,仅在漏洞可以被消毒器复现和确认时才报告。我们在七个经过连续五年到八年模糊测试的生产质量项目以及从CyberGym基准中随机选择的100个Arvo项目上评估了Revelio。每个项目大约花费一小时,总成本300美元,Revelio发现了19个以前未知的内存安全漏洞。在基准测试中,Revelio在可比令牌成本下,跨不同骨干模型优于前沿编码智能体。我们的结果表明,Revelio实现了可扩展且可信的端到端基于LLM的内存安全漏洞检测。
英文摘要:
Memory safety vulnerabilities remain a significant threat even for projects with extensive fuzzing and manual auditing. Recent results suggest that large language models hold great promise for detecting such vulnerabilities, but they are unreliable, at risk of hallucination, and challenging to scale to repository-size codebases. This paper presents Revelio, a cost-efficient end-to-end agentic framework for memory-safety vulnerability discovery. Revelio addresses the problem of hallucination by generating an executable Proof-of-Vulnerability, which is checked with a deterministic sanitizer. It reduces cost using inexpensive LLMs and lightweight static analysis to help generate and rank vulnerability hypotheses, reporting vulnerabilities only when they can be reproduced and confirmed by a sanitizer. We evaluated Revelio on seven production-quality projects that had been continuously fuzzed for five to eight years, as well as on 100 randomly selected Arvo projects from the CyberGym benchmark. With around one hour per project and a total cost of $300, Revelio discovered 19 previously unknown memory-safety vulnerabilities. On benchmarks, Revelio outperformed frontier coding agents across diverse backbone models at comparable token costs. Our results suggest that Revelio enables scalable and trustworthy end-to-end LLM-based memory-safety vulnerability detection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。