metir
metir
Docs
Download on App StoreGet it on Google PlayLog inSign up
Back to Blog
AWS
AI Agents
Sandboxing
Security
Kubernetes

AWS Nitro Sandboxes: Hardware Isolation for AI Agents

AWS Nitro Sandboxes give each EKS pod, ECS task or EC2 workload its own hardware-isolated VM, with attestation-gated KMS keys. How it compares to containers.

Metir AI TeamNovember 29, 20265 min read
AWS Nitro Sandboxes: Hardware Isolation for AI Agents

AWS introduced Nitro Sandboxes in the week of November 9, 2026: a new EC2 building block that gives each container the boundary of a hardware-isolated virtual machine. AWS positions it explicitly for AI agents that write and run their own code, and it extends to EKS pods, ECS tasks and plain EC2 workloads. For anyone choosing an agent sandbox, it adds a third option between a shared-kernel container and a separately managed microVM service.

AWS logoAWS
Anthropic logoAnthropic
AWS Nitro Sandboxes launch; AWS's agent example runs Claude Code on Amazon Bedrock.
0Additional chargePay for EC2 and normal EKS or ECS fees
2Isolation modesIsolated and confidential
~2 sWarm-pool claimVia the agent-sandbox project
1.36+Kubernetes versionRequired on EKS

What AWS announced

According to the AWS Compute Blog, a Nitro Sandbox is a lightweight VM that you launch from your EC2 instance and that behaves like a child VM. The Nitro System enforces separation between the sandbox and its parent instance, between sandboxes, and between the sandbox and AWS operators. AWS says compute and memory run at near-native EC2 performance because the sandbox is a first-level guest with no nested hypervisor.

It runs on every EC2 instance type that supports Nitro Enclaves, across Graviton, Intel and AMD, in commercial Regions worldwide, at no additional charge. You pay for the instances plus the standard EKS Auto Mode or ECS Managed Instances management fee if you use them.

Containers, microVMs and sandboxes: the threat model

The core argument is about the kernel. AWS notes that containers on a shared node all trust one Linux kernel, so a weakness reachable from one container can expose every other container on the host. The AWS Containers Blog frames the agent case directly: no human reviews agent-written code before it executes, so a single malicious prompt could turn into lateral movement on the host.

Three isolation levels on one EC2 host

What changes as a workload moves from a shared-kernel container to an isolated sandbox to a confidential sandbox, as AWS describes each.

Standard container
Kernel
Shares one Linux kernel with the host and every other container on it.
Who is trusted
Cluster operators can reach every task running in the cluster.
Proof of code
No attestation of what is running.
Isolated sandbox
Kernel
Own VM with its own kernel per pod or task, enforced by the Nitro Hypervisor.
Who is trusted
The node and its operators stay trusted; neighbours are protected from the sandbox.
Proof of code
Image validation works as it does without sandboxes.
Confidential sandbox
Kernel
Own VM with its own kernel, plus an encrypted ephemeral layer.
Who is trusted
Treats the parent instance and cluster operators as untrusted.
Proof of code
Attestation document; AWS KMS releases keys only to approved code and Cedar policy.

Source: AWS Compute Blog and AWS Containers Blog, November 2026.

The practical choices for an agent platform look like this:

  • Standard container: fastest to start and densest, but every workload shares the host kernel and the cluster operators can reach every task.
  • Isolated sandbox: each pod or task gets its own VM and kernel. The node and its operators remain trusted, so this protects neighbours and the node from the workload, not the workload from the operator.
  • Confidential sandbox: the same VM boundary, but the parent instance is treated as untrusted and the workload can prove what it runs.

Nitro Sandboxes share their isolation technology with Nitro Enclaves, but AWS changed three things for container use: vCPUs can share cores with the parent by time slicing, the parent can attach standard virtio network and block devices, and the sandbox can run under a standard VMM such as Firecracker. Amazon Linux and Firecracker support Nitro Sandboxes today, per AWS.

AWS data center buildings in Ashburn, Virginia, seen from a road
AWS data center buildings in Ashburn, Virginia, photographed in 2020. File photo; it does not depict Nitro Sandboxes hardware.

Attestation and KMS-gated keys

In confidential mode, image loading and other runtime operations are gated by a Cedar policy, image contents are verified and extracted inside the sandbox, and the ephemeral layer is encrypted. The Nitro Secure Module signs an attestation document, and you write AWS KMS key policies that require specific measurements before a key is released. AWS says this means neither the cluster administrator, the platform team nor AWS can read EKS pod or ECS task memory.

“

Code that a prompt injection gets the agent to run stays inside one VM, which is deleted when the session ends.

AWS Compute Blog

Startup latency versus isolation

The sources give one concrete latency figure. The Kubernetes agent-sandbox project can keep pre-booted VMs in a warm pool that are claimed in about two seconds, hiding the cold start behind background replenishment, which AWS recommends for latency-sensitive agent sessions. Neither AWS post publishes a cold-start time, and neither benchmarks against containers or other microVM services, so the speed cost of the VM boundary cannot be quantified from the announcement. Teams with interactive agents will want to measure it on their own images.

AWS also lists setup details that matter for rollout:

  • EKS: add runtimeClassName: isolated-sandbox or confidential-sandbox to the pod spec on EKS Auto Mode. Self-managed clusters need a compatible AMI.
  • ECS: use ECS Managed Instances and set isolationMode to ISOLATED_SANDBOX or CONFIDENTIAL_SANDBOX.
  • Network: an annotation can boot the VM with no network besides loopback, and policies are enforced on the parent instance, outside the sandbox.

How it relates to recent sandbox escapes

Sandbox quality has become a live question for agent builders. Our earlier coverage of Anthropic's Siren test and OpenAI's long-horizon model containment incident looked at models reaching outside their environments. A per-session VM does not stop a model from trying, but it changes what a successful escape reaches: one VM with a scoped identity and egress policy rather than a shared node. AWS's own coding-agent example scopes model access to Amazon Bedrock, repo access to one token and egress to a short allowlist.

What to watch

Open questions remain: cold-start cost on real agent images, how many sandboxes fit per instance, and how attestation works across clouds. Platforms that run agents on several providers, including Metir AI users who mix models, will likely treat the isolation layer as a swappable component. Nitro Sandboxes is AWS's answer for teams that already run on EKS, ECS or EC2.

Sources:

  • Nitro Sandboxes: Hardware isolation for every EKS pod, ECS task, and EC2 workload | AWS Compute Blog
  • AWS Nitro Sandboxes: Hardware-enforced workload isolation on Amazon EKS | AWS Containers Blog

Image credits

  • Hero: aerial photograph of AWS data center buildings by Tedder, CC BY-SA 4.0, via Wikimedia Commons. Illustrative of AWS data center campuses.
  • In-body: AWS data center buildings in Ashburn, Virginia, by Vahurzpu (2020), CC BY-SA 4.0, via Wikimedia Commons.

Ready to experience AI that adapts to you?

metir brings together the world's best AI models in one seamless experience. Start for free today.

Get Started Free
metir

metir is where work gets done. Hire your team of Orbs, AI teammates with their own computer, alongside your mail, meetings and workspace.

© 2026 metir. All rights reserved.

Product

  • Pricing
  • Research
  • Docs
  • Blog
  • Enterprise

Company

  • Docs
  • Support
  • Careers

Legal

  • Terms of service
  • Privacy policy

Personalisation is powerful. Privacy is non-negotiable.

Status: All systems operational