arXiv:2606.22263cs.CRcs.AI2026-06被引 1

用低成本LLM+确定性检测发现代码库内存漏洞

Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebases

论文配图:Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebases
图 1 · 摘自论文原文
  • 生成可执行漏洞证明并由工具验证,防幻觉
  • 每项目耗时1小时,总成本300美元,发现19个新漏洞
  • 适合大规模代码库安全检测,提升可信度

内存安全漏洞即使在经过数年持续模糊测试和人工审计的项目中仍构成重大威胁。尽管大语言模型在漏洞检测方面前景广阔,但存在不可靠、易产生幻觉且难以扩展至仓库级代码库的问题。本文提出Revelio,一种低成本端到端智能体框架,用于内存安全漏洞发现。Revelio通过生成可执行的漏洞证明(Proof-of-Vulnerability)并由确定性沙箱工具验证,有效避免幻觉问题。其成本控制策略包括使用低成本LLM与轻量级静态分析辅助生成和排序漏洞假设,仅当漏洞可被沙箱复现并确认时才报告。我们在七个已持续模糊测试五至八年的真实生产项目,以及来自CyberGym基准的100个随机Arvo项目上评估了Revelio。平均每项目耗时约一小时,总成本约300美元,共发现19个此前未知的内存安全漏洞。在基准测试中,Revelio在多种骨干模型下表现优于前沿编码智能体,且在相近的令牌开销下实现更高效率。结果表明,Revelio实现了可扩展且可信的端到端基于LLM的内存安全漏洞检测。

原文摘要 · Abstract (English)

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.

漏洞检测LLM应用代码安全智能体

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。