SoK survey: jailbreak attacks, defenses, and practical considerations in the age of agentic AISoK: Rethinking Jailbreaking in the Era of Agentic AI: Attacks, Defenses, and Practical Consideration
Mia et al. use an SoK to place jailbreaks in the agent execution pipeline and compare inference-time defenses on Qwen3.5-4B and Llama-3.1-8B-Instruct: native alignment is not a substitute for adversarial robustness, and final-response safety can also mask compromises in intermediate stages.
- Modern models have stronger native safety alignment, and agents expand the attack surface to planning, memory, tools, and inter-agent communication. The authors ask whether existing jailbreak conclusions still hold on modern LLMs and agentic AI.
- The authors provide an attack/defense taxonomy covering adversarial access, injection channels, target components, and defense stages, propose a security–utility–efficiency framework that distinguishes harmful-prompt safety, adversarial jailbreak robustness, and agent-level outcomes, and then evaluate representative inference-time defenses in a unified LangGraph agent.
- The experiments use Qwen3.5-4B and Llama-3.1-8B-Instruct, with benchmarks XSTest, the first 50 AdvBench items, and AgentHarm with TRACE, MINJA, and AgenticRed. The authors state that native alignment is not equivalent to adversarial robustness, defense effectiveness depends on the model, attack, and components, and may incur costs in over-refusal, utility, and latency; a low final-response ASR can still mask compromises in planning, memory, and tool stages.
- The taxonomy covers planning, tools, memory, and multi-agent, while the controlled experiments evaluate only model-layer inference-time defenses. The authors point out shortcomings in current defenses and evaluations and point toward adaptive, execution-aware, and more resource-efficient defenses.
- Threat model
- Primarily considers black-box adversaries who can control user inputs and externally supplied content but cannot modify the trusted system prompt, model parameters, or infrastructure; also considers white-box adversaries with access to model internals or defense information. Distinguishes between final-response jailbreaks and component-level unsafe behaviors.
- Evaluated models
- Qwen3.5-4BLlama-3.1-8B-Instruct
- Benchmarks
- XSTestAdvBenchAgentHarm
- Metrics
- ASRDSRORRAnswer RelevancyG-Eval Response QualityHelpfulnessBiasUtilityInference TimeEnd-to-End LatencyReasoning Token CostTotal Token Cost
This SoK re-examines jailbreak security in the era of agentic AI, establishing a unified taxonomy of attacks and defenses around user interaction, planning and reasoning, memory, tool use, and inter-agent communication, and proposes a three-dimensional evaluation framework of safety, utility, and efficiency, distinguishing native harmful prompt safety, adversarial jailbreak robustness, and agent-level safety outcomes. The authors conduct controlled empirical studies of representative attacks and defenses within a unified agent framework and find three gaps: strong native alignment does not imply resistance to adversarial jailbreaks; defense effectiveness is highly dependent on the model, attack type, and component, and may incur significant costs of over-refusal, utility degradation, and latency; low attack success rates on final responses may mask compromised intermediate steps, as planning, memory, and tool interactions can remain unsafe even when final responses are successfully filtered.
Paper analysis
What problem does this paper attempt to solve?
Whether existing jailbreak findings still hold under stronger alignment and agent execution pipelines.
Do existing conclusions about jailbreak attacks and defenses still hold on modern LLMs with stronger native alignment and on agentic AI that plans, uses tools, keeps state, and communicates with other agents?
- Scenario and importance: The authors state that LLMs have evolved from conversational assistants into systems that can reason, plan, call tools, maintain persistent memory, communicate with other agents, and execute multi-step tasks. Unlike single-turn prompt–response, outputs enter subsequent reasoning, stored state, tools, and other agents. The authors believe it is therefore necessary to re-examine which jailbreak conclusions remain valid.
- Shortcomings of existing practice: The authors state that modern instruction-tuned models are better at refusing directly harmful prompts, but automated and optimization-based attacks can still bypass alignment. Looking only at post-defense ASR is misleading because one must consider the marginal benefit relative to native alignment, as well as over-refusal, utility, latency, and computational cost. Agents also expand entry points to retrieved content, memory, tool outputs, and inter-agent messages. The authors stipulate: only prompt injection that bypasses an explicit model or agent safety policy and induces prohibited generation, reasoning, storage, tool use, or execution counts as a jailbreak; injection that merely redirects an authorized task is out of scope. The authors believe a safe final response cannot guarantee safety in planning, memory, tool interaction, or execution.
- Core observations: The authors separate entry vectors (user prompts, retrieved content, memory, tool outputs, inter-agent messages) from targets (safety policy bypass, goal hijacking, data exfiltration, unauthorized actions). SLMs are used for repeated, specialized calls due to inference cost and local deployment, but many defenses require repeated inference, perturbed prompts, auxiliary safety models, or additional generation, and these overheads repeat across planning, tool, validation, and inter-agent steps.
- What this paper proposes: An SoK that reframes jailbreak safety across the entire agent execution pipeline. Contributions include a multidimensional attack and defense taxonomy, a security–utility–efficiency evaluation framework, and controlled experiments on representative inference-time defenses in a unified agent framework. The taxonomy covers planning, tools, memory, and multi-agent; the experiments evaluate only model-layer inference-time defenses. Research questions are RQ1–RQ4: how agent capabilities expand the attack surface; how to characterize attacks and defenses by component, trust boundary, and execution stage; the marginal safety benefit and security–utility–efficiency trade-offs of defenses on modern LLMs; and which existing conclusions remain valid and which need reassessment.
- Threat model:
- Goals: bypass safety alignment and induce prohibited behavior; in agents this can affect the final response as well as planning, memory, retrieval, tool use, and inter-agent communication.
- Knowledge: primarily black-box adversaries; also consider stronger white-box adversaries with access to model internals or defense information.
- Capabilities: black-box can control user inputs and externally supplied content, and cannot modify trusted system prompts, model parameters, or infrastructure; white-box assumes access to parameters, gradients, logits, attention, or hidden representations (used per attack family).
- Victim system: an execution pipeline containing planning and reasoning, memory, tools, user interfaces, and other agents. The authors distinguish final-response jailbreaks from component-level unsafe behavior.
What related research exists?
Recent SoKs either look only at standalone model responses or treat jailbreaks as one class of threat within agent security.
- Model-level jailbreaks: Early work used carefully crafted prompts, optimized suffixes, role-playing, prompt transformations, and multi-turn interactions to bypass the safety alignment of standalone LLMs; defenses cover safety training, input filtering and transformation, decoding-time intervention, internal state monitoring, and output validation. Xu et al. [169] systematically organize attacks, defenses, datasets, evaluation methods, and automated review, and propose the Security Cube. Wang et al. [150] systematically organize jailbreak guardrails and propose a security–efficiency–utility framework for comparing defenses. The authors state that both mainly analyze standalone LLMs and prompt–response safety, not autonomous agent execution.
- Agent security surveys: Shahriar et al. [132] organize the field by agent applications, threats, and defenses. Chhabra et al. [23] survey prompt injection, jailbreaks, tool abuse, autonomous cyber exploitation, multi-agent attacks, and interface vulnerabilities. Dehghantanha and Homayoun [30] emphasize trust boundaries on users, retrieval, memory, tools, external APIs, and multi-agent communication. Chu [24] gives a layered attack surface across foundation, cognition, memory, tool execution, multi-agent, ecosystem, and governance layers, and includes temporally persistent attacks. Kim et al. [64] analyze how safety emerges from interactions among models, memory, tools, workflows, external environments, and conventional software components.
- Differences from recent SoKs: The authors state that recent SoKs differ from this paper along four specific dimensions. Xu et al. [169] systematize model-level jailbreak attacks, defenses, datasets, and review; Wang et al. [150] focus on jailbreak guardrails and their security–utility–efficiency trade-offs. In both, the unit of analysis is standalone model interaction, and safety is mainly seen in the final response. Kim et al. [64] take a system-level view but treat jailbreaks as one class of threat within broader agent security, without a common empirical evaluation of jailbreak defenses across agent layers.
- Baseline methods and benchmarks: The controlled experiments use undefended Vanilla and 16 representative jailbreak defenses. Security–utility–efficiency uses XSTest (250 benign, 200 harmful prompts). Adversarial robustness uses the first 50 harmful instructions from AdvBench with nine attacks: AutoDAN, PAIR, TAP, GCG, Cipher, DeepInception, CodeChameleon, ICA, Jailbroken. Agent execution pipelines use AgentHarm [4] with attacks TRACE, MINJA, and AgenticRed.
The authors replace the unit of analysis from prompt–response pairs with agent trajectories, connect model-level jailbreaks to the execution pipeline with a taxonomy, and use a unified implementation to compare final-response ASR on two final models as well as unsafe behavior in planning, reasoning, memory, and tool interactions, while recording over-refusal, response quality, task utility, latency, and computational cost. Table 1 uses solid, half-solid, and open circles to compare existing surveys on coverage of taxonomy scope, unit of analysis, measured outcomes, and empirical design; the authors state the table is a descriptive comparison. Agent-Level Outcomes requires measuring intermediate or execution-layer behavior, and Empirical Evaluation means comparing multiple attacks or defenses under a common experimental framework.
How does the paper address this problem?
Classify attacks and defenses with an execution pipeline and conduct controlled evaluation with a three-dimensional framework.
The authors organize jailbreak attacks and defenses using an agentic execution pipeline and compare representative inference-time defenses for safety, utility, and efficiency within a fixed LangGraph agent.
Problem setting and classification dimensions
- Pipeline: In Figure 1, the agent interprets user goals, decomposes subtasks, retrieves, calls tools, and uses observations to guide the next step; multi-agent systems can also exchange information. State and outputs propagate across stages, and every component and transition can be manipulated.
- Attack classification: Figure 2 first divides attacks into black-box and white-box. Black-box attacks are categorized by interaction surface into User–Agent, Planning and Reasoning, Agent–Tool, Agent–Memory, and Agent–Agent; white-box attacks are categorized by optimization mechanism into gradient, search, and representation-aware. The literature search covers work up to August 2026, spanning 2022–2026 publications, yielding 271 attack-related and 88 defense-related candidates, of which 116 attacks and 63 defenses are retained after filtering.
- Defense classification: Figure 3 categorizes defenses by the architectural layer they primarily protect: model and reasoning, context and state, planning and orchestration, tools and execution, and inter-agent communication. The model and reasoning layer is further divided into safety training and fine-tuning, input filtering and transformation, internal state and decoding control, and output classification/validation/rewriting. The inclusion criterion is the ability to prevent, detect, or contain policy bypass caused by adversarial instructions or poisoned state.
- Scope: The taxonomy covers planning, tools, memory, and multi-agent settings; the experiments evaluate only representative model-layer inference-time defenses under a common setting. The authors state that the goal is not to claim these defenses provide complete agent-layer protection.
Attack families and defense families
- User–agent and reasoning: User-side attacks include iterative rewriting (PAIR), tree search with pruning (TAP), ASCII obfuscation (ArtPrompt), rewriting into code completion (CodeAttack), cross-interaction retrieval strategies (AutoDAN-Turbo), and short-prompt fuzzing (PAPILLON). Planning-side attacks use task decomposition, elongated benign reasoning, multi-turn trajectory optimization, or stepwise splitting and reconstruction of harmful queries, acting on the reasoning trajectory.
- Tools, memory, and inter-agent: AgentHarm evaluates whether agents can complete harmful multi-step tasks with custom tools under jailbreak prompts; STAC constructs sequential attack chains composed of executable tool operations. MINJA uses query-only memory injection, causing injected content to be stored and later retrieved into context. ARCJ, Agent Smith, MAD, and PRP propagate through retrieved replicated suffixes, inter-agent propagation, repeated debate amplification, or universal perturbations spread within guardrail pipelines, respectively.
- White-box optimization: GCG uses greedy coordinate gradient optimization for universal adversarial suffixes; Faster-GCG, I-GCG, and AttnGCG add distance regularization with sampling, multi-coordinate updates, or attention, respectively. AutoDAN uses hierarchical genetic optimization; BEAST uses gradient-free beam search. PoEx, SABER, ORTHO, Safety Patterns, and ASJA use hidden-layer gradients, cross-layer residuals, refusal directions, safety-related activations, or attention scores, respectively.
- Defense placement: Pre-deployment defenses include Safe RLHF, GC-DPO, ReFAT, Safe Unlearning, LED, CoG, and R2D for training or editing. Pre-generation defenses include Self-Reminder, ICD, ICAG, SmoothLLM, SemanticSmooth, and Erase-and-Check. During-generation defenses include decoding control such as SafeDecoding, SecDecoding, SSD, and FJD, as well as internal-state methods such as GradSafe, HSF, ABD, and JBShield. Pre-release defenses include Llama Guard, ShieldGemma, ThinkGuard, PARDEN, Self Defense, Backtranslation, and Aligner. State-layer defenses include CaMeL, A-MemGuard, and SMSR; planning-layer defenses include ShieldAgent and AgentSpec; tool-layer defenses include Progent and AttriGuard; communication-layer defenses include AutoDefense and TrinityGuard. Each Limitation box states access assumptions, overhead, over-refusal, and omissions regarding adaptive or subsequent entry points.
Evaluation definitions
- Three-dimensional metrics: Figure 4 places defenses in an agent that includes planning, tools, memory, and final generation. Safety is measured with ASR and DSR. For unsafe queries, an LLM judge determines whether the final response substantially assists the harmful request: executable instructions, code, operational guidance, specific recommendations, or specific methods count as jailbreak success; refusal, safe redirection, and non-actionable discussion count as defense success. ASR=FN/(TP+FN)× 100%, DSR=TP/(TP+FN)× 100%.
- Utility and efficiency: Benign queries are labeled by an LLM judge as fully compliant, fully refused, or partially refused. Full compliance is TN, full and partial refusal are FP, and ORR=FP/(TN+FP)× 100%. Utility includes Answer Relevancy, G-Eval Response Quality, and Helpfulness; under a 0.7 threshold, higher is better for all three. Bias is the number of biased opinions divided by the number of opinions, passes at no more than 0.7, and is not included in aggregate utility. Aggregate utility is the average of relevancy, quality, and helpfulness. Efficiency records inference time, end-to-end latency, reasoning tokens, and total tokens.
- Experimental protocol: The server uses two NVIDIA RTX A6000 GPUs (48 GB each). Unless otherwise stated, Qwen3.5-4B serves as the router/tool model, and Qwen3.5-4B and Llama-3.1-8B-Instruct serve as final response models. The architecture is kept fixed across experiments. XSTest reports utility, and AdvBench is used only for adversarial safety. On AgentHarm, TRACE primarily targets planning, MINJA targets persistent memory, and AgenticRed automatically evolves model-layer jailbreak prompts that may propagate across planning, tool interaction, and final responses.
What experiments did the paper conduct?
Compare Vanilla and 16 inference-time defenses on safety, utility, and efficiency across two final models.
Experimental setup
- Models under test: Final response models are Qwen3.5-4B and Llama-3.1-8B-Instruct. Unless otherwise stated, Qwen3.5-4B also serves as the router/tool model.
- Benchmarks: XSTest contains 250 benign prompts and 200 harmful prompts. AdvBench uses the top 50 harmful instructions. AgentHarm is used for the execution chain, with attacks TRACE, MINJA, and AgenticRed.
- Attacks: Nine on AdvBench: AutoDAN, PAIR, TAP, GCG, Cipher, DeepInception, CodeChameleon, ICA, Jailbroken.
- Defenses: 16 representative jailbreak defenses plus undefended Vanilla. Specific names are given in the summary table in the main text; the attached text breaks off after the normalization description in Section 5.2, and the per-cell numbers of Tables 2–8 are not included in the readable text.
- Metrics and judging: ASR and DSR are determined by an LLM safety judge on whether executable assistance is provided, as defined in equation (1). ORR counts full/partial refusal as FP, per equation (2). Utility is the average of Answer Relevancy, G-Eval Response Quality, and Helpfulness, per equation (4); Bias is reported separately with a threshold of 0.7. Efficiency is inference time, end-to-end latency, reasoning tokens, and total tokens. The paper does not state the judge model name, number of repetitions, or human agreement in the attached text.
- Composite score: Figure 5 summarizes Tables 2–4, and Figure 8 summarizes Tables 5–7. Metrics are min–max normalized within each final model so that higher is better. Safety equally weights 1−ASR, overall accuracy, and 1−ORR; utility uses aggregate utility. For Qwen3.5-4B, efficiency weights are response time 0.40, total tokens 0.30, and reasoning tokens 0.30; for Llama-3.1-8B-Instruct, because there is no reasoning-token count, weights are response time 0.60 and total tokens 0.40. The total score equally weights safety, utility, and efficiency.
Main results
The attached text breaks off after giving the above normalization rules, and the cells of Tables 2–7 do not appear in the readable text, so the table below does not fill in ASR or utility numbers.
Swipe horizontally to read the table
Final model Setting ASR/DSR Utility and ORR Efficiency Qwen3.5-4B Vanilla and 16 defenses; XSTest and AdvBench Not reported Not reported Not reported Llama-3.1-8B-Instruct Same; no reasoning-token count Not reported Not reported Not reported - Authors' summary: The abstract states that the results show three gaps. Strong native alignment does not imply resistance to adversarial jailbreaks. Defense effectiveness is highly dependent on the model, attack, and component, and may incur costs in over-refusal, utility, and latency. Low final-response attack success rates can still mask compromised intermediate stages: even if the final response is filtered, planning, memory, and tool interactions may still be unsafe.
- Authors' design explanation: The authors state that this evaluation provides evidence that recent SoKs do not, namely that defenses can suppress final unsafe responses while leaving intermediate agent components compromised, and that stronger response-layer safety can come with utility or efficiency costs.
- Figures: Figure 5 and Figure 8 are aggregations of the above tables. The attached text does not give the specific scores labeled in the figures, so curve or bar values are not transcribed.
Component-level safety
- What was measured: On AgentHarm, TRACE, MINJA, and AgenticRed are used, recording both final-response jailbreak success and component-level unsafe behavior. TRACE primarily targets planning, MINJA targets persistent memory, and AgenticRed may propagate across planning, tool interaction, and final responses.
- Results: The attached text does not give ASR or success-rate numbers for these three attacks on each component.
- Authors' interpretation: The authors state that low final-response ASR does not imply that planning, memory, and tool interactions are safe, and therefore advocate shifting from response-centric defenses to cross-layer, execution-aware security that protects agent state, component transitions, and external actions.
Other ablations and analyses
- Literature screening: 271 attack-related candidates and 88 defense-related candidates; the taxonomy retains 116 attacks and 63 defenses (Section 2.1).
- XSTest size: 250 benign and 200 harmful prompts; AdvBench uses the top 50 harmful instructions (Section 5.1).
- Efficiency weights: Qwen3.5-4B is 0.40/0.30/0.30; Llama-3.1-8B-Instruct is 0.60/0.40 (Section 5.2).
- Utility thresholds: Answer Relevancy, Response Quality, and Helpfulness are better above 0.7; Bias passes at no more than 0.7 and is not included in aggregate utility (Section 5.1).
- Hardware: two NVIDIA RTX A6000 GPUs, 48 GB each (Section 5.1).
- The attached text does not give ablation numbers broken down by attack or by defense.
What are some points that can be further explored?
The authors argue that existing defenses and evaluations are insufficient and point toward execution-aware, adaptive, and more resource-efficient defenses.
Limitations and future directions noted by the authors
- Separation between taxonomy and experimental depth: The contributions are stated at the end of Section 1; the taxonomy covers planning, tool, memory, and multi-agent surfaces, while the controlled experiments focus only on inference-time defenses at the representative model layer under a common setting; the authors state these defenses are not claimed to provide complete agent-level protection (Introduction, scope paragraph).
- Defenses and evaluation practices: The authors state they identify limitations in current jailbreak defenses and evaluation practices and expose the gap between response-level safety and agent-level protection (contributions list).
- Future directions: The authors state they outline directions for adaptive, execution-aware, and resource-efficient defenses (contributions list). The itemized statements in the Conclusion are not included in the latter part of the attached text, so no original conclusion-section sentences are written separately.
- Limitations in the per-method boxes: Section 4 lists a Limitation for each attack family and defense family, e.g., gradient methods require white-box gradients or parameters and rely on iterative optimization, input filtering may over-refuse and cannot see content that later enters via retrieval, memory, tools, or agent messages, and output validation occurs after generation and cannot reliably observe or reverse earlier plans, memory writes, tool calls, or external side effects. These are the authors' limitation statements about existing work.
- Component defense assumptions: The authors write that CaMeL assumes trusted queries and correctly specified policies; A-MemGuard relies on cross-memory consensus and adds inference and storage costs; SMSR assumes protected source keys, and evaluation mainly uses synthetic enterprise scenarios and LLM review. AgentSpec performs deterministic, step-local enforcement and does not foresee unsafe states that appear only after multi-step trajectories. Neither AutoDefense nor TrinityGuard constitutes general enforcement of identity, message provenance, delegated authorization, or shared-state isolation (Section 4.2).
Experimental coverage
- Final-response models are Qwen3.5-4B and Llama-3.1-8B-Instruct; router/tool models are Qwen3.5-4B unless otherwise stated (Section 5.1).
- Defense comparison is 16 representative inference-time defenses plus Vanilla; adversarial attacks are nine methods on the first 50 AdvBench items (Section 5.1).
- Utility and harmful-prompt safety use XSTest's 250 benign and 200 harmful prompts; agent pipelines use TRACE, MINJA, and AgenticRed on AgentHarm (Section 5.1).
- Safety judgments use LLM review and formulas (1)(2); the paper does not state the reviewer model name, number of repetitions, or agreement with humans in the attached Section 5.1.
- Composite scores use per-model min–max normalization with equal weights for safety, utility, and efficiency; Llama-3.1-8B-Instruct does not use reasoning tokens because their counts are unavailable (Section 5.2).
Summarize the main content of the paper
The SoK replays jailbreaks onto the agent pipeline and uses two models to examine the marginal benefit and cost of response-layer defenses.
Mia et al. extend jailbreak safety from single-turn responses to agent planning, memory, tools, and inter-agent communication, and ask whether existing conclusions still hold under stronger native alignment.
- Problem: Strong native alignment rejects directly harmful prompts, but optimized and automated jailbreaks can still bypass it; agents also make retrieval, memory, tool outputs, and agent messages entry points. The authors count only injections that bypass explicit safety policies as jailbreaks. Looking only at post-defense ASR misses the marginal benefit relative to native alignment, as well as over-refusal, utility, and latency.
- Approach: Literature screening yields 116 attacks and 63 defenses. Figure 2 classifies attacks by black-box interaction surface and white-box optimization mechanism; Figure 3 classifies defenses by architectural layer. The evaluation separates harmful prompt safety, adversarial jailbreak robustness, and agent-layer outcomes, and examines ASR, DSR, ORR, aggregate utility, and latency/tokens together. The threat model is primarily black-box, with a white-box setting that can inspect internals.
- Experiments: In a fixed LangGraph agent, Qwen3.5-4B serves as router/tool, and two final models are compared against Vanilla and 16 inference-time defenses. XSTest has 250 benign and 200 harmful prompts; AdvBench uses the top 50 prompts with nine attacks; on AgentHarm, TRACE, MINJA, and AgenticRed are used to examine final responses and component-level behavior. The composite score weights safety, utility, and efficiency equally; Qwen's efficiency weights are 0.40/0.30/0.30, and Llama's are 0.60/0.40.
- Authors' conclusions: The authors state that strong native alignment does not equal adversarial robustness; defense effectiveness depends on the model, attack, and component, and may incur over-refusal, utility, and latency costs; when final responses are blocked, planning, memory, and tools may still be unsafe. The authors therefore advocate shifting to cross-layer, execution-aware security that protects state, component transitions, and external actions. The experiments themselves cover only model-layer inference-time defenses, and the authors' planned direction is adaptive, execution-aware, and more resource-efficient defenses.