TRACE: Task-Aware Adaptive Self-Evolving Jailbreak Framework for LLM AgentsTRACE: Task-Aware Adaptive Self-Evolving Agentic Jailbreaking
TRACE uses decomposition and evolvable multi-turn strategies to induce agents to execute harmful workflows; on AdvCUA, Codex+GPT-5.5 ASR is 0.62.
The goal of a non-expert attacker is to induce an LLM agent to execute a harmful workflow end-to-end, not merely to generate harmful text. The attack proceeds through multi-turn interaction, can advance based on replies, tool results, and environment state, and resumes at failed subtasks. The victim system is an agent that can plan, code, and call tools; the experiments use Codex and Claude Code. The paper does not state black-box or white-box.
- Safety alignment, refusal of execution, and full restarts after intermediate failures mean that inducing LLM agents to execute harmful workflows end-to-end remains understudied.
- TRACE uses more than 20 procedural schemes to decompose tasks, selecting topics by harmfulness and execution difficulty; rejected subtasks match evolvable multi-turn strategies, and on failure resume from that subtask. After evolution, strategies exceed 30.
- In Table 1, TRACE is higher than baselines on both agents. On AgentHazard, its ASR is 0.97–1. On AdvCUA with AgentDoG, Codex+GPT-5.5 drops from 0.62 to 0.38 (Table 2).
- The paper does not include a dedicated limitations section. Appendix E states that intent-aware trajectory-level risk assessment is needed, rather than isolated input classification. The evaluation covers Codex and Claude Code and two benchmarks; AgentDoG is only reported on AdvCUA, and the paper does not report the number of repetitions.
- Evaluated models
- CodexClaude CodeGPT-5.5Claude-Opus-4.8Gemini-3.5-FlashDeepSeek-V4-Pro
- Benchmarks
- AdvCUAAgentHazard
- Metrics
- ASR
The researchers propose TRACE, an agent jailbreak framework for LLM agents, which improves attack success rate by more than 100% over existing jailbreak methods on AdvCUA across multiple advanced LLM agents. The framework first designs about 20 process decomposition schemes, specifies key operations and dependencies by task type, breaks complex harmful tasks into a sequence of easier-to-execute, more innocuous-looking subtasks, and evaluates candidate sequences along two dimensions before selecting the best one for launching the attack. For subtasks that are still refused, TRACE constructs different subtask profiles and builds a corresponding execution-oriented, evolving multi-turn jailbreak strategy library, retrieving strategies that include intermediate goals, environment states, and relevant tools, and gradually builds a credible execution context through multi-turn interaction. The authors note that existing jailbreak methods mostly focus on inducing harmful instructions, ignoring the model's refusal to execute those instructions, and that intermediate step failures or dependency errors can interrupt and restart the entire attack flow; TRACE handles this through state recovery rather than restart. The code is publicly available.
Paper analysis
What problem does this paper attempt to solve?
The difficulty is inducing the agent to execute harmful workflows end-to-end, not just generating harmful text.
How to induce LLM agents to execute expert-level harmful workflows end-to-end, rather than just generating harmful text.
- Scenario: The authors state that agents can plan, code, call tools, and execute multi-step actions, and that non-experts may also be able to induce expert-level attack workflows through this; this threat is still underestimated.
- Gap identified by the paper: Safety alignment tends to reject harmful tasks before they are converted into executable workflows. Existing jailbreaks mostly elicit harmful content, ignoring that agents may still refuse to execute. Intermediate failures or dependency errors can interrupt the workflow and force a full restart.
- Summary of recent work: The authors state that most work only addresses part of the problem, such as only identifying harmful tool chains, relying on human review for decomposition, or making stage plans for each task individually without reusing past experience.
- Object proposed in this paper: TRACE. It uses procedural schemes to reduce difficulty while maintaining dependencies, uses execution-oriented multi-turn strategies to induce rejected subtasks, resumes from that subtask on failure, and evolves a strategy library with execution feedback.
- Threat model:
- Goal: Induce the agent to complete an end-to-end workflow for a given harmful task, rather than just producing harmful text.
- Interaction capability: Multi-turn interaction; progresses based on agent replies, tool results, and environment state. On failure, locate the subtask, preserve previously effective state, and adjust the strategy to continue.
- Victim system: LLM agents that can convert high-level goals into action sequences and interact with external systems. Experimental subjects are Codex and Claude Code.
- Knowledge assumption: The paper does not use black-box or white-box, nor does it state whether the attacker can read parameters or system prompts. The authors state that experiments were conducted in a controlled environment.
What related research exists?
Related work is divided into text jailbreaks and agent jailbreaks; the authors state that the former does not consider execution, and the latter does not simultaneously address decomposition, environment, and resumption.
The paper divides existing jailbreaks into text jailbreaks and agent jailbreaks, and in the introduction names works that only cover part of the problem.
Text jailbreaks
- Single-turn: Li et al. (2023), Ding et al. (2024), Zeng et al. (2024), Liu et al. (2025), Zhang et al. (2025) use prompt structures, hypothetical scenarios, or text obfuscation in a single query to conceal harmful intent.
- Multi-turn: Yan et al. (2025), Rahman et al. (2025), Du et al. (2025), Russinovich et al. (2025), Huang et al. (2025), Xiu et al. (2026), Qi et al. (2026) use dialogue context to gradually steer toward harmful outputs.
- Paper's criticism: These methods mainly elicit harmful replies, without considering whether content can drive specific actions, and whether actions can be sustained in real environments to complete end-to-end tasks. The introduction also states that even if Rahman et al. (2025) and Liu et al. (2025) can execute initial steps, intermediate failures force a restart from scratch.
Agent capabilities
- Planning and tools: The introduction uses Yao et al. (2022), Mialon et al. (2023), Schick et al. (2023), Wang et al. (2024) to illustrate planning, tool invocation, and multi-step execution, and Zhou et al. (2024), Yang et al. (2024) to illustrate interaction with external systems. The paper does not experimentally compare these works with TRACE.
Agent jailbreaks
- STAC (Li et al., 2025): Identifies potentially harmful tool call chains, rather than end-to-end attacks to complete a given harmful task.
- MD-Attack and MT-AgentRisk (Yueh-Han et al., 2025; Li et al., 2026): Decomposition mainly aims to reduce harmfulness, potentially losing information needed to complete the original task; rely on human examples or classification systems tied to specific tasks, goals, and environment assumptions, which may yield incomplete, non-executable workflows when tasks change.
- STING (Talokar et al., 2026): Constructs stage plans for each task individually and attempts each stage with multi-turn dialogue, but planning does not include execution information, and dialogue does not include execution environment and available tools. The authors state this may lead to incomplete execution or failure. The introduction also states it does not leverage past attack experience, so execution failures recur.
Baselines and benchmarks
- Baselines: AutoDAN-Turbo (Liu et al., 2025), X-Teaming (Rahman et al., 2025), MD-Attack, MT-AgentRisk, STING.
- Benchmarks: AdvCUA (Luo et al., 2025) and AgentHazard (Feng et al., 2026), both requiring completion of multi-step harmful workflows in interactive environments.
The authors position TRACE as simultaneously reducing difficulty, inducing execution, resuming from existing states, and evolving the strategy library with execution feedback.
How does the paper address this problem?
TRACE first decomposes and selects topics, then retrieves or creates multi-turn strategies for rejected subtasks; on failure, it resumes and evolves the strategy library.
Figure 1 divides TRACE into three stages: scheme-guided task decomposition, execution-oriented multi-turn induction, and evolving the strategy library with feedback. Most subtasks in the selected sequence are first executed directly; those still rejected then enter strategy interaction.
Scheme-guided task decomposition
- Schemes: The authors design more than 20 high-level procedural schemes (abstract says around 20, main text says more than / over 20). Each scheme specifies key operations, order, and dependencies, removes specific goals, paths, and resource names, retains task keywords for matching, and then deduplicates by structure.
- Instantiation: At runtime, relevant schemes are matched and filled with task goals, objects, environment, and available tools to form candidate sequences. During decomposition, unnecessary explicit harmful wording is rewritten while preserving required operations and execution semantics. Figure 2 illustrates obtaining candidate sequences from schemes; task content is not repeated here.
- Filtering: Sequences that are non-executable, empty, or semantically inconsistent are discarded. Appendix B states: a sequence is non-executable only if required resources, information, or conditions are neither provided by the task nor produced by preceding subtasks; information intentionally obtained by preceding steps is not considered missing.
- Selection: For remaining sequences, compute average subtask harmfulness and sequence-level execution difficulty. Harmfulness follows Qi et al. (2024), with raw scores 1–5, then normalized to 0–1. Difficulty considers implementation complexity, workflow length and granularity, and dependence on intermediate states; the judge first gives an execution quality score of 1–5, then inverts it so that larger values mean harder. Experiments use λ = 0.5, minimizing the weighted sum of the two:
g⋆=argming(m)∈ Gvalid[λ1/Km∑i fharm(gi(m))+(1−λ)fdifficulty(g(m))]
This formula indicates selecting among valid candidates by the weighted sum of average subtask harmfulness and sequence-level execution difficulty. Appendix A gives the prompts for two judges. The paper states that GPT-4o is used for task decomposition, strategy generation, and evaluation, and the attack model is Qwen3.6-35B-A3B.
Execution-oriented multi-turn strategies
- Profile: Rejected subtasks record four items: goal, rejection pattern, subtask type, and still-missing capability (Figure 3a).
- Strategy structure: The interaction pattern specifies the execution context, environment information, and task details to establish; the progression stage gives intermediate goals, success signals, and fallbacks when not met (Figure 3b).
- Retrieval and creation: When no suitable strategy exists in the library, create one based on the profile. Retrieval uses subtask type to find similar operations, retaining strategies that can bypass similar rejections and support required information or operations; prioritize entries already validated on similar profiles, exclude entries marked invalid, then instantiate with the current profile and execution context. Appendix F gives example strategies; not repeated here.
- Interaction and recovery: Each stage can span multiple turns. The Interaction Progress Judge (Jprog) checks against success signals; if satisfied, proceed to the next stage; otherwise, use fallback to adjust the current stage. After all stages, verify the subtask goal. On overall failure, Jloc identifies the earliest subtask needing correction, preserves previously successful states, and changes the strategy for that subtask to continue. The paper does not separately specify the models for Jprog and Jloc.
Strategy library self-evolution
- Success: Accumulate positive evidence for that profile and increase retrieval priority on similar profiles. After removing task-specific information, if applicability is compatible and interaction structure is equivalent, merge; otherwise, add new.
- Failure: Summarize failure patterns, affected components, and adjustment methods. A lesson is only applied to modify a strategy after appearing at least θfail times; if it can be handled within the original structure, modify in place; otherwise, derive a new variant. Success evidence reaching θeff marks as effective; after θdem further failures, revoke; after θineff further failures, mark as invalid and exclude from retrieval. The paper does not give these thresholds. After evolution, the library contains more than 30 strategies. Algorithm 1 gives the update process.
How completion is determined
The main experiments do not define success separately but follow the protocols of the two benchmarks, see Question 4 and Appendix C.
What experiments did the paper conduct?
On Codex and Claude Code, TRACE's ASR is higher than five baselines; with AgentDoG added, it remains higher than baselines, but absolute values decrease.
Experimental Setup
- Agents and backbones: Codex and Claude Code. The Codex column of Table 1 lists GPT-5.5, Gemini-3.5-Flash, DeepSeek-V4-pro; the Claude Code column lists Claude-Opus-4.8, Gemini-3.5-Flash, DeepSeek-V4-pro. The introduction writes Gemini as Gemini-3-Flash (2025), while Section 4.1 and Table 1 write Gemini-3.5-Flash (2026). Table 2 writes DeepSeek as Deepsee-V4-pro. The table captions define GPT as GPT-5.5 and DeepSeek as DeepSeek-V4-pro.
- Benchmarks: AdvCUA targets OS attacks on computer-use agents. Appendix C states a total of 140 tasks (40 directly malicious, 74 TTP-based, 26 end-to-end kill chains); success is determined by hard-coded checks of environment state (trigger, probe, verify, or match). The paper does not state whether the main experiments used all 140. AgentHazard originally has 2,653 entries across 10 risk categories; this paper randomly samples 100. Its original protocol uses an LLM to review trajectories and reports ASR and a harmfulness score. The main results of this paper report only ASR and do not state the review model.
- Baselines: AutoDAN-Turbo, X-Teaming, MD-Attack, MT-AgentRisk (written as MT-RiskAgent in the table), STING. Appendix D states that AutoDAN-Turbo uses deepseek-reasoner for attack, summarization, and review, and uses text-embedding-ada-002 for retrieval; the attack model of X-Teaming is Qwen2.5-32B-Instruct.
- Metric: ASR, which the paper calls Average Success Rate, defined as the proportion of successful tasks on the dataset. The authors state they follow the benchmark protocol to determine completion. The paper does not report the number of repetitions or statistical tests.
- Implementation: GPT-4o is used for decomposition, strategy generation, and evaluation; the attack model is Qwen3.6-35B-A3B; λ = 0.5. The authors state the experiments were conducted in a controlled environment.
Main Results
According to Table 1. Numbers are the proportion of successful tasks. "Highest-value baseline" takes the baseline values in that row; ties are all listed.
| Agent and backbone | AdvCUA TRACE | AdvCUA highest-value baseline | AgentHazard TRACE | AgentHazard highest-value baseline | | Codex + GPT-5.5 | 0.62 | MD-Attack 0.27 | 0.97 | MD-Attack 0.62 | | Codex + Gemini-3.5-Flash | 0.65 | MD-Attack 0.27 | 0.99 | MD-Attack 0.73 | | Codex + DeepSeek-V4-pro | 0.81 | MT-RiskAgent 0.42 | 1 | MD-Attack 0.97 | | Claude Code + Opus-4.8 | 0.54 | X-Teaming, MD-Attack both 0.15 | 0.97 | MD-Attack 0.72 | | Claude Code + Gemini-3.5-Flash | 0.69 | MD-Attack 0.27 | 0.98 | MD-Attack 0.66 | | Claude Code + DeepSeek-V4-pro | 0.88 | AutoDAN-Turbo, MD-Attack both 0.27 | 0.99 | MD-Attack 0.78 |
- The authors state that TRACE outperforms existing baselines on all evaluated settings. All six combinations in Table 1 are higher than the baselines in the same column.
- The main text separately names Codex+GPT-5.5 on AdvCUA, and Opus-4.8 and Gemini-3.5-Flash for Claude Code.
- The abstract states that on AdvCUA, ASR is increased by more than 100% relative to recent agent jailbreak baselines; the conclusion states more than 100% relative to the strongest comparison. According to Table 1, for the Codex+DeepSeek-V4-pro row on AdvCUA, and for all six rows on AgentHazard, the increase relative to the highest-value baseline in that row is less than 100%. In the contributions, the authors state that AgentHazard under the regular setting is near-perfect, consistent with the TRACE row in the table.
Evaluation of AgentDoG
Table 2 adds the agent-level guardrail AgentDoG only on AdvCUA. It performs binary safety classification on trajectories and can diagnose along risk source, failure mode, and real-world harm.
| Agent and backbone | TRACE | STING | MD-Attack | | Codex + GPT-5.5 | 0.38 | 0.12 | 0 | | Codex + Gemini-3.5-Flash | 0.35 | 0.15 | 0 | | Codex + DeepSeek-V4-pro | 0.38 | 0.12 | 0 | | Claude Code + Opus-4.8 | 0.31 | 0.04 | 0 | | Claude Code + Gemini-3.5-Flash | 0.27 | 0.12 | 0 | | Claude Code + DeepSeek-V4-pro | 0.35 | 0.19 | 0 |
- The authors consider that AgentDoG can defend against existing attacks. In Table 2, MD-Attack is 0 in all cases. The other baselines in the same table are not all lower than STING: on Claude Code+Gemini-3.5-Flash, AutoDAN-Turbo is 0.19, higher than STING in that column, and still lower than TRACE.
- The main text writes that TRACE drops from 0.62 to 0.38 on Codex and from 0.54 to 0.31 on Claude Code, and states it remains higher than the baselines, citing STING at 0.12 on Codex+GPT-5.5 as an example.
- The authors attribute this gap to the strategy library retaining strategies that previously bypassed AgentDoG, and to resuming from that subtask upon failure.
Number of Queries
- Figure 6 compares the number of target-agent queries of Codex+GPT-5.5 and Claude Code+Opus-4.8 on the two benchmarks. The extracted text contains only axis ticks, not bar heights, so bar values are not transcribed.
- The authors state that on AdvCUA, Codex+GPT-5.5, TRACE's target queries are about 1.4×–3.7× fewer than existing methods, and that it shortens end-to-end execution time; the paper does not give the time cost. The authors state that the higher ASR does not depend on more frequent or longer interactions.
- Figure 7 is the distribution of query counts for TRACE on successful AdvCUA tasks, with bins ≤5, 6–10, 11–20, 21–40, >40. The authors state that under most settings, more than 40% of successful attacks end within five queries. In the extracted text, the percentages do not align with the bins, so they are not transcribed item by item.
Categories and Examples
- Figure 5 shows ASR by AgentHazard category, with the setting being only Claude Code + Opus-4.8. The authors state that TRACE exceeds 90% in every category. The authors state that existing attacks do relatively well on processes centered on viewing or accessing information, such as Internal Reconnaissance and Data Exfiltration, and decline on processes that depend on prior intermediate states, such as Supply Chain Poisoning and Persistence Establishment, and attribute TRACE's gap to the scheme retaining step dependencies and strategies adjusting to the current execution context. In the figure, the ASR(%) scale on the right is interleaved with the per-category percentages; the per-column numbers for each method are not transcribed.
- Figure 4 is a trajectory example on AdvCUA for Codex (backend GPT-5.5). The figure annotates MD-Attack and STING as failing and TRACE as succeeding. The authors state that the former two elicit safe alternatives or incomplete action sequences, while TRACE elicits executable actions step by step according to the current environment and available tools. The prompts and commands in the figure are not restated.
Other Ablations and Analyses
- The paper does not report component ablations removing decomposition, the strategy library, or resumption.
- λ is fixed at 0.5 in all experiments; no other values are reported.
- θfail, θeff, θdem, θineff appear only as symbols, with no values given.
- The harmfulness score of AgentHazard is mentioned only in Appendix C as a metric of the original protocol and is not reported in the main experiments.
- Defense results are not reported on AgentHazard; category ASR is not reported for Codex or other backbones.
What are some points that can be further explored?
The paper has no dedicated limitations section; Appendix E states that intent-aware, trajectory-level risk assessment is needed rather than isolated input classification.
Limitations and future directions noted by the authors
- The paper has no dedicated Limitations or Future Work section, and the conclusion does not frame any TRACE design as a shortcoming.
- The conclusion states: the safety risk of LLM agents extends from generating harmful content to executing harmful tasks, thus requiring stronger defenses.
- Appendix E states: existing defenses mainly target explicit attack patterns, such as instruction injection or directly written malicious operations; harmful goals embedded in seemingly legitimate execution workflows may still be bypassed. The authors state that prompt-level defenses struggle to distinguish malicious task semantics from benign language patterns, and trajectory-level defenses may still rely on surface cues without reasoning about underlying execution intent.
- Appendix E accordingly states that intent-aware, trajectory-level risk assessment is needed, rather than isolated input classification.
Experimental coverage
- Tested systems are Codex and Claude Code. In Table 1, Codex uses GPT-5.5, Gemini-3.5-Flash, DeepSeek-V4-pro; Claude Code uses Opus-4.8, Gemini-3.5-Flash, DeepSeek-V4-pro.
- Benchmarks are AdvCUA and AgentHazard. Appendix C states AdvCUA has 140 tasks; AgentHazard randomly samples 100 from 2,653. AdvCUA uses hardcoded verification of environment states; AgentHazard's main results follow the benchmark's LLM review protocol. The paper does not specify the review model, nor does it report agreement with humans.
- Comparison baselines are AutoDAN-Turbo, X-Teaming, MD-Attack, MT-AgentRisk, STING. Decomposition, strategy generation, and evaluation use GPT-4o; the attack model is Qwen3.6-35B-A3B.
- Defense evaluation is AgentDoG, and only reported on AdvCUA (Table 2). Category ASR is only reported in Figure 5, with the setting Claude Code + Opus-4.8, AgentHazard.
- The paper does not report number of repetitions, does not report component ablations, and does not give values for θfail, θeff, θdem, θineff. Query comparisons are in Figures 6 and 7; among them, the authors' statements with specific multiples only give the AdvCUA, Codex+GPT-5.5 setting.
Summarize the main content of the paper
TRACE uses decomposition, multi-turn execution strategies, and failure resumption to induce agents to complete harmful workflows; in Table 1, ASR is higher than the listed baselines.
TRACE is a jailbreak framework for LLM agents, aiming to induce end-to-end execution, not just elicit harmful text.
- Problem: Safety alignment rejects direct generation of harmful instructions; even if text jailbreaks elicit instructions, the agent may still refuse to execute; intermediate failures in multi-step dependencies force the entire process to restart.
- Method: More than 20 procedural schemes decompose tasks into subtask sequences preserving dependencies, then select based on average harmfulness and execution difficulty; in experiments, λ = 0.5. Refused subtasks are matched by profile to retrieve or create execution-oriented multi-turn strategies, advancing with intermediate goals, success signals, and fallbacks. On failure, the subtask is located and execution resumes. The strategy library is updated based on successful trajectories and recurring failure patterns, evolving to more than 30 entries. Decomposition, strategy generation, and evaluation use GPT-4o; the attack model is Qwen3.6-35B-A3B.
- Main results: According to Table 1, TRACE's ASR on AdvCUA ranges from 0.62 for Codex+GPT-5.5 to 0.88 for Claude Code+DeepSeek-V4-pro; the highest baseline values in these settings are 0.15 to 0.42. On a random 100 AgentHazard items, TRACE ranges from 0.97 to 1, with Codex+DeepSeek-V4-pro at 1. With AgentDoG added, on AdvCUA, Codex+GPT-5.5 drops from 0.62 to 0.38, and Claude Code+Opus-4.8 from 0.54 to 0.31, still higher than baselines in the same table (Table 2). The authors state that on AdvCUA with Codex+GPT-5.5, target queries are about 1.4×–3.7× fewer than existing methods.
- Authors' conclusion: Agent risk is not limited to generating harmful content but also includes executing harmful tasks, thus requiring stronger defenses. Appendix E further states the need for intent-aware trajectory-level risk assessment. The conclusion's "more than 100% over the strongest baseline" is inconsistent with the AgentHazard rows in Table 1 and the AdvCUA row for Codex+DeepSeek-V4-pro.