arXiv(opens in a new tab)cs.CRSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02690

ACLE-MCP: Attested Capability Leases for Execution-Time Trust in Remote LLM Tool Use

Zhiyang Ding, Yang Luo, Guangpu Chen, Qingni Shen, Zhonghai Wu

Abstract

Remote Model Context Protocol (MCP) services enable large language model agents to invoke external tools, but OAuth authorization alone does not ensure that a later tool call is executed by the provider-side workload that the relying party intended to trust. An endpoint may remain authorized even after execution shifts to a substituted workload, relies on stale appraisal state, reuses authority transferred from another sender, or traverses an undeclared downstream component. We call this problem the post-authorization execution trust gap. We present ACLE-MCP, an invocation-scoped architecture that couples delegated authorization, workload appraisal, and resource-side execution admission. For protected calls, ACLE-MCP issues a short-lived, sender-constrained capability lease that binds the expected workload, freshness requirement, operation, object and parameter bounds, downstream constraints, and receipt obligations. A provider-side Execution Gate consumes the lease immediately before protected tool logic begins. We implement a runnable prototype with Keycloak/OIDC validation, an MCP Python SDK server, and an optional vTPM quote-verification backend. Controlled security experiments and an agent tool-use extension show that weaker authorization or connect-time attestation modes leave distinct post-authorization attacks open, whereas full ACLE-MCP blocks all evaluated attack families while preserving all benign tasks. In the locally simulated agent extension, the complete design increases request-level pooled p95 latency on normal allowed calls by 25.7% relative to OAuth-only. These results indicate that invocation-time binding between call authority and current workload state is a practical complement to OAuth-protected remote tool use.

Introduction

Large language model (LLM) applications increasingly invoke external tools, data sources, and enterprise services through the Model Context Protocol (MCP). This shift from passive text generation to agentic execution allows a Host to retrieve private data, update records, invoke internal APIs, and trigger external workflows. In remote deployments, OAuth can authorize an MCP Client to access a protected MCP Server. OAuth answers an important question—whether a client or user may access a resource—but it does not establish that the concrete provider-side workload executing a later invocation is still the execution unit that the relying party intended to trust.

We call this problem the post-authorization execution trust gap. A remote endpoint may complete OAuth, expose plausible MCP metadata, and return syntactically valid results while the underlying execution unit has been replaced, rolled back, misconfigured, compromised, or routed through an undisclosed downstream component. An attestation result obtained at registration or connection time may also become stale before authority is actually consumed. The authorization decision can therefore remain valid even though the execution context no longer satisfies the trust assumptions under which the call was allowed.

Consider an agent authorized to invoke update_ticket on ticket T-17. The Host selects the correct tool, validates the arguments, and obtains a valid access token. Before the invocation reaches the protected handler, however, the provider may roll the serving container back to a vulnerable image, route the request through an undeclared proxy, or accept a lease copied from another sender. Operation and parameter bounds remain important, but they are not the central research problem; rather, they ensure that authority issued after successful workload appraisal cannot be widened when consumed. The core question is whether an OAuth-authorized call is still executed by the expected, freshly appraised workload within the bounds for which the additional authority was issued.

Existing mechanisms protect adjacent but distinct security boundaries. Prompt-injection defenses and plan validators operate before remote execution. OAuth and rich authorization mechanisms govern delegated access, but do not identify or appraise the concrete provider-side workload that ultimately consumes authority. Sender-constrained tokens reduce credential-transfer risk, but do not establish current workload state. Remote attestation can establish workload properties, yet an appraisal obtained at connection time may become invalid before a later invocation. What is missing is an invocation-scoped binding among the OAuth authorization context, current workload appraisal, caller sender proof, and resource-side admission decision at the execution boundary.

We present ACLE-MCP, an attested capability-lease architecture for high-risk remote MCP invocations. For a protected call, a Verifier appraises evidence from the target workload and returns a freshness-bounded attestation result. A lease issuer combines that result with the verified

OAuth context and requested invocation boundary. The resulting short-lived, sender-constrained lease binds workload identity, operation and object scope, parameter bounds, side-effect budget, downstream constraints, freshness, and any receipt obligation. A provider-controlled Execution Gate validates and consumes the lease at the final admission point before protected tool logic begins.

We implement a Python prototype with separate Verifier, lease-issuer, gate, and tool services. A realistic integration path validates standard Keycloak/OIDC access tokens and forwards admitted requests to an MCP Python SDK Server. Keycloak remains the ordinary OAuth/OIDC Provider; an independent lease issuer consumes the verified OAuth context and appraisal result to issue ACLE-MCP leases. An optional swtpm/tpm2-tools path replaces the simulated evidence signature with nonce-bound quote verification while preserving the same appraisal-result, lease, and gate interfaces.

This paper makes three contributions:

  • We identify and formalize the post-authorization execution trust gap in remote MCP deployments: valid OAuth authorization does not imply that a later tool call is executed by the expected and freshly appraised provider-side workload.

  • We design ACLE-MCP, which binds OAuth-derived authority, sender key possession, workload appraisal, invocation constraints, and provider-side admission into a short-lived capability consumed immediately before execution.

  • We implement and evaluate five enforcement modes. The evaluation covers replay, workload substitution, stale appraisal, scope misuse, undeclared proxying, and receipt violations, and extends the analysis to chained and streaming agent tool-use scenarios without redefining the core security problem.

References (21)

  • P.; Kumar, S.; AbdelBaky, M.; Fierro, G.; Kolb, J.; Kim, H.-S.; Culler, D. E.; and Popa, R. A. 2019
  • Macaroons: Cookies with Contextual Caveats for Decentralized Authorization in the Cloud
  • Remote ATestation procedureS (RATS) Architecture
  • Stateful least privilege authorization for the cloud
  • Runtime Verification for Software Supply Chain Security using Confidential Computing
  • AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
  • Transparent Attested DNS for Confidential Computing Services
  • OAuth 2.0 Demonstrating Proof of Possession (DPoP)
  • Full Trust Alchemist: Reforging Attestation for Cloud-based Confidential Workloads
  • Agentsentinel: An end-to-end and real-time security defense framework for computer-use agents
  • Attestable builds: compiling verifiable binaries on untrusted systems using trusted execution environments
  • B.; Nadalin, A.; Campbell, B.; Bradley, J.; and Mortimore, C. 2020
  • Ace: A security architecture for llm-integrated app systems (opens arXiv in a new tab)
  • Les Dissonances: Cross-Tool Harvesting and Polluting in Pool-of-Tools Empowered LLM Agents (opens arXiv in a new tab)
  • OAuth 2.0 Rich Authorization Requests
  • Prompt Injection Attack to Tool Selection in LLM Agents
  • ACAI: Protecting accelerator execution with arm confidential computing architecture
  • MSA: A Cross-MCP Privacy Attack via Memory Exfiltration of Large Language Models
  • SAGA: A Security Architecture for Governing AI Agentic Systems
  • ARI: Attestation of real-time mission execution integrity
  • SHELTER: extending ARM CCA with isolation in user space