StepGuard: Learning Step-Level Guardrails with Scalable Supervision and Safety-Utility Balancing
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
LLM-based agents can interact with external environments through tool invocation, but this capability also introduces security risks such as file modification, information leakage, and unauthorized actions. Existing guardrails often evaluate completed trajectories, leaving pre-execution monitoring of step-level actions underexplored. We propose StepGuard, a step-level guard model that can audit completed agent trajectories and check tool actions before they are executed. To train StepGuard, we introduce StepGen, an automatic data engine that generates safe and unsafe trajectories with the same context but different actions at the risky step. To further reduce over-defense and under-defense, we propose Balance-GRPO, which dynamically balances learning between safe and unsafe actions based on their observed accuracy. Experiments show that StepGuard achieves the highest average accuracy among open-weight guard models, with performance comparable to GPT-5.4. When used to guard agents on AgentDojo and AgentDyn, StepGuard reduces mean attack success rate by 77.3% relative to the no-guard setting, while mean utility drops by only 2.8 percentage points.
Key facts. Cited by 6 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 32 of its 51 references that are in the map. First posted on arXiv 25 Aug 2026.
Builds on
32 of 51 references.
Closest ancestors · 14
Same direction, newest first
- 2026AgentDoG 1.5: A Lightweight and Scalable Alignment Framework for AI Agent Safety and Security28 May
- 2026SafeHarbor: Defining Precise Decision Boundaries via Hierarchical Memory-Augmented Guardrail for LLM Agent Safety7 May
- 2026Taxonomy and Consistency Analysis of Safety Benchmarks for AI Agents11 Apr
- 2026ATBench: A Diverse and Realistic Agent Trajectory Benchmark for Safety Evaluation and Diagnosis2 Apr
- 2026AgentDoG: A Diagnostic Guardrail Framework for AI Agent Safety and Security26 Jan
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback15 Jan
- 2025A Safety and Security Framework for Real-World Agentic Systems27 Nov
- 2025Building a Foundational Guardrail for General Agentic Systems via Synthetic Data10 Oct
- 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attacks3 Jul
- 2025AgentAuditor: Human-Level Safety and Security Evaluation for LLM Agents31 May
- 2025AgentAlign: Navigating Safety Alignment in the Shift from Informative to Agentic Large Language Models29 May
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
2 more
Other references · 18
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025Qwen3 Technical Reportcited by 8,820
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 244
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 205
- 2025Qwen3Guard Technical Reportcited by 155
- 2026AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?cited by 59
- 2024Backtracking Improves Generation Safetycited by 32
6 more
- 2025Geometrically-Constrained Agent for Spatial Reasoningcited by 26
- 2025Are Your Agents Upward Deceivers?cited by 16
- 2025ProGuard: Towards Proactive Multimodal Safeguardcited by 4
- 2026PaSBench-Video: A Streaming Video Benchmark for Proactive Safety Warningcited by 3
- 2026SciHazard: A Benchmark for Measuring Scientific Safety Risks with Decomposed Harm Scoringcited by 1
- 2026JANUS: Foreseeing Latent Risk for Long-Horizon Agent Safetycited by 1
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectoriescited by 2
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agentscited by 0
- 2026SEAD: A State-Based Perspective on Attack and Defense in Tool-Using Agentscited by 0
- 2026HASTE: Evolving Agent Harnesses Against Emerging Attacks Using Sparse Evidencecited by 0
- 2026Positive-Unlabeled Learning for Agent Safety False Alarm Auditingcited by 0
- 2026Dream2Discern: Learning from Hard Latent Variants for Runtime Failure Prediction in Multi-Agent Systemscited by 0
- 2026Dream2Discern: Learning from Hard Latent Variants for Runtime Failure Prediction in Multi-Agent Systems12 Oct 2026
- 2026Positive-Unlabeled Learning for Agent Safety False Alarm Auditing2 Oct 2026
- 2026HASTE: Evolving Agent Harnesses Against Emerging Attacks Using Sparse Evidence2 Oct 2026
- 2026SEAD: A State-Based Perspective on Attack and Defense in Tool-Using Agents28 Sep 2026
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agents9 Sep 2026
- 2026AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories7 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2025Learning Efficient Guardrails for Compliance
- 2026DreamGuard: Efficient Runtime Guardrail for LLM Agents via Risk-Aware World Model
- 2026From Risk Classification to Action Plan Remediation: A Guardrail Feedback Driven Framework for LLM Agents
- 2026HazardAuditor: From Executable Threats to Safer Computer-Use Agents
- 2026BraveGuard: From Open-World Threats to Safer Computer-Use Agents
- 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning
- 2026SingGuard-NSFA: Extensible Guardrails for Agentic AI via Generative Reasoning and Real-Time Classification
- 2026AgentGuard: Learning Execution Guardrails from Anomalous Coding-Agent Trajectories