Securing AI Agents and MCP Toolchains: Identity, Least Privilege and Verifiable Execution
A technical research study of prompt-injection resilience, delegated authorization and controlled access to enterprise tools
Figure audit, 31 October 2026: all plotted values independently checked against the disclosed equations and units. Plots show conditional calculations, not original experimental or production measurements; exported images now carry that provenance.
Abstract
Context. AI agents combine language-model inference with external data and executable tools. This creates a security boundary that ordinary prompt-level restrictions cannot fully define: the same external content that supports a legitimate task can influence the selection and arguments of privileged operations.
Research question. How can an enterprise preserve useful agent behavior while ensuring that identity, delegation, data access and execution authority remain verifiable outside the language model? This paper focuses on the Model Context Protocol (MCP) and the application controls required around it.
Methods. The study combines a focused review of primary agent-security benchmarks, OAuth standards, NIST material and MCP revision 2026-07-28 with a proposed trust-boundary architecture. Three deterministic analytical examples examine workflow-length exposure, stale-authorization windows and the statistical limits of zero-failure testing. Downloadable source, numerical series and parameter records accompany the article.
Conditional calculations. The IID probability identity is evaluated at chosen per-decision probabilities; it does not estimate an observed agent failure rate. Likewise, the revocation example assumes detection and propagation bounds rather than measuring them. A separately derived exact binomial calculation shows that zero failures in 1,000 independent representative trials would still permit a one-sided 95% upper failure probability of approximately 0.299%. No such attack experiment was performed in this study.
Interpretation. Protocol authentication, task authorization and semantic safety are distinct properties. The proposed design makes model output a candidate action, binds approval to an exact request and state, confines credentials and data flow, and verifies execution at the resource boundary. The result is an inspectable research framework rather than a claim of prompt-injection immunity or measured product efficacy.

