Skip to content

The paper proposes a seven-layer defense-in-depth framework and reference architecture for protecting AI agents on Kubernetes.Containing the Autonomous Operator: A Defense-in-Depth Framework and Reference Architecture for Securing AI Agents on Kubernetes

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.02861· Simhadri Podala Narasimha·Indexed by this site · 2026-10-05· Originally publishedDefenses

Quick read

Defenses

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

The authors present a seven-layer defense for Kubernetes operations agents, stating that controls should still hold under full compromise, but ASR is not measured.

Threat modelOperations agents in the cluster call tools via MCP and run generated code, and can delegate via A2A. Capabilities include A1 content injection, A2 malicious or compromised tool servers, A3 malicious generated code, A4 low-privilege insiders, A5 benign failures; after successful injection, subsequent tools and parameters are assumed fully controlled. Trust the control plane, runtime, policy engine, gateway, and identity provider; do not trust the model, agent process, retrieved content, or unapproved tool metadata.

Questions
Operations agents on Kubernetes read telemetry, call tools, execute code, and modify cluster state; the logs, tickets, or tool descriptions they read may rewrite their actions. The authors argue that the model is not a security boundary, and guarantees must hold even when the agent is fully compromised.
Methods
Treat agents as untrusted tenants, using nine principles and seven layers of control: identity, RBAC and VAP, sandboxing, default-deny egress, a gateway that applies policy to tool parameters, secrets not entering context, and eBPF and approval tiers. The reference architecture binds to EKS, AKS, and GKE.
Experiments and results
The evaluation is qualitative. The authors state that in Table 4, each threat class has at least two layers of mitigation, and the primary control does not depend on model behavior; four walkthroughs discuss log-induced scaling down, tool poisoning exfiltration, malicious code in the sandbox, and repeated remediation without an adversary. ASR, latency, or overhead are not reported.
Limitations and future work
The authors state that the evaluation is analysis rather than measurement, the coverage matrix is judgment rather than empirical testing, the artifacts were not subjected to the red teaming reported in the paper, and cited projects or API versions may change. Future work includes injection benchmarks, bypass testing, overhead, and approval burden. The discussion also notes that several authorization and tracing primitives lack standards.
AI summaryThe paper argues that the model itself should not be treated as a security boundary, that agent security on Kubernetes should be handled as an infrastructure problem, and that all guarantees must hold under the assumption that the agent has been fully compromised by prompt injection. The authors propose a ten-category threat taxonomy (aligned with the OWASP Agentic AI Application Guide), nine design principles (centered on complete mediation of the tool boundary and breaking the combination of untrusted input, sensitive access, and external exfiltration), and a seven-layer defense-in-depth framework, mapped to Kubernetes-native mechanisms such as workload identity, RBAC, and ValidatingAdmissionPolicy, gVisor/Kata sandboxes based on the SIG Apps Agent Sandbox project, FQDN-aware egress policies, and Agent/MCP gateways with policy-as-code and eBPF runtime enforcement. The authors do not report measured attack success rates or performance overhead data; instead, they list residual risks and the measurements needed to validate the framework.

