← All posts Security

AWS Nitro Enclaves: Protecting Your Most Sensitive Data in Use

Encryption protects data at rest and in transit. The hardest moment to protect it is while it is being processed, when it has to be decrypted in memory. AWS Nitro Enclaves address exactly that: they let you process highly sensitive data in an isolated environment that even administrators of the server cannot access.

What is a Nitro Enclave?

A Nitro Enclave is an isolated virtual machine created from the CPU and memory of a parent Amazon EC2 instance. It is built on the AWS Nitro System, the same hypervisor technology that isolates EC2 instances from each other.

An enclave is deliberately limited:

  • No persistent storage: nothing is written to disk inside the enclave.
  • No interactive access: no SSH and no console, even for root users of the parent instance.
  • No external networking: the enclave talks only to its parent instance, over a local channel called vsock.

Those limits are the point: they shrink the attack surface around your most sensitive code and data.

Attestation: proving what is running

The key feature is cryptographic attestation. When an enclave starts, it can produce a signed document that describes exactly which code image is running, using measurements of that image.

AWS Key Management Service (KMS) understands these documents. You can write a key policy that says "only release this key to an enclave running this exact image". Secrets are then decrypted only inside the verified enclave, never on the parent instance.

Common use cases

  • Payments and financial data: processing card data or tokenisation with a smaller compliance scope.
  • Personal and health data: handling identity documents, medical records or national ID data with strict access control.
  • Private keys and certificates: AWS Certificate Manager for Nitro Enclaves lets web servers on EC2 use TLS certificates whose private keys stay inside an enclave.
  • Multi-party processing: combining data from several organisations where no single party should see the raw inputs.
  • Sensitive AI workloads: running models or processing prompts that contain confidential data.

Benefits

  • Strong isolation without managing separate hardware.
  • Least privilege by design: operators and applications on the parent instance cannot read enclave memory.
  • Native KMS integration through attestation.
  • No additional charge for enclaves; you pay for the EC2 instance resources they use.

Things to plan for

  • Application changes: code must be split into the sensitive part, which runs in the enclave, and everything else, which talks to it over vsock.
  • Resource sizing: CPU and memory given to the enclave are taken from the parent instance.
  • Supported instances: enclaves run on most Nitro-based EC2 instance types; check the type you plan to use.
  • Debugging: with no console, logging and testing need to be designed in from the start.

Is it right for you?

Nitro Enclaves are worth it when a small piece of your system handles data whose exposure would be serious, such as payment, identity, health or cryptographic keys, and you want to prove that it is protected. For general workloads, standard EC2 isolation, encryption and IAM are usually enough.

Zoftcares designs security and compliance on AWS for regulated and government workloads. See our security services or talk to us.

Have a question about your cloud or AI plans?

Talk to a Zoftcares architect on WhatsApp.