Skip to content

Controlled autonomy for agentic AI: a layer-by-layer evaluation of policy enforcement, cryptographic identity and isolationControlled Autonomy for Agentic AI: A Layer-by-Layer Evaluation of Policy Enforcement, Cryptographic Identity and Isolation

Hisham Ali, Vasileios Mavroeidis, Nikolaos Pitropakis, Sana Ullah Jan, Jawad Ahmad, Madjid G. Tehrani, William J Buchanan
University of St Andrews; University of Oslo; Deree, The American University of Greece; Edinburgh Napier University; Prince Mohammad Bin Fahd University
arXiv: Adversarial Attacks, Backdoors & PoisoningarXiv:2611.41714Originally published Indexed by this site · 2 days agoDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors perform a layer-by-layer ablation of an agent's external control plane: on ten synthetic corpora the policy improves over RBAC by 6.2 percentage points, and AgentDojo replay blocks 88.9% of side-effect injection goals.

Threat modelThe agent only proposes actions, and an external control plane enforces complete mediation. Adversaries can inject instructions directly or via retrieved content, abuse tools, escalate privileges, contaminate memory, forge or reuse credentials across requests, access across tenants, steal data, and exploit policy conflicts; the host OS, key management service, or external security authorities are not controlled, and hardware and physical attacks are out of scope.

Questions
Agents connect language model reasoning with tools, credentials and data, and security failures can become executed actions. The authors focus on how to separate reasoning from execution authorization and quantify the respective benefits and costs of policy, contextual risk, cryptographic identity and isolation.
Methods
Propose a controlled autonomy layered architecture: the agent only submits requests, and an external control plane checks in sequence the Ed25519 credential, deterministic policy and risk, and HMAC proof, then decides whether to execute. Ablate 2,000 synthetic requests with six configurations, and replay real benchmark calls on AgentDojo v1.2.2.
Experiments and results
On ten synthetic corpora, the external policy's Prevention gain relative to RBAC is 6.2±0.5 percentage points, and relative to the tenant-aware baseline is 2.3±0.4 percentage points. The AgentDojo replay blocks 523/588 side-effect injection targets, and all calls of 91/97 user tasks are permitted; several content-type attacks still have residual success.
Limitations and future work
The authors note that the corpora, baselines and policies were all designed by the authors, and that requests are structured records containing no natural language or multi-step attacks; AgentDojo uses ground-truth replay rather than a live model. Isolation is only an in-process surrogate, no published defenses were run for comparison, and latency is measured only in-process on a single machine.
Experimental setup2,000 synthetic structured requests、AgentDojo v1.2.2 · Prevention、AttackSuccess et al.
Metrics
PreventionAttackSuccessFalseDenyin-process latencyUtility keptBlocked
AI summaryThe researchers propose a layered defense architecture in which the agent only proposes actions, and an external control plane verifies identity, assesses policy and contextual risk, and checks proofs before tool execution; they conduct layer-by-layer ablations on 2000 synthetic requests covering eight attack categories and on the AgentDojo benchmark. On ten synthetic corpora, external policy enforcement achieves a blocking rate 6.2 percentage points higher than role-based access control, but most of this comes from tenant binding; relative to the tenant-aware baseline, the policy layer adds a further 2.3 percentage points, with a false rejection rate of about 4%. Cryptographic credential and proof checks can stop credential-theft attacks that pass all attribute-level rules, and once decoupled, each can catch cases the other misses. On AgentDojo, a gateway built on the same principles intercepts 88.9% of injection goals with side effects, and 91 of 97 user tasks are unaffected; however, memory poisoning, policy conflicts and prompt injection still partially succeed under all configurations. Because tool calls are synthetic or replayed rather than generated by a live model, the results characterize the control decision path rather than end-to-end agent robustness.

