Manuscript Offprint

arXiv:2608.28490

LLM-Based Agents for Software and Systems Security: Approaches, Applications, and Assessment

Jingjing Nie, Jiawei Guo, Krishna Meda, Haipeng Cai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

JINGJING NIE, University at Buffalo, SUNY, USA

JIAWEI GUO*, University at Buffalo, SUNY, USA

KRISHNA MEDA, University at Buffalo, SUNY, USA

HAIPENG CAI, University at Buffalo, SUNY, USA

Software and systems security workflows are typically procedural: analysts inspect heterogeneous artifacts, form hypotheses, invoke tools, interpret outputs, and revise plans. Large language model (LLM)-based agents, which can plan, use tools, retain state, and revise actions across multi-step workflows, are being rapidly adopted to automate this work. Given the consequences of delegating security decisions to autonomous systems, understanding how such agents are built, used, and assessed is crucial. Yet to this date, there remains a lack of systematic understanding of what has been done and how far we are in this field: the term “agent” is applied inconsistently, applications differ sharply in risk, and assessment protocols are often incomparable. To gain a comprehensive and coherent view of this area hence inform relevant future research, this paper provides a systematic literature review of the (1) technical approaches, including agent architecture, perception, memory, reasoning and planning, action space, orchestration, and self-improvement, (2) applications, with respect to the security tasks served, and (3) assessment, including the datasets, outcome and trajectory metrics, safety measures, and baselines considered, over the peer-reviewed literature spanning the emergence of this area (2023–2026). Our synthesis reveals a field that has built agents able to act but not yet agents whose authority is bounded or whose behavior is auditable. In addition to knowledge systematization, we also extend our insights into the limitations of and challenges faced by current approach, application, and assessment designs, which shed light on potentially promising future research directions.

CCS Concepts: • Security and privacy → Software security engineering.

Additional Key Words and Phrases: LLM-based agents, agentic AI, software security, systems security, cybersecurity, systematic literature review, benchmarks, assessment

ACM Reference Format:

Jingjing Nie, Jiawei Guo, Krishna Meda, and Haipeng Cai. 2026. LLM-Based Agents for Software and Systems Security: Approaches, Applications, and Assessment. 1, 1 (August 2026), 72 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

Software and systems security increasingly depends on reasoning across heterogeneous artifacts: source code, binaries, configurations, logs, vulnerability reports, execution traces, network services, tickets, and human-written policies. Security work is also intrinsically procedural. Analysts rarely solve a task by producing one answer in isolation;

∗^{*}Equal contribution to the first author.

Authors' Contact Information: Jingjing Nie, jnie5@buffalo.edu, University at Buffalo, SUNY, Buffalo, New York, USA; Jiawei Guo, jiaweigu@buffalo.edu, University at Buffalo, SUNY, Buffalo, New York, USA; Krishna Meda, krishnamohanmeda@gmail.com, University at Buffalo, SUNY, Buffalo, New York, USA; Haipeng Cai, haipengc@buffalo.edu, University at Buffalo, SUNY, Buffalo, New York, USA.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 ACM.

Nie et al.

they inspect evidence, form hypotheses, call tools, interpret outputs, revise plans, and communicate findings. This makes security a natural but demanding setting for large language models (LLMs). Modern LLMs can interpret code and natural language, but many security tasks require more than text generation. They require systems that can plan, use tools, maintain task state, and act over multi-step workflows.

LLM-based agents provide one response to this need. In the broader AI literature, agentic LLM systems have been developed to interleave reasoning and action, invoke external tools, and operate over interactive environments [78, 107]. In software engineering, benchmarks such as SWE-bench show that realistic tasks often require repository-level context, environment interaction, and iterative repair rather than isolated code completion [43]. These characteristics are even more notable in security. A vulnerability-analysis agent may need to inspect a repository, trace a data flow, query a vulnerability database, run a proof of concept, and explain exploitability. A penetration-testing agent may need to perform reconnaissance, choose tools, interpret command output, and adapt to failed attempts. A repair agent may need to localize a defect, synthesize a patch, run tests, and preserve functionality. A Security Operations Center (SOC) agent may need to correlate alerts, enrich evidence, reduce hallucination, and produce analyst-facing narratives.

