DRIFT: Protecting LLM agent safety with dynamic rule defense and injection isolationDRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents
AI summary
The DRIFT framework defends LLM agents against prompt injection attacks through dynamic safety policies and injection isolation. Its Secure Planner constructs a minimal function trajectory and a JSON-schema-style parameter manifest based on the user query; the Dynamic Validator monitors deviations from the original plan and checks permissions and user intent; and the Injection Isolator detects and blocks instructions in the memory stream that conflict with the query. On the AgentDojo, ASB, and AgentDyn benchmarks, DRIFT balances safety and usability across multiple models.