arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.11270cs.SE
收藏

评估LLM代理在自动化软件分析任务中的性能

Evaluating LLM Agents on Automated Software Analysis Tasks

CISPA Helmholtz Center for Information Security(CISPA 亥姆霍兹信息安全中心);Imperial College London(伦敦帝国学院)

Islem Bouzenia, Cristian Cadar, Michael Pradel

AI总结:

本文通过AnalysisBench评估四种LLM架构在自动化软件分析任务中的表现,发现AnalysisAgent在手动验证的成功率高达94%,而现有代理存在阶段混用、错误定位差等问题,且整程序分析和符号执行是最具挑战性的任务。

摘要:

如今存在众多软件分析工具,但将其应用于多样化的开源项目仍具有挑战性,因为需要环境设置、依赖解析和工具配置。基于LLM的代理提供了潜在的解决方案,但此前无研究系统研究其在自动化软件分析任务中的有效性。该任务不同于问题解决或通用环境设置,需要安装并配置一个独立的分析工具与目标项目,生成工具特定的先决条件,并验证工具生成有意义的分析输出。我们引入AnalysisBench,包含35个工具-项目对,涵盖七种分析工具和十个多样化的C/C++和Java项目,每个都有手动构建的参考设置。使用AnalysisBench,我们评估了四种代理架构在四个LLM后端上的表现。我们的自定义代理AnalysisAgent在手动验证的成功率为94%(Gemini-3-Flash,33/35任务),相比最佳基线(ExecutionAgent)的77%。除了定量结果外,我们还发现现有代理的关键限制,包括阶段混用、错误定位差和过早终止,并表明代理架构比LLM能力本身更重要。我们进一步发现,整程序分析和符号执行是最具挑战性的任务,Java工具链比C/C++更具挑战性,且LLM自我验证的成功率通常高估手动验证的成功率。

英文摘要:

Numerous software analysis tools exist today, yet applying them to diverse open-source projects remains challenging due to environment setup, dependency resolution, and analysis tool configuration. LLM-based agents offer a potential solution, yet their effectiveness on the specific task of automated software analysis has not been systematically studied. Unlike issue solving or general environment setup, this task requires installing and configuring a separate analysis tool alongside the target project, generating tool-specific prerequisites, and validating that the analysis tool produces meaningful analysis outputs rather than merely declaring successful termination without evidence. We introduce AnalysisBench, a benchmark of 35 tool-project pairs spanning seven analysis tools and ten diverse C/C++ and Java projects, each with a manually constructed reference setup. Using AnalysisBench, we evaluate four agent architectures across four LLM backends. Our custom agent, AnalysisAgent, achieves manually verified success rates of 94% (Gemini-3-Flash, 33/35 tasks), compared to 77% for the best baseline (ExecutionAgent). Beyond quantitative results, we identify key limitations in existing agents, including stage mixing, poor error localization, and premature termination, and show that agentic architecture plays a critical role beyond LLM capability alone. We further find that whole-program analyses and Java-specific tools are the most difficult tasks, that Java toolchains pose greater challenges than C/C++, and that self-validated success consistently overstates manually verified success. Extended runs with AnalysisAgent-produced setups also surface two previously unknown defects in masscan and radare2, confirming that the produced setups support real downstream analysis.

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

↑