AWS Nitro Sandboxes Give EKS Pods and ECS Tasks Their Own VM Isolation

Nov 17, 2026 407 views

AWS Nitro Sandboxes bring a virtual machine security boundary to individual workloads, giving Kubernetes pods, ECS tasks and other EC2 workloads their own kernels without requiring a separate EC2 instance for each one. That changes the isolation tradeoff for teams running untrusted code, multi tenant services or AI agents that execute generated code.

Available in all commercial AWS Regions on supported instances, the capability runs each sandbox as a lightweight first level guest alongside its parent EC2 instance. The parent supplies compute, memory and I/O resources; the Nitro hypervisor enforces separation. AWS says the design avoids nested virtualization and delivers near native compute and memory performance.

Workload isolation at container scale

Ordinary containers share the host operating system kernel. That arrangement is efficient, but it means a kernel vulnerability or a successful escape can threaten workloads that otherwise appear separate. Nitro Sandboxes give each supported workload a separate kernel inside a hardware isolated VM, reducing reliance on the shared kernel boundary.

The intended uses include applications serving multiple customers, software build jobs and AI agents running code they have generated or received. These workloads can be difficult to trust fully, yet placing every job on its own EC2 instance can add operational overhead and leave capacity underused. Sandboxes offer a finer grained boundary within an instance.

The architectural detail matters: a sandbox is a first level Nitro guest, not a VM nested inside the parent instance. The EC2 instance launches and manages sandboxes, but the hypervisor establishes the boundary between them. That arrangement is the basis for AWS’s claim that workloads can gain VM level isolation without the performance costs commonly associated with nested virtualization.

Nitro puts a small hypervisor in control

Nitro Sandboxes extend AWS’s Nitro architecture, which the company introduced in 2017. Nitro separates the core hypervisor function from much of the infrastructure software that handles networking, storage and other services. Those functions run on dedicated hardware rather than consuming the main processors used by customer workloads.

Mark Ryland, AWS director of security, has described the hypervisor as software that “only splits up the CPU and memory into the different compartments needed for the virtual machines.” He said virtual networking, storage and other components run on separate computers housed alongside the main compute hardware. The design aims to keep the hypervisor small and limit the amount of infrastructure code with access to customer workloads.

Ryland also described a technique called “secrets hiding,” intended to reduce the information available to the hypervisor. It reflects a broader principle behind Nitro: security can improve when the component enforcing isolation has less visibility into workload data in the first place.

Two trust models for different workloads

Nitro Sandboxes provide isolated and confidential modes. Isolated mode assumes the parent EC2 instance and its administrators are trusted. It protects the host and neighboring workloads if a sandbox is compromised, making it suitable when the main concern is containing a workload within shared infrastructure.

Confidential mode extends protection to cases where the parent instance or its administrators aren’t trusted. It adds policy enforcement inside the sandbox, limits administrative operations and supports cryptographic attestation. A verifier can check the sandbox’s measurements before a service releases secrets, including through AWS Key Management Service (KMS).

That attestation step is a policy decision for the customer to configure. Teams handling sensitive data or model weights need a verifier or suitable KMS policies that check the expected measurements before providing secrets. Confidential mode supplies mechanisms for that workflow; it doesn’t automatically decide which workload should receive access.

AWS native service versus portable runtimes

Kata Containers has long offered a similar model: container workloads run inside lightweight VMs with separate guest kernels. The Apache 2.0 licensed project supports several virtualization backends, including QEMU, Cloud Hypervisor and AWS Firecracker.

The distinction is largely about deployment and portability. Nitro Sandboxes use AWS’s own virtualization layer and are integrated with supported AWS services. Kata can run across different infrastructure and virtualization stacks, though a Kata VM hosted inside a virtualized Kubernetes worker can require nested virtualization. Running Kata on bare metal avoids that particular constraint.

Red Hat has also described using Kata with OpenShell for AI agents. Jessica Forrester, chief architect of AI Catalyst Engineering at Red Hat, said the setup gives agents their own kernels and uses “prop” credentials that appear real to an agent but don’t open anything. OpenShell replaces those credentials with real keys when requests leave the Kata boundary. The method illustrates how runtime isolation and controlled secret access can work together.

Cost and deployment implications

AWS charges no additional fee for Nitro Sandboxes themselves. Customers still pay for the EC2 capacity they use, along with any applicable EKS Auto Mode or ECS Managed Instances fees. The practical cost question, then, is whether sandboxing lets a team run sensitive or untrusted workloads on shared capacity instead of assigning each one a separate instance.

For AWS teams, the service adds a per pod or per task isolation option within familiar orchestration workflows. Its value will depend on which workloads need a distinct kernel, how teams configure confidential mode, and whether the extra boundary fits their deployment model. For organizations that need portability across cloud providers or virtualization stacks, Kata remains a flexible alternative. The near term takeaway is clear: workload isolation is moving closer to the unit teams already schedule and scale.

Source: Steven Vaughan-Nichols · cloudnativenow.com

Comments

Sign in to comment.
No comments yet. Be the first to comment.

Related Articles

AWS Rolls Out Nitro Sandboxes to Give Containers Their Ow...