Pandora’s Toolbox: A Survey of Generalist Agent Security from the Lifecycle Perspective

Yutao Mou, Dingyao Yu, Xiaotian Luan, Zhe Yin, Zhangchi Xue, Peiyang Liu, Lijun Li, Pengfei Yang, Tong Zhang, Shikun Zhang, Wei YeOpenReview 2026

TL;DR

This paper presents a comprehensive survey of generalist AI agent security, arguing that agent safety cannot be treated as a collection of isolated component risks, but must be viewed through a holistic lifecycle perspective. By tracking how vulnerabilities enter during provenance, amplify during orchestration, and manifest during execution, the authors map out the expanding attack surface of autonomous systems. Finally, they outline a vision for safe recursive self-improvement via a closed loop of automated risk discovery, diagnosis, and mitigation.

What Problem Does This Paper Address?

Large Language Models (LLMs) are rapidly evolving from simple text-based chatbots into autonomous generalist agents capable of planning, using third-party tools, maintaining long-term memory, and executing workflows in external environments.

While traditional LLM security focuses heavily on content safety and direct prompt injection, generalist agents introduce a fundamentally more complex security paradigm. Vulnerabilities can be introduced silently from external skill supply chains, propagate through multi-step planning, manifest as irreversible real-world actions (like deleting files or leaking credentials), and persistently infect the agent's long-term memory. The authors address the lack of a unified framework to analyze these interconnected, cross-stage risks, moving the community away from static, component-level analysis toward dynamic runtime governance.

Figure 4. Illustration of security risks across the full lifecycle of generalist agents.

Methods

The authors formalize the runtime behavior of generalist agents as a skill- and tool-augmented Partially Observable Markov Decision Process (POMDP). Using this mathematical foundation, they break down the agent security lifecycle into three distinct runtime stages:

  1. Provenance: The initialization phase where the agent loads lightweight skill metadata. Risks here include metadata-level skill poisoning and counterfeit capabilities.
  2. Orchestration: The planning phase where the agent parses user queries, retrieves long-term memories, and selects skills. Risks include user-side jailbreaks, memory injection, and unsafe planning.
  3. Execution: The action phase where the agent interacts with external environments via tools. Risks include web injection, tool-output injection, and dependency poisoning.

The survey systematically categorizes defenses into three corresponding intervention points: Input and Context Filtering (e.g., skill scanning), Decision and Control Integrity (both model-internal alignment and external harness constraints like tool dependency graphs), and Runtime Monitoring and Enforcement (step-level and trajectory-level auditing).

Datasets

As a systematic survey, this paper does not introduce a new empirical dataset. Instead, it aggregates, categorizes, and compares dozens of recent evaluation benchmarks across three years of research. Notable benchmark categories reviewed include:

  • Domain-Specific Safety: Tool-use safety (e.g., AgentHarm, AgentDojo), web-browsing safety (WASP, SafeArena), and computer/mobile operation safety (OS-Harm, MobileSafetyBench).
  • Skill-Mediated Safety: Benchmarks evaluating malicious skill detection and behavioral safety under poisoned skill ecosystems (Skill-Inject, SkillSafetyBench, MalSkillBench).
  • Offline Trajectory Auditing: Benchmarks testing the ability of safety judges to identify risks in pre-collected interaction traces at the step level (Safe-OS) or trajectory level (R-Judge, ASSEBench).

Key Insights and Ideas

  • Delayed Manifestation & Cross-Stage Propagation: A poisoned skill acquired during the provenance stage might look completely benign initially. It may only activate much later when triggered by a specific user request or retrieved memory during orchestration, ultimately causing harm during execution.
  • Backward Contamination: Unsafe execution doesn't just impact the current session. If an agent executes a compromised tool, it can write malicious data back into its long-term memory or rewrite its own reusable skills. This creates persistent, cross-session backdoors that are incredibly dangerous for self-evolving or recursive AI systems.
  • The Limits of Pure Alignment: Relying solely on internal model alignment (like RLHF) provides only statistical safety guarantees. The authors emphasize that robust agent security requires harness-externalized defenses—architectural isolation, information-flow control, and deterministic verification gates that separate the agent proposing an action from the mechanism authorizing it.

Key Results

The paper synthesizes literature from over 250 papers to construct a comprehensive taxonomy of agent security (detailed in Figure 2 and Table 1). It highlights a clear evolutionary shift in the community: safety evaluation is moving away from simple final-output text inspection toward process-level behavioral analysis, trajectory auditing, and proactive pre-execution step monitoring.

Limitations and Future Work

The authors note that current agent security research relies too heavily on static, manually constructed datasets that fail to capture the dynamic nature of real-world deployments. Furthermore, existing trajectory evaluation methods offer binary safety labels but lack fine-grained root-cause diagnosis.

To overcome these gaps, they propose a prospective closed-loop framework consisting of three interconnected future research directions:

  1. Automatic Generation of Adversarial Environments: Using adaptive, agent-driven red teaming to continuously discover new multi-step attack chains.
  2. Fine-Grained Safety Attribution: Developing evaluators that can trace the causal propagation of a risk to pinpoint exactly where a plan went wrong, separating the initial trigger from the final harmful action.
  3. Adversarial-Feedback-Driven Continual Safety Evolution: Allowing agents to safely and iteratively update their internal safety policies based on sandboxed failures without degrading their core functional capabilities.

Summary updated

BibTeX
@misc{mou2026pandoras,
  author = {Yutao Mou and Dingyao Yu and Xiaotian Luan and Zhe Yin and Zhangchi Xue and Peiyang Liu and Lijun Li and Pengfei Yang and Tong Zhang and Shikun Zhang and Wei Ye},
  title = {{Pandora’s Toolbox: A Survey of Generalist Agent Security from the Lifecycle Perspective}},
  year = {2026},
  url = {https://openreview.net/forum?id=A0KU8ja2mo},
  howpublished = {OpenReview},
}
Figure