Securing LLM-based agents against cyberattacks: a comprehensive survey on attack techniques and defense strategies

Read full text
Authors: Nyashadzashe Tamuka, Topside E. Mathonsi, Olwal Thomas Otieno, Solly Maswikaneng, Tonderai Muchenje, Tshimangadzo M. Tshilongamulenzhe
Cited by: 3
References: 36

Abstract

Abstract Large Language Model (LLM)-based agents integrate various models, including planning loops, memory, tool use, and multi-agent systems, enabling autonomous decision-making through natural-language interfaces. This autonomy also expands the cyberattack surface from model-only failures to agent compromise, where untrusted text can exfiltrate data or trigger malicious actions. This survey presents a taxonomy-driven synthesis of security threats targeting LLM-based agents and a structured review of various studies, summarizing each work’s aims, methods, results, and limitations and mapping them to the proposed taxonomy. Attacks, including context and prompt manipulation, jailbreak and cognition attacks, privacy attacks, agentic action induction and availability, and reconnaissance threats, were categorized. The widely adopted defenses are classified into prompt/input sanitization, adversarial training and alignment tuning, architectural safeguards, monitoring and guardrails, and watermarking/provenance mechanisms for source verification. The persistent gaps were a weak generalization of defense under attacker adaptation and a limited evaluation of agent-tool interaction risk. Since real deployments increasingly rely on agents that can remember and act, security must shift from single-model filtering to system-level, benchmarked, and continuously tested controls that measure resilience under adaptive attackers. Open challenges and research directions include robust detection of covert prompt attacks, continuous red-teaming, measurable security utility trade-offs, provenance-aware agent pipelines, and standardized protocols for evaluating secure LLM agents in real deployments.

Fields of Study & Subjects

Adversarial Robustness in Machine Learning Network Security and Intrusion Detection Security and Verification in Computing

Publication details

Journal / source
Journal of Computer Virology and Hacking Techniques
Publisher
Springer Science and Business Media LLC
Volume
22
Issue
1
Publication date
7 May 2026
Language
EN