arXiv:2611.00729cs.CROct 2026

Manuscript Offprint

arXiv:2611.00729

AgentCap: Capability-Based Runtime Authorization for Secure LLM Agent Execution

Aravinda Kashyap Kabbinamakki Suresh, Peng Gao

Abstract

Language-model agents commonly collapse two decisions that security systems separate: selecting an action and determining whether that action is authorized. When a model exercises standing authority, indirect prompt injection can convert influence over its reasoning into unauthorized effects. We present AGENTCAP, a runtime authorization layer that externalizes this decision from the model and mediates every tool invocation through an MCP wrapper. Each request declares an intent, and AGENTCAP evaluates policy constraints over trust, workflow prerequisites, mutually exclusive authority, and the provenance of security-sensitive arguments. Authorized requests receive short-lived, budget-bounded capability tokens that are validated at the tool boundary. Delegation is restricted to session-bound parent-child chains that preserve action and resource while budget and lifetime can only be attenuated, preventing authority from being expanded or reused across unrelated agent sessions. A declarative policy language provides a common representation for runtime enforcement and predeployment analysis. Across AgentDojo and InjecAgent, AGENTCAP reduces attack success in every evaluated model-benchmark setting, including zero attack success with GPT-5.4 on both benchmarks. Controlled adversarial scenarios further show that AGENTCAP blocks every attempted unauthorized execution (ASR 0%) while preserving all legitimate operations exercised. These results demonstrate that agent security requires authorization of model-proposed effects at the tool boundary, independently of the model's reasoning.

1 Introduction

Tool-using language-model agents collapse a distinction that conventional security architectures treat as fundamental: the separation between proposing an action and authorizing its execution. An agent selects tool calls while operating with credentials that often remain valid throughout an entire session. Its decisions are simultaneously conditioned on potentially adversarial content, including retrieved documents, messages, web pages, and prior tool outputs. Consequently, an indirect prompt injection need not bypass an explicit authorization check. It can instead redirect an already authorized agent toward an attacker-selected action [3, 4, 6]. This coupling between model inference and ambient authority turns failures of instruction following into security violations.

Existing defenses address important parts of this problem but do not by themselves establish a per-invocation authorization boundary. Prompt filtering and model alignment attempt to prevent untrusted content from influencing behavior, yet their decisions remain probabilistic and operate within the reasoning process targeted by the attacker. Identity- and role-based policies restrict the tools available to an agent, but commonly grant authority at session scope rather than for a particular task or invocation. Expiration and rate limits restrict when and how often credentials may be used, but cannot distinguish a legitimate call from an attacker-directed call made within the same limits.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Agents in the Wild.

Recent systems therefore move enforcement outside the model through deterministic call policies, task-specific permission structures, and information-flow controls [9, 14, 10, 18]. These developments motivate a stronger principle: every model-generated action should be treated as an untrusted request whose authority must be established independently.

We present AGENTCAP, a capability-based authorization layer for AI agents. Capability systems attach authority to an unforgeable object that denotes a specific permission rather than to the ambient identity of its holder, an abstraction introduced to address confused-deputy failures [1]. AGENTCAP mediates every proposed tool invocation through a deterministic authorization gate placed between the agent and its tools. The gate evaluates the request independently of the model and forwards it to the underlying tool only when the applicable authorization conditions are satisfied. An approved request receives a short-lived signed capability scoped to an action, resource, session, declared intent, and invocation budget. A separate gateway verifies this capability before forwarding the call to the underlying tool. Action selection consequently remains with the model, while authority is determined and enforced outside it.

Capability scoping alone is insufficient when an attacker manipulates the arguments of an otherwise legitimate operation. AGENTCAP therefore incorporates parameter-level provenance into authorization. The policy associates content-producing tools and selected output fields with integrity labels, then checks whether security-sensitive arguments are supported by trusted task context. Consider an injected transaction record that instructs the agent to transfer funds to an attacker. Although the resulting payment may carry a valid high-level intent, its recipient originates only from untrusted content. The provenance check rejects this instantiation of the operation without prohibiting legitimate payments authorized by the user. This design extends recent information-flow approaches that distinguish trusted instructions from lower-integrity data [10, 7].

The authorization state also evolves during execution. Suspicious requests and execution outcomes update a per-agent trust state, with threshold crossings triggering capability revocation or sandboxing. Delegation across agents is represented as a signed attenuation chain: each hop preserves the authorized action and resource, never increases the lifetime or budget, and strictly reduces the remaining delegation depth. Capabilities remain bound to their agent lineage and session, preventing agents in unrelated sessions from reusing or extending delegated authority. A compact declarative policy language specifies capability grants, prerequisites, mutually exclusive permissions, delegation constraints, trust responses, provenance requirements, and valid workflows. Because these relationships are explicit, a static analyzer can detect policy interactions before deployment.