Recent research reflects this shift from LLMs as answer generators to LLMs as operational security agents. Systems such as PENTESTGPT [22] and BountyBench [112] explore agentic workflows for penetration testing and offensive security. CVE-Bench [117] assesses agents in executable vulnerability environments. REPOAUDIT [31] studies repository-level vulnerability auditing, while PATCHAGENT [109] targets vulnerability repair. COGNITIVE SOC [84] illustrates how multi-agent designs can support evidence-grounded security operations. These examples show the breadth of current work: LLM-based agents are being applied to vulnerability detection, exploit development, red teaming, fuzzing, malware analysis, reverse engineering, incident response, and access-control assessment, among many others.

At the same time, the rise of LLM-based security agents introduces new scientific and practical challenges. First, the term “agent” is used inconsistently. Some papers describe a single tool-using LLM as an agent; others build multi-agent systems with planners, executors, critics, memory, retrieval, and policy layers. Second, security applications differ sharply in risk. An agent that summarizes alerts has a different safety profile from one that executes exploits, scans internet-facing assets, patches production code, or changes access-control policies. Third, assessment is difficult. Final task success is important, but it does not show whether an agent used evidence faithfully, stayed within scope, avoided hallucinations, respected tool permissions, or consumed a practical amount of time and money.

These issues make the literature hard to interpret without systematic organization. Existing papers vary in their architectures, autonomy levels, memory designs, tool interfaces, security targets, datasets, baselines, and reported metrics. Some focus on end-to-end offensive workflows; others on repository auditing, patching, SOC support, cyber-defense simulation, or benchmark construction. Some assess agents against real-world systems or executable environments, while others use synthetic tasks, curated datasets, or restricted artifacts. Yet to this date, there remains a lack of systematic understanding of what has been done and how far we are in this field. Without a shared taxonomy, it is difficult to compare how agents are built, determine which security tasks they serve and which remain underexplored, or judge whether reported results are reproducible, safe, and comparable across studies.

To address this gap, we systematically review 100 peer-reviewed papers on LLM-based agents for software and systems security, published from January 2023 through March 2026—a window that spans the entire history of this emerging area, since the capable LLMs that serve as these agents' underlying models only emerged at the end of 2022. We organize the literature along three dimensions: Approach captures agent architecture, perception, memory, reasoning and planning, action space, orchestration, and self-improvement; Application captures the security tasks served; and Assessment captures datasets, outcome and trajectory metrics, safety measures, baselines, and experimental protocols. Manuscript submitted to ACM

This survey makes three main contributions:

• We provide an extensive literature search and selection protocol that yields a corpus of 100 peer-reviewed papers spanning the emergence of this area.

• We derive and apply a taxonomy characterizing the surveyed literature across Approach, Application, and Assessment, enabling structured comparison of agent designs, security tasks, datasets, metrics, and baselines.

• We synthesize the findings into a central observation—that the field has built agents able to act, but not yet agents whose authority is bounded or whose behavior is auditable—and extend it into the limitations of and challenges facing current designs, pointing to future directions in evidence-centered architecture, risk-aware autonomy, realistic and reproducible benchmarks, trajectory-level assessment, and accountable human-agent collaboration.

Paper organization. The rest of the paper is organized as follows. Section 2 provides background concepts used in the survey. Section 3 summarizes the survey methodology, and Section 4 describes the literature search and selection process. Section 5 presents the taxonomy derivation. Section 6 maps the surveyed papers to the taxonomy and analyzes the results for Approach, Application, and Assessment. Section 7 discusses limitations, challenges, and future research directions. Section 8 discusses threats to validity, and Section 9 concludes the paper.

