arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.06506cs.CRcs.SE
收藏

通过静态分析和LLMs引导符号执行以发现漏洞

Guiding Symbolic Execution with Static Analysis and LLMs for Vulnerability Discovery

University of California, Santa Barbara(加州大学圣塔芭芭拉分校)

Md Shafiuzzaman, Achintya Desai, Wenbo Guo, Tevfik Bultan

AI总结:

SAILOR结合静态分析与LLM合成自动构建符号执行Harness,通过三个阶段发现内存安全漏洞,实验表明其在大规模代码库中显著提升漏洞检测效率。

摘要:

符号执行能精确检测漏洞,但应用于大型代码库需构建Harness以设置符号状态、建模依赖和指定断言。传统上需要专家手动编写,限制了可扩展性。SAILOR结合静态分析与LLM合成自动化构建Harness。其分为三个阶段:静态分析识别潜在漏洞位置并生成漏洞规范;LLM利用规范迭代优化驱动程序、占位符和断言;符号执行检测漏洞;最后通过具体回放验证结果。实验表明SAILOR在10个开源C/C++项目中发现379个新内存安全漏洞,优于基线方法。

英文摘要:

Symbolic execution detects vulnerabilities with precision, but applying it to large codebases requires harnesses that set up symbolic state, model dependencies, and specify assertions. Writing these harnesses has traditionally been a manual process requiring expert knowledge, which significantly limits the scalability of the technique. We present Static Analysis Informed and LLM-Orchestrated Symbolic Execution (SAILOR), which automates symbolic execution harness construction by combining static analysis with LLM-based synthesis. SAILOR operates in three phases: (1) static analysis identifies candidate vulnerable locations and generates vulnerability specifications; (2) an LLM uses vulnerability specifications and orchestrates harness synthesis by iteratively refining drivers, stubs, and assertions against compiler and symbolic execution feedback; symbolic execution then detects vulnerabilities using the generated harness, and (3) concrete replay validates the symbolic execution results against the unmodified project source. This design combines the scalability of static analysis, the code reasoning of LLMs, the path precision of symbolic execution, and the ground truth produced by concrete execution. We evaluate SAILOR on 10 open-source C/C++ projects totaling 6.8 M lines of code. SAILOR discovers 379 distinct, previously unknown memory-safety vulnerabilities (421 confirmed crashes). The strongest of five baselines we compare SAILOR to (agentic vulnerability detection using Claude Code with full codebase access and unlimited interaction), finds only 12 vulnerabilities. Each phase of SAILOR is critical: Without static analysis targeting confirmed vulnerabilities drop 12.2X; without iterative LLM synthesis zero vulnerabilities are confirmed; and without symbolic execution no approach can detect more than 12 vulnerabilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