Environment Steering: Using Data Flow Control to Improve Agent Utility and Safety
Organizations: Columbia University · University at Buffalo
Abstract
LLM agents can make unsafe tool calls even when instructed to behave safely. Existing defenses constrain agents before execution, modify tool inputs/outputs, or rely on LLM judges; these approaches may depend on model behavior or block unsafe actions without helping the agent recover. We argue that the execution environment should instead enforce safety as the agent runs and steer it toward safe alternatives when violations occur---we call this Environment Steering. We implement this by modeling the agent and harness execution state as database tables, track the record-level data flows, and check these data flows against declarative policies during runtime. When violations are detected, policy- and context-specific feedback steers the agent toward safe trajectories. On AgentDyn, this enables the agent to improve task success rate over no-defense while achieving 0% attack success rate.
Figures & tables
| Benchmark | Selected Domains | Tasks | TSR ? |
| AgentDojo Debenedetti et al. (2024) | Workspace | 560 | ✓ |
| AgentDyn Li et al. (2026b) | Shopping, GitHub, Daily Life | 560 | ✓ |
| AgentLeak Yagoubi et al. (2026) | Single-Agent, Multi-Agent | 2000 | |
| WildClawBench Ding et al. (2026) | Safety | 10 |
AI Agent Security
Artificial intelligence agent security studies attacks and safeguards for tool-using, persistent, and collaborative systems across digital and physical settings.
See all 503 papers