Skip to content
docs
type to search↑↓ move↵ openesc close
v0.3.2github

Security model

6 min readv0.3.2this page as markdown

Hermitbox is made for code you don’t trust: an agent’s output, a pull request, a repository you just cloned. It treats code in a sandbox as hostile and keeps it away from the host, from other sandboxes and from the keys that run the fleet, at the strength of the tier you choose.

The table says what holds each boundary and where it is weaker. Known limits lists the gaps, so you can pick the tier that fits the code you run.

Boundary What holds it Where it is weaker
Sandbox and host The tier’s isolation, with policy from the host’s configuration process and container share the host’s kernel
Sandbox and sandbox Per-tier separation; credentials bound to one sandbox Shared-UID process sandboxes can signal each other; wasm sandboxes share one sidecar
Sandbox and network network: 'none' on every tier; egress only through gateways the node owns Without kernel network policy, internet-enabled process sandboxes can reach host listeners
Client and API A project key reaches only its project; control stores only its SHA-256 The edge sees agent and exposed-port traffic in clear, since it terminates that TLS
Control and node Mutual TLS 1.3 with hybrid X25519MLKEM768 and ML-DSA-65 certificates, and an epoch on every change —
Releases ML-DSA-65 signatures checked before a binary runs —

What Hermitbox trusts

Hermitbox trusts the host’s root and the operator, the operator token, the fleet’s certificate authority, signed releases, and the Linux kernel. Kernel bugs are outside the model, except that the vm tier gives each sandbox a kernel of its own.

It never trusts anything from inside a sandbox: the data directory, a guest kernel, or what the agent reports. Every walk of a data directory refuses links and special files. It never trusts DNS answers, proxy settings in a sandbox, or images beyond the host’s allowed prefixes.

Host policy wins

The host’s operator sets the rules, and no request can loosen them. Capabilities, mounts, images, users, network rules and limits come from the host’s configuration, never from a request. Control decides what runs, but it can’t decide how weakly: a node refuses weaker isolation than its policy, an image outside allowed_images, and any field it hasn’t announced.

A request that names a tier or a guarantee gets it, or a refusal that names what is missing. Isolation tiers shows how.

Where keys live

Hermitbox’s own keys never enter a sandbox. The project key stays with your client: a request to a sandbox’s agent carries a capability for that sandbox alone, valid for at most five minutes.

Key Where it lives
Project API key Your client’s client.json (mode 0600) or environment; control keeps only its SHA-256
Agent signing key One per sandbox, in the node’s private state, outside data, snapshots and exports
Node identity key Made on the node and never sent; root-only on a server
Fleet certificate authority Control
Release signing key The release workflow’s protected environment; nodes and the CLI hold only the public keys, built in
Secret-sealing keys Control’s environment

Secrets you pass at creation (secrets) are the one exception, by design: they reach the sandbox you made them for. Control seals them at rest with AES-256-GCM, and they never appear in a view, an event, a log or a record’s digest. A vm guest receives them over vsock into memory, never onto a disk.

Post-quantum keys

Releases, the join bootstrap, host bundles, server manifests, fleet and node certificates and sandbox capabilities are signed with ML-DSA-65. The key exchange between nodes and control, and SSH’s, is hybrid post-quantum. SSH client and host keys and public API certificates are not post-quantum; the table marks each.

Use Algorithm Post-quantum
Release, join bootstrap, host bundle and server manifest signatures ML-DSA-65 (FIPS 204) Yes
Node and control mutual TLS key exchange Hybrid X25519MLKEM768 (TLS 1.3 only) Yes
Fleet and node certificates ML-DSA-65 (FIPS 204) Yes
Sandbox capabilities ML-DSA-65 (FIPS 204) Yes
SSH key exchange Hybrid mlkem768x25519-sha256 or sntrup761x25519-sha512@openssh.com (refuses classical-only KEX) Yes
SSH client and host keys ECDSA P-384 (ecdsa-sha2-nistp384), short-lived No
Public API certificates Public WebPKI (ECDSA P-384 via ACME) No
Secrets at rest in control AES-256-GCM, symmetric Not a public-key scheme

A node checks every release before it downloads it: the version must be no older than its own, and the offer must carry an ML-DSA-65 signature by a release or recovery key compiled into the daemon. Control or its certificate authority can pass a signature on, but can’t make one.

Known limits

  • Process sandboxes share the host’s kernel. A kernel escape from one escapes its host or enclosing container. In the plain mode it has no PID, mount or network namespace.
  • An ordinary user’s process sandboxes share that user. They share per-user limits and can signal each other. Use them for work you trust, or require separate-users.
  • Without delegated cgroups, process memory is a sampled budget, not a hard cap.
  • Wasm sandboxes share one sidecar, with no per-sandbox CPU rate.
  • Containers share the host’s kernel, and Podman has no host firewall.
  • Failover waits for an operator. No timer declares a host lost, so a lost host’s sandboxes stay down until someone fences it and confirms.
  • A compromised fleet certificate authority cuts every node off until each one re-enrolls.

Next steps

run it yourself
$curl -fsSL https://hbx.sh | sh
or ask your agent
Install Hermitbox and set it up for me
Linux (x86_64 or aarch64), no root, no Docker. Agents can read every page: llms.txt · llms-full.txt
the floor · nothing below this line