Skip to content

Security Architecture

Nanorix uses a defense-in-depth approach with six layers of Linux isolation. Each command run in a capsule gets its own mount, PID, hostname (UTS) and user namespaces and its own root filesystem, runs under the capsule's cgroup resource limits and a system-call filter, and keeps its working data in the capsule's tmpfs workspace. A capsule with no egress profile bound, or with a bound profile that has no rules, runs in its own empty network namespace with no route out. If any isolation step fails, the command does not run.


Design Principles

Ephemeral by construction. A capsule's working data lives in a tmpfs workspace in volatile memory. Nanorix keeps no database storage of customer data and no log capture of capsule content. When a capsule is destroyed, its tmpfs workspace is overwritten in multiple passes and unmounted, and its keys are destroyed.

Zero trust in ourselves. The AuditProof is designed so that verification does not require trusting Nanorix. The hash chain algorithm is public, the signing authority's Ed25519 public key is embedded in the AuditProof, and any standard cryptography library can verify the proof independently. The authority's key is also published in a signed trust-chain manifest, so the key itself can be checked against a root you obtained out of band rather than taken on faith from the proof.

Defense in depth. No single layer is sufficient, so the layers are designed to operate together rather than as alternatives to one another.


Six-Layer Isolation

The isolation model has six layers, set up before each command starts; if any step fails, the command does not run. These layers provide separate mount, PID and hostname (UTS) namespaces with the capsule's own root filesystem, a tmpfs workspace, an empty network namespace for capsules without egress, resource limits, system call filtering, and cryptographic attestation.

For detailed layer specifications, request the Security Whitepaper by email at [email protected].


Destruction Sequence

When a capsule is destroyed (by customer request, TTL expiry, or system event), a multi-step destruction sequence executes. Each step covers a different aspect of destruction: environment teardown, filesystem clearing, memory overwriting, key zeroization, forensic verification, and chain sealing.

Each step generates evidence. The evidence is cryptographically hash-chained (SHA-512) and the canonical view of the proof, which includes the sealed chain, is signed by the deployment's signer. The hosted Evaluation Sandbox signs with an Ed25519 key held in Google Cloud KMS, whose public half is published in the trust-chain manifest. A BYOC install signs with the key it is configured with. The capsule's own keys are among the things the chain records as destroyed (steps 4 and 5); they do not sign the proof.

See AuditProof specification for the chain format.


Cryptographic Guarantees

The AuditProof uses SHA-512 for hash chaining and Ed25519 for attestation signatures. Two different keys are involved, and they do different jobs.

The capsule's keys are ephemeral. Each capsule is provisioned with its own disposable Ed25519/X25519 identity, minted for that capsule alone, rotated during the run, and incinerated at teardown. That incineration is what chain steps 4 (dire_keys) and 5 (dire_identity) record — the number of identities destroyed and the incineration proof are bound into the step evidence hashes. These keys never leave the capsule and never sign the proof.

The proof is signed by a long-lived authority key. After the chain is sealed, it is signed by the deployment's signing authority: a long-lived Ed25519 key kept in a key service (Google Cloud KMS; the API's Vault signer, for a HashiCorp Vault or OpenBao Transit key, needs an install signing authority, so this release does not start with it). The private key never enters the container — signing is a remote call — and the public key is embedded in the AuditProof. Nanorix publishes its own authority's key in the signed trust-chain manifest under the proof's authority_id and signing_key_version; the key of a customer authority is in no signed key list Nanorix publishes, so anchoring it takes a key list signed for that authority. On the Nanorix-hosted sandbox that authority is us-kms-nanorix-v1; in a customer-run deployment it is the key the install's operator configures. A verifier given the manifest, with its identity fingerprint pinned, resolves the key to a registered authority; a signer the manifest does not list is refused at stage 6 (signing_key_version_unknown). Without a manifest, a proof verifies only for integrity, against the key it carries, and the verifier says so.

The runtime also ships a development-only signer that mints a fresh keypair per proof and zeroizes it after one signature. It stamps signing_key_version: "local-ephemeral", claims no authority, and never anchors to a manifest — it is not what a hosted or production proof is signed with.