References (100)

  • Trustnet: A hybrid machine learning and llm-based multi-agent system for scam website detection
  • EnIGMA: Interactive Tools Substantially Assist LM Agents in Finding Security Vulnerabilities
  • Exploring the potential of large language models for red teaming in military coalition networks
  • Llms for penetration testing: Solving ctf challenges using offensive cybersecurity tools
  • Clouseau: A hierarchical multi-agent approach for autonomous attack investigation
  • Cloak, honey, trap: Proactive defenses against LLM agents
  • Pentest-ai, an llm-powered multi-agents framework for penetration testing automation leveraging mitre attack
  • Repairagent: An autonomous, llm-based agent for program repair
  • PhishAgent: A Robust Multimodal Agent for Phishing Webpage Detection
  • Exploring llm-based multi-agent situation awareness for zero-trust space-air-ground integrated network
  • Clearagent: Agentic binary analysis for effective vulnerability detection
  • End-to-end security policy automation with multi-llm agents in cloud-native systems
  • AgentPoison: Red-Teaming LLM Agents via Poisoning Memory or Knowledge Bases
  • Agentic rag for command generation in automated penetration testing
  • Evaluating ai agents for cyber defense: A comparison of deep reinforcement learning and llm approaches
  • Refpentester: A knowledge-informed self-reflective penetration testing framework based on large language models
  • Cfa-bench: Cybersecurity forensic llm agent benchmark and testing
  • AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
  • DeepSeek-AI. DeepSeek LLM: Scaling Open-Source Language Models with Longtermism. arXiv preprint arXiv:2401.02954, pages 1–48, 2024. (opens arXiv in a new tab)
  • PentestGPT: Evaluating and harnessing large language models for automated penetration testing
  • Vulngpt: Enhancing source code vulnerability detection using autogpt and adaptive supervision strategies
  • Towards agentic investigation of security alerts
  • Large Language Models for Software Engineering: Survey and Open Problems
  • Llm - driven autonomous cloud automation agent
  • Gemini: A Family of Highly Capable Multimodal Models
  • Controller makes pentesting better: An improved multi-agent automated penetration testing framework
  • Autopentester: An llm agent-based framework for automated pentesting
  • Llm agent-based shilling attack on recommender systems
  • Repoaudit: An autonomous LLM-agent for repository-level code auditing
  • Llms as hackers: Autonomous linux privilege escalation attacks
  • A Comprehensive Overview of Large Language Models (LLMs) for Cyber Defences: Opportunities and Directions (opens arXiv in a new tab)
  • A multi-agent system for cybersecurity threat detection and correlation using large language models
  • Llm-powered agentic ai approach to securing ev charging systems against cyber threats
  • Large language model-powered smart contract vulnerability detection: New perspectives
  • A llm-based agent for the automatic generation and generalization of ids rules
  • Penheal: A two-stage llm framework for automated pentesting and optimal remediation
  • Toward Robust Security Orchestration and Automated Response in Security Operations Centers with a Hyper-Automation Approach Using Agentic Artificial Intelligence
  • Measuring and augmenting large language models for solving capture-the-flag challenges
  • Deepvulhunter: enhancing the code vulnerability detection capability of llms through multi-round analysis
  • Agent4vul: multimodal llm agents for smart contract vulnerability detection
  • SWE-bench: Can Language Models Resolve Real-World GitHub Issues? In International Conference on Learning Representations, 2024
  • A multi-agent approach for rest api testing with semantic graphs and llm-driven inputs
  • Explaining hybrid rl agents for cyber defense using shap and reward decomposition
  • Adversarial agents: Llm-powered attacks and defenses for android malware detectors
  • Aviator: Towards ai-agentic vulnerability injection workflow for high-fidelity, large-scale code security dataset
  • Vvf-ai: A vulnerability verification framework based on ai-agent
  • Make agent defeat agent: Automatic detection of Taint-Style vulnerabilities in LLM-based agents
  • Large language model-based agents for software engineering: A survey
  • PropertyGPT: LLM-Driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation
  • Research on design and implementation of an intelligent network asset search system based on llm agent and fofa
  • Design and evaluation of an autonomous cyber defence agent using drl and an augmented llm
  • Training autonomous cyber defense agents: Challenges & opportunities in military networks
  • Automating cyber threat intelligence and attack chain generation using cyber security knowledge graphs and large language models
  • Design of an autonomous cyber defence agent using hybrid ai models
  • Agentic generative ai for automation of cyber security attack chains in tactical manets
  • A trustworthy agentic multi-llm network: Challenges, solutions, and a use case
  • Agentic Concolic Execution
  • Combining fine-tuning and llm-based agents for intuitive smart contract auditing with justifications
  • Multifuzz: A dense retrieval-based multi-agent system for network protocol fuzzing
  • AutoPen: Towards Autonomous Penetration Testing Using LLM-Powered Agents
  • Leveraging large language models for autonomous cyber defense: Insights from cage-2 simulations
  • Cheatagent: Attacking llm-empowered recommender systems via llm agent
  • GPT-4 Technical Report
  • A self-adaptive red teaming framework for vulnerability profiling with dynamic attack graphs and retrieval augmented generation
  • Zt-icas: A zero-trust integrity-constrained framework for agentic vulnerability scanning
  • Llm-driven multi-agent architectures for intelligent self-organizing networks
  • An llm-based self-evolving security framework for 6g space-air-ground integrated networks
  • Building adaptive and transparent cyber agents with local language models
  • Out of the cage: How stochastic parrots win in cyber security environments
  • Autonomous llm agent: A memory-augmented, edge-optimized shap explanations with zero-day attack resilience in iot/industrial iot networks
  • Vulnpatch: Multi-agent automated smart contract vulnerability detection, explanation, and mitigation framework
  • Collaborative llm reasoning for vulnerability detection in smart contracts
  • Toolformer: Language Models Can Teach Themselves to Use Tools
  • Generating context-aware learning materials for software security via llm agents and traceability
  • Mad-cti: Cyber threat intelligence analysis of the dark web using a multi-agent framework
  • A survey on agentic security: Applications, threats and defenses (opens arXiv in a new tab)
  • Multi-agent llm collaboration for adaptive code review, debugging, and security analysis
  • Cognitive soc: Evidence-backed narrative generation for security operations with multi-agent llm architecture
  • Pentestagent: Incorporating llm agents to automated penetration testing
  • Ai-augmented SOC: A survey of llms and agents for security automation
  • Security of llm-based agents regarding attacks, defenses, and applications: A comprehensive survey
  • Leveraging llm agents for autonomous web penetration testing targeting sql injection vulnerability
  • Llm agentic workflow for automated vulnerability detection and remediation in infrastructure-as-code
  • LLaMA: Open and Efficient Foundation Language Models
  • An agentic flow for finite state machine extraction using prompt chaining
  • Frontiers of Computer Science, 18(6):186345, 2024
  • Ptfusion: Llm-driven context-aware knowledge fusion for web penetration testing
  • Perses: Unlocking privilege escalation for small llms via extensible heterogeneity
  • Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Advanced smart contract vulnerability detection via llm-powered multi-agent systems
  • Autopt: How far are we from the fully automated web penetration testing? IEEE Transactions on Information Forensics and Security, 20:9657–9672, 2025
  • Trustpkbg: Trustworthy protocol knowledge blueprints generation via llm for low-altitude aav networks
  • Ptgroup: An automated penetration testing framework using llms and multiple prompt chains
  • CurriculumPT: LLM-Based Multi-Agent Autonomous Penetration Testing with Curriculum-Guided Task Scheduling
  • Mad-agent: A malware analysis and detection ai agent
  • Large language models for cyber security: A systematic literature review
  • Redagent: an autonomous agent for context-aware red teaming of llm jailbreaks
  • Forewarned is Forearmed: A Survey on Large Language Model-based Agents in Autonomous Cyberattacks (opens arXiv in a new tab)
  • Llmsqli: A black-box web sqli detection tool based on large language model
  • ReAct: Synergizing Reasoning and Acting in Language Models

Couldn't load all references. Reload the page to try again.