Beyond Environment and User Inputs: A Comprehensive Survey of Skill-Oriented Security in Agentic AI
10
18 commits
updated Aug 28, 2026
A curated literature map of risks, evaluations, and defenses across the full agent lifecycle
🌐 Language / 语言: English · 简体中文
Generalist agents are no longer bounded chat interfaces. They acquire reusable skills, retrieve long-term memory, select tools, interact with external environments, and preserve artifacts across sessions. Their security therefore cannot be understood as a collection of isolated model or component failures. A vulnerability may enter early, remain latent, be amplified during decision-making, materialize as a consequential action, and then contaminate persistent state.
This repository accompanies Pandora's Toolbox: A Survey of Generalist Agent Security from the Lifecycle Perspective. The survey organizes generalist-agent security through two orthogonal structures:
The stage assignments below indicate where a risk is introduced, where safety evidence is collected, or where a defense primarily intervenes. They are not mutually exclusive: one attack or method may span multiple stages, and one paper may appear in more than one category.
Figure 1. Risks enter during provenance, propagate and amplify through orchestration, manifest during execution, and persist through contaminated states that affect future workflows.
| Lifecycle stage | Security question | Primary risk path | Typical evidence | Main intervention point |
|---|---|---|---|---|
| Provenance | What capabilities and artifacts are admitted? | Poisoned metadata, skill files, dependencies, and forged trust signals | Skill packages, manifests, provenance records | Pre-installation inspection and admission control |
| Orchestration | How are context, memory, skills, and tools composed into decisions? | Malicious requests, retrieved memories, skill instructions, unsafe compositions | Selected skills, plans, candidate tool calls | Context filtering, decision integrity, plan auditing |
| Execution | What actions are committed, and how does the environment respond? | Web, GUI, tool-output, API, file, and terminal injection | Actions, trajectories, tool evidence, final environment state | Step-level enforcement and trajectory review |
| Persistent feedback | What survives and re-enters future workflows? | Contaminated memory, rewritten skills, and compromised artifacts | Cross-session state and recurrence | Provenance tracking, recovery, and continual safety evolution |
Figure 2. Taxonomy of security risks, evaluations, and defenses across the full lifecycle of generalist agents. Click the figure to open the high-resolution version.
The provenance stage determines which capabilities enter an agent's usable capability space. Skill metadata may be loaded before a task begins, while specifications, scripts, resources, dependencies, and trust signals can remain dormant until a later request activates them.
Attackers poison skill metadata, instructions, examples, or trigger rules so that malicious natural-language instructions enter the agent's planning context.
The attack surface extends beyond the primary skill file to auxiliary scripts, tool interfaces, dependencies, external assets, configuration, retrieval resources, and local caches.
An attack modifies reusable skills, caches, project artifacts, or dependencies in one session, while malicious behavior activates only in a later session or under a specific trigger.
These benchmarks evaluate whether a rule system, model, static analyzer, or verifier can identify semantic, code-level, and mixed attacks in a skill package before execution.
Before a skill is installed, integrated, or invoked, scanners inspect natural-language declarations, requested permissions, dependencies, executable resources, and cross-skill data flows.
During orchestration, the agent interprets the user request, retrieves memory, selects and composes skills, constructs a plan, and prepares tool calls. This stage is where latent risks become activated and amplified through context and control flow.
An individually benign skill may be exploitable through adversarial input. Multiple benign skills may also produce unauthorized, privacy-leaking, or destructive behavior when composed along a shared execution path.
Malicious users submit harmful tasks, jailbreak prompts, obfuscated contexts, or multi-turn inducements through the direct interaction interface.
Long-term memory is retrieved and reused as trusted context in later tasks. A single poisoning event may therefore create stealthy, persistent, and transmissible manipulation.
Given a user task and one or more skills, the agent executes in an environment. Safety is judged from its response, execution evidence, or the resulting state.
Boundary detectors and safety classifiers inspect user inputs, retrieved content, web data, tool outputs, and model responses before these signals influence later decisions.
Memory defenses govern writing, retrieval, reasoning, and recovery through provenance verification, consistency checking, anomaly detection, causal auditing, and robustness certification.
Harness-externalized defenses restructure or isolate untrusted context and constrain planning through task alignment, tool dependency graphs, and information-flow control.
Alignment-internalized defenses use instruction-hierarchy training, supervised fine-tuning, preference optimization, or reinforcement learning to internalize trust priorities and safe tool-use policies.
Complete plans are checked before external actions execute, with the goal of detecting dangerous objectives, privilege violations, and hazardous action compositions.
During execution, the agent commits tool calls and environment actions, observes their effects, and updates its plan or state. Security failures become externally consequential here, and can create artifacts that survive the current task.
Malicious instructions are embedded in HTML, CSS, hidden text, images, PDFs, forms, or other page elements to hijack browsing agents.
Files, terminal output, notifications, pop-ups, screenshots, buttons, and mobile overlays manipulate perception, grounding, and operating-system actions.
Malicious instructions arrive through search results, API responses, database records, emails, command output, or MCP server responses and influence subsequent actions.
Execution-centered evaluation asks whether an agent performs an unsafe action, follows an attacker-controlled trajectory, or leaves the environment in a harmful final state. It also includes offline auditing of recorded trajectories and candidate actions.
Complete interaction records are provided to safety judges, which must detect gradually emerging risks, localize risky steps, and explain causal chains.
Given the current context and a candidate action, the evaluator decides whether the action should be allowed, blocked, or verified further before execution.
Before each tool call or environment action is committed, a monitor inspects the state, action semantics, and arguments, then blocks, corrects, confirms, or formally verifies the action.
Partial or complete histories are analyzed to detect cross-step privilege escalation, cross-tool information leakage, and cumulative policy violations, supporting root-cause diagnosis and continual improvement.
Execution is not the end of the lifecycle. Agent actions may update long-term memory, rewrite reusable skills, or leave artifacts that become inputs to later workflows. The survey therefore frames future work as a closed safety loop:
The Introduction highlights three studies that directly examine how safety can fail when agents update their own models, memories, tools, workflows, or accumulated experience:
Together, these works show that self-evolution creates more than a larger static attack surface: it can make failures persistent, amplify them over time, and decouple capability improvement from reliable or safe behavior.
This loop connects adversarial environment generation, fine-grained trajectory attribution, and adversarial-feedback-driven continual safety evolution toward safer recursive self-improvement.
If this repository supports your research, please cite the survey and the original papers you use:
Yutao Mou, Dingyao Yu, Xiaotian Luan, Zhe Yin, Zhangchi Xue, Peiyang Liu, Pengfei Yang, Tong Zhang, Shikun Zhang, and Wei Ye. Pandora's Toolbox: A Survey of Generalist Agent Security from the Lifecycle Perspective. 2026.
The formal BibTeX entry will be added when the public preprint record becomes available.
Issues and pull requests for new papers, code repositories, datasets, or corrections are welcome. Please identify the primary lifecycle stage and security perspective, then use the following format:
- (Year) [Paper Title](Paper URL)
When a work spans multiple stages, place it under the stage where the relevant risk originates, the evaluation collects its principal evidence, or the defense primarily intervenes. Cross-listing is encouraged when it materially improves discoverability.
Provenance → Orchestration → Execution → Persistent Feedback
16 commits
2 commits
Beyond Environment and User Inputs: A Comprehensive Survey of Skill-Oriented Security in Agentic AI
10
18 commits
updated Aug 28, 2026
A curated literature map of risks, evaluations, and defenses across the full agent lifecycle
🌐 Language / 语言: English · 简体中文
Generalist agents are no longer bounded chat interfaces. They acquire reusable skills, retrieve long-term memory, select tools, interact with external environments, and preserve artifacts across sessions. Their security therefore cannot be understood as a collection of isolated model or component failures. A vulnerability may enter early, remain latent, be amplified during decision-making, materialize as a consequential action, and then contaminate persistent state.
This repository accompanies Pandora's Toolbox: A Survey of Generalist Agent Security from the Lifecycle Perspective. The survey organizes generalist-agent security through two orthogonal structures:
The stage assignments below indicate where a risk is introduced, where safety evidence is collected, or where a defense primarily intervenes. They are not mutually exclusive: one attack or method may span multiple stages, and one paper may appear in more than one category.
Figure 1. Risks enter during provenance, propagate and amplify through orchestration, manifest during execution, and persist through contaminated states that affect future workflows.
| Lifecycle stage | Security question | Primary risk path | Typical evidence | Main intervention point |
|---|---|---|---|---|
| Provenance | What capabilities and artifacts are admitted? | Poisoned metadata, skill files, dependencies, and forged trust signals | Skill packages, manifests, provenance records | Pre-installation inspection and admission control |
| Orchestration | How are context, memory, skills, and tools composed into decisions? | Malicious requests, retrieved memories, skill instructions, unsafe compositions | Selected skills, plans, candidate tool calls | Context filtering, decision integrity, plan auditing |
| Execution | What actions are committed, and how does the environment respond? | Web, GUI, tool-output, API, file, and terminal injection | Actions, trajectories, tool evidence, final environment state | Step-level enforcement and trajectory review |
| Persistent feedback | What survives and re-enters future workflows? | Contaminated memory, rewritten skills, and compromised artifacts | Cross-session state and recurrence | Provenance tracking, recovery, and continual safety evolution |
Figure 2. Taxonomy of security risks, evaluations, and defenses across the full lifecycle of generalist agents. Click the figure to open the high-resolution version.
The provenance stage determines which capabilities enter an agent's usable capability space. Skill metadata may be loaded before a task begins, while specifications, scripts, resources, dependencies, and trust signals can remain dormant until a later request activates them.
Attackers poison skill metadata, instructions, examples, or trigger rules so that malicious natural-language instructions enter the agent's planning context.
The attack surface extends beyond the primary skill file to auxiliary scripts, tool interfaces, dependencies, external assets, configuration, retrieval resources, and local caches.
An attack modifies reusable skills, caches, project artifacts, or dependencies in one session, while malicious behavior activates only in a later session or under a specific trigger.
These benchmarks evaluate whether a rule system, model, static analyzer, or verifier can identify semantic, code-level, and mixed attacks in a skill package before execution.
Before a skill is installed, integrated, or invoked, scanners inspect natural-language declarations, requested permissions, dependencies, executable resources, and cross-skill data flows.
During orchestration, the agent interprets the user request, retrieves memory, selects and composes skills, constructs a plan, and prepares tool calls. This stage is where latent risks become activated and amplified through context and control flow.
An individually benign skill may be exploitable through adversarial input. Multiple benign skills may also produce unauthorized, privacy-leaking, or destructive behavior when composed along a shared execution path.
Malicious users submit harmful tasks, jailbreak prompts, obfuscated contexts, or multi-turn inducements through the direct interaction interface.
Long-term memory is retrieved and reused as trusted context in later tasks. A single poisoning event may therefore create stealthy, persistent, and transmissible manipulation.
Given a user task and one or more skills, the agent executes in an environment. Safety is judged from its response, execution evidence, or the resulting state.
Boundary detectors and safety classifiers inspect user inputs, retrieved content, web data, tool outputs, and model responses before these signals influence later decisions.
Memory defenses govern writing, retrieval, reasoning, and recovery through provenance verification, consistency checking, anomaly detection, causal auditing, and robustness certification.
Harness-externalized defenses restructure or isolate untrusted context and constrain planning through task alignment, tool dependency graphs, and information-flow control.
Alignment-internalized defenses use instruction-hierarchy training, supervised fine-tuning, preference optimization, or reinforcement learning to internalize trust priorities and safe tool-use policies.
Complete plans are checked before external actions execute, with the goal of detecting dangerous objectives, privilege violations, and hazardous action compositions.
During execution, the agent commits tool calls and environment actions, observes their effects, and updates its plan or state. Security failures become externally consequential here, and can create artifacts that survive the current task.
Malicious instructions are embedded in HTML, CSS, hidden text, images, PDFs, forms, or other page elements to hijack browsing agents.
Files, terminal output, notifications, pop-ups, screenshots, buttons, and mobile overlays manipulate perception, grounding, and operating-system actions.
Malicious instructions arrive through search results, API responses, database records, emails, command output, or MCP server responses and influence subsequent actions.
Execution-centered evaluation asks whether an agent performs an unsafe action, follows an attacker-controlled trajectory, or leaves the environment in a harmful final state. It also includes offline auditing of recorded trajectories and candidate actions.
Complete interaction records are provided to safety judges, which must detect gradually emerging risks, localize risky steps, and explain causal chains.
Given the current context and a candidate action, the evaluator decides whether the action should be allowed, blocked, or verified further before execution.
Before each tool call or environment action is committed, a monitor inspects the state, action semantics, and arguments, then blocks, corrects, confirms, or formally verifies the action.
Partial or complete histories are analyzed to detect cross-step privilege escalation, cross-tool information leakage, and cumulative policy violations, supporting root-cause diagnosis and continual improvement.
Execution is not the end of the lifecycle. Agent actions may update long-term memory, rewrite reusable skills, or leave artifacts that become inputs to later workflows. The survey therefore frames future work as a closed safety loop:
The Introduction highlights three studies that directly examine how safety can fail when agents update their own models, memories, tools, workflows, or accumulated experience:
Together, these works show that self-evolution creates more than a larger static attack surface: it can make failures persistent, amplify them over time, and decouple capability improvement from reliable or safe behavior.
This loop connects adversarial environment generation, fine-grained trajectory attribution, and adversarial-feedback-driven continual safety evolution toward safer recursive self-improvement.
If this repository supports your research, please cite the survey and the original papers you use:
Yutao Mou, Dingyao Yu, Xiaotian Luan, Zhe Yin, Zhangchi Xue, Peiyang Liu, Pengfei Yang, Tong Zhang, Shikun Zhang, and Wei Ye. Pandora's Toolbox: A Survey of Generalist Agent Security from the Lifecycle Perspective. 2026.
The formal BibTeX entry will be added when the public preprint record becomes available.
Issues and pull requests for new papers, code repositories, datasets, or corrections are welcome. Please identify the primary lifecycle stage and security perspective, then use the following format:
- (Year) [Paper Title](Paper URL)
When a work spans multiple stages, place it under the stage where the relevant risk originates, the evaluation collects its principal evidence, or the defense primarily intervenes. Cross-listing is encouraged when it materially improves discoverability.
Provenance → Orchestration → Execution → Persistent Feedback
16 commits
2 commits