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.
AnthropicWhat 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.
- 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.
- 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.
- 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.

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-sandboxorconfidential-sandboxto the pod spec on EKS Auto Mode. Self-managed clusters need a compatible AMI. - ECS: use ECS Managed Instances and set
isolationModetoISOLATED_SANDBOXorCONFIDENTIAL_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.