The paper argues that the model itself should not be treated as a security boundary, that agent security on Kubernetes should be handled as an infrastructure problem, and that all guarantees must hold under the assumption that the agent has been fully compromised by prompt injection. The authors propose a ten-category threat taxonomy (aligned with the OWASP Agentic AI Application Guide), nine design principles (centered on complete mediation of the tool boundary and breaking the combination of untrusted input, sensitive access, and external exfiltration), and a seven-layer defense-in-depth framework, mapped to Kubernetes-native mechanisms such as workload identity, RBAC, and ValidatingAdmissionPolicy, gVisor/Kata sandboxes based on the SIG Apps Agent Sandbox project, FQDN-aware egress policies, and Agent/MCP gateways with policy-as-code and eBPF runtime enforcement. The authors do not report measured attack success rates or performance overhead data; instead, they list residual risks and the measurements needed to validate the framework.

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?

    Kubernetes operations agents turn read content into commands; the authors argue for constraining them with infrastructure under the assumption of full compromise.

    Kubernetes operations agents turn what they read into commands; the model cannot be treated as a security boundary.

    • Scenario: Operations teams are starting to delegate alert triage, log and metrics analysis, remediation, GitOps PRs, and ad-hoc scripts to LLM agents. The authors argue that their behavior is determined by the model, the prompt, and all content entering the context, and that they cannot reliably distinguish instructions from data.
    • Existing shortcomings: Indirect prompt injection and MCP tool poisoning have been demonstrated. The authors state that even with model-layer defenses, tool-calling agents remain vulnerable. Alignment and classifiers only reduce probability, and failures can be discovered adversarially. The authors argue that existing Kubernetes primitives are not designed for agents, and none alone can handle the data/control collapse.
    • Core claim: Agents should be assumed hostile in a multi-tenant manner, constraining what they can reach, execute, and exfiltrate. The authors cite Willison and Meta: harm typically requires untrusted input, sensitive or privileged access, and external communication or state changes; removing any one leg tightens the damage. The three legs correspond to tool authorization, RBAC, and egress.
    • This paper provides: a ten-class taxonomy, nine principles, a seven-layer framework, EKS/AKS/GKE reference architectures, and qualitative coverage with four walkthroughs. It does not cover training-time attacks, safety of output to humans, or inference serving hardening; the model provider is outside the trust boundary.
    • Threat model:
      • System and assets: Operations agents within a cluster or management cluster; assets are workload integrity and availability, reachable credentials, tool-visible secrets, memory integrity, and audit attribution.
      • Capabilities: A1 content injection, A2 malicious or compromised MCP servers, A3 affected generated code, A4 low-privilege insiders using the agent to escalate, A5 errors or feedback loops without an adversary. After successful injection, tool selection and parameters are assumed fully controlled.
      • Trust: Trust the control plane, kernel and runtime (depending on RuntimeClass), policy engine, gateway, and identity provider; do not trust the model, agent process, context, retrieved content, tool metadata outside the registry, or generated code.
  2. What related research exists?

    Related work includes indirect prompt injection, MCP threats, and cloud-native isolation; the authors state that the contribution is composing them into Kubernetes enforcement points.

    Prompt injection and design-layer defenses

    • Greshake et al. (2023) demonstrate indirect prompt injection against LLM-integrated applications.
    • Debenedetti et al. (2024)'s AgentDojo is a dynamic environment for evaluating prompt injection attacks and defenses on tool-calling agents.
    • Debenedetti et al. (2025)'s CaMeL uses capability tracking to separate control flow and data flow. The authors state that this paper's L6 adopts this idea at the Pod and identity layers.

    Agents, MCP, and risk management

    • OWASP publishes agent threats and mitigations, Agentic Applications Top 10, MCP security cheat sheet, and LLM Top 10. The authors state that Table 1 aligns in spirit with these and specializes to Kubernetes. The Cloud Security Alliance's MAESTRO (Huang, 2025) provides layered threat modeling for agent systems.
    • Invariant Labs (2025) discloses tool poisoning; Hou et al. (2025) and an MCP ecosystem SoK (2025) systematize related threats. The authors state that these works characterize threats and general mitigations, while this paper's contribution is mapping to Kubernetes enforcement points and a reference architecture.
    • NIST AI RMF 1.0 (2023) provides an organizational-level AI risk structure. The authors state that the governance layer is an operationalization for infrastructure agents.

    Cloud-native mechanisms and agent components

    • gVisor, Kata, Young et al. (2019)'s gVisor case study, VAP, OPA, Tetragon, Falco, SPIFFE, and Sigstore are existing isolation, admission, policy, runtime, identity, and signing mechanisms.
    • Kubernetes SIG Apps' Agent Sandbox, CNCF kagent, and Linux Foundation's agentgateway bring agent constructs into Kubernetes.
    • The authors state that this paper's contribution is composing these mechanisms into a posture such that guarantees hold even when the agent is fully compromised.

    Principles and protocols

    • Saltzer and Schroeder (1975)'s least privilege and complete mediation, and Hardy (1988)'s confused deputy, are used to frame the LLM as a deputy.
    • Willison (2025)'s lethal trifecta and Meta (2025)'s Agents Rule of Two are used to define lethal combinations. Yao et al. (2023)'s ReAct describes the reasoning–action loop. MCP and A2A are viewed by the authors as protocols for tool discovery, invocation, and inter-agent messaging, often with authentication and per-tool authorization at the gateway.

    The paper does not run controlled experiments. Section 7.4 lists no control, prompt-layer-only defenses, adding layers individually, and full stack as future ablations, not completed baselines. The authors position this paper as: under the premise that the model is not a security boundary, rebuild data/control boundaries with Kubernetes primitives and agent components, complementing model-layer defenses.

  3. How does the paper address this problem?

    The seven-layer framework does complete mediation at the tool boundary and breaks the lethal combination with identity, admission, sandboxing, and egress.

    Treat operations agents as untrusted tenants. Seven layers of defense-in-depth (L1–L7) plus a governance layer G, mapping nine principles to Kubernetes and common open-source mechanisms; Fig. 1 shows the layers, Fig. 2 the reference deployment.

    Setting and principles

    • Loop and composition: Tool results return to the context, tools are selected at runtime, and cross-session memory can make injection persistent. The authors adopt the lethal combination: harm is significant only when untrusted input, sensitive or privileged access, and external communication or state changes co-occur; removing one leg tightens the damage.
    • Principles: P1 Controls must hold even when the agent is fully adversary-controlled. P2 Actions are authenticated, authorized per parameter, and logged via the gateway or API server. P3 Least privilege by task class, preferring read-only. P4 Own identity, with delegated permissions when acting for a user, not exceeding the requester. P5 Generated code goes into ephemeral kernel-isolated sandboxes without environment credentials. P6 Default-deny egress; the three legs co-occurring requires human approval. P7 Changes go through GitOps where possible. P8 A single trace links requests, model calls, tool calls, API actions, and approvals. P9 Rate limiting, budgets, circuit breakers; autonomy tiered by environment and risk.

    L1–L3

    • L1 Identity: Dedicated ServiceAccount, not the default; disable automountServiceAccountToken for Pods that do not call the API; tokens are audience-bound and short-lived. On the cloud side, use EKS Pod Identity or IRSA, Entra Workload ID, GKE Workload Identity Federation, not static keys. SPIFFE/SPIRE for mesh identity. For T3, the gateway does OAuth 2.0 Token Exchange, downgrading the token while carrying both the user sub and the agent act, authorizing by intersection; the API side can use restricted impersonate, with audit recording both identities.
    • L2 Authorization: Namespace Roles, no ClusterRole for write operations; exclude pods/exec, secrets, serviceaccounts/token, and RBAC objects. VAP constrains object content and can match only agent identities. Listing 1: failurePolicy is Fail; usernames must start with system:serviceaccount:agents:; reject changes to kube- prefixed or agents namespaces, reject DELETE, reject replicas of 0; Binding actions are Deny and Audit. The authors state that this is enforced by the API server, so it holds even if the gateway is bypassed. Agent and sandbox namespaces use restricted Pod Security.
    • L3 Isolation: Standard containers share the host kernel. RuntimeClass selects gVisor or Kata. Agent Sandbox provides the Sandbox resource with templates, claims, and warm pools. Listing 2: no SA token mount, non-root, read-only root, drop all capabilities, digest-pinned images; cpu 1, memory 1Gi, ephemeral-storage 512Mi, emptyDir 512Mi. Created ephemerally per session, in a dedicated namespace with no RBAC bindings. The authors state that cross-user persistent sandboxes would become a T7 channel.

    L4–L6

    • L4 Network: Default-deny ingress and egress, then allow DNS, gateway, and model endpoint hostnames. The authors state that IP policies are insufficient; FQDN policies are needed (e.g., Cilium). Listing 3 example ports are 53, 8080, and 443. Sandboxes typically have no external egress; if networking is needed, it goes through an inspected proxy with approval. In the example, the agent does not reach the API server; changes go only through tool servers holding credentials. East-west mTLS comes from the mesh or SPIFFE.
    • L5 Tool mediation: The gateway sits between the agent and MCP, A2A, and optionally model endpoints. An open-source example is agentgateway, connecting via kgateway to the Gateway API. It authenticates callers, calls OPA or Cedar on tool names and parameters, pins tool metadata hashes (changes trigger isolation, which the authors call rug-pull), rejects confusing tool names, logs decisions, and rate-limits. Listing 4 allows read-only within scope, PRs only to approved repositories, approval for production destructive actions, and rejects replica count 0. The authors state that overlap with L2 is intentional. Images are signed with Sigstore/cosign and verified at admission. Response sanitization is called a hygiene measure, not a boundary. Tools are categorized as observe, propose, act.
    • L6 Data: Secrets do not enter the context; tool servers fetch them server-side via External Secrets, Vault, or cloud key services. Log tools sanitize first. Memory writes carry source and trust level; untrusted tool outputs are not promoted without review; partitioned by tenant and agent, with point-in-time rollback. The authors state that for T1, architectural separation is the strongest among available practices: the reader has only read-only tools and no egress, the planner does not ingest raw untrusted content, and actions still go through L5.

    L7, governance, and three clouds

    • L7 and G: Tetragon can Sigkill when the sandbox opens the token path (Listing 5); Falco watches for unexpected shells, connections, and file writes. Audit and gateway denials are used for alerting. A kill switch revokes identity bindings, scales to 0, adds isolating network policies, and invalidates gateway sessions. Approvals bind to tool and parameter hashes and expire. Table 2: Observe is auto in all three environments; Propose is auto, with humans merging PRs; Act is Dev auto, Staging notify, Production approval; Destructive is approval in Dev/Staging, and Production is rejected by L2. Budgets and circuit breakers target T8. The authors state that uncontrolled loops are the most likely harm in practice because they do not require an adversary (A5).
    • Three clouds: Core policies are cloud-agnostic. The authors state that the sandbox gap is largest: GKE has managed Agent Sandbox (gVisor, warm pools, claims, sandbox default-deny network), and the paper writes that warm pools are used for sub-second provisioning; AKS uses Kata with runtimeClassName kata-vm-isolation, requiring Azure Linux node pools; at the time of writing, EKS has no managed sandbox and requires self-installing gVisor or Kata. FQDN egress is native in AKS and GKE, but EKS's VPC CNI does not support it, requiring Cilium or an egress proxy. The paper relays Microsoft: AKS filtering may degrade above roughly 1,000 requests per second per Pod; GKE allows up to 50 resolved addresses per FQDN. Identity is federated without static keys in all, differing in where claims are bound; the authors argue that the platform team should manage it declaratively. Table 3 reflects late 2026 documentation. Example model endpoints are Bedrock, Azure OpenAI, Vertex AI.
  4. What experiments did the paper conduct?

    Evaluation is a qualitative coverage matrix and four walkthroughs; the authors did not report ASR, latency, or overhead.

    Experimental setup

    • Nature: Section 7 is a qualitative evaluation, including a coverage matrix, four walkthroughs, residual risks, and proposed but not executed empirical methods. The authors state that they do not report attack success rates, latency, or cost overhead.
    • Materials: Table 1 defines ten threat classes; Table 4 maps threats to L1–L7 and G; S1–S4 are walkthroughs. The paper does not run the evaluated models, nor does it execute datasets or benchmarks. AgentDojo appears only in future methods.
    • Threat classes: T1 indirect prompt injection hijacking objectives, T2 tool misuse, T3 confused deputy, T4 tool and MCP supply chain, T5 untrusted code execution and escape, T6 data and credential exfiltration, T7 memory poisoning, T8 uncontrolled actions, T9 inter-agent impersonation, T10 non-attribution. Adversary capabilities are A1–A5.
    • Judgment: Walkthroughs discuss whether gateway policies, VAP, egress, sandbox, and runtime controls block the outcome. The paper does not specify review models, thresholds, sample sizes, or repetition counts.
    • Cloud mapping: Table 3 maps layers to documented capabilities of EKS, AKS, and GKE; the authors note that entries reflect vendor documentation as of late 2026, not deployment measurements.

    Main results

    The paper has no main results with numbers to fill in. Table 4 uses • for primary mitigations and ◦ for secondary mitigations, covering T1–T10 and L1–L7, G. After text conversion, dots and columns cannot be reliably aligned, so they are not transcribed cell by cell.

    Author claimConditionSource
    Each threat class has at least two layers of mitigation, and at least one primary control is outside the agent process, not relying solely on model behaviorAuthor's interpretation of Table 4Section 7.1
    T1, T2, T6 have L5, and have independent controls at L2 or L4Injection-driven threatsSection 7.1
    ASR, latency, overhead not reportedFull evaluationSection 7
    • The authors state that a single misconfiguration would not allow T1, T2, T6 to cause harm, because preventive controls at the tool boundary are independent of another enforcement point.
    • The authors write in Limitations that the coverage matrix is an evaluation, not a measurement, so the above table is not measured scores.
    • The paper does not report attack success rates on any model or benchmark.

    Attack walkthroughs

    • S1 (T1, T2): A compromised workload writes to logs, inducing the agent to set the replica count of a production workload to 0. The authors state that logs are read by an isolated reader, output reaches the planner as reference data (L6); if the replica count 0 is still proposed, the gateway rejects it (L5, Listing 4); if the gateway is misconfigured, VAP rejects at the API server (L2, Listing 1); rejection aggregates alerts (L7). The authors state that three independent enforcement points must be defeated to cause harm.
    • S2 (T4, T6): An approved third-party MCP server later changes tool descriptions, inducing the agent to read configuration secrets and exfiltrate them via tool parameters. The authors state that the gateway detects metadata hash changes and isolates (L5); there is no tool that returns secrets, and no corresponding RBAC (L2, L6); the Pod cannot reach arbitrary external hosts under default-deny egress (L4). The authors state that untrusted input and external communication can occur on the compromised server, but the sensitive access leg is missing.
    • S3 and S4: In S3 (T5), a generated script attempts to read the ServiceAccount token and exploit a kernel vulnerability. The authors state that the sandbox does not mount the token (L1), Tetragon kills the process when accessing the token path (L7, Listing 5), gVisor or Kata provides an additional kernel boundary (L3), and no egress prevents pulling subsequent payloads or exfiltration (L4); residual risk is vulnerabilities in the isolation runtime itself. S4 (T8) has no adversary; the agent repeatedly restarts a Deployment whose failure cause is in the downstream database. The authors state that per-object change budgets and circuit breakers (G) escalate to humans after a bounded number of times, the gateway rate-limits (L5) to limit rate, and audit baselines flag bursts (L7). The paper does not give numerical values for these counts.

    Residual risks

    • Judgment and in-scope completeness: The authors state that policies can prohibit known bad parameters but cannot judge whether allowed actions are appropriate; approval and GitOps delegate judgment to humans at the cost of latency and approval fatigue. After injection, misleading summaries or harmful PRs may still occur; the authors state that controls are on review quality, not infrastructure.
    • Model channel and trust base: The model endpoint must allow egress, and sensitive data in context is sent to the model provider by design. The authors state that contractual and data residency controls apply, and L6 reduces what enters the context. Isolation runtimes and policy engines enter the trusted computing base.
    • Policy drift: The authors state that layering produces many policies, and their consistency itself must be tested. The paper does not give drift rates.

    Other ablations and analyses

    • The paper does not run ablations. Section 7.4 proposes adapting AgentDojo's user task/injection task structure, placing injections in logs, events, annotations, ConfigMaps, tickets, and MCP tool metadata, measuring benign task utility and targeted ASR.
    • Proposed ablations are: no control; prompt-layer-only defenses; each layer added individually; full stack. It also proposes disabling upper layers to verify the inter-layer independence claimed in Table 4.
    • It proposes measuring per-call latency of the gateway and policy engine, sandbox acquisition time with and without warm pools, and slowdown of syscall-intensive workloads under gVisor and Kata; the authors state this could build on Young et al. (2019)'s characterization.
    • It proposes using approval volume and approval latency per event under each autonomy level as proxies for approval fatigue.
    • These are left by the authors for future work; this paper has no corresponding numbers.
  5. What are some points that can be further explored?

    The authors state that this paper is design research, the evaluation is analytical rather than measured, and they propose empirical validation with injection benchmarks.

    Limitations and future directions noted by the authors

    • Analysis, not measurement: The authors write in Limitations that this paper is a framework and design study, and the evaluation is analytical rather than empirical (Section 8).
    • Matrix and red teaming: The coverage matrix reflects the authors' evaluation, not measurement; the artifacts have not undergone the red-team exercises reported in the paper (Section 8).
    • Version changes: The ecosystem changes quickly, and specific projects or API versions cited may change (Section 8).
    • Empirical plan: Section 7.4 and the Conclusion leave quantitative validation for future work, including a cluster injection benchmark adapted from AgentDojo's structure (benign task utility and targeted ASR; ablations of no control, prompt-layer-only, layer-by-layer, full stack), disabling upper layers to verify lower-layer independence, gateway latency, sandbox acquisition time, gVisor and Kata slowdown, and using approval volume and approval latency as proxies for approval fatigue.
    • Standards gaps: The Discussion states that there are currently no standards for public schemas of tool-call authorization requests, signed and versioned tool metadata in MCP, delegation of user identity across multi-agent chains, and conventions for tracing reasoning across OpenTelemetry spans. The authors state that these advances would make controls portable across gateways and frameworks.

    Experimental coverage

    • Section 7 includes the coverage matrix in Table 4, four walkthroughs S1–S4, and the residual risk discussion in Section 7.3.
    • The authors state that they do not report attack success rates, latency, or cost overhead.
    • Section 3 defines adversary capabilities A1–A5, and Table 1 defines threats T1–T10.
    • Section 6 and Table 3 map layers to EKS, AKS, and GKE, and state that entries reflect vendor documentation as of late 2026, with availability varying by region and cluster version.
    • The paper does not report red-team results, per-call latency, sandbox acquisition time, syscall-intensive workload slowdown, approval volume, or approval latency; these names appear in Section 7.4 as future measurement items.
  6. Summarize the main content of the paper

    Treats operations agents as untrusted tenants, using seven layers of control to constrain actions under the full-compromise assumption; empirical measurement is left for future work.

    Treat operations agents on Kubernetes as untrusted tenants, and under the assumption that prompt injection has fully controlled their tool selection, use infrastructure to rebuild the boundaries between the data plane and the control plane.

    The problem to solve: when agents read logs, annotations, tickets, or MCP tool descriptions, that content can become commands executed with the agent's own credentials. Model alignment and classifiers only reduce probability. The scope is infrastructure operations, not training-time attacks or inference serving hardening.

    The method is nine principles and seven layers of control, plus governance. Identity is split per agent and delegates user permissions; RBAC and VAP restrict verbs and object content, including prohibiting deletion and setting replica counts to 0; generated code goes into token-less gVisor or Kata sandboxes; egress is default-deny, allowing only an allowlist such as model endpoints; the gateway applies policy to tool names and parameters and pins tool metadata; secrets do not enter the context, with reader and planner separated; eBPF, audit, and kill switches handle detection and shutdown. Autonomy is tiered per Table 2. The reference architecture binds sandboxing, FQDN egress, and cloud identity to EKS, AKS, and GKE respectively. The authors state that at the time of writing, EKS has no managed sandbox runtime, and FQDN egress is not native to its VPC CNI.

    The authors do not measure ASR or overhead. Qualitatively, the authors state that each threat class has at least two layers, and out-of-process mitigations, with T1, T2, T6 also having independent enforcement points. The four walkthroughs correspond to log-induced scaling down, exfiltration after tool description changes, malicious code in the sandbox, and repeated restarts without an adversary. The authors state that the first three require defeating multiple layers simultaneously to cause harm, and the fourth is stopped by budgets and circuit breakers. Residuals include actions that are allowed but inappropriate, exfiltration through the model endpoint, and isolation runtimes entering the trust base.

    The authors conclude that every action should be mediated, guarantees should hold under full compromise, and autonomy should be granted by action class. The authors consider the most important next step to be a Kubernetes-native injection benchmark, using ablations of utility and attack success rate to select autonomy levels.

Read originalarxiv.org