> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xkey.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Security model

> How 0xkey protects keys: secure enclaves, verifiable requests, policy enforcement, and remote attestation.

0xkey never holds a usable private key outside a secure enclave. The model rests on four properties.

## 1. Keys only exist in plaintext inside enclaves

Key generation, signing and policy evaluation run inside secure enclaves (Trusted Execution Environments) on AWS Nitro. Enclaves have no persistent storage, no interactive access and no external networking. Private keys are stored only as ciphertext and are decrypted only inside an enclave running verified 0xkey code. See [Secure enclaves](https://docs.0xkey.io/security/secure-enclaves.md) and [Non-custodial key management](https://docs.0xkey.io/security/non-custodial-key-mgmt.md).

## 2. Every request is signed by its author

Each request carries a [stamp](https://docs.0xkey.io/developer-reference/api-overview/stamps.md): a signature over the exact request body by an API key or passkey. The enclave verifies the stamp itself, so a compromised server between your client and the enclave cannot forge or alter a request. With [sub-organizations](https://docs.0xkey.io/concepts/sub-organizations.md), only the end user's credentials can authorize use of the end user's keys.

## 3. Policies are enforced inside the enclave

The [policy engine](https://docs.0xkey.io/policies/overview.md) runs in the enclave and decides every [activity](https://docs.0xkey.io/concepts/activities.md) before it executes. Restrict non-root users with policies, keep root users for administration, and protect the organization with a [root quorum](https://docs.0xkey.io/concepts/users/root-quorum.md).

## 4. You can verify what is running

QuorumOS, the enclave operating system, requires a quorum of operators to deploy enclave code or reconstruct core secrets; no single engineer can do either. [Remote attestation](https://docs.0xkey.io/security/remote-attestation.md) lets you check that an enclave is genuine Nitro hardware running the expected measurements.

## Your responsibilities

* Store API private keys in a secrets manager; never ship them to browsers or mobile apps.
* Give each backend its own API user, scoped by policy, instead of a root key.
* Prefer transaction signing over raw-payload signing so transaction-field policies apply.
* Work through the [Launch checklist](https://docs.0xkey.io/getting-started/launch-checklist.md) before going live.

## Read more

> [card] [Our approach](https://docs.0xkey.io/security/our-approach.md)
>
> The security framework end to end

> [card] [Whitepaper](https://docs.0xkey.io/whitepaper.md)
>
> Architecture and design principles in depth


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.