TraceSafe: A Systematic Assessment of LLM Guardrails on Multi-Step Tool-Calling Trajectories
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
As large language models (LLMs) evolve from static chatbots into autonomous agents, the primary vulnerability surface shifts from final outputs to intermediate execution traces. While safety guardrails are well-benchmarked for natural language responses, their efficacy remains largely unexplored within multi-step tool-use trajectories. To address this gap, we introduce **TraceSafe-Bench**, the first comprehensive benchmark specifically designed to assess mid-trajectory safety. It encompasses 12 risk categories, ranging from security threats (e.g., prompt injection, privacy leaks) to operational failures (e.g., hallucinations, interface inconsistencies), featuring over 1,000 unique execution instances. Our evaluation of 13 LLM-as-a-guard models and 7 specialized guardrails yields three critical findings: 1) *Structural Bottleneck*: Guardrail efficacy is driven more by structural data competence (e.g., JSON parsing) than semantic safety alignment. Performance correlates strongly with structured-to-text benchmarks (ρ=0.79, p<0.01) while we detect no association with standard jailbreak robustness. 2) *Scale Is Not the Deciding Factor*: Trajectory detection accuracy does not scale monotonically with model size, and general-purpose LLMs consistently outperform specialized safety guardrails. 3) *Bounded Temporal Stability*: Detection accuracy improves with trajectory length within native context bounds as models process dynamic execution behavior, but degrades in extreme long-context regimes due to over-refusal.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 28 of its 49 references that are in the map. First posted on arXiv 8 Apr 2026.
Builds on
28 of 49 references.
Closest ancestors · 9
Same direction, newest first
- 2025MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers19 Aug
- 2025MCPSecBench: A Systematic Security Benchmark and Playground for Testing Model Context Protocols17 Aug
- 2025MCP-Guard: A Multi-Stage Defense-in-Depth Framework for Securing Model Context Protocol in Agentic AI14 Aug
- 2025AgentAuditor: Human-Level Safety and Security Evaluation for LLM Agents31 May
- 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilities21 Mar
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agents18 Jan
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 19
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,267
- 2022PAL: Program-aided Language Modelscited by 652
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 496
- 2024A StrongREJECT for Empty Jailbreakscited by 385
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
7 more
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
- 2023RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Modelscited by 283
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 244
- 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
- 2024ToolACE: Winning the Points of LLM Function Callingcited by 216
- 2025Generalizing Verifiable Instruction Followingcited by 194
- 2026DeepContext: Stateful Real-Time Detection of Multi-Turn Adversarial Intent Drift in LLMscited by 8
Built on by
Citing papers per year: 2026: 16.
16 papers.
Sort:
By area:
- 2026Benign in Isolation, Harmful in Composition: Security Risks in Agent Skill Ecosystemscited by 13
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agentscited by 4
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectoriescited by 2
- 2026When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agentscited by 1
- 2026PaperJury: Due-Process Review for Bounded LaTeX Revisioncited by 1
- 2026Silence Is Endorsement: Verification-Status Laundering in LLM Agent Pipelinescited by 1
- 2026Stateful Guardrails for Multi-Turn LLM Systems: A Conversational Risk Accumulation Frameworkcited by 0
- 2026Uncertainty Quantification for LLM Agents: A Taxonomy, an Evaluation Protocol, and an Empirical Studycited by 0
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agentscited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
- 2026Agent Safety From Within: Detecting Harmful Trajectories from LLM Internal Statescited by 0
- 2026Trust Is Not a Score: Runtime Assurance Contracts for High-Risk AI Agentscited by 0
4 more
- 2026Positive-Unlabeled Learning for Agent Safety False Alarm Auditingcited by 0
- 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injectioncited by 0
- 2026Towards a Unified Misuse Monitoring Benchmarkcited by 0
- 2026AuthGateBench: Benchmarking LLMs as Authorization Gatecited by 0
- 2026AuthGateBench: Benchmarking LLMs as Authorization Gate12 Oct 2026
- 2026Towards a Unified Misuse Monitoring Benchmark5 Oct 2026
- 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection4 Oct 2026
- 2026Positive-Unlabeled Learning for Agent Safety False Alarm Auditing2 Oct 2026
- 2026Trust Is Not a Score: Runtime Assurance Contracts for High-Risk AI Agents30 Sep 2026
- 2026Agent Safety From Within: Detecting Harmful Trajectories from LLM Internal States27 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agents9 Sep 2026
- 2026Uncertainty Quantification for LLM Agents: A Taxonomy, an Evaluation Protocol, and an Empirical Study7 Sep 2026
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories7 Sep 2026
- 2026Silence Is Endorsement: Verification-Status Laundering in LLM Agent Pipelines25 Jul 2026
- 2026PaperJury: Due-Process Review for Bounded LaTeX Revision15 Jun 2026
4 more
- 2026Benign in Isolation, Harmful in Composition: Security Risks in Agent Skill Ecosystems13 Jun 2026
- 2026Stateful Guardrails for Multi-Turn LLM Systems: A Conversational Risk Accumulation Framework3 Jun 2026
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agents31 May 2026
- 2026When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agents7 May 2026
- 2026Benign in Isolation, Harmful in Composition: Security Risks in Agent Skill Ecosystemscited by 13
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agentscited by 4
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectoriescited by 2
- 2026When Routine Chats Turn Toxic: Unintended Long-Term State Poisoning in Personalized Agentscited by 1
- 2026Silence Is Endorsement: Verification-Status Laundering in LLM Agent Pipelinescited by 1
- 2026Uncertainty Quantification for LLM Agents: A Taxonomy, an Evaluation Protocol, and an Empirical Studycited by 0
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agentscited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
- 2026Agent Safety From Within: Detecting Harmful Trajectories from LLM Internal Statescited by 0
- 2026Trust Is Not a Score: Runtime Assurance Contracts for High-Risk AI Agentscited by 0
- 2026Positive-Unlabeled Learning for Agent Safety False Alarm Auditingcited by 0
- 2026Towards a Unified Misuse Monitoring Benchmarkcited by 0
12 most cited of 13 All 13 (JSON)
- 2026AuthGateBench: Benchmarking LLMs as Authorization Gate12 Oct 2026
- 2026Towards a Unified Misuse Monitoring Benchmark5 Oct 2026
- 2026Positive-Unlabeled Learning for Agent Safety False Alarm Auditing2 Oct 2026
- 2026Trust Is Not a Score: Runtime Assurance Contracts for High-Risk AI Agents30 Sep 2026
- 2026Agent Safety From Within: Detecting Harmful Trajectories from LLM Internal States27 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agents9 Sep 2026
- 2026Uncertainty Quantification for LLM Agents: A Taxonomy, an Evaluation Protocol, and an Empirical Study7 Sep 2026
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories7 Sep 2026
- 2026Silence Is Endorsement: Verification-Status Laundering in LLM Agent Pipelines25 Jul 2026
- 2026Benign in Isolation, Harmful in Composition: Security Risks in Agent Skill Ecosystems13 Jun 2026
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agents31 May 2026
12 newest of 13 All 13 (JSON)
- 2026PaperJury: Due-Process Review for Bounded LaTeX Revisioncited by 1
- 2026PaperJury: Due-Process Review for Bounded LaTeX Revision15 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2025Protect: Towards Robust Guardrailing Stack for Trustworthy Enterprise LLM Systems
- 2025OpenGuardrails: A Configurable, Unified, and Scalable Guardrails Platform for Large Language Models
- 2024Current state of LLM Risks and AI Guardrails
- 2026Safety Beyond the Interface: Detecting Harm via Latent States in Large Language Models
- 2026SafeClawBench: Separating Semantic, Audit-Evidence, and Sandbox Harm in Tool-Using LLM Agents
- 2026AgentBoundary: Counterfactual Evaluation of Safety in Tool-Using LLM Agents
- 2025LlamaFirewall: An open source guardrail system for building secure AI agents
- 2026LASA: Language-Agnostic Semantic Alignment at the Semantic Bottleneck for LLM Safety