What Nanorix Does NOT Store

After a capsule is destroyed, Nanorix keeps none of the following in its database or logs, apart from what an AuditProof records (privacy policy, section 7):

  • Customer data (input, output, intermediate computation)
  • Capsule filesystem contents
  • Command output or stderr (returned to customer in the destroy response, then discarded)
  • The capsule's identity keys, incinerated at teardown (chain steps 4 and 5); the authority's signing key is kept in the key service (KMS or Vault), not in the API
  • Memory contents of the capsule

What the hosted Evaluation Sandbox stores is listed in the privacy policy, section 3, and in the Google Cloud row of the sub-processor list.


API Key Security

API keys are hashed with SHA-256 before storage. Nanorix does not store plaintext API keys. The key is shown exactly once at signup and cannot be retrieved afterward.

Rate limiting is applied per customer account on authenticated endpoints, and per IP address on the public verification, signup and contact endpoints (/v1/verify, /v1/signup, /v1/contact) and the control-map and benchmark reads. Prometheus /metrics is not on the API port at all: an install serves it only on its cluster-internal metrics port, also limited per IP, and the hosted Evaluation Sandbox does not serve it.


Infrastructure

Written in Rust (memory-safe, no garbage collector). What the database stores is listed in the privacy policy, section 3; it holds data processed inside a capsule only as far as an AuditProof records it (privacy policy, section 7). TLS-encrypted. For infrastructure details, request the Security Whitepaper by email at [email protected].


Threat Model

What we defend against

  • Workspace data after processing — The destruction sequence overwrites the capsule's tmpfs workspace in multiple passes, unmounts it and destroys the capsule's keys, and the AuditProof records each of those steps.
  • Access between capsules — Each command runs in its own mount, PID and UTS namespaces and its own root filesystem, which does not mount other capsules' directories, inside its capsule's own network namespace and under its capsule's own cgroup. Its system-call filter refuses the tracing calls (ptrace, process_vm_readv, process_vm_writev) and System V IPC.
  • Host file permissions when the API runs as root — Each command runs in its own user namespace. Where the API runs as root, which includes the hosted service and the documented Kubernetes profiles, each capsule leases its own non-root user and group ID for its life, and each command drops to them before its user namespace is made, so the host kernel's file-permission checks treat the command's processes as that unprivileged user. Capsules run only after a startup self-test sees a probe command hold the leased IDs with no supplementary groups and be refused when it opens /proc/sysrq-trigger, and again when it opens /proc/sys/kernel/core_pattern, for writing. The command's /proc is mounted read-write; the refusal comes from the kernel's permission checks against the leased user, not from a read-only mount.
  • AuditProof forgery — Ed25519 signatures are computationally infeasible to forge. Tampering with any chain step invalidates the hash chain.
  • Insider access through Nanorix interfaces — Nanorix exposes no operator or debug interface that returns capsule content; through the API, capsule contents are returned only to the owning customer's authenticated credentials (API keys or Console sessions). There is no log capture and no database storage of capsule content.

What we do NOT defend against

  • Verification of physical destruction — AuditProofs prove that the multi-step destruction sequence executed and that the AuditProof's signed content has not changed since signing (fields outside the signed view, such as metadata, are not covered). They do not independently prove that the physical memory was overwritten (this requires hardware attestation, which is a future capability).
  • Customer-declared metadata accuracy — jurisdiction and data_classification are customer-declared. Nanorix does not verify these declarations.
  • Egress route confinement, not yet verified — For a capsule with an egress profile bound, the designed route out is an egress proxy that checks each destination against that profile's allowlist and, when the Capsulefile declares one, its egress declaration. Confining every such capsule to its prepared network namespace and that proxy route is being completed and is not yet verified.
  • Host compromise — If the underlying host infrastructure is compromised at the hypervisor level, capsule isolation could theoretically be broken. This is mitigated by the host provider's infrastructure security but is not cryptographically provable without confidential computing (future roadmap).