Key takeaways

  • Nitro is the custom hardware and software behind every modern Amazon EC2 instance.
  • Nitro is designed so AWS operators have no way to access customer data.
  • The Nitro Isolation Engine adds mathematical proof to the isolation Nitro has always enforced.

How the AWS Nitro System keeps operators out of customer data

Normally, the people who run a server can log in to it to look around and fix problems. AWS designed Nitro so its operators can’t. The Nitro System, including its Hypervisor, gives AWS staff no way to log in to the servers directly. They can manage servers only through limited interfaces that can’t reach customer workloads.
AWS launched Nitro in 2017 and is described as a first-of-its-kind innovation, designed with zero operator access to customer data. In 2023, independent security firm NCC Group reviewed the design and found no mechanism for a cloud operator to access customer data.

Why AWS built the Nitro System

Amazon Elastic Compute Cloud (Amazon EC2) originally ran on the Xen hypervisor, the software layer that divides one physical server among many customers. Xen did a lot: it scheduled the CPU, emulated devices, enforced network limits and security groups, and handled network traffic. All of that ran on the same processor customers were paying to use.
In 2013, AWS engineers began moving those jobs off the server’s main processor and onto hardware AWS designs itself. That hardware is a custom Nitro chip mounted on a card, called a Nitro Card, installed in the server. They worked with Annapurna Labs, a chip startup Amazon acquired in 2015. Networking moved first, followed by Amazon Elastic Block Store (Amazon EBS) storage and local storage. Last came a new hypervisor with almost everything stripped out: no networking or storage software, and no remote login server. The Nitro Hypervisor runs only when an instance asks it to do something. As a result, virtual instances perform close to bare metal.
Moving that work off the main server did two things. Customers got more of the server they were paying for. And with networking and storage running on separate hardware, AWS could strip the hypervisor down to the bare minimum and remove the tools operators would otherwise use to log in. Because Nitro is built from interchangeable parts, AWS can add cards for more storage or faster networking and design new instance types quickly. That approach is also how AWS brought the Mac to EC2: pairing AWS’s custom-built Nitro hardware with an Apple Mac mini.

How AWS keeps adding protection in hardware

In addition to virtualization, the Nitro System also enhances the security of the server by allowing AWS to measure and update the firmware on the server at every boot. It’s also designed to block unauthorized changes. Zero operator access has been part of the Nitro System's design from the start. Nitro Cards are now in their sixth generation, and AWS has continued to add more security features to the system:
  • Encryption in transit. The latest Nitro Cards automatically encrypt traffic between supported instances, without slowing it down.
  • Memory and link encryption. Starting with Graviton2, memory on Graviton-based servers is always encrypted, and AWS has since extended always-on memory encryption to many of its other recent EC2 instance types. Graviton4 goes further and encrypts all of its high-speed physical interfaces, including its connections to the Nitro Cards.

How the Nitro Isolation Engine uses math to prove isolation

Testing can only check the scenarios someone thinks to test. Formal verification uses mathematical proof to show that a property holds in every possible system state and for every possible input.
AWS wanted that level of certainty for the code that keeps customers’ instances apart. The Nitro Hypervisor has enforced isolation between customers since Nitro launched in 2017. It also handles many other jobs, and that complexity makes it much harder to prove correct mathematically. To make the proof possible, AWS engineers moved the isolation logic into a small, dedicated component, the Nitro Isolation Engine, and wrote it in a limited subset of Rust, a programming language that lends itself to formal verification.
The rest of the hypervisor still makes the day-to-day decisions, such as guest creation, resource allocation, scheduling, and device emulation. But any action that touches a customer’s instance state has to go through the Nitro Isolation Engine, which checks every request before it acts. AWS scientists used a proof assistant called Isabelle/HOL to prove four things about the Nitro Isolation Engine:
  1. Confidentiality and integrity: no unauthorized entity can read or modify a guest’s private data.
  2. Functional correctness: the code does exactly what its specification says.
  3. No runtime errors.
  4. Memory safety.
The Nitro Isolation Engine runs in production and is always on for Graviton5-based instances. AWS has also made the proof tooling it built along the way open source.
The proof focuses on the code that does the most important job, enforcing isolation. Testing, design reviews, and independent audits continue to cover the rest of the system, and AWS’s white paper sets out the exact scope and assumptions.

Why cloud security matters

For banks, hospitals, and governments, how their data is isolated in the cloud is a central question. The Nitro System answers it in layers: a hardware-based system designed with no way for operators to get in, an independent review of that design, and mathematical proof for the code that keeps customers’ instances apart.
Next, take a look inside the AWS lab that makes everything you do online feel effortless.