
AWS Introduces Nitro Sandboxes for Hardware-Isolated EKS Pods, ECS Tasks, and EC2 Workloads
AWS Nitro Sandboxes give each container a hardware-isolated virtual machine boundary on EC2, EKS, and ECS, with attestation and no extra charge. It supports confidential and isolated modes across commercial regions.
AWS introduced Nitro Sandboxes, a new Amazon EC2 building block that gives each container the boundary of a hardware-isolated virtual machine. Each sandbox gets Nitro System isolation properties, including strong isolation, zero operator access to customer data, and attestation, while keeping the familiar container experience. The feature is available at no additional charge on supported EC2 instances, EKS clusters, and ECS clusters.
Hardware-isolated containers
A Nitro Sandbox is a lightweight virtual machine launched and controlled from an EC2 instance. It runs as a separate VM alongside the instance, while the parent contributes vCPU, memory, and I/O. Because it is a first-level guest with no nested hypervisor, compute and memory run at near-native EC2 performance. It shares isolation technology with Nitro Enclaves, but adds time-sliced vCPUs, standard virtio network and block devices, and support for a standard virtual machine monitor such as Firecracker.
The feature is available on every EC2 instance type that supports Nitro Enclaves, across general purpose, compute optimized, memory optimized, storage optimized, and accelerated families, on AWS Graviton, Intel, and AMD processors, in commercial Regions worldwide. On EKS and ECS, each workload keeps its own network identity, and network policies and security groups are enforced on the parent.
Isolation modes and security
EKS and ECS provide two isolation modes on top of Nitro Sandboxes. A confidential sandbox is fully attestable: image loading and other runtime operations are gated by a Cedar policy, image contents are verified and extracted inside the sandbox, the ephemeral layer is encrypted, and AWS KMS releases secrets only to workloads that prove they run approved code. An isolated sandbox gives each pod or task its own hardware-isolated VM with its own kernel, while the node and its operators remain trusted, and image validation works as it does without sandboxes.
The Nitro Hypervisor removes the parent's access to sandbox memory and CPU register state. Only I/O buffers explicitly shared by the sandbox stay visible to the parent. Sandboxes use the Nitro Secure Module to gain an attestation document, and workloads can receive secrets only after proving they run approved code. The system is designed so that no one outside the sandbox can read its contents, including the cluster administrator, platform team, and AWS.
Getting started
On EKS Auto Mode, add runtimeClassName to the pod spec and use confidential-sandbox or isolated-sandbox; EKS handles instance selection, Nitro component setup, and scheduling. On ECS Managed Instances, enable nitroEnclavesEnabled in the capacity provider, set an isolation mode in the task definition, add a trustedExecutionConfiguration block with isolationMode set to ISOLATED_SANDBOX or CONFIDENTIAL_SANDBOX, and use awsvpc network mode.
Use cases
Nitro Sandboxes can give every workload that needs a hard boundary its own VM without its own instance. AI agents can run each session in a separate sandbox, so code from a prompt injection stays inside one VM deleted when the session ends. SaaS providers can run many tenants on shared EKS nodes or ECS Managed Instances, each in its own sandbox. CI/CD pipelines can run privileged builds and untrusted pull request code in a per-job VM. Regulated industries can give auditors cryptographic proof of exactly what ran.
Sources: AWS Compute Blog
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.