TL;DR
TRACE is a novel framework designed to evaluate the robustness of LLM-based agents by decomposing complex tasks into multi-step subtasks and dynamically disguising them within benign contexts. By leveraging a Q-learning-inspired evolution mechanism, TRACE demonstrates that current safety alignments fail to prevent autonomous agents from executing complete, multi-step malicious workflows.
What Problem Does This Paper Address?
While traditional Large Language Model (LLM) safety research focuses heavily on preventing the generation of harmful text in one-shot interactions, the rise of autonomous LLM agents introduces a more complex threat surface. LLM agents do not just output text; they plan, call external tools, write code, and interact with operating systems over long horizons.
Standard safety alignment mechanisms can block direct, overtly harmful prompts. However, existing jailbreaking techniques often fail against agents because the agent's internal planning or execution monitoring can catch and reject malicious intent midway through a multi-step workflow. This paper introduces TRACE to systematically explore whether LLM agents can be consistently manipulated into executing entire end-to-end malicious workflows under realistic, black-box constraints.
Methods
The TRACE framework operates in three distinct stages to systematically bypass safety guardrails while preserving the original operational goal:
- Task Decomposition: The framework takes a high-level harmful objective and breaks it down into multiple candidate subtask sequences. A semantic consistency judge ensures the overall objective remains intact, while a selection rule picks the sequence that minimizes overtly harmful language across individual subtasks.
- Task-Aware Subtask Induction: Harmless subtasks are executed directly. For unsafe or failed subtasks, TRACE automatically wraps them into a "task-aware scenario" composed of four structural components:
- Role: Assigns a benign, task-relevant persona (e.g., a forensic investigator).
- Environment: Defines the operational setting and constraints.
- Directive: Outlines the procedural steps and tool-use rules.
- Heuristic: Provides fine-grained guidance for handling practical execution details.
- Feedback-Driven Self-Evolution: If an agent rejects a scenario or fails to make progress, TRACE iteratively refines the prompt components using a set of transformation actions (such as generalizing roles or tightening environment scopes). This search is guided online by a Q-learning-inspired mechanism that scores the agent's execution trajectory based on progress made versus refusal indicators. Successful scenarios are stored in an attack-side memory module for future reuse.
Datasets
The authors evaluated TRACE using two prominent benchmarks designed for agentic security analysis:
- AgentHarm: Consists of 110 malicious tasks (expanded to 440 instances via prompt augmentation) across 11 harm categories, evaluated inside a controlled tool-use environment.
- AdvCUA: Contains 140 long-horizon computer-use tasks (including direct malicious tasks, TTP-based tasks, and end-to-end kill chains) that require direct interaction with an operating system sandbox.
Key Insights and Ideas
- Jailbreaking $\neq$ Task Completion: Simply bypassing an LLM's initial safety filter does not guarantee successful execution. Traditional jailbreaks often cause the agent to deviate from the intended malicious goal or fail during intermediate tool-use steps.
- The Power of Semantic Dilution: By breaking a complex exploit down into smaller, context-dependent pieces, the overt harmfulness of any single step is drastically reduced, making it significantly harder for standard safety guardrails to detect.
- Adaptive Exploitation via Reinforcement Learning: Treating prompt optimization as a sequential decision problem allows the framework to dynamically adapt to black-box models based purely on execution feedback, mimicking how a human tester adjusts strategies when encountering errors.
Key Results
TRACE was tested against state-of-the-art models acting as agents, including GPT-5.2, Gemini-3-Flash, and DeepSeek-V4-pro.
- Substantial Performance Gains: On the AgentHarm benchmark, TRACE achieved an Average Success Score (ASS) of up to 0.73 and a Bypass Rate (BR) of up to 98%, significantly outperforming existing baselines like Red-Agent-Reflect and AutoDAN-Turbo.
- Perfect Bypass Rates on OS Tasks: On the more challenging AdvCUA benchmark, TRACE achieved a 100% Bypass Rate across all three target agent architectures, demonstrating high resilience across long-horizon workflows.
- Defensive Resilience: The authors tested TRACE against existing defensive guardrails (such as Perplexity filtering, LlamaFirewall, and AgentDoG). While these defenses lowered the framework's success rates, TRACE still maintained substantial task completion scores, highlighting a critical gap in current trajectory-level defenses.
Limitations and Future Work
The authors note that while TRACE is highly effective, its multi-step optimization process requires significant query overhead due to the iterative feedback loop. Additionally, the framework relies heavily on a strong frontier model (like GPT-4o) to perform the initial task decomposition and semantic consistency checks.
Future research directions highlighted by the study emphasize the urgent need for advanced, trajectory-aware, agent-level defenses that can analyze multi-step tool interactions and state changes over time, rather than relying solely on static input filtering.
Summary updated