What they did
The authors developed StepGuard, a model that audits completed agent trajectories and screens proposed tool actions before execution. Its training pipeline, StepGen, automatically constructs paired safe and unsafe trajectories that share the same context but diverge at the risky action.
They also introduced Balance-GRPO, a reinforcement-learning method that adjusts training emphasis between safe and unsafe examples according to observed accuracy. This is intended to limit both under-defense—allowing dangerous actions—and over-defense—blocking legitimate ones.
Key findings
- StepGuard achieved the highest reported average accuracy among the open-weight guard models evaluated and performed comparably to GPT-5.4.
- Across AgentDojo and AgentDyn, adding StepGuard reduced mean attack success rate by 77.3% relative to using no guard.
- Mean task utility declined by 2.8 percentage points, indicating that most benign agent functionality was retained.
- The model supported both retrospective trajectory auditing and pre-execution checks of individual tool calls.
Why it matters
Agent safety mechanisms that inspect only completed trajectories cannot prevent damage from a tool call that has already run. StepGuard shifts monitoring to the action level, offering a way to block file changes, data leakage, or unauthorized operations before execution while preserving most task utility.
Caveats
The reported evidence comes from AgentDojo and AgentDyn, so performance may not transfer to other tools, environments, attack strategies, or longer-running agents. The abstract does not report absolute attack-success rates, per-benchmark results, runtime overhead, false-positive rates, or robustness against attackers that adapt specifically to the guard.