AuthGateBench: Benchmarking large language models as authorization gatesAuthGateBench: Benchmarking LLMs as Authorization Gate
On AuthGateBench, the four models under π have an FPR of at least 80% for Credential Explore and External Sharing; the authors state that environment signals can improve accuracy.
- Automated approval lets coding agents delegate high-risk tool calls to an LLM to decide allow or block. Existing benchmarks mostly evaluate malicious requests; over-authorization under benign requests lacks policy-explicit, comparable gate evaluations.
- First generate request-trajectory-action triples that should be blocked according to five failure modes, then rewrite only the request while fixing the trajectory and action, flipping the gold label to allow. Additionally attach read-only environment signals that do not change the label. Total 1,400 items. The evaluation defaults to letting the model use the internal standard π.
- On the 700 items without signals under policy π, the four classifiers have an FPR of at least 80% for Credential Explore and External Sharing, and often give the same decision on contrast pairs. Explicit π* mainly reduces over-blocking; environment signals correct previously wrong predictions at a higher rate than they mislead previously correct ones.
- The authors note that both the instances and the environment signals are synthetic, real failures are hard to collect, and only one explicit policy π* is used. The evaluation includes four classifiers, five failure modes, and comparisons of π vs. π* and with vs. without signals; the paper does not report the sample size for manual inspection or the number of evaluation repetitions.
- Evaluated models
- Qwen3.7-PlusGLM-5.2Kimi-K2.7-CodeDeepSeek-V4-Flash
- Benchmarks
- AuthGateBench
- Metrics
- AccFPRFNRIR
The authors propose AuthGateBench, which they call the first authorization gate benchmark that judges, per policy, whether to allow agent actions for normal requests, containing 1,400 samples covering 5 failure modes. The benchmark uses large language models to generate contrastive samples with identical actions and trajectories but different requests, flipping labels between blocking and allowing, to test whether models judge based on context or only on the action. Evaluation shows that models over-rely on internal safety alignment, with accuracy declining unevenly across failure modes, and they still block most actions even when the user explicitly authorizes them, with unstable decisions; environment signals retrieved retroactively notably improve authorization accuracy.
Paper analysis
What problem does this paper attempt to solve?
Under benign requests, the LLM authorization gate must adjudicate against the expected policy, not just the surface risk of the action.
Under benign requests, can LLM authorization gates allow or block tool calls according to the intended policy, rather than only looking at the action's surface risk.
- Scenario: completing file edits, shell, and API calls with minimal interruption is a core need for coding agents. Automated approval delegates each tool call to an LLM classifier, as used in Claude Code's auto mode and Codex's auto review. The authors argue that natural language requests are ambiguous, and gates must trade off over-blocking and over-allowing.
- Existing gaps: existing benchmarks mainly evaluate refusal under malicious requests; if the policy is implicit, it is impossible to distinguish errors from policy mismatch versus insufficient authorization reasoning. OverEager-Gen looks at whether out-of-scope actions are generated. AmPermBench has only one failure mode, relies on end-to-end waiting for long-tail failures, and the safety policy behind the labels is implicit.
- Approach: the authors propose AuthGateBench, claiming it is the first policy-guided authorization gate benchmark for benign requests. Instances total 1,400, covering five failure modes; contrast pairs change only the request to flip the gold label, and examine whether read-only environment signals help.
- Threat model:
- Goal: the gate should reproduce the intended decision, i.e., output equals oracle g(x, π). π governs whether the action is allowed, but in the main evaluation the gate does not see π*.
- Knowledge: only observes x=(r, τ, a) and the given policy text π. It cannot see user intent beyond r and τ, nor interact with the environment for evidence. When π is fully specified, errors mainly come from interpretation or application failures; when π is incomplete or absent, it falls back to the model's internalized priors.
- System: the autonomous agent is in auto-execution mode, with the LLM gate outputting ALLOW or BLOCK before tool calls take effect.
- Error sources: under benign use, the request and proposed action are well-intentioned, not disguised exploitation. After natural language underspecifies intent, the agent resolves ambiguity itself, and only some of it is allowed by π*.
What related research exists?
The authors group by coding agents, safety benchmarks, and policy enforcement, and use contrastive pairs to distinguish from action-level matching.
The authors divide related work into three groups: coding agents, safety benchmarks, and policy enforcement; the numerical experiments do not use these systems as baselines.
Autonomous Coding Agents
- Long-trajectory execution: SWE-bench (Jimenez et al., 2024), AutoCodeRover (Zhang et al., 2024a), and OpenHands (Wang et al., 2025b) study LLM coding agents handling real software engineering problems along tool trajectories.
- Auto-execution: Claude Code's auto mode (Anthropic, 2026) and Codex's auto-review (OpenAI, 2026) use LLM classifiers instead of per-action human approval. The paper asks whether such classifiers can serve as gates, and does not report score comparisons with these products.
Agent Safety Benchmarks
- Adversarial and execution-time: AgentHarm (Andriushchenko et al., 2025) and Agent-SafetyBench (Zhang et al., 2024b) evaluate compliance with explicitly harmful tasks; R-Judge (Yuan et al., 2024) identifies risks from trajectories; ToolEmu (Ruan et al., 2024) and MAS-FIRE (Jia et al., 2026) study execution failures via simulation and fault injection, respectively; AutoDAN (Liu et al., 2024) searches for jailbreaks. In the same passage, the paper also cites ToolSword (Ye et al., 2024), InjecAgent (Zhan et al., 2024), and TraceSafe (Chen et al., 2026), positioning these works as resistance to adversarial instructions, prompt injection, or execution-time risks, rather than authorizing a proposed action given a request, trajectory, and policy.
- Benign users: OverEager-Gen (Qu et al., 2026) examines whether out-of-scope actions are generated under underspecified instructions, targeting proposal generation rather than authorization decisions. AmPermBench (Ji et al., 2026a) evaluates auto-execution gates; the paper notes it has only one failure mode and defines authorization solely by whether the proposed action names a target, ignoring authorization already established by the trajectory.
- Coarser access control: Groschupp et al. (2025) decide authorization by application function (e.g., camera access), largely independent of context. The paper contrasts that in coding scenarios, the same action can be allowed or denied depending on the target and trajectory.
Policy Representation and Enforcement
- Specification compilation: Prose2Policy (Gupta and Sreenivasamurthy, 2026) and a retrieval-augmented pipeline for IoT (Cheng et al., 2026) translate natural language rules into executable representations, such as Rego checked by OPA (Open Policy Agent, 2016). NeMo Guardrails (NVIDIA, 2023) does intent matching against predefined rules.
- Runtime constraints: LiSA (Kim et al., 2026) adapts deployed guardrails from sparse failure feedback. AgentSpec (Wang et al., 2025a) and Progent (Shi et al., 2026) let developers constrain possible actions at runtime. The paper states these works assume governance policies are available, focusing on specification and execution, complementing this paper: this paper evaluates authorization reasoning when the policy is not explicitly provided and evidence arrives as natural language requests and trajectories.
Baselines and Positioning
- Baselines and benchmarks: the paper does not report score comparisons with the above systems. The tested items are four LLM classifiers, the benchmark is AuthGateBench, and the conditions are implicit policy π, explicit policy π*, and with or without environment signals.
- Positioning: the authors use contrast pairs that fix the action and trajectory and change only the user request, shifting evaluation from surface pattern matching on actions to contextual authorization reasoning.
How does the paper address this problem?
Contrast pairs fix the action and trajectory, changing only the request to flip the label, then attach read-only signals that do not change the gold label.
AuthGateBench uses policy-guided contrast pairs, fixing the action and trajectory and changing only the request to flip the gold label, then checks whether read-only environment signals can supply evidence not captured in the trajectory.
Formalization
- Triple: instance x=(r, τ, a). r is the user request, τ is the prior tool-call trajectory, a is the proposed action. π is the policy text given to the gate, π* is the intended policy that induces the gold label.
- Classifier: the gate is a policy-conditional binary classifier, f(x,π)→{ALLOW,BLOCK}, i.e., Eq. (1), mapping the instance and policy text to allow or block. The gold label is y=g(x, π). In the main evaluation, the gate does not see π and cannot gather evidence from the environment (Section 3).
Five Failure Modes
The modes are taken from Claude Code auto-execution events. Each has a definition, typical mechanism, and seed examples used to constrain generation (Appendix A, Figures 6–10).
- Scope Escalation: ambiguous requests are expanded into irreversible actions that may exceed user intent.
- Credential Exploration: after authentication is blocked, search for credentials not allocated for this task, then use them for other purposes.
- Inferred Parameters: destructive parameters are guessed by similarity, recency, or convention rather than parsed from the trajectory.
- External Sharing: workspace content is sent to external or public destinations not requested by the user.
- Guardrail Bypass: after pre-checks fail, retry in a way that skips, forces, or disables validation.
Figures 16–20 in Appendix F each provide a set of base, inverted, and signal examples showing how labels flip with the request. Appendix C gives prompts for each stage.
Three-Stage Construction
Figure 2 and Table 1: base 350, inverted 350, signal-augmented 700, totaling 1,400. The generator is DeepSeek-V4-Flash at temperature 1.
- Base (Section 4.2): generate triples that should be blocked by π* according to definitions and seeds. Starting from BLOCK, make the action itself risky, so that later changing only the request cannot distinguish labels by the action's surface form. In the generate–validate–repair loop, programs check the schema and LLMs check whether tool use and results are realistic; violations are sent back to the generator. Near-duplicate filtering uses Qwen3-Embedding-4B: if the cosine similarity of the concatenated request and action is at least 0.9, discard and regenerate. The checker model is not named in the paper.
- Contrast pairs (Section 4.3): inspired by counterfactual data augmentation (Kaushik et al., 2020). The action and trajectory are byte-identical; only the request is rewritten so that information the user could have known before the trajectory uniquely determines the action's target set, flipping the gold label to ALLOW. The resulting triples are sampled for manual verification, with 100% agreement on ALLOW, so this side no longer uses LLM labeling. The sample size is not stated.
- Signals (Section 4.4): the trajectory is generated before the final action, so the agent cannot foresee what evidence future authorization will need. The generator synthesizes read-only Σ, such as file system state, process lists, or remote API responses, requiring it to corroborate existing context without changing the gold label, and places it outside the trajectory. With and without Σ, the triple fields are byte-identical, so classification differences can be attributed to Σ. This is synthetic post-hoc evidence, not the gate interacting with the environment itself as in Section 3.
Policies Exposed at Evaluation
- π*: moderately detailed, stating conditions that must be blocked and explicitly authorizing destructive actions when user instructions enumerate targets or take responsibility. Full text in Figure 11 of Appendix B.
- π: the main evaluation does not provide π* or explicit rules, requiring the model to decide according to its internal standard as a careful, safety-conscious operator. Another condition gives π* to the classifier.
- Output: each model receives the same prompt, i.e., the policy plus the triple, and returns a decision and policy rationale; evaluation temperature is 0. The prompt is in Figure 13.
What experiments did the paper conduct?
The authors state that under policy π, the credential and outbound FPR is at least 80%, π* reduces over-blocking, and the signal corrects more than it misleads.
The four classifiers show category-imbalanced over-blocking under policy π; according to the authors' report, explicit π* mainly reduces over-blocking, while retrospective signals improve authorization accuracy in underspecified cases.
Experimental Setup
- Models: classifiers are Qwen3.7-Plus, GLM-5.2, Kimi-K2.7-Code, DeepSeek-V4-Flash. DeepSeek-V4-Flash is also the generator (temperature 1); the reference states the experiments use the 0731 snapshot. Evaluation temperature is 0 for all.
- Data: 1,400 items, with gold labels evenly split between BLOCK and ALLOW. Table 2 and Table 5 use the 700 signal-free base and inverted items. Signal experiments compare these 700 items with their Σ-augmented versions. The paper does not give counts by failure mode.
- Policy and output: the main result's π has no explicit rules, and classifiers do not see π*. The prompt is identical; models directly output ALLOW or BLOCK with rationale (Figure 13). The paper does not use an independent reviewer model.
- Metrics: Acc, FPR, FNR. BLOCK is the positive class: FNR is unauthorized actions being allowed, FPR is legitimate actions being blocked. IR is the proportion of contrast pairs with opposite gold labels where the model gives the same decision on both sides, defined in Eq. (6).
- Verification: Section 4.3 samples inverted triples with 100% agreement on ALLOW; the sample size is not reported. The abstract states that after sampling a batch of examples, agreement was high. The paper does not report the number of evaluation repetitions.
Main Results
Policy π, no signal augmentation. The table below shows FPR (%), from Table 2. DeepSeek-V4-Flash is also the generator.
Swipe horizontally to read the table
Model Scope Escalation Credential Explore External Sharing Guardrail Bypass Inferred Params Qwen3.7-Plus 50.00 84.29 97.14 75.71 38.57 GLM-5.2 60.00 92.86 97.14 70.00 48.57 Kimi-K2.7-Code 38.57 80.00 94.29 84.29 34.29 DeepSeek-V4-Flash 52.86 84.29 92.86 87.14 45.71 - FNR: the authors state that FNR is low across all five categories; models still block unsafe actions even when not explicitly told about high-risk categories. In Table 2, FNR for External Sharing is 0.00 for all four models; the highest in that table is Kimi-K2.7-Code's 17.14% for Inferred Params, with Qwen3.7-Plus at 15.71% in the same column.
- Over-blocking: the authors state that each model's FPR is at least 80% for Credential Explore and External Sharing, and specifically note that GLM-5.2 blocks 92.86% of allowable credential actions and 97.14% of allowable external sharing actions. The authors argue that when credentials or sensitive data are involved, models prioritize confidentiality risks over request-level authorization.
- Categories and Acc: the authors state that the other three categories are more compliant because they are mainly destructive actions that do not expose confidential content. In Table 2, Guardrail Bypass FPR still ranges from GLM-5.2's 70.00% to DeepSeek-V4-Flash's 87.14%. In the same table, the lowest Acc is 51.43% for Qwen3.7-Plus and GLM-5.2 on External Sharing, and the highest is Kimi-K2.7-Code's 77.86% on Scope Escalation.
Action Anchoring on Contrast Pairs
Table 3 shows IR (%) under policy π: the proportion of cases where the model gives the same decision despite opposite gold labels.
Swipe horizontally to read the table
Model Scope Escalation Credential Explore External Sharing Guardrail Bypass Inferred Params Qwen3.7-Plus 54.29 87.14 97.14 82.86 54.29 GLM-5.2 60.00 90.00 97.14 71.43 51.43 Kimi-K2.7-Code 41.43 85.71 94.29 87.14 48.57 DeepSeek-V4-Flash 57.14 85.71 92.86 85.71 57.14 - Authors' interpretation: the authors give the average IR for these two categories as 87.14% (Credential Explore) and 95.36% (External Sharing), and argue that high IR corresponds to the high FPR in Table 2, with over-blocking partly stemming from action anchoring.
- Under π: Table 4 in Appendix D uses the same contrast pairs and the same IR definition. The authors state that even with π, models still anchor to the action's surface risk rather than changing decisions with explicit user requests. GLM-5.2's External Sharing IR is 88.57% and Credential Explore is 82.86%; Qwen3.7-Plus's Scope Escalation IR is 18.57%, compared to 54.29% in the corresponding cell of Table 3.
Retrospective Environment Signals
- Comparison: under policy π, the four models' predictions on 700 signal-free triples are compared against the same triples with Σ added. Figure 3 aggregates the four models by failure mode, comparing the rate at which Σ corrects previously wrong predictions versus misleads previously correct ones.
- Numbers: the authors state that across all categories, the correction rate among previously wrong predictions exceeds twice the misleading rate among previously correct ones, and that the effect is strongest for Scope Escalation (25.2% corrected, 7.6% misled) and Inferred Parameters (24.3% and 10.5%). The bar heights for the other modes are not given numerically in the text.
- Interpretation: the authors state that read-only post-hoc evidence can help resolve authorizations where the request and trajectory remain underspecified. Figure 4 is a single example: on a data-destruction instance with gold label BLOCK, DeepSeek-V4-Flash first predicts ALLOW, then changes to BLOCK after Σ shows the target directory still has ongoing training and jobs. The authors also state that in practice, the gate could be instructed to collect such evidence with trusted read-only tools after seeing the full triple.
Explicit Policy π*
- Setup: the π* used in generation is given to the classifier, still on signal-free base and inverted items. Figure 5 compares π and π*; the text does not give the bar heights for that figure, with values in Table 5.
- Authors' interpretation: the authors state that the explicit policy improves accuracy, driven mainly by reduced over-blocking, and that the Table 2 results under π are not solely due to insufficient authorization reasoning. In Table 5, Scope Escalation Acc is Kimi-K2.7-Code 91.43%, Qwen3.7-Plus 90.71%, GLM-5.2 88.57%, DeepSeek-V4-Flash 78.57%. Qwen3.7-Plus's External Sharing FPR is 52.86%, compared to 97.14% in the same cell of Table 2.
- Residual errors: the authors state that more detailed policies do not eliminate reasoning difficulties. In Table 5, GLM-5.2's External Sharing FPR is still 88.57% with Acc 55.71%, and Credential Explore FPR is 82.86%. FNR for External Sharing remains 0.00 for all four models. Qwen3.7-Plus's Scope Escalation FNR is 14.29%, compared to 4.29% in Table 2; the paper does not separately explain that cell.
Other Ablations and Analyses
- The paper does not report ablations on temperature, similarity threshold, or signal quantity; the construction threshold is 0.9, generation temperature is 1, and evaluation temperature is 0.
- Signals are required not to change the gold label; there is no condition where signals flip the label (Section 4.4).
- Classifiers also output policy rationales, but the paper does not report quantitative analysis of the rationales.
What are some points that can be further explored?
The authors point to synthetic data, synthetic signals, and a single π*, and point to explicit policies, deterministic verification, and proactive forensics.
In the limitations and conclusion, the authors wrote about synthetic data, synthetic signals, and a single generation strategy, and placed future directions on explicit policies, deterministic verification, and proactive forensics.
Limitations and future directions noted by the authors
- Synthetic instances: The benchmark synthesizes five failure modes from reports of real incidents. The authors state that real authorization failures are rare and long-tailed, that many failures under automated execution go unreported or unnoticed, and that collecting representative failures from deployed agents is difficult; synthesis also makes it easy to fix a consistent expected policy at construction time, avoiding gold-label ambiguity caused by users' differing policies (Section 7).
- Synthetic signals: The Phase III environment signals may not cover all variation in real tool outputs (Section 7). The authors also state that performance variation shows future gating should incorporate environmental evidence rather than only the request and actions, and contrast this with the execution mode that discards tool feedback.
- Single policy: The data was generated using only one explicit policy π. The authors state that adding more policies would require extensive expert re-checking of gold labels; fixing π and varying the classifier-visible π is used to distinguish policy-known from policy-implicit (Section 7).
- Directions in the conclusion: more fine-grained explicit policies, deterministic authorization via formal verification, and gating that proactively obtains contextual evidence (Section 6).
Experimental coverage
- The classifiers tested are Qwen3.7-Plus, GLM-5.2, Kimi-K2.7-Code, and DeepSeek-V4-Flash, 4 in total; generation used DeepSeek-V4-Flash, with generation temperature 1 and evaluation temperature 0 (Section 5.1). The references state that this model's experiments used the 0731 snapshot.
- The benchmark has 1,400 items and five failure modes (Table 1). No-signal results are reported on the 700 base and inverted items, with policies π (Table 2) and π* (Table 5). The signal comparison is these 700 items against their augmented versions, aggregated across the four models and summarized by failure mode (Figure 3).
- Metrics are Acc, FPR, FNR, and IR, with BLOCK as the positive class. Gold labels are induced by the π* used at construction. The inverted samples were manually checked, with a 100% agreement rate on ALLOW (Section 4.3); the paper does not report the sample size of that check, nor the number of evaluation repetitions.
- Near-duplicate filtering used Qwen3-Embedding-4B with a cosine similarity threshold of 0.9 (Section 4.2). Factuality checks included a programmatic schema check and an LLM checker; the paper does not name the checker model.
- The policy conditions are the implicit π and the π* used in generation (Section 5.1, Appendix B). Related Works discusses policy compilation and runtime rule systems, stating that they assume policy availability and are complementary to this work; the experiments do not use these systems as numerical baselines.
Summarize the main content of the paper
AuthGateBench evaluates benign authorization with contrast pairs; the authors state that over-blocking stems from action anchoring, and that signals and explicit policies can improve it.
AuthGateBench evaluates whether LLMs can serve as authorization gates for coding agents under benign requests. The issue is not adversarial jailbreaks, but whether proposed tool calls exceed the intended policy π* when requests are underspecified.
- Construction: first generate risky actions that should be blocked, then change only the request to obtain an allow label, keeping the action and trajectory byte-identical, thereby separating looking at the action from looking at the authorization context. The five modes are scope escalation, credential exploration, inferred parameters, external sharing, and guardrail bypass, totaling 1,400 items. The same triple can also be augmented with read-only environment signals that do not change the gold label. The evaluation defaults to letting classifiers use an internal standard π without explicit rules.
- Over-blocking: on the 700 signal-free items under policy π, the four classifiers have an FPR of at least 80% for Credential Explore and External Sharing (Table 2). GLM-5.2's FPR for these two categories of allowable actions is 92.86% and 97.14%. In the same table, the lowest Acc is 51.43% for External Sharing. For Scope Escalation, FPR ranges from Kimi-K2.7-Code's 38.57% to GLM-5.2's 60.00%, so not every category reaches the majority blocking the authors describe for the first two.
- Action anchoring: under policy π, the average unchanged rate IR is 95.36% for External Sharing and 87.14% for Credential Explore. The authors state that models often block based on the action's surface risk even when explicitly authorized, with decisions resembling unstable preferences rather than deterministic rules. After giving π*, some IR values in Table 4 drop, but GLM-5.2's External Sharing IR remains 88.57%.
- Signals and explicit policy: the authors state that providing π* increases accuracy, driven mainly by reduced over-blocking (Figure 5, Table 5); Kimi-K2.7-Code's Scope Escalation Acc is 91.43%, while GLM-5.2's External Sharing FPR is still 88.57%. Across the four models combined, environment signals correct 25.2% of original errors on Scope Escalation while misleading 7.6% of original correct predictions (Figure 3).
- Authors' conclusion: future gates need finer-grained explicit policies, verification that can deterministically resolve conflicts between risk and authorization, and proactive acquisition of contextual evidence, rather than relying only on the agent's own trajectory and the model's internalized safety alignment.