1. Introduction: the agent–tool security boundary
A conversational system becomes operationally different when it can retrieve private records, invoke APIs, modify resources or communicate outside an organization. Its output is no longer only advice for a human to interpret. It can become an input to an execution path with real authority. An agent may correctly identify the user and still choose an action that exceeds the task, targets the wrong tenant or discloses information through an inappropriate destination. These failures require analysis of the surrounding system, not only of the model’s language behavior.
The Model Context Protocol provides a standardized interaction surface between applications and tools. Standardization improves interoperability, but it does not make every server trustworthy or define an enterprise’s complete authorization policy. This study pins protocol discussion to revision 2026-07-28 and distinguishes its normative requirements from stricter controls proposed here. In particular, the MCP authorization specification addresses HTTP-based transports; its authorization support is optional at the protocol level. A deployment handling sensitive enterprise resources may impose stronger local requirements. [1]
The paper’s central question is how useful agent capability can coexist with authority that remains limited and independently enforceable. It develops a system model, identifies failure modes at connection and action boundaries, proposes an execution architecture and defines experiments that could test its claims. The analytical examples quantify selected design dependencies using assumed inputs. No new model benchmark, customer incident dataset or production deployment is presented.
2. Research questions and falsifiable claims
RQ1 asks whether an agent can complete useful tasks while every consequential action is checked against an independent authorization contract. RQ2 asks which prompt-injection failures remain possible after identity, resource scope and output destinations are constrained. RQ3 asks how workflow length, stale credentials and validation delay affect the opportunity for unauthorized behavior. RQ4 asks what experimental evidence can support a claim about an action boundary without confusing a favorable benchmark score with an invariant.
H1 is that binding a user-approved action to its tenant, canonical target, arguments, tool version and required resource state prevents the enumerated mismatch cases at the tested enforcement interface. H2 is that separating model context from credential custody and restricting destinations reduces the permitted paths for data disclosure under a defined threat model. H3 is that reporting security outcomes together with clean-task utility and intervention burden exposes tradeoffs hidden by an attack-success metric alone. These hypotheses are bounded by the interfaces, scenarios and assumptions actually tested.
The proposed contribution is an assurance method for agent-mediated execution. It does not assume that a model will reliably recognize every malicious instruction. Instead, it asks which operations remain possible when that recognition fails. A useful result must retain legitimate capability, identify residual semantic risks and show where an independently implemented policy rejects a request. Refusing every task can produce a superficially strong security score while providing no useful system.
3. Evidence base, protocol version and research scope
This is a focused technical review, not a systematic literature review or meta-analysis. Primary sources were selected for indirect prompt injection, agent evaluation, delegated identity, OAuth security and MCP implementation boundaries. Publication records and the cited protocol material were checked on 29 October 2026. Versioned MCP URLs are used where available, so subsequent changes to a “latest” page do not silently redefine the article’s claims. Standards, implementation guidance, concept papers and empirical benchmarks are identified as different kinds of evidence.
InjecAgent studies indirect prompt injection in tool-integrated agents; its original benchmark reports 1,054 test cases involving 17 user tools and 62 attacker tools. AgentDojo provides an extensible evaluation environment whose original release contains 97 realistic tasks and 629 security test cases. These counts describe those published releases, not every later implementation. They establish concrete research settings for testing agents over untrusted data, but their task distributions and scoring rules do not define a universal enterprise risk estimate. [8] [9]
NIST’s 2025 evaluation discussion emphasizes strengthening agent-hijacking tests, including the conditions under which an adversarial objective is assessed. Its methodological relevance is that an evaluation must specify the adversary’s opportunity and measure the intended property, rather than merely replay a fixed list of strings. The February 2026 NCCoE identity and authorization concept paper is explicitly a draft project concept. It is relevant evidence of open interoperability and identity questions, not a final compliance standard or a certification of any agent platform. [10] [11]
| Source | What it contributes | What it does not establish |
|---|---|---|
| MCP authorization, revision 2026-07-28 [1] | Transport-level authorization roles and token validation requirements. | End-to-end permission to perform every tool operation. |
| MCP security guidance [2] | Implementation risks including token passthrough and confused-deputy behavior. | Proof that an arbitrary connector has implemented the mitigations. |
| MCP tools, revision 2026-07-28 [3] | Tool discovery, schemas and trust considerations for annotations. | Truthfulness of a tool description or safety of the underlying implementation. |
| OAuth security and resource indicators [4,5] | Security practices and explicit resource targeting. | A business-specific authorization model or trustworthy model reasoning. |
| InjecAgent and AgentDojo [8,9] | Reproducible settings for studying agent behavior over untrusted inputs. | A deployment-wide probability of compromise or a complete adversary model. |
| NIST evaluation and identity work [10,11] | Evaluation considerations and an explicitly draft identity project concept. | Final agent identity requirements or independent product qualification. |
4. Threat model, assets and trusted components
4.1 What the adversary can influence
The principal threat is an adversary able to influence data encountered during a legitimate task: a retrieved document, message, search result, tool response or other external record. A second scenario permits control of a newly connected tool server or its descriptive metadata. A third considers a valid but overprivileged connector credential, a stale authorization decision or an incorrectly shared cache. The evaluation should treat these scenarios separately because the adversary’s knowledge, reach and opportunities differ.
Protected assets include private data, the integrity of resource modifications, authority to contact external destinations, credentials, tenant boundaries and the audit history of delegated operations. The trusted computing base includes the identity verifier, policy evaluator, action gateway and resource-side checks. Trust in those components is an explicit assumption. If an adversary can modify the policy engine and the protected resource without another authority detecting it, the proposed boundary cannot provide the claimed protection.
4.2 Failure classes must not be collapsed into “prompt injection”
Instruction following, authentication, authorization, data-flow restriction and transactional correctness are different properties. A model can follow hostile text but still be stopped by an operation-level policy. Conversely, an agent may never encounter a malicious instruction and still disclose information because a legitimate tool was granted unnecessarily broad read access. Token audience confusion, incorrect tenant resolution and a changed resource state are implementation failures even if the generated plan sounds reasonable. The adversarial-ML taxonomy is useful for stating attacker capabilities and lifecycle threats, while local experiments must define the concrete assets and interfaces. [12]
| Scenario | Boundary under test | Required evidence |
|---|---|---|
| Untrusted document influences a plan | External data must not become delegated authority. | Original source, proposed request and independent policy decision. |
| Tool metadata changes after review | Approval must apply to the executed tool definition. | Registered server identity, schema/version binding and deployment history. |
| Credential is presented to the wrong resource | Audience and issuer must match the receiving service. | Validation outcome and the selected resource identity; no token secrets in logs. |
| Approval is reused for a changed target | The executed request must match the approved request. | Canonical target, argument binding, approval expiry and refusal record. |
| Tenant data enters another tenant’s context | Storage, retrieval and caching must preserve tenant separation. | Data labels, access decisions and cross-boundary negative tests. |
| Authorization is withdrawn during a workflow | Enforcement must observe the declared revocation policy. | Expiry, revocation state, cache version and resource-side action time. |
5. Reference architecture and authority separation
The agent planner should produce a candidate operation rather than hold a general administrative credential. A separate execution service resolves the target, verifies identity and delegation, applies policy, obtains any required approval and invokes the permitted interface. The receiving resource validates its own request context and authorization. This avoids relying on a single prompt, client-side check or conversational assertion that the user approved an action. Each component should have a documented failure behavior and a limited ability to alter the others.
Equation 1. Proposed non-escalating permission model. Each set represents permitted operations under a stated context. Composition should narrow authority rather than form a union of unrelated grants. Implementations must also preserve tenant, purpose, time and target constraints; a set label alone is not an authorization mechanism.
The evidence path should retain provenance, sensitivity and uncertainty. A tool response may be structurally valid while containing false facts or hostile instructions. Its schema establishes a format, not an authority level. The execution path should accept only a defined action vocabulary, with typed arguments and explicit side effects. Where possible, credentials are acquired or resolved inside that path and are never included in model-visible context. The design must also cover downstream APIs whose credentials differ from the MCP server’s access token.
An audit record should connect user intent, agent identity, proposed action, policy version, approval, actual request and observed result. It should avoid storing reusable secrets and unnecessary sensitive content. A stable event identifier supports correlation across services, while timestamps and collection-health records expose ambiguity about ordering or missing events. An acknowledgement proves that a service accepted a request only according to its documented semantics; a separate postcondition may be needed to establish that the intended change occurred.
6. Identity, delegation and token boundaries
6.1 Authenticate the connection and authorize the operation
For the pinned MCP HTTP authorization profile, the server acts as a resource server and must validate tokens for its intended audience. This is a connection and resource-access requirement, not a complete statement of which objects or operations the caller may use. The application still needs tenant resolution, object-level permission checks and meaningful scope. Local stdio deployments have a different credential context and should not be described as inheriting the HTTP authorization flow merely because both use MCP. [1]
RFC 9700 provides OAuth security guidance, and RFC 8707 allows explicit indication of the resource for which access is requested. In an enterprise connector, validate issuer and audience according to the chosen profile rather than accepting a token because its structure or signature looks familiar. Treat discovery metadata and redirects as inputs to a configured trust policy. Resource selection, redirect behavior and server identity must remain bounded; a model-provided URL must not be allowed to redefine the authority that validates it. [4] [5]
6.2 Delegation should preserve who acts and for whom
A delegated request should distinguish the human or service that owns the task from the software actor executing it. RFC 8693 defines token exchange with support for delegation and impersonation semantics; using it requires actual authorization-server support and a defined local policy. It does not automatically grant an arbitrary agent chain permission to propagate authority. At every handoff, document which actor, subject, audience, scope and expiry the receiving service relies on. [6]
Do not forward an MCP access token to an unrelated upstream API as a shortcut to credential management. The MCP security guidance explicitly addresses token passthrough and confused-deputy risks. A connector needs a valid, separately scoped relationship with the upstream resource and must bind that relationship to the intended user and tenant. Shared service credentials require additional application-side authorization and cannot be treated as equivalent to each user’s consent. [2]
6.3 Richer permission descriptions still need resource enforcement
Some tasks require more detail than a short scope string can express, such as a particular operation on a specified resource. RFC 9396 defines rich authorization requests, which can carry structured authorization detail in supporting systems. This is a useful design building block, not a requirement imposed here on every MCP implementation. The resource must understand and enforce the chosen representation, and the application must confirm that a narrowed request is not silently replaced by a broader grant. [7]
Equation 2. Proposed request-admission invariant. Unknown or contradictory authorization attributes require a declared refusal or escalation path. The expression separates authentication from delegated business permission and current state; it does not claim that a protocol implements the whole invariant.
7. Tool discovery, versioning and local execution
A tool description is a statement made by a server, not independent evidence that the implementation behaves as advertised. The pinned MCP tools specification treats annotations as untrusted unless their source is trusted. It also scopes tool-name uniqueness to a server; a server’s descriptive name is not a globally unique security identity. A controlled catalogue should therefore bind a registered server identity to tool names, versions, schemas, deployment ownership and reviewed permissions. [3]
Review changes to tools as changes to executable capability. A tool that adds an optional destination argument or broadens accepted resource identifiers can materially change the authorization surface without changing its friendly name. Cache invalidation should be connected to definition and policy changes. Approvals should bind to the relevant tool version or an equivalent stable contract, and a request using an unexpected contract should be rejected or require renewed review.
Local tool servers also create a process boundary. Their package source, executable path, update channel, environment variables, filesystem access and network permissions need explicit treatment. A locally launched process is not trustworthy merely because it runs on the same workstation as the client. Prefer an execution environment with only the files, credentials and network paths required for its role. Tool installation and startup should not allow retrieved content to select arbitrary executables or acquire a broader environment.
For remote servers, restrict discovery and outgoing requests according to the organization’s network policy. Distinguish intentionally configured local resources from arbitrary discovered addresses. Define behavior for redirects, changed destinations, private address resolution and unavailable trust metadata. These checks should be implemented at the component that actually opens the connection. Prompt instructions to avoid certain addresses do not substitute for network enforcement.
8. Approval binding, state changes and side effects
An approval interface should show a meaningful operation, canonical target, important arguments, destination, tenant and expected effect. It should not ask the user to approve an opaque model-generated label. For a consequential action, the executing component should compare the actual request with the approved representation and check the current resource state. Otherwise, a correct approval can be followed by an operation on changed data or a different target.
Equation 3. Illustrative binding of approval-relevant fields. Canon must be a deterministic, unambiguous representation; H is an appropriate cryptographic hash. The approval record must also bind actor, expiry and a unique request identifier. A digest without authenticated approval and enforced comparison provides no authorization guarantee.
Canonicalization must be specified where aliases, encodings or default arguments can change meaning. A display name is not a resource identifier. If a resource version, transaction condition or other precondition matters to the decision, verify it at the side-effect boundary, using supported conditional operations where possible. A stale precondition should require a new decision rather than silently applying the earlier approval to a new state.
Retries need separate attention. Use idempotency semantics where the underlying service supports them, preserve the same action identity for a retried operation and distinguish an unknown outcome from a verified failure. A timeout after a remote write may mean the write succeeded but the response was lost. Repeating it as a new action can create an unintended duplicate. A recovery procedure should reconcile state before selecting a further action.
9. Data access, information flow and tenant isolation
Read access can be consequential even without a write or network-send operation. Private data placed into a model context, an external inference service or an incorrectly shared cache may already have crossed a trust boundary. Begin with the minimum data needed for the current task, preserve source permissions during retrieval and apply tenant context before search results are returned. A tool’s technical ability to read an entire repository is not evidence that the user delegated that scope for every task.
Attach appropriate sensitivity and provenance information to data as it enters the workflow. Derived summaries can remain sensitive even when they no longer contain a copied document verbatim. Output controls should cover tool calls, generated documents, logs, retrieval indexes and other destinations, rather than only a final chat response. Policy should identify allowed sinks and the conditions for declassification or approval. Content filtering can contribute evidence, but cannot reliably replace identity and destination controls.
A multi-tenant evaluation should test storage partitions, vector retrieval, response caches, conversation persistence, shared connectors and action queues. The same request issued under two tenants should not reuse another tenant’s authorization state or private results. Log correlation identifiers are useful for diagnosis but should not become bearer credentials. Disconnecting a client or starting a fresh conversation does not necessarily revoke a credential or erase backend state; those lifecycle transitions must be defined and measured.
10. Reproducible analytical methods
10.1 Workflow exposure and the role of a gate
Equation 4. n consistently defined tool-decision opportunities with identical independent event probability p. An event could be a specified unsafe proposal, but its definition must remain fixed. This is a hypothetical sensitivity model, not a measured prompt-injection probability.
The model uses n from one to 200 and p values of 0.0001, 0.001 and 0.01. Independence across decisions is an explicit simplification; real errors can cluster by task, content source or compromised component. Without independence, a union bound gives a conservative upper bound of min(1, np) for equally bounded marginal probabilities, not an exact prediction. The purpose is to show why a per-call result cannot be interpreted as a workflow-level guarantee.
Equation 5. q is the probability of escape conditional on the specified unsafe proposal, so p q follows from conditional probability. The workflow expression additionally assumes independence of residual events across decisions. q = 0.01 is an illustrative input, not a measured gate error rate or a claim that every semantic violation can be detected.
10.2 Stale authorization
Equation 6. Worst-case window after a policy-invalidating event: T bounds remaining token validity, D bounds detection or recognition, and C bounds propagation plus enforcement-cache delay. The online bound applies only if the actual action path observes those bounds. Clock uncertainty and additional validation delays must be budgeted in a real implementation.
Token lifetimes span 30 to 3,600 seconds. The illustrative online path assumes D = 60 seconds and C = 30 seconds. An expiry-only bearer-token check does not inherit a revocation bound simply because another service records revocation. Unconstrained refresh credentials or a resource that ignores changed policy invalidate the simplified comparison. The graph describes a bound, not the expected time of malicious use or a claim that ninety seconds is an acceptable enterprise requirement.
10.3 Limits of zero-failure testing
Equation 7. One-sided exact binomial upper failure-probability bound after zero failures in m independent representative trials. The second expression gives the trial count for a selected upper target u*. Here α = 0.05. Similar prompt variants, adaptive selection and correlated workflows do not automatically constitute independent trials.
The calculation uses trial counts from ten to 100,000 and does not generate attack traffic. A target upper probability of 0.001 requires at least 2,995 zero-failure trials under the model’s assumptions. This is a statistical statement about the sampled trial distribution, not proof of an implementation invariant or a bound against every adaptive adversary. If test cases share a task template, credential boundary or failure cause, the nominal number of cases can overstate the effective amount of evidence.
11. Analytical results and interpretation
For the chosen IID input p = 0.001, the probability identity gives 4.879% over fifty opportunities and 18.135% over two hundred. These values are conditional arithmetic, not measured agent or MCP failure rates. Introducing the independently chosen gate-escape value q = 0.01 changes the fifty-opportunity calculation to approximately 0.04999% by construction. It supplies no evidence that a real gate achieves that value or reduction. Correlation, shared failure causes and adaptive behaviour invalidate a literal field interpretation.
A short access-token lifetime is useful but insufficient to describe revocation. The decisive question is where invalidation becomes enforceable. If an upstream API uses a separate long-lived credential, revoking the MCP token may stop new server access without withdrawing an operation already authorized downstream. Tests should therefore follow the actual request and credential chain, including retries, cached decisions, long-running work and any means of acquiring a replacement token.
| Quantity | Calculated result | Interpretation boundary |
|---|---|---|
| 50 decisions; p = 0.001 | 4.879% chance of at least one event. | Assumes identical independent decisions. |
| 200 decisions; p = 0.001 | 18.135% chance of at least one event. | Does not model adaptive or correlated behavior. |
| 50 decisions; p = 0.001, conditional q = 0.01 | 0.04999% residual workflow probability. | q is assumed and event semantics must be fixed. |
| Token validity 900 s; D = 60 s, C = 30 s | Expiry-only bound 900 s; online bound 90 s. | Online bound requires enforcement of every assumed delay. |
| Zero failures in 1,000 independent trials | 95% upper failure probability about 0.2991%. | A statement about a representative Bernoulli trial distribution. |
| Zero failures in 10,000 independent trials | 95% upper failure probability about 0.02995%. | Not a proof against all possible adversaries. |
12. Proposed experimental validation
12.1 Freeze the claim and the evaluation environment
Define a useful task set before selecting adversarial content. Record the model and harness versions, system instructions, tool definitions, connector permissions, resource state, relevant protocol revision and all policy configuration. Separate public benchmark reproduction from enterprise-specific cases. A change to tool access or user authority can change the task itself, so comparisons must document those changes rather than crediting a model with an improvement caused by a narrower environment.
Use isolated, owned services, synthetic accounts and non-sensitive markers for tests. Ground truth should describe the legitimate objective, permitted resources, authorized effects and the event that would violate policy. No test needs to disclose real secrets or modify a production system. Evaluate plain legitimate tasks as well as tasks containing hostile external content. If a legitimate task cannot be completed under the chosen permissions, its failure must not be counted as a successful security defense.
12.2 Test the action boundary independently of the model
Supply deliberately invalid candidate requests directly to the enforcement interface, without relying on a model to generate them. Cases should include an incorrect tenant, unsupported operation, altered target, changed sensitive argument, unreviewed tool version, expired approval and a resource precondition that no longer holds. Observe refusal at the component capable of creating the side effect. A client warning or a favorable explanation is not enough if another supported path can execute the same invalid request.
Then evaluate the complete agent workflow under the same cases, retaining every proposed operation and policy outcome. Compare a prompt-only baseline with the identical model behind an independent action boundary. Keep task permissions, available evidence and relevant inference settings matched. This isolates the contribution of enforcement from the model’s ability to interpret instructions. Report both model-level unsafe proposals and executed policy violations; collapsing them hides which boundary worked or failed.
12.3 Evaluate data flow and lifecycle transitions
Use synthetic sensitive markers to inspect where data travels through retrieval, model context, tools, logs, generated artifacts and external destinations. Test tenant changes and repeated sessions with shared caches enabled. Revoke or narrow access during an extended workflow and record when each enforcement point changes its decision. Include interrupted work, retried operations and tool-definition changes. Restore previous versions only through a documented process that does not silently restore an obsolete permission grant.
For adversarial evaluation, separate a fixed public suite from a development set and an untouched confirmation set. State the attacker’s allowed influence, number of attempts and knowledge. Evaluate adaptive attempts within an authorized test environment and distinguish them from best-of-many selection on a reused benchmark. Published agent benchmarks and NIST’s methodological discussion motivate such explicit conditions; this article supplies no new empirical success rate for them. [8] [9] [10]
| Property | Required observation | Insufficient substitute |
|---|---|---|
| Correct delegation | Subject, actor, tenant, audience and resource decision match the task. | A valid login or a token with a recognizable format. |
| Approval binding | Changed approval-relevant fields are rejected before a side effect. | A generic confirmation that omits the target or operation. |
| Useful security | Legitimate-task utility and executed-violation rate under matched conditions. | Refusal of every operation or a single aggregate benchmark score. |
| Tenant isolation | Negative retrieval, cache and execution tests across synthetic tenants. | Separate chat windows with an unexamined shared backend. |
| Revocation | Measured propagation on each actual credential and execution path. | A central dashboard marking a token or user as revoked. |
| Recoverable execution | Idempotent retry or reconciliation plus verified postconditions. | Assuming that an API timeout means no change occurred. |
13. Metrics, uncertainty and reproducibility
Use at least four distinct outcome families: clean-task completion, completion under untrusted-content conditions, unsafe proposals and executed policy violations. Add intervention rate, time-to-completion, resource consumption and factual support of explanations. Define every denominator. The attack-success rate among attempted cases is not the same as the probability that an ordinary production task results in a harmful action. A model’s ability to finish legitimate work is a necessary part of interpreting a low violation rate.
Group repeated or closely related cases by task, resource boundary and source template when estimating uncertainty. A large collection of similar prompt strings does not automatically provide independent evidence. Use held-out task families or environments where feasible, and report the effect of model and tool version changes. When a confidence interval relies on a sampling assumption, state that assumption beside the interval. The zero-failure example in this paper should not be applied to an adaptive adversary as if its attempts were a random sample from a stable distribution.
Record missing or ambiguous outcomes rather than discarding them. A timed-out action may require resource reconciliation to classify, while an agent that never reaches the side-effect step may have failed the legitimate task. Preserve the original evidence, action candidates, policy decisions and resource-side receipts with sensitive values appropriately protected. Release a sanitized experiment manifest and the evaluation code when possible, so that another team can reproduce the claimed scope rather than only rerun the prompt.
14. Discussion and open research directions
The proposed design separates behavioral robustness from execution authority. Better instruction-following models and prompt-injection defenses can reduce unsafe proposals, while resource policy limits which proposals can take effect. Neither replaces the other. A boundary that enforces a simple scope may still permit a harmful action within that scope, and a semantically careful model cannot compensate for an unauthenticated alternate execution path. Research should therefore identify the class of violations each component can detect or prevent.
Priority research directions include policy-preserving tool composition, permission attenuation across multiple agents, provenance-aware retrieval, version-bound approvals and evaluation of delayed or asynchronous effects. Another important problem is measuring legitimate utility under permissions that match the task rather than granting every tool unrestricted access. A useful benchmark should expose the distinction between insufficient authority, model task failure, successful policy enforcement and a genuine security violation.
The principal limitations are the purposive source selection and the simplified analytical assumptions. The workflow model does not estimate an adaptive adversary’s behavior; the revocation model assumes enforceable delay bounds; the zero-failure interval assumes representative independent trials. The reference architecture depends on trusted identity and execution components and does not prove that an implementation satisfies its invariants. These limits support a staged empirical program, not a claim that any diagram or protocol alone makes an agent safe.
15. Conclusions
Securing an agent toolchain requires more than authenticating an MCP connection or asking a model to ignore hostile instructions. The system must preserve who delegated authority, which resource and operation were authorized, where private data may flow and whether the actual execution still matches the approved context. This paper proposes an independently enforced action path, constrained credentials, versioned tool contracts and resource-side verification as the basis for a testable assurance argument.
The analytical results show how workflow length, credential lifecycle and limited test evidence affect interpretation. The next defensible result would be a controlled comparison with matched legitimate tasks, explicit adversary conditions, direct negative tests of the execution boundary and reproducible resource-side outcomes. Such evidence could establish a useful operating envelope while retaining visibility into residual semantic and implementation failures.
16. Data, code and research declarations
The scientific plots are deterministic calculations from scripts/agent_security_study.py. Downloads include the source snapshot, pinned numerical dependencies, three CSV datasets, parameter/result manifest and high-resolution figures. The trust-boundary and approval-binding diagrams are original explanatory graphics. The generated cover is an editorial concept. No real credentials, customer records, exploit payloads or attack traffic are included; reproduction performs local computation and plotting only.
This is a technical research study combining a focused literature review, original analytical examples and proposed experiments. No new benchmark results or participant study is reported, and no claim of journal peer review or product qualification is made. The site is operated by a commercial technology company; the calculations do not establish independent certification or measured product efficacy. Protocol references are version-pinned where possible, and future implementations should review subsequent specifications and errata.
References
- Model Context Protocol contributors. Authorization. MCP specification revision 2026-07-28.
- Model Context Protocol contributors. Security Best Practices. MCP documentation, versioned 2026-07-28; accessed 29 October 2026.
- Model Context Protocol contributors. Tools. MCP specification revision 2026-07-28.
- Lodderstedt, T., Bradley, J., Labunets, A., and Fett, D. Best Current Practice for OAuth 2.0 Security. RFC 9700 / BCP 240 (2025).
- Campbell, B., Bradley, J., and Tschofenig, H. Resource Indicators for OAuth 2.0. RFC 8707 (2020).
- Jones, M., et al. OAuth 2.0 Token Exchange. RFC 8693 (2020).
- Lodderstedt, T., Richer, J., and Campbell, B. OAuth 2.0 Rich Authorization Requests. RFC 9396 (2023).
- Zhan, Q., Liang, Z., Ying, Z., and Kang, D. InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents. Findings of the Association for Computational Linguistics: ACL 2024.
- Debenedetti, E., et al. AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents. NeurIPS 2024 Datasets and Benchmarks Track; original release.
- National Institute of Standards and Technology. Technical Blog: Strengthening AI Agent Hijacking Evaluations. Original technical evaluation discussion (2025).
- Booth, H., Fisher, B., Galluzzo, R., and Roberts, J. Accelerating the Adoption of Software and AI Agent Identity and Authorization. NCCoE draft concept paper, February 2026; not a final standard.
- Vassilev, A., et al. Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations. NIST AI 100-2e2025 (2025); consult publication updates.