A Survey on Trustworthy LLM Agents: Threats and Countermeasures

Miao Yu, Fanci Meng, Xinyun Zhou, Shilong Wang, Junyuan Mao, Linsey Pang, Tianlong Chen, Kun Wang, Xinfeng Li, Yongfeng Zhang, Bo An, Qingsong Wen

Introduction

As Large Language Models (LLMs) transition from passive text generators to autonomous agents, the landscape of AI safety is undergoing a fundamental shift. LLM-based agents—systems that integrate a "brain" (the LLM) with "memory" (long-term storage) and "tools" (external APIs)—possess the agency to act upon the world. However, this increased capability introduces a significantly expanded attack surface. This research introduces the TrustAgent framework, a comprehensive taxonomy designed to categorize the unique threats facing autonomous agents and provide a strategic roadmap for developing robust countermeasures.

The TrustAgent Framework

The core of this research is the TrustAgent framework, which organizes the complex agent ecosystem into three distinct perspectives:

  1. Modular Taxonomy: This view distinguishes between Intrinsic components (the internal architecture: Brain, Memory, and Tool modules) and Extrinsic interactions (how the agent engages with Users, other Agents, and the broader Environment).
  2. Technical Stack: This perspective categorizes research based on the functional objective: Attacks (e.g., jailbreaking, prompt injection, backdoors), Defenses (e.g., alignment, filtering, shields), and Evaluation (benchmarks and simulations).
  3. Multi-dimensional Connotations: This maps agent-specific issues to established trust pillars, including Safety, Privacy, Truthfulness, Fairness, and Robustness.

Vulnerabilities Across the Agent Lifecycle

Traditional LLM alignment focuses primarily on the "Brain." However, the modular nature of agents creates new "indirect" interfaces that can bypass internal filters. The survey synthesizes hundreds of recent papers to show a clear risk hierarchy: Multi-Agent Systems (MAS) > Single Agent > LLM.

Memory as an Attack Vector

Unlike standard LLMs, agents often rely on retrieval-augmented generation (RAG) or long-term vector databases. This introduces the risk of Memory Poisoning, where an attacker injects malicious data into the agent's knowledge base. These "stealthy" triggers may only activate under specific conditions, making them far more difficult to detect than standard prompt injections. Furthermore, risks like RAG-Thief highlight the potential for sensitive data leakage through memory retrieval.

Tool Manipulation and Abuse

The ability to call APIs (e.g., email, code execution, financial tools) is a double-edged sword. The survey distinguishes between Tool Manipulation—where an agent is tricked into using a tool incorrectly—and Tool Abuse, where an agent autonomously utilizes its capabilities to perform harmful actions, such as unauthorized web hacking. Currently, there is a significant "defense gap" regarding tool invocation; while many studies demonstrate how to attack tools (e.g., ToolSword), few offer robust verification mechanisms for tool-calling chains.

The Complexity of Multi-Agent Systems (MAS)

In Multi-Agent Systems, the primary concern is the "Infectious Attack." A single compromised agent can spread a "jailbreak" or malicious instruction to its peers through collaborative dialogue. This viral spread can lead to the collapse of trust across an entire organizational workflow, as the agents' mutual communication becomes a vector for exploitation.

Benchmarking Agent Trustworthiness

To address these risks, the research community has developed several specialized benchmarks to stress-test agent modules:

  • Brain & Safety: S-Eval, Agent-SafetyBench, and AgentHarm focus on misuse and safety alignment.
  • Memory Integrity: PoisonedRAG tests for retrieval corruption.
  • Tool Security: ToolEmu provides a sandbox for simulating tool execution to identify risks before real-world deployment.
  • Environmental Interaction: SafeAgentBench and R-Judge assess safety in complex, multi-turn interactions.

Future Directions and the Defense Gap

The survey concludes that current "Brain" alignment (such as RLHF) is insufficient for the agentic era because the environment and tools provide interfaces that bypass internal LLM filters. Future research must prioritize:

  • Dynamic Evaluation: Moving beyond static benchmarks to frameworks that evaluate agents in evolving, real-time data streams.
  • Collaborative Defense: Developing "Multi-agent Shields" where agents monitor and critique one another to reach a safety consensus before execution.
  • Isolated Execution: Utilizing sandboxed environments to verify the safety of tool-calling sequences before they interact with real-world APIs.
  • User Trust Calibration: Investigating how users adjust their reliance on agents to prevent both over-reliance and unwarranted distrust.

Summary updated

BibTeX
@inproceedings{yu2025survey,
  author = {Miao Yu and Fanci Meng and Xinyun Zhou and Shilong Wang and Junyuan Mao and Linsey Pang and Tianlong Chen and Kun Wang and Xinfeng Li and Yongfeng Zhang and Bo An and Qingsong Wen},
  title = {{A Survey on Trustworthy LLM Agents: Threats and Countermeasures}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
}
Figure