From LLMs to Agents: A Comparative Evaluation of LLMs and LLM-based Agents in Security Patch Detection
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
The widespread adoption of open-source software (OSS) has accelerated software innovation but also increased security risks due to the rapid propagation of vulnerabilities and silent patch releases. In recent years, large language models (LLMs) and LLM-based agents have demonstrated remarkable capabilities in various software engineering (SE) tasks, enabling them to effectively address software security challenges such as vulnerability detection. However, systematic evaluation of the capabilities of LLMs and LLM-based agents in security patch detection remains limited. To bridge this gap, we conduct a comprehensive evaluation of the performance of LLMs and LLM-based agents for security patch detection. Specifically, we investigate three methods: Plain LLM (a single LLM with a system prompt), Data-Aug LLM (data augmentation based on the Plain LLM), and the ReAct Agent (leveraging the thought-action-observation mechanism). We also evaluate the performance of both commercial and open-source LLMs under these methods and compare these results with those of existing baselines. Furthermore, we analyze the detection performance of these methods across various vulnerability types, and examine the impact of different prompting strategies and context window sizes on the results. Our findings reveal that the Data-Aug LLM achieves the best overall performance, whereas the ReAct Agent demonstrates the lowest false positive rate (FPR). Although baseline methods exhibit strong accuracy, their false positive rates are significantly higher. In contrast, our evaluated methods achieve comparable accuracy while substantially reducing the FPR. These findings provide valuable insights into the practical applications of LLMs and LLM-based agents in security patch detection, highlighting their advantage in maintaining robust performance while minimizing false positive rates.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 28 of its 70 references that are in the map. First posted on arXiv 11 Nov 2025.
Builds on
28 of 70 references.
Closest ancestors · 2
Same direction, newest first
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection15 Sep
- 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositories5 Mar
Other references · 26
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 69
- 2023RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repaircited by 43
- 2024Can Large Language Models Identify Authorship?cited by 40
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generationcited by 33
- 2024Teaching Code LLMs to Use Autocompletion Tools in Repository-Level Code Generationcited by 30
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineeringcited by 28
- 2021SPI: Automated Identification of Security Patches via Commitscited by 19
14 more
- 2025DocAgent: A Multi-Agent System for Automated Code Documentation Generationcited by 16
- 2021PatchRNN: A Deep Learning-Based System for Security Patch Identificationcited by 13
- 2022VulCurator: A Vulnerability-Fixing Commit Detectorcited by 11
- 2022The Best of Both Worlds: Combining Learned Embeddings with Engineered Features for Accurate Prediction of Correct Patchescited by 9
- 2022Enhancing Security Patch Identification by Capturing Structures in Commitscited by 7
- 2023Just-in-Time Detection of Silent Security Patchescited by 7
- 2025Vulnerability Detection: From Formal Verification to Large Language Models and Hybrid Approaches: A Comprehensive Overviewcited by 7
- 2025Context-Enhanced Vulnerability Detection Based on Large Language Modelcited by 6
- 2025VulBinLLM: LLM-powered Vulnerability Detection for Stripped Binariescited by 4
- 2024Repository-Level Graph Representation Learning for Enhanced Security Patch Detectioncited by 3
- 2024PatchFinder: A Two-Phase Approach to Security Patch Tracing for Disclosed Vulnerabilities in Open-Source Softwarecited by 2
- 2025A Preliminary Study of Large Language Models for Multilingual Vulnerability Detectioncited by 2
- 2025Empirical Study of Code Large Language Models for Binary Security Patch Detectioncited by 1
- 2025What Do They Fix? LLM-Aided Categorization of Security Patches for Critical Memory Bugscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026An Empirical Evaluation of LLM-Based Approaches for Code Vulnerability Detection: RAG, SFT, and Dual-Agent Systems
- 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-bench
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?
- 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefense
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future
- 2026LLM-Based Agents for Software and Systems Security: Approaches, Applications, and Assessment
- 2025LLMpatronous: Harnessing the Power of LLMs For Vulnerability Detection