The researchers propose a layered defense architecture in which the agent only proposes actions, and an external control plane verifies identity, assesses policy and contextual risk, and checks proofs before tool execution; they conduct layer-by-layer ablations on 2000 synthetic requests covering eight attack categories and on the AgentDojo benchmark. On ten synthetic corpora, external policy enforcement achieves a blocking rate 6.2 percentage points higher than role-based access control, but most of this comes from tenant binding; relative to the tenant-aware baseline, the policy layer adds a further 2.3 percentage points, with a false rejection rate of about 4%. Cryptographic credential and proof checks can stop credential-theft attacks that pass all attribute-level rules, and once decoupled, each can catch cases the other misses. On AgentDojo, a gateway built on the same principles intercepts 88.9% of injection goals with side effects, and 91 of 97 user tasks are unaffected; however, memory poisoning, policy conflicts and prompt injection still partially succeed under all configurations. Because tool calls are synthetic or replayed rather than generated by a live model, the results characterize the control decision path rather than end-to-end agent robustness.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Separate agent reasoning from execution authorization, and use layer-by-layer ablation to quantify the benefits and costs of external policy, cryptographic checks, and isolation.

    The core question is: how can actions proposed by an agent obtain auditable, per-request authorization without equating reasoning capability with operational permission.

    • Problem setting: The authors argue that once an agent combines planning, persistent memory, tool calling and autonomous execution, the security boundary extends from the model to the entire action path; attacks such as indirect prompt injection may let untrusted content influence tool use.
    • Gap in existing research: The authors state that prior work mostly studies attack evaluation, authenticated delegation, information flow control, and plan- or call-level execution constraints separately, and rarely combines policy, contextual risk, cryptographic identity and isolation on the same request path while separately measuring benefit, false denial and latency.
    • Core observation: The authors adopt controlled autonomy, letting the agent only propose actions while an external authority decides whether to execute based on identity, policy, risk and attestation, applying least privilege, complete mediation and zero trust to the execution path.
    • Threat model:
      • Goal: The adversary attempts to achieve the malicious goal of the test case under the configured controls, including unauthorized tool calls, cross-tenant access and data exfiltration.
      • Knowledge and capability: Can inject instructions directly or via retrieved content, misuse tools, escalate privileges, poison memory, forge or reuse credentials across requests, and exploit policy conflicts.
      • Victim system: An agentic application composed of the agent, model and memory, data resources, tools, identity credentials, policy P and the execution environment.
      • Boundaries: The adversary does not control the host OS, key management service or external security authority; hardware and physical attacks are out of scope.
    • Paper contributions: A layered architecture, a mapping from eight attack classes to controls and tests, a six-configuration ablation, and an AgentDojo policy gateway; the authors emphasize that the contribution is the combination and layer-by-layer measurement, not any single mechanism.
  2. What related research exists?

    Related work covers attack surfaces, deterministic authorization, tool-call execution constraints and cryptographic building blocks; this paper positions itself as combining controls and performing cross-layer ablation.

    Attack surface and agent capabilities

    • Greshake et al. (2023), AgentDojo (2024), UDora (2025): respectively study indirect prompt injection, injection attack and defense evaluation for tool-based agents, and automated red teaming by hijacking agent reasoning.
    • Jing et al. (2026): study memory contamination, making persistent retrieval state a long-term attack surface.
    • ReAct (2023), Toolformer (2023): respectively provide reasoning-and-action coordination and language model tool-use learning, which are the foundations of agent capabilities described by the authors.

    Authorization and deterministic guarantees

    • South et al. (2025): argue that agents acting through delegated credentials require authenticated delegation.
    • Fides (2025), Doshi et al. (2026), CaMeLoT (2026): respectively adopt information flow control, verifiable tool-use specifications, and temporal logic plan verification; the authors summarize these works as supplementing probabilistic model defenses with executable constraints.
    • Existing distributed trust systems (2022, 2025): provide tamper-evident logging practices, and this paper's evidence log follows this direction.

    Tool-call execution control

    • CaMeL (2025): separates a privileged planner from an isolated model that handles untrusted data, attaches capabilities to values, and checks per-call policies according to data provenance.
    • Progent (2025): intercepts tool calls at runtime and checks fine-grained parameter constraints written in a policy language.
    • CaMeLoT (2026): converts CaMeL plans into finite-state systems and model-checks temporal properties before tools run. The authors state that this paper's policy expressiveness is lower than these three, consisting only of four fixed attribute rules and risk bounds; CaMeLoT verifies an entire plan, which is complementary to per-call checking.

    Cryptographic building blocks and experimental comparisons

    • Building blocks: AES-GCM and Ed25519 enter the evaluation path; ML-KEM and ML-DSA undergo only primitive-level validation, and CP-ABE, FHE/CKKS, ZKP, and hardware TEE are extension points. The authors cite TEE side-channel research, so they do not equate in-process isolation substitutes with TEE.
    • Baselines and benchmarks: the synthetic experiments compare against C1 role-based access control and C1b Tenant ACL; external evaluation uses AgentDojo v1.2.2. The authors explicitly state that they did not run published defenses for comparison.

    The authors position this paper as: not proposing a new policy language or planner, but combining existing controls on the same request path, and measuring each layer's contribution with a tenant-aware baseline, confidence intervals, and ten corpora; Table I is only a positioning framework, not a claim that existing systems lack individual features.

  3. How does the paper address this problem?

    Unify credential, policy, risk, and proof checks with an execution predicate, then measure each layer separately with six-configuration ablation and AgentDojo replay.

    The overall approach is a controlled autonomy layered architecture: untrusted agents only submit structured requests, and a trusted control plane performs verification and authorization; denied actions are not executed, and all decisions are recorded as signed evidence.

    Request path and execution predicate

    • Request x contains identity u, resource r, operation o, trust t and context c; tools and parameters are observed by the gateway at interception, and role, tenant and trust cannot be set by the agent itself.
    • The core rule is Execute(x) ⇔ A(x) ∧ P(x) ∧ V(x) ∧ R(x) ≤ τ: execution occurs only if credentials, deterministic policy and worker attestation all pass and risk does not exceed the threshold; when a check is not enabled, the corresponding term is fixed at 1.
    • The authors state that this formula specifies the rule the prototype should execute, not a correctness proof; the experiments test whether the prototype executes according to it.

    Policy, risk and cryptographic evidence

    • P(x) contains four rules: the tool is within the role allow-list; restricted data requires the admin role; the target tenant equals the requester's tenant; delegated requests require trust t≥0.65.
    • Risk is defined as R(x)=0.35Rprompt+0.25Ruser+0.20Rcomp+0.20·100(1−t), with each risk component between 0 and 100 and t between 0 and 1; the weights and τ are policy parameters, not probabilities.
    • A(x) verifies the issuer's Ed25519 signature over the request identifier, role and tenant binding; the token does not bind operation or resource, which are checked by policy. V(x) compares the HMAC-SHA256 attestation tag in constant time.
    • Approved requests protect resources using AES-GCM; C5 additionally signs and verifies an evidence record for each allow or deny decision.

    Isolation and mechanism boundaries

    • The isolation step in C4 and C5 is an in-process surrogate that serializes and hashes the request before execution; it does not create a process or memory boundary, nor is it a hardware TEE.
    • ML-KEM-768 and ML-DSA-65 run only in standalone primitive tests, not on the benchmark path; CKKS/FHE, lattice CP-ABE, ZKP and hardware TEE are neither implemented nor benchmarked.
    • Complete mediation assumes the agent holds no tool credentials, the gateway attaches credentials after approval, and all tools, external services and outbound connections pass through the gateway.

    Synthetic workload and six configurations

    • Fixed seed 20260920 generates 2,000 structured requests: 907 benign and 1,093 adversarial; the eight attack classes are, in order, prompt injection 206, tool misuse 192, privilege escalation 151, data exfiltration 130, memory poisoning 145, credential compromise 101, cross-tenant access 91, and policy conflict 77.
    • Of the 907 benign requests, 555 have ground-truth permit; the correct outcome for the remaining 352 is still deny, of which 287 have tools outside the role list, 98 access restricted data without the admin role, and 33 violate both rules.
    • C1 is RBAC, C1b adds tenant binding, C2 is an external policy and risk gateway, C3 adds Ed25519 and AES-GCM, C4 adds attestation verification and an isolation surrogate, and C5 combines all mechanisms and records signed evidence; default τ=75.
    • The decision engine sees only tokens and reports, not the generator's ground-truth labels; the full experiment is repeated on ten corpora with seeds 20260920–20260929, and the main table uses the first.

    Metrics and AgentDojo protocol

    • Prevention is the proportion of adversarial requests blocked, and AttackSuccess is 1 minus Prevention; FalseDeny uses the 555 permit requests as denominator. Proportions use 95% Wilson intervals, and paired differences between configurations use percentile bootstrap with B=2,000.
    • The AgentDojo v1.2.2 gateway uses destination binding and intent binding fixed before evaluation, and does not see injection content or attack labels.
    • Ground-truth calls are replayed for 949 user–injection pairs; a pair is recorded as blocked as long as at least one of the reference calls of the gateway-injected task is blocked, rather than using AgentDojo's own security predicate.
    • Latency measures only the in-process decision path on a single machine, excluding network, model inference, external policy servers and concurrency; values below about 1 microsecond are given only as order-of-magnitude upper bounds.
  4. What experiments did the paper conduct?

    Six-configuration ablation shows the main benefit comes from tenant binding; cryptographic checks fill the blind spots of attribute rules, but content-based attacks still have residual success.

    Experimental setup

    • Subjects: Six control plane configurations C1, C1b, C2, C3, C4, C5; the experiments did not run a live language model, synthetic requests are structured records, and AgentDojo uses ground-truth replay.
    • Synthetic data: 2,000 requests in the main seed, including 1,093 adversarial requests and 555 ground-truth permit requests; the full pipeline is repeated on ten fixed-seed corpora.
    • External benchmark: All 949 user–injection pairs of AgentDojo v1.2.2, of which 588 pairs have targets requiring side-effect tool calls; Utility kept is also counted for 97 user tasks.
    • Baselines: C1 Baseline is role-based access control plus restricted-data rules; C1b Tenant ACL adds tenant binding on top of this.
    • Metrics and statistics: Prevention, AttackSuccess, FalseDeny and p50/p95/p99 in-process latency; 95% Wilson intervals and paired bootstrap with B=2,000; no statistical significance tests are reported.
    • Runtime environment: Python 3.11.16, Apple Silicon macOS ARM64; monotonic clock resolution 41.67 ns; no network or end-to-end agent latency is reported.

    Main results

    At main seed τ=75, the results for each configuration are as follows (per Table IV; FD denominator is 555, and C2–C5 are all 26/555):

    Swipe horizontally to read the table

    ConfigurationBlocked/1,093Prevention95% Wilson CIFDp50 (ms)p95 (ms)
    C1 Baseline73767.43%64.59–70.140.00%0.000170.00025
    C1b Tenant ACL79072.28%69.55–74.850.00%0.000250.00029
    C2 Policy-only81574.57%71.90–77.064.68%0.000460.00054
    C3 Cryptographic82375.30%72.65–77.764.68%0.000580.07259
    C4 Attestation82375.30%72.65–77.764.68%0.000580.00267
    C5 Hybrid82375.30%72.65–77.764.68%0.096580.17483
    • RQ1: C1 to C2 blocks 78 more, with a paired bootstrap difference of 7.14 pp (95% CI 5.67–8.60); of these, C1b alone blocks 53 cross-tenant requests. C1b to C2 blocks only 25 more, a difference of 2.29 pp (95% CI 1.46–3.20), and the authors therefore state that most of the benefit does not require an external authorization authority.
    • RQ2: C3, C4 or C5 each block the same 8 additional credential compromise requests, an increment of 0.73 pp (95% CI 0.27–1.28); the role, tool, tenant and trust of these requests are all legitimate, and the authors state that attribute-level rules cannot see this gap.
    • Cost and monotonicity: C2–C5 falsely deny 26 permit requests, of which 20 are below the delegated trust floor and 6 exceed the risk threshold; in the main seed, no enhanced configuration re-permits a request already blocked by a weaker configuration.

    Results by attack family and decoupling experiment

    • Rule-visible attacks: Per Table V, privilege escalation is blocked 151/151 in all configurations; cross-tenant access rises from 38/91 in C1 to 91/91 in C1b and later. The authors state that these families measure whether rules are configured, not the value of contextual policy.
    • Residual success: At τ=75 in C3–C5, memory poisoning succeeds 84/145 (57.9%), policy conflict 37/77 (48.1%), prompt injection 96/206 (46.6%), tool misuse 40/192 (20.8%), and data exfiltration 13/130 (10.0%); the identity and attestation layers do not change these results.
    • Credential and attestation decoupling: After independently reassigning bad credentials and tampered reports, among the 8 requests in the main seed that pass policy, C3 blocks 5, C4 blocks 4, and C5 blocks 8; across ten seeds the totals are 61 for C3, 58 for C4, and 92/92 for C5. The authors state that each of the two checks can catch cases the other misses.

    AgentDojo gateway replay

    Swipe horizontally to read the table

    SuiteUtility keptBlockedNot replayable
    Workspace40/40238/240 (99.2%)320
    Travel20/2079/120 (65.8%)20
    Banking15/16143/144 (99.3%)0
    Slack16/2163/84 (75.0%)21
    All91/97523/588 (88.9%)361
    • Overall results: Per Table IX, the Wilson 95% CI for the side-effect target blocking rate is 86.2–91.2%; Utility kept is 93.8% (95% CI 87.2–97.1%). The authors emphasize that this means ground-truth calls are permitted, not that a live agent can complete the task.
    • Not replayable and missed blocks: Of the 361 pairs, 340 have no ground-truth calls, and 21 only access URLs without side effects. The authors state that the missed blocks in Slack and Travel all act through message or document content, which destination and intent binding do not check.
    • False denial cases: Of the 6 false denials, 5 Slack tasks have new user emails coming from web pages and not present in the request or directory, and 1 Banking task's wording is not recognized by the intent rules; the authors report these as-is and did not tune rules against the benchmark.

    Threshold, robustness and latency

    • Threshold trade-off: Per Table X, under Policy-only, τ=25 gives Prevention 99.91% and False Deny 89.91%; τ=90 gives 73.65% and 3.60% respectively. Lowering τ from 75 to 60 increases Prevention by 8.42 pp (92 requests) and False Deny by 13.87 pp (77 requests).
    • Ten corpora: Per Table VIII, the average Prevention of C1, C1b, C2, C3–C5 is 70.5±1.7%, 74.3±1.9%, 76.7±1.7%, 77.5±1.7% respectively; the FD of C2–C5 is 4.3±0.9%. Every seed maintains C1<C1b<C2<C3=C4=C5。
    • 代表性估计:C2相对C1增益6.2±0.5 pp(范围5.4–7.1),相对C1b为2.3±0.4 pp(1.8–3.1),密码学增量0.8±0.3 pp(0.3–1.2);作者称主种子的7.14 pp是十个语料中的上值,十种子均值更具代表性。
    • 密码学成本:据Table VI,Ed25519 verify平均0.06717 ms、sign平均0.02374 ms,HMAC attestation verify平均0.00140 ms;作者称公钥操作占密码学成本主导,C5逐决定签名是主要延迟来源。

    其他消融与分析

    • 风险权重:Table VII在τ=75、Policy-only下测试五组权重,Prevention为73.65–76.03%,FD为3.60–6.67%。
    • Prompt-heavy权重:0.55/0.15/0.15/0.15时Prevention为76.03%、FD为6.67%,是五组中两者最高的一组。
    • Trust-heavy权重:0.20/0.20/0.20/0.40时Prevention为73.65%、FD为3.60%,R>τ at 0.0%, and the authors state that the risk bound no longer has an effect.
    • Policy scale: Figure 8 and the main text report 0.0005 ms for 5 deterministic predicates and 0.0066 ms for 160; the authors state that cost grows approximately linearly, and the absolute values apply only to this Python implementation.
    • Post-quantum verification: ML-KEM-768 and ML-DSA-65 are verified only at the primitive level outside the 2,000-request benchmark, and the authors explicitly do not treat this as end-to-end post-quantum security evidence.
  5. What are some points that can be further explored?

    The authors list boundaries such as the synthetic generation assumptions, the replay protocol and the isolation surrogate, and propose future work such as live-model runs and semantic defenses.

    Limitations and future directions noted by the authors

    • Generation and policy from the same source: Section VIII notes that the corpora, baselines and policies were all designed by the authors, and the policy may encode the structure of the test attacks; the distribution is not fitted to real attacks, and the ten seeds are only different samples from the same generator.
    • Attack visibility assumption: Section VIII notes that other generation assumptions were not tested, such as attacks where all attributes appear benign; the results do not apply to agents whose malicious intent cannot be seen from request attributes.
    • Credential and risk inputs: Section VIII notes that compromised credentials are forged or transferred across requests rather than stolen, and that a full duplicate submission of a valid request still passes A(x); attestation uses symmetric keys, and user-risk is uniform random noise.
    • Trust and implementation boundaries: Section VIII notes that the isolation surrogate is not a TEE, cryptographic controls depend on construction, parameters and key management, policy depends on correct specification, and risk scores may produce false precision.
    • Live-model follow-up: Section IX plans to run the AgentDojo harness with live models to test non-deterministic agent behavior and responses after denial; Section VIII states that this is left to an extended version.
    • Follow-up mechanisms and comparisons: Section IX proposes studying semantic defenses for residual attack families, key-theft and insider scenarios, and plan verification combined with runtime enforcement, running CaMeL and Progent on the same AgentDojo pairs, and replacing the simulated layers with CP-ABE, CKKS/FHE, ZKP and hardware TEE.

    Scope of experimental coverage

    • The subjects are six control plane configurations; neither the synthetic experiments nor the AgentDojo results come from a live model, and the paper does not list any language model as a tested or reviewed model.
    • The synthetic main experiment is 2,000 structured requests covering eight attack classes; the ten corpora come from seeds 20260920–20260929, and the requests omit natural language and multi-step attacks (Sections V, VIII).
    • AgentDojo covers the Workspace, Travel, Banking and Slack suites of v1.2.2 and 949 pairs; of these, 588 pairs have decidable side-effect targets and 361 are not replayable (Table IX).
    • Section VIII explicitly states that no published defenses were run for comparison; latency is measured only in-process on a single machine, and some values are close to the clock resolution.
    • The experiments do not measure the containment value of a real isolation boundary or the confidentiality and integrity benefit of AES-GCM under a stronger threat model; key theft would produce valid tokens that pass verification (Section VII).
  6. Summarize the main content of the paper

    Layered external authorization can block attribute-visible attacks, but the main policy gains come from tenant binding, and content-based attacks still require semantic defenses.

    This is a study of defenses and layer-by-layer measurement for the agent execution path, centered on letting the agent only propose actions while an external control plane decides whether they can execute based on identity, policy, contextual risk and attestation.

    • Problem addressed: Tools, credentials and data can turn model errors into real actions; the authors aim to apply least privilege, complete mediation and zero trust to the same request path, and to separate the benefit, false denial and latency of each layer.
    • Method highlights: The execution predicate combines Ed25519 credential verification, four deterministic attribute rules, a weighted risk bound and HMAC attestation verification; C1 through C5 progressively add tenant binding, external policy, cryptographic checks, an isolation surrogate and signed evidence. The AgentDojo gateway additionally uses destination binding and intent binding.
    • Synthetic main results: On ten corpora, the external policy's Prevention gain relative to RBAC is 6.2±0.5 pp, and relative to the tenant-aware baseline only 2.3±0.4 pp; C2–C5 have an average FD of 4.3±0.9%; the authors therefore state that most of the policy benefit comes from tenant binding.
    • Cryptographic results: Credential or attestation checks add on average a further 0.8±0.3 pp; after independently decoupling the two failure types, across ten seeds C3 blocks 61, C4 blocks 58, and C5 blocks 92/92, and the authors state that the two checks have complementary coverage.
    • AgentDojo results: In ground-truth replay, the gateway blocks 523/588 injection targets requiring side-effect calls (88.9%), and all reference calls of 91/97 user tasks are permitted (93.8%); this protocol does not measure a live agent's compliance rate or task completion rate.
    • Residual risk and conclusion: At τ=75, the residual success rates of memory poisoning, policy conflict and prompt injection in C3–C5 are 57.9%, 48.1% and 46.6% respectively. The authors argue that attribute enforcement and cryptographic evidence cannot replace semantic defenses, and that the results characterize the decision path in synthetic corpora and benchmark replay, not the end-to-end security of live agents or extended mechanisms.

Research lineage

5 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Related papers

Show 3 more papers
Read originalarxiv.org