Join our Newsletter — 33% off our NHI Course

AI agent sandboxing on AKS: are your controls keeping up?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16521
Topic starter  

TL;DR: AI agents on AKS can be driven by prompt injection into tool use, shell execution, and metadata-service token theft in under a minute, according to ARMO. The core issue is that admission controls alone do not stop runtime abuse, so per-agent identity scope, IMDS blocking, and observed-behaviour sandboxing become the decisive controls.

Editorial analysis by NHI Mgmt Group, based on content published by ARMO: “Sandboxing AI Agents on AKS: Network Policies, Workload Identity, and Least Privilege”.

By the numbers:

  • The attack timeline in the article shows credential theft unfolding in 47 seconds on AKS.

Key questions

Q: What breaks when AI agents on AKS can reach the metadata endpoint?

A: If an agent pod can reach 169.254.169.254, a compromised process may obtain Azure credentials without touching a vault or secret store.

Q: Why do AI agents on AKS create a larger blast radius than ordinary pods?

A: Because an AI agent can be pushed by prompt content into using tools, shells, or internal APIs in ways the operator did not intend.

Q: How should teams decide between admission controls and runtime enforcement for AI agents?

A: Use admission controls to stop insecure workloads from being deployed, but do not treat them as a containment strategy.

Practitioner guidance

  • Scope each agent to a dedicated identity Assign a separate federated identity to every AI agent deployment and avoid sharing managed identities across tools or namespaces.
  • Block metadata service access Prevent agent pods from reaching 169.254.169.254 with AKS IMDS restriction, NetworkPolicy, or default-deny egress where appropriate.
  • Tighten Azure RBAC to the resource level Grant only the exact Azure role needed for the specific vault, container, or service instance instead of resource-group Contributor.

Bottom line: The article shows that AI agent compromise on AKS is a runtime identity problem, not just a pod hardening problem.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 17012
 

Identity scope is the actual control plane for AI agent risk: In AI-on-Kubernetes environments, pod admission controls are necessary but not sufficient because they do not constrain what a live agent can do with its runtime identity. The decisive question is how much Azure access the agent can reach once a prompt changes its behaviour. Practitioners should treat agent identity scope as the primary blast-radius variable.

A few things that frame the scale:

  • Systems with least-privileged AI access had a 17% incident rate vs 76% for over-privileged systems. Organisations failing to scope AI access properly are 4.5x more likely to experience a security incident, according to the 2026 Infrastructure Identity Survey.
  • 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey.

A question worth separating out:

Q: What is the difference between Workload Identity and shared managed identities for AI agents?

A: Workload Identity binds one Kubernetes service account to one Azure identity through federated token exchange, so the trust boundary is specific to that workload. Shared managed identities blur accountability because several agents can inherit the same Azure reach. For AI agents, the narrower pattern is easier to audit and far easier to contain when something goes wrong.

👉 Read our full editorial: Sandboxing AI agents on AKS: least privilege and workload identity



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.