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

多代理污点规范提取用于漏洞检测

Multi-Agent Taint Specification Extraction for Vulnerability Detection

North Carolina State University(北卡罗来纳州立大学);University of California, Santa Barbara(加州大学圣塔芭芭拉分校);Boston University(波士顿大学)

Jonah Ghebremichael, Saastha Vasan, Saad Ullah, Greg Tystahl, David Adei, Christopher Kruegel, Giovanni Vigna, William Enck, Alexandros Kapravelos

AI总结:

SemTaint通过结合LLM语义理解和传统静态分析,提取定制化的污点规范以提升漏洞检测效果

摘要:

静态应用程序安全测试(SAST)工具使用污点分析被认为比传统基于模式的方法能提供更高质量的漏洞检测结果。然而,对JavaScript进行静态污点分析存在两个主要挑战。首先,JavaScript的动态特性使得污点跟踪所需的数据流提取复杂化。其次,npm的大型库生态系统使得识别相关源/汇并建立跨依赖项的污点传播变得困难。在本文中,我们提出了SemTaint,一个多代理系统,战略性地结合了大型语言模型(LLMs)的语义理解与传统静态程序分析,以提取污点规范,包括针对每个包的源、汇、调用边和库流摘要。概念上,SemTaint使用静态程序分析计算调用图,并将无法静态解析的调用边委托给LLM进行解析。进一步地,它利用LLM对给定CWE的源和汇进行分类。最终生成的污点规范随后提供给SAST工具进行漏洞分析。我们集成了SemTaint与CodeQL,一种最先进的SAST工具,并通过检测162个此前无法被CodeQL检测到的漏洞中的106个来证明其有效性。此外,我们还在4个流行的npm包中发现了4个新漏洞。通过这样做,我们证明LLMs可以实际增强现有的静态程序分析算法,结合符号推理和语义理解的优势,以提高漏洞检测效果。

英文摘要:

Static Application Security Testing (SAST) tools using taint analysis are widely viewed as providing higher-quality vulnerability detection results compared to traditional pattern-based approaches. However, performing static taint analysis for JavaScript poses two major challenges. First, JavaScript's dynamic features complicate data flow extraction required for taint tracking. Second, npm's large library ecosystem makes it difficult to identify relevant sources/sinks and establish taint propagation across dependencies. In this paper, we present SemTaint, a multi-agent system that strategically combines the semantic understanding of Large Language Models (LLMs) with traditional static program analysis to extract taint specifications, including sources, sinks, call edges, and library flow summaries tailored to each package. Conceptually, SemTaint uses static program analysis to calculate a call graph and defers to an LLM to resolve call edges that cannot be resolved statically. Further, it uses the LLM to classify sources and sinks for a given CWE. The resulting taint specification is then provided to a SAST tool, which performs vulnerability analysis. We integrate SemTaint with CodeQL, a state-of-the-art SAST tool, and demonstrate its effectiveness by detecting 106 of 162 vulnerabilities previously undetectable by CodeQL. Furthermore, we find 4 novel vulnerabilities in 4 popular npm packages. In doing so, we demonstrate that LLMs can practically enhance existing static program analysis algorithms, combining the strengths of both symbolic reasoning and semantic understanding for improved vulnerability detection.

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

↑