RATION: Toward Quantitative Risk-Based Access Control for AI AgentsRATION: Towards Quantitative Risk-Based Access Control for AI Agents
RATION constrains agent tool calls with task-level quantitative risk policies; on DTap, GPT-5.4's ASR drops from 38.7% to 16.5%.
Tool-using agents execute user tasks. User requests and agent configuration (system messages, tool descriptions) are trusted, while external observations such as web pages, files, and tool outputs may contain adversarial content. RATION constrains tool calls with task-level risk policies to mitigate indirect prompt injection.
- When an agent calls tools consecutively, per-action access control cannot see the risk accumulated during execution, and tightening permissions would harm utility on complex tasks. Indirect prompt injection can use external content to induce unintended actions.
- In RATION, the Provisioner extracts explicit constraints from the request and uses historical executions of similar tasks to calibrate the tool whitelist and behavior thresholds. At runtime, the Risk Monitor performs deterministic checks before tool calls: hard violations are blocked, and cumulative behavior exceeding a threshold is held and requires review, after which the threshold is multiplied by 1.5.
- The main evaluation covers four agent safety benchmarks. On DTap, GPT-5.4's ASR drops from 38.7% to 16.5%, and UA rises from 65.7% to 69.1%; the other three use GPT-4.1, with ASR at most 1.4%. Adaptive attacks against RATION raise ASR.
- The authors note that the risk policy covers only generic quantities measurable at the tool-call site, that free-form commands offer less structure to constrain, and that implicit thresholds depend on representative historical executions. More realistic synthetic request generation is left for future work. The experiments include four safety benchmarks, 13 system-level defenses, and adaptive attacks on DTap Telecom.
- Evaluated models
- GPT-5.4 (gpt-5.4)GPT-4.1 (gpt-4.1)Claude Sonnet 4.5 (claude-sonnet-4-5-20250929)Gemini 3.1 Pro (gemini-3.1-pro-preview)DeepSeek V4 Pro (DeepSeek-V4-Pro-0813)Kimi K3 (Kimi-K3)Llama-3-8B-InstructLlama-3.3-70B-Instruct
- Benchmarks
- DTapAgentDynAgentDojoASBAgent Meltdowns
- Metrics
- ASRUtility Under AttackBenign UtilityUnsafe executionTask success
The researchers propose a quantitative risk-based access control method for AI agents, concretely implemented as the safety framework RATION, which replaces restrictions on agent actions with quantifiable risk constraints. The framework first combines explicit constraints in the user request with implicit risks calibrated from historical executions of similar tasks to construct a task-specific policy; during execution it continuously tracks cumulative risk and applies different enforcement policies by risk type. Experiments on four safety benchmarks show that RATION provides strong safety across multiple models and environments while maintaining high task utility.
Paper analysis
What problem does this paper attempt to solve?
Per-action permission control cannot contain risk accumulated during execution; RATION constrains tool calls with a quantitative risk policy.
Measurable risk accumulated during agent execution cannot be controlled only by whether each individual action is permitted.
- Scenario: The authors argue that agents can exercise broad permissions designed for human users at machine speed, are not deterred by real-world consequences, and may take actions within the permitted range that typical humans rarely take. Once tool observations enter subsequent decisions, indirect prompt injection can embed instructions in external content.
- Existing shortcomings: The authors argue that existing system-level defenses mostly restrict a single information flow or action; when every call is compliant, cumulative effects such as repeated restarts can still cause harm, and safety and utility are hard to balance on complex tasks.
- Assumption: Tasks with similar goals tend to use similar tools and exhibit similar execution patterns, so historical executions can serve as behavioral references for new tasks.
- Approach: Proposes RATION, which combines explicit constraints in the user request with implicit risks calibrated from historical executions into a task policy, and enforces it at runtime. The authors call this the first implementation of quantitative risk-based access control for agents (Appendix H.1).
- Threat model:
- Victim system: A tool-using agent that interacts with external systems through tools; the control point is the tool call.
- Trust boundary: The user request and configuration (system messages, tool descriptions) are trusted; web pages, files, and tool outputs may contain adversarial content.
- Attack goal: Mitigate unintended actions induced by indirect prompt injection; rules can constrain a single call or a cumulative quantity during execution.
- Knowledge setting: Follows the IPI threat model of Greshake et al. (2023). The paper places tool description tampering outside this model (Section 4.6).
What related research exists?
Related work covers prompt injection, two types of defenses, and risk-based access control; the authors position this paper as a quantitative implementation for agents.
The authors position RATION between prompt injection defenses and risk access control: it does not modify the model, nor does it only adjudicate single actions.
Prompt injection
- Indirect injection: Greshake et al. (2023) describe malicious instructions in external content. Zhan et al.'s (2024) InjecAgent discusses unauthorized tool actions and data exfiltration after an agent's multi-step reasoning is manipulated.
- List ranking: the authors relay that OWASP GenAI (2026) ranks prompt injection first among LLM application security issues.
Model-level defenses
- Structured fine-tuning: StruQ (Chen et al., 2025a) uses structured inputs and instruction fine-tuning so that the model treats external content as data.
- Preference optimization: SecAlign and Meta SecAlign (Chen et al., 2025b;c) train models to prioritize following trusted instructions rather than competing instructions in external content.
- Distillation: SecOPD (Peng et al., 2026) uses on-policy distillation to provide token-level feedback.
System-level defenses
- Prompts and provenance: Sandwich, Instructional, and Spotlighting (Hines et al., 2024) repeat or mark trusted requests, or label untrusted content as data.
- Detection and filtering: DataSentinel (Liu et al., 2025), PIGuard (Li et al., 2025b), and Prompt Guard 2 (Chennabasappa et al., 2025) detect or filter suspected injections before content enters the agent.
- Consistency and permissions: MELON, AttriGuard, and Task Shield (Jia et al., 2025) check whether actions still serve the user request; Progent, DRIFT, CaMeL, Twin Agent, and others constrain tools, parameters, workflows, or information flows. The authors argue such external controls often face a safety-utility trade-off (Section 2, Appendix A).
Risk access control and baselines
- Early work: the JASON report (2004) argued for writing acceptable risk into access control. Cheng et al. (2007), Molloy et al. (2008), and Wang and Jin (2011) mostly estimate risk for a single access; the authors state this work largely remains at the conceptual or design level.
- Baselines and benchmarks: experiments compare 13 system-level defenses and compare StruQ, SecAlign, and Meta SecAlign on AgentDojo. Benchmarks are DTap, AgentDyn, AgentDojo, and ASB, with Agent Meltdowns also evaluated.
- Positioning of this paper: the authors state RATION applies quantitative risk access control to agents: beyond whether a single call is allowed, it also tracks measurable quantities accumulated during execution and calibrates quantitative bounds using historical executions of similar tasks.
How does the paper address this problem?
Explicit constraints and implicit thresholds calibrated from historical executions form the task policy, which a deterministic monitor enforces before tool calls.
RATION enforces task-level risk policies at the tool-call boundary: some come from explicit constraints in the user request, and some from implicit risk calibrated from historical executions of similar tasks.
Problem setting and policy objects
- Unit of execution: from receiving the user request to task completion or termination. Policies are rules on tool calls that can constrain a single call or cumulative quantities across calls.
- Two sources: Explicit constraints come from the user request, such as recipients or spending limits. Implicit risk comes from historical executions of similar tasks, used as a reference for expected tool usage and execution scale. The authors treat deviations from these patterns as implicit risk that may require intervention.
- QRBAC: quantifies risk for a single access, tracks cumulative quantities, sets thresholds for the task, and then compares the two. Each risk quantity is tracked separately and not combined into a single score (Appendix H.1).
Policy construction
- Explicit constraints: value constraints restrict parameter values; per-call limits restrict quantities within one call; cumulative limits restrict the number of calls or cumulative quantities across multiple calls (Table 1). The Provisioner grounds constraints according to the declared tool interface and does not add restrictions for values only discovered during execution (Appendix B).
- Implicit policies: each task category contains a tool whitelist and three behavioral thresholds: total tool calls, write/execute calls, and token usage. Write/execute follows DRIFT: modifying data or triggering interactions with third parties; labeled by an LLM, with Write and Execute counted together.
- Thresholds: by default, the nearest-rank 95th percentile of historical benign executions, so that the threshold corresponds to an observed value. When calibration executions number fewer than 20, the observed maximum is used (Appendix B). Unmatched categories fall back to: all declared tools allowed, and behavioral thresholds set to the maximum of the corresponding thresholds across categories.
- Assembly: two LLM calls before execution, first selecting the category and implicit policy, then extracting explicit constraints. In the main evaluation this model is the same as the executing agent, and auxiliary calls use the provider's default configuration. Invalid outputs are retried once; if category selection still fails, only the fallback policy is used and no explicit constraints are extracted.
Runtime monitoring and execution
- Checkpoints: a deterministic Risk Monitor intercepts before calls reach the environment. Cumulative rules judge whether the proposed call together with the current cumulative quantities would exceed limits. Counts are updated only after allowed calls execute; blocked or held calls do not count toward tool call volume.
- Hard violations: when explicit constraints or the tool whitelist are violated, the call is blocked before execution and the violated rule is communicated to the agent.
- Soft interventions: when an implicit behavioral threshold has been or would be exceeded, the call is held and the agent is prompted to reconsider. After each intervention the corresponding threshold becomes 1.5 times its prior value; the authors' stated reason is to avoid repeatedly interrupting at the same activity level. The next proposal still goes through the same check.
- Tokens: recorded according to usage reported by the executing agent; tokens from subsequent rounds induced by interventions still count toward cumulative usage.
Design scope and success criteria
- Scope: the authors describe this as a proof of concept for QRBAC, with risk quantities chosen to be directly measurable at the tool-call boundary and usable across domains. An interactive deployment could hand violating calls to the user for confirmation; this paper's evaluation uses fully autonomous execution (Section 3.4, Appendix H.1).
- Criteria: ASR is the proportion of attack executions in which the attacker's goal is achieved; UA and BU are the proportions of tasks completing the user request with and without attacks, respectively, and the two are not complementary. Appendix I gives the prompts for classification, constraint extraction, and execution feedback.
What experiments did the paper conduct?
On four benchmarks, ASR decreases while attacked utility is maintained or rises; adaptive attacks raise ASR on Telecom.
On four benchmarks, RATION lowers ASR, and attacked utility rises relative to no defense; adaptive attacks optimized against RATION raise ASR.
Experimental setup
- Models tested: main results are GPT-5.4 on DTap and GPT-4.1 on AgentDyn, AgentDojo, and ASB (temperature 0). Cross-model results additionally cover Claude Sonnet 4.5, Gemini 3.1 Pro, DeepSeek V4 Pro, and Kimi K3. Model-level comparisons use Llama-3-8B-Instruct and Llama-3.3-70B-Instruct.
- Benchmarks: DTap uses the indirect setting, with 14 domains and over 50 interactive environments, and attacks generated by an autonomous red-team agent. AgentDyn and AgentDojo use Important Instructions; AgentDojo is package 0.1.35, version 1.2.2. ASB uses the observational prompt injection, Context Ignoring template.
- Baselines: 13 system-level defenses: Sandwich, Instructional, Spotlighting, PI Detector, Prompt Guard 2, DataSentinel, MELON, AttriGuard, CaMeL, Twin Agent, Tool Filter, Progent, DRIFT. Public implementations are used where available; otherwise they are reimplemented according to the reported configuration.
- Metrics: ASR is the proportion of attack executions in which the attacker's goal is achieved; UA and BU are the proportions of tasks completing the user request with and without attacks, and the two are not complementary. Main results report 95% confidence intervals, by normal approximation over evaluation instances (Appendix C).
- Policy data: implicit policies come from a no-defense agent executing each benchmark's user requests; five-fold cross-fitting, where the held-out fold rebuilds categories and thresholds using only the other four folds. Behavioral thresholds default to the nearest-rank 95th percentile.
- Other models: in the main evaluation the Provisioner is the same as the executing agent. Behavioral labeling for Agent Meltdowns uses GPT-5.4-mini.
Main results
Units are %, per Table 2. The DTap agent is GPT-5.4; the other three are GPT-4.1.
Swipe horizontally to read the table
Benchmark No-defense ASR RATION ASR No-defense UA RATION UA RATION BU DTap 38.7±2.0 16.5±1.4 65.7±2.0 69.1±1.9 80.4±2.1 AgentDyn 53.7±3.7 1.4±1.0 55.1±4.1 57.3±4.1 63.3±12.1 AgentDojo 62.5±3.2 0.0±0.1 58.2±3.6 76.9±3.4 83.6±7.8 ASB 46.8±4.9 0.0±0.0 47.5±4.9 59.0±4.8 80.0±3.9 - Authors' interpretation: the authors state that no evaluated baseline achieves both lower ASR and higher attacked utility (Figure 3); the point estimates in Table 2 are consistent with this claim.
- Cost of lower ASR: on DTap, Tool Filter's ASR is 11.2±1.4, lower than RATION in the table, but its UA is 27.3±1.8, lower than both no defense and RATION in the table (Table 2).
- Benign utility: no-defense BU is 80.7±2.0, 68.3±11.7, 86.0±6.8, 77.8±4.1. The authors state benign utility is comparable to no defense; AgentDyn's no-defense BU is higher than RATION in the table.
Components, cross-model, and non-injection scenarios
- Ablation (Table 3): on DTap Telecom, action-level explicit constraints alone lower ASR from 42.3% to 17.2%, adding cumulative explicit limits gives 14.7%, and adding the implicit whitelist gives 6.4%. On AgentDyn, with all four enabled, ASR is 1.4%, UA 57.3%, BU 63.3%.
- Cross-model: the authors state improvements in safety while maintaining utility across five LLMs and four agent frameworks (Figure 4). The domain tables have exceptions: Claude Sonnet 4.5's Workflow ASR goes from 32.7% to 33.6%, and macOS from 0.0% to 1.9% (Table 23). GPT-5.4's Code attacked utility goes from 97.5% to 85.4%, and Windows from 20.6% to 15.9% (Table 24).
- Agent Meltdowns (Table 4): GPT-5.4 and Magentic-One. Unsafe executions in the 404 scenario go from 83.3% to 0.0%, and in the 429 scenario from 11.1% to 0.0%; error-free task success rates are both 100.0%. The strongest baseline the authors cite lowers 404 unsafe executions from 83.3% to 25.0%. Twin Agent has 22.2% unsafe executions on 429, with a task success rate of 94.4%.
Adaptive attacks
- Setup: DTap Telecom. Manual, PAIR, and search-based attacks are optimized against RATION, and the payloads are then replayed against the baselines; iterative attacks use GPT-5.4, with at most 200 agent executions per task (Appendix G). The authors state baseline results are not individually optimized against each defense and may underestimate their vulnerability.
- Results (Table 7): RATION's ASR is 6.4% for Static, 0.6% for Manual, 12.0% for PAIR, and 15.7% for search-based. The authors state adaptive attacks generally raise ASR for RATION and the baselines; Manual is lower than Static, which the authors suggest may be because DTap's published attacks were already iteratively optimized against agentic agents.
- Failure modes: the authors state successful adaptive attacks mainly exploit tool descriptions, a surface outside their threat model. After adding Integrity (restoring trusted tool descriptions before execution) and re-optimizing, PAIR and search-based ASR are both 1.2%. The authors state utility changes little; the paper does not give utility numbers for this setting.
Comparison with model-level defenses
- 8B (Table 22): on AgentDojo, Important Instructions, Llama-3-8B-Instruct with RATION has ASR 0.2±0.3%, UA 12.1±2.1%, BU 13.4±6.8%. StruQ and SecAlign have ASR 0.0%, with UA 5.4±1.4% and 4.7±1.4%.
- 70B: no-defense ASR is 25.3±2.8%. RATION is 3.4±1.1%, UA 51.7±3.2%; Meta SecAlign is 1.9±0.9%, UA 82.2±2.4%. The authors attribute the utility gap to the no-defense base model more often emitting unparseable function calls.
- Stacking: Meta SecAlign + RATION has ASR 0.5±0.5% on Important Instructions and 0.3±0.4% on Tool Knowledge. The authors state RATION does not require training the base model and can be stacked on model-level defenses; the paper does not report training overhead numbers.
Other ablations and analyses
- Policy granularity (Table 5a): on DTap Telecom, task-category ASR is 6.4% vs. domain-level 7.5%; AgentDyn is 1.4% vs. 2.1%.
- Quantiles (Table 5b): on DTap Telecom, ASR at the 80/95/max quantiles is 6.8%, 6.4%, 6.4%; AgentDyn is 1.1%, 1.4%, 1.0%. The authors state ASR varies by at most 0.9 percentage points across quantiles and Provisioner models.
- Overhead (Table 6): on DTap Telecom, RATION's total tokens are 2.17M, with efficiency 33.5, the highest in that table; efficiency is defined as (UA−ASR)/Tokens. In Table 27, Tool Filter has higher efficiency on AgentDojo, but its UA is 23.8% versus RATION's 76.9%.
- Synthetic requests (Table 26): relative to five-fold history, the authors state ASR changes by less than 1 percentage point on the four benchmarks. ASB's UA goes from 59.00% to 43.00%, and BU from 80.00% to 48.25%.
- Behavioral reference (Figure 5): the authors state that as executions lengthen, both RATION and DRIFT keep ASR low, and RATION has higher utility; bin upper bounds are 2, 7, 12, 17, and the main text does not give values for each bin. Figure 5(b) labels no-attack/attack values as 7 and 9 tool calls, 3 and 4 write/execute, and 28k and 35k tokens.
- Stability (Table 28): across five full reruns, RATION's ASR standard deviation is at most 0.5 percentage points; the DTap row there is Telecom, not the all-benchmark average in Table 2.
What are some points that can be further explored?
The authors note that the policy covers only generic measurables at the tool-call site and relies on representative historical executions.
The authors place the limitations in policy expressiveness and dependence on historical executions, and leave more realistic request generation for future work.
Limitations and future directions noted by the authors
- Expressiveness scope: The policy implements generic risk control measurable at the tool-call interface, not all safety-relevant properties during execution; effectiveness depends on the risks included in the policy and the granularity of the tool interface (Appendix H.2).
- Interface granularity: General tools that accept free-form commands offer less structure for the policy to enforce (Appendix H.2).
- Risk quantities: Currently only a set of generic behavior quantities and explicit constraints are considered; specific applications may also need domain risk quantities, non-additive constraints, or multi-tool relations. Identifying and validating these risks must still be specified per application (Appendix H.2).
- Historical executions: Constructing implicit risk policies requires historical executions that can provide representative references for each task category (Appendix H.2).
- Synthetic data: The authors leave developing more realistic user request generation methods for estimating quantitative risk as future work (Appendix E.4).
- Future directions: The authors hope to further explore quantitative risk measures and risk-based control mechanisms (Section 5).
Experimental coverage
- Main evaluation: DTap indirect attacks (14 domains, more than 50 interaction environments), AgentDyn, AgentDojo (package 0.1.35, version 1.2.2), ASB; the main result models are GPT-5.4 on DTap and GPT-4.1 on the other three (Section 4.1).
- Comparisons: 13 system-level baselines. Model-level comparisons on AgentDojo use the published checkpoints of Llama-3-8B-Instruct and Llama-3.3-70B-Instruct, with attacks Important Instructions and Tool Knowledge (Appendix E.2, Table 22).
- Non-injection scenarios: Agent Meltdowns' 404 scenario with 12 tasks and 429 scenario with 18 tasks; the agents are GPT-5.4 and Magentic-One, and the labeling model is GPT-5.4-mini (Appendix F). The paper does not report agreement between this labeling and human annotation.
- Adaptive attacks: Only DTap Telecom, including Manual, PAIR, and search-based; payloads optimized against RATION are replayed against baselines, and iterative attacks run at most 200 executions per task. The authors note this may underestimate the vulnerability of each baseline under targeted adaptive attacks (Appendix G, Table 7).
- Policy and repetition: Implicit policies come from undefended executions, with five-fold cross-fitting; the enforcement policy is designed for fully autonomous benchmarks, holding and reviewing when a threshold is exceeded rather than asking the user to confirm (Section 4.1, Appendix H.1). Stability is measured by five full reruns per benchmark; the authors additionally manually checked the category assignment of 100 tasks (Section 4.5, Appendix E.6).
Summarize the main content of the paper
RATION constrains agent tool calls with cumulative measurable risk, reducing ASR on four benchmarks while maintaining task utility.
RATION is a system-level framework for tool-using agents that mitigates indirect prompt injection with quantitative risk access control.
- Problem: Per-action permissions cannot see the risk that accumulates over an execution; tightening tools or information flows blocks legitimate behaviors in complex tasks that only emerge during execution. The authors assume user requests and configuration are trusted, and that external observations may contain adversarial content.
- Method: The Provisioner grounds parameter values specified in the request, per-call limits, and cumulative limits into the tool interface, and selects a tool whitelist derived from historical benign executions plus three behavioral thresholds: total calls, write/execute calls, and tokens, defaulting to the 95th percentile. The Risk Monitor performs deterministic checks before calls. Hard violations are blocked outright; behavioral threshold exceedances are held and the agent is asked to reconsider, after which the corresponding threshold is multiplied by 1.5.
- Main results: In Table 2, on DTap with GPT-5.4, ASR goes from 38.7% to 16.5%, and UA from 65.7% to 69.1%. AgentDyn, AgentDojo, and ASB use GPT-4.1, with ASR of 1.4%, 0.0%, and 0.0%, and UA of 57.3%, 76.9%, and 59.0%. AgentDyn's BU goes from 68.3% to 63.3%.
- Other results: In the two Agent Meltdowns scenarios, RATION's unsafe executions are both 0.0%, and the error-free task success rate is 100.0% (Table 4). PAIR and search-based attacks optimized against RATION raise ASR to 12.0% and 15.7% on DTap Telecom; the authors state these successes mainly come from tool descriptions outside their threat model (Table 7).
- Authors' conclusion: The authors argue that quantitative risk control can constrain measurable risk while preserving flexibility to complete tasks, and hope for further research on quantitative risk measures and risk-based control mechanisms.