← Lab

StepGuard cuts attack success by 77% with only 2.8% utility loss

StepGuard reduces mean attack success rate by 77.3% while decreasing utility by 2.8 percentage points

arXiv 25 Aug 2026 Defense Simulation evidence

Published as “StepGuard: Learning Step-Level Guardrails with Scalable Supervision and Safety-Utility Balancing”

Why it matters

StepGuard can be deployed to substantially lower attack success rates of LLM agents in typical tool-use environments while preserving most of the agents' task performance.

Summary

StepGuard cuts attack success rates of LLM agents by 77.3% with only a 2.8-point drop in utility, and its safety judgments (83.0/83.3 accuracy/F1 on trajectory level and 84.8/84.1 on step level) match the closed-source GPT-5.4 despite using a 4B open-weight model. The guard is trained on automatically generated, prefix-aligned safe and unsafe trajectories (StepGen) and uses Balance-GRPO to dynamically rebalance safe/unsafe learning based on observed accuracy gaps. Evidence comes from static benchmark results and runtime evaluations on AgentDojo, AgentDyn, and AgentHarm, though utility loss is larger on the highly adversarial AgentHarm setting. The paper does not provide full details on training data scale, so that aspect remains unclear.

What they found 2

  1. Mean attack success rate is reduced by 77.3% with only a 2.8-point utility drop.

    “When used to guard agents on AgentDojo and AgentDyn, StepGuard reduces mean ASR by 77.3% relative to the no-guard setting, while mean utility drops by only 2.8 points.”

  2. StepGuard attains high safety judgment accuracy on both trajectory and step levels.

    “StepGuard achieves 83.0 accuracy and 83.3 F1 on trajectory-level evaluation, and 84.8 accuracy and 84.1 F1 on step-level evaluation.”

Caveats 4

  • StepGuard reduces the malicious score from 22.8 without defense to 3.4, but task completion also decreases from 70.9 to 52.8.
  • StepGen relies on synthetic trajectory generation and LLM-based annotation, so the resulting data may inherit coverage limits, biases, or annotation errors from the teacher model and risk taxonomy.
  • step-level agent safety evaluation is still benchmark-limited: our static and dynamic evaluations cover representative settings, but not fully open-ended tool ecosystems, longer-horizon workflows, multi-agent interactions, or adaptive adversaries.
  • StepGuard is a pre-execution guardrail rather than a formal safety guarantee; false positives and false negatives may still occur, and deployment introduces additional inference cost and requires policies for revising blocked actions.

What’s new here 4

  • Automatically generates matched safe and unsafe trajectories that share the same context but diverge at a risky step (StepGen).
  • Introduces Balance-GRPO, which reweights training based on the observed safe-unsafe accuracy gap to reduce defense bias.
  • Supports both pre-execution tool-action checks and post-execution trajectory auditing within a single 4B guard model.
  • Achieves accuracy comparable to a closed-source GPT-5.4 while remaining open-weight.