Subscribe to the Non-Human & AI Identity Journal

How should security teams govern AI agents that call internal tools from Kubernetes?

They should separate runtime containment from identity governance. Kubernetes can isolate execution, but the tool boundary still needs delegated identity, per-request authorization, and action-level logging. Without those controls, the agent behaves like an unscoped service account with model-driven output, which makes attribution and revocation much harder.

Why This Matters for Security Teams

AI agents that call internal tools from Kubernetes are not just another workload to confine with cluster policy. The agent can decide which tool to invoke, in what order, and with what data, so the real risk sits at the identity and authorization boundary. Kubernetes may keep the pod contained, but it does not by itself prevent an agent from overreaching through a service account, chaining actions, or reusing secrets it should never hold.

This is why security teams need to govern the agent as a delegated actor, not merely a container. The problem shows up fastest when teams rely on broad RBAC, static credentials, or namespace isolation and assume that runtime containment equals control. Current guidance from the OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward runtime governance, but the implementation details still vary across platforms.

NHIMG research on AI agents as a new attack surface shows how quickly visibility gaps appear once agents are allowed to touch real data and systems. In practice, many security teams discover excessive agent authority only after an action has already been taken, rather than through intentional access design.

How It Works in Practice

Effective governance starts by separating three layers: workload runtime, workload identity, and action authorization. Kubernetes should handle scheduling, isolation, and network boundaries. Identity governance should handle who or what the agent is, what it may do, and under which conditions. That means a pod identity alone is not enough if the agent can request secrets, trigger APIs, or mutate records without a second decision point.

For agentic systems, static IAM models break down because the access pattern is not stable. An agent may need to fetch a ticket in one task, update a config map in another, and call a database tool only if a policy condition is met. Best practice is evolving toward intent-based or context-aware authorization, where policy is evaluated at request time using task context, target system, data classification, and request origin. Tools like NIST Cybersecurity Framework 2.0 help frame the control objectives, while agent-specific guidance from CSA MAESTRO agentic AI threat modeling framework is more direct for tool-using agents.

  • Issue short-lived, task-scoped credentials instead of long-lived secrets.
  • Bind the agent to a workload identity, not a shared human admin account.
  • Evaluate each tool call against policy-as-code before execution.
  • Log the agent goal, the policy decision, the tool invoked, and the resulting side effect.
  • Revoke access automatically when the task completes or the context changes.

NHIMG’s OWASP NHI Top 10 and the agent-focused OWASP Agentic Applications Top 10 both reinforce the same operational theme: the credential should be ephemeral, the authorization should be contextual, and the audit trail should show intent plus impact. These controls tend to break down when a Kubernetes cluster is treated as the only trust boundary because the agent can still chain approved tools into an unauthorized outcome.

Common Variations and Edge Cases

Tighter agent control often increases engineering overhead, requiring organisations to balance runtime safety against deployment speed. That tradeoff becomes sharper in multi-agent workflows, shared service meshes, and legacy internal APIs that were never designed for fine-grained per-request checks.

There is no universal standard for this yet. Some teams use SPIFFE/SPIRE or OIDC-backed workload identity for strong cryptographic proof of what the agent is, while others rely on platform-native service accounts with additional policy enforcement. The difference matters most when an agent needs to call several tools in sequence, because a single permissive token can widen the blast radius across the whole chain. When the environment includes human-in-the-loop approval, the approval should scope the action, not grant blanket access for the remainder of the session.

NHIMG’s reporting on The State of Secrets in AppSec is relevant here because weak secret hygiene and fragmented control planes make agent governance harder to sustain. For broader threat context, the NIST AI Risk Management Framework and the MITRE ATLAS adversarial AI threat matrix both support runtime monitoring and adversarial thinking, but neither removes the need for local policy design. In container-heavy environments with shared namespaces, mutable sidecars, or broad cluster-admin delegation, the governance model usually fails because the agent’s effective privileges outlive the task that justified them.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A2 Agentic tool use needs runtime authorization and abuse-resistant boundaries.
CSA MAESTRO MAESTRO covers threat modeling for autonomous agents calling internal tools.
NIST AI RMF GOVERN AI RMF governance applies to accountability, oversight, and risk ownership for agents.
OWASP Non-Human Identity Top 10 NHI-03 Ephemeral delegated identity and secret lifecycle are central to agent governance.
NIST Zero Trust (SP 800-207) SC-7 Zero trust supports continuous verification at the tool boundary, not just the pod boundary.

Replace long-lived agent secrets with short-lived, task-scoped credentials and automate revocation.