arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.04023cs.SEcs.CR
收藏

LLM驱动的自适应源-汇识别与静态分析误报缓解

LLM-Driven Adaptive Source-Sink Identification and False Positive Mitigation for Static Analysis

Independent Researcher Mountain View CA USA;Independent Researcher

Shiyin Lin

AI总结:

本文提出 LLM 驱动的 AdaTaint 框架,通过自适应推断源-汇规范并结合神经-符号推理过滤误报,在多个基准上相比现有方法显著降低误报并提升召回率。

摘要:

静态分析在发现软件漏洞方面十分有效,但众所周知,它受限于不完整的源-汇规范以及过多的误报(FPs)。我们提出 AdaTaint,一个由 LLM 驱动的污点分析框架,它能够自适应地推断源/汇规范,并通过神经-符号推理过滤虚假告警。与仅使用 LLM 的检测器不同,AdaTaint 将模型建议建立在程序事实和约束验证之上,从而同时确保适应性和确定性。我们在 Juliet 1.3、SV-COMP 风格的 C 语言基准以及三个大型真实世界项目上对 AdaTaint 进行了评估。结果表明,与最先进的基线(CodeQL、Joern 和仅使用 LLM 的流水线)相比,AdaTaint 平均将误报减少了 43.7%,并将召回率提高了 11.2%,同时保持了具有竞争力的运行时开销。这些发现表明,将 LLM 推理与符号验证相结合,为更准确、更可靠的静态漏洞分析提供了一条切实可行的路径。

英文摘要:

Static analysis is effective for discovering software vulnerabilities but notoriously suffers from incomplete source--sink specifications and excessive false positives (FPs). We present \textsc{AdaTaint}, an LLM-driven taint analysis framework that adaptively infers source/sink specifications and filters spurious alerts through neuro-symbolic reasoning. Unlike LLM-only detectors, \textsc{AdaTaint} grounds model suggestions in program facts and constraint validation, ensuring both adaptability and determinism. We evaluate \textsc{AdaTaint} on Juliet 1.3, SV-COMP-style C benchmarks, and three large real-world projects. Results show that \textsc{AdaTaint} reduces false positives by \textbf{43.7\%} on average and improves recall by \textbf{11.2\%} compared to state-of-the-art baselines (CodeQL, Joern, and LLM-only pipelines), while maintaining competitive runtime overhead. These findings demonstrate that combining LLM inference with symbolic validation offers a practical path toward more accurate and reliable static vulnerability analysis.

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

↑