arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.20179cs.CRcs.AIcs.SE
收藏

基于LLM代理推理的Node.js包污点式漏洞检测与验证

Taint-Style Vulnerability Detection and Confirmation for Node.js Packages Using LLM Agent Reasoning

Carnegie Mellon University(卡内基梅隆大学);Google(谷歌)

Ronghao Ni, Mihai Christodorescu, Limin Jia

AI总结:

本文提出LLMVD.js,通过LLM代理实现Node.js包的污点式漏洞检测与验证,有效率达84%,优于传统方法,无需注解或报告。

摘要:

当前Node.js生态系统包含数百万个包,是现代软件供应链的关键部分,因此检测Node.js包的漏洞变得越来越重要。然而,传统程序分析在动态JavaScript特性和大量依赖包的情况下面临挑战。最近大型语言模型(LLM)和基于LLM的代理范式的发展为手工程序模型提供了替代方案。本文提出LLMVD.js,一个多阶段代理流水线,用于扫描代码、提出漏洞、生成概念验证利用程序,并通过轻量执行或acles验证。在没有专用静态/动态分析引擎进行路径推导的情况下,系统系统性地评估了其在Node.js包中的污点式漏洞检测和验证的有效性。对于公共基准测试包,LLMVD.js确认了84%的漏洞,而传统程序分析工具仅为22%。它还优于先前的LLM-程序分析混合方法,无需漏洞注解或先前漏洞报告。在260个最近发布的包(无漏洞地面真实信息)的评估中,传统工具仅对少数(≤2)包生成验证的利用程序,而LLMVD.js对36个包生成验证的利用程序。

英文摘要:

The rapidly evolving Node$.$js ecosystem currently includes millions of packages and is a critical part of modern software supply chains, making vulnerability detection of Node$.$js packages increasingly important. However, traditional program analysis struggles in this setting because of dynamic JavaScript features and the large number of package dependencies. Recent advances in large language models (LLMs) and the emerging paradigm of LLM-based agents offer an alternative to handcrafted program models. This raises the question of whether an LLM-centric, tool-augmented approach can effectively detect and confirm taint-style vulnerabilities (e.g., arbitrary command injection) in Node$.$js packages. We implement LLMVD$.$js, a multi-stage agent pipeline to scan code, propose vulnerabilities, generate proof-of-concept exploits, and validate them through lightweight execution oracles; and systematically evaluate its effectiveness in taint-style vulnerability detection and confirmation in Node$.$js packages without dedicated static/dynamic analysis engines for path derivation. For packages from public benchmarks, LLMVD$.$js confirms 84% of the vulnerabilities, compared to less than 22% for prior program analysis tools. It also outperforms a prior LLM-program-analysis hybrid approach while requiring neither vulnerability annotations nor prior vulnerability reports. When evaluated on a set of 260 recently released packages (without vulnerability groundtruth information), traditional tools produce validated exploits for few ($\leq 2$) packages, while LLMVD$.$js generates validated exploits for 36 packages.

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

↑