AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathways

Zehang Deng, Yongjian Guo, Changzhou Han, Wanlun Ma, Junwu Xiong, Sheng Wen, Yang Xiang · DOI

TL;DR

As AI agents evolve from simple chatbots into autonomous entities capable of using tools and managing memory, their security landscape is becoming increasingly perilous. This survey systematically maps the unique vulnerabilities of agentic systems across four critical "knowledge gaps," providing a comprehensive roadmap for researchers to build more resilient and trustworthy AI ecosystems.

What Problem Does This Paper Address?

Traditional Large Language Model (LLM) security research often focuses on direct interactions, such as jailbreaking a chatbot to bypass safety filters. However, AI agents represent a paradigm shift: they are LLMs with "hands" (tools), "memory" (vector databases), and the ability to act autonomously in dynamic environments.

The authors argue that this autonomy introduces a massive, under-explored attack surface. They identify four primary "knowledge gaps" that lead to vulnerabilities:

  1. Unpredictability of multi-step user inputs: How complex, multi-turn feedback can lead to unintended or malicious outcomes.
  2. Complexity in internal executions: The "black box" nature of an agent's reasoning, planning, and tool-calling processes.
  3. Variability of operational environments: The risks inherent in deploying agents across diverse physical or simulated spaces.
  4. Interactions with untrusted external entities: The dangers of agents collaborating with other agents or retrieving data from potentially poisoned external memories.
Illustration of the four knowledge gaps in AI agent security.

Methods

This paper is a systematic survey that reviews over 100 high-impact papers published between January 2022 and April 2024. To organize this vast landscape, the authors propose a Unified Conceptual Framework for AI agents, dividing their operations into two spheres:

  • Intra-execution: The internal loop of Perception (processing inputs), the Brain (reasoning and planning), and Action (executing tasks via tools).
  • Interaction: How the agent engages with external Memory, the Environment, and other AI Agents.

By mapping threats to these specific components, the authors provide a structured taxonomy (see Figure 3) that moves beyond generic LLM security to address the specific architectural risks of agentic systems.

Fig. 2. General workflow of AI agent. Typically, an AI agent consists of three components: perception, brain, and action.

Datasets

While the paper is a survey and does not introduce a new model training dataset, it highlights several critical benchmarks used to evaluate agent security and trustworthiness:

  • R-Judge: Evaluates an agent's ability to identify safety risks in interaction records.
  • ToolEmu: An emulated sandbox for identifying risks in tool execution.
  • AvalonBench: Focuses on information asymmetry and deception in multi-agent environments.
  • PoisonedRAG: A benchmark for knowledge poisoning attacks in Retrieval-Augmented Generation systems.
  • HaluEval: A large-scale benchmark for evaluating hallucinations in LLMs.

Key Insights and Ideas

  • The "Error Amplifier" Effect: In the agent's "Brain," techniques like Chain-of-Thought (CoT) can act as error amplifiers. A minor initial mistake in reasoning can be magnified through subsequent planning steps, leading to catastrophic failures in the final action.
  • Indirect Prompt Injection: This is a particularly stealthy threat where malicious instructions are hidden in external data (like a webpage the agent summarizes). The agent misinterprets this data as a high-priority system instruction, effectively hijacking the agent without the user's knowledge.
  • Multi-Agent Collusion: In cooperative systems, agents can engage in "secret collusion" through public communication channels, leading to systemic biases or even destabilizing automated markets.
  • Memory Poisoning: Long-term memory stored in vector databases is highly vulnerable. The survey notes that injecting just five poisoning samples into a database of one million entries can lead to a 90% attack success rate.
Fig. 3. Taxonomy of the literature on AI agent security.

Key Results

The paper provides a meta-analysis of existing research, highlighting the efficacy of various attacks and defenses:

  • Attack Potency: Automated jailbreak tools like GPTFuzzer have achieved success rates as high as 90% against commercial chatbots.
  • Defense Overhead: Current defensive measures often come at a high cost. For example, PrivacyAsst, designed to protect user identity during tool use, incurs a staggering 1100x extra computation cost compared to a standard agent, making it impractical for real-world use.
  • The State of Defense: The authors categorize existing defenses into "Prevention-based" and "Detection-based," noting that while perception-level defenses are maturing, brain and action-level defenses remain significantly weaker.
Table 1. Overview of AI agent on threats.

Limitations and Future Work

The authors identify several critical hurdles for the field:

  • Lack of Unified Baselines: There is no consensus on safety benchmarks for the entire agent ecosystem, with most current tools only testing isolated parts (like just tool use or just conversation).
  • Efficiency vs. Security: Many robust defenses are too computationally expensive for real-time deployment. Future research must focus on "lightweight" auditing mechanisms.
  • Agent-Agent Dependencies: Current multi-agent research often ignores complex dependencies, which can lead to "security mechanism chaos" where one agent's safety protocol inadvertently compromises another.
  • Bias and Fairness: AI agents tend to reinforce existing model biases more aggressively than standalone LLMs, necessitating new human-in-the-loop assessment frameworks.

Summary updated

BibTeX
@misc{deng2024ai,
  author = {Zehang Deng and Yongjian Guo and Changzhou Han and Wanlun Ma and Junwu Xiong and Sheng Wen and Yang Xiang},
  title = {{AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathways}},
  year = {2024},
  eprint = {2406.02630},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.02630},
}
Figure