security-architecture
Security model
Kutrion's security model stated plainly: an audited access broker, not zero-knowledge — envelope encryption, no plaintext credential material at rest, decrypt-in-memory for authorized actions, everything on a tamper-evident trail.
Updated Nov 9, 2026
Kutrion is an audited access broker — not zero-knowledge. We state that plainly because it is the honest description of what the server does, and because the choice shapes everything else about the design. The server decrypts a secret in memory only for a specific authorized, audited action, and that act is always recorded.
The model, stated plainly
- Envelope encryption throughout. Every record is sealed with its own data key, which is itself wrapped by a master key. Keys are never stored beside the data they protect.
- No plaintext credential material at rest. Secrets are only ever decrypted in memory, for the duration of an authorized action, and then discarded.
- Decrypt only for an authorized action. There is no bulk decryption and no standing plaintext — decryption is tied to a specific, permitted operation.
- Access on a tamper-evident trail. Reads, brokered sessions, and security events are written to a hash-chained audit log in which tampering is detectable; a few event types are not recorded yet. See Audit logs.
A strict zero-knowledge design would make the server unable to do the things teams need — broker an SSH session, inject a credential just-in-time, scan command output for a leaked secret. Each of those requires the plaintext, in memory, at the moment of use. We chose the broker, and we made it accountable rather than pretending it is blind.
Signing in and confirming sensitive actions
Password plus a code emailed to you is the default way to sign in and to confirm a sensitive action. Hardware security keys and an authenticator app are optional. Passkeys kept in a browser or password manager can be registered and used to sign in today; refusing them at registration is planned (#3860). We do not call password plus email two-factor, and we state its limits:
- Inbox plus password is the account for any account with no security key or authenticator app, because password reset also goes through the inbox.
- The emailed code is not phishing-resistant, and it is a weaker factor than a hardware key.
- An agent that drives your signed-in browser can fill a saved password and read the mail tab, so password plus email on the web does not stop it. We consider that only a security key, or an approval on a separately registered phone, resists that.
- The code allowance is per account: at most 10 sign-in codes an hour (5 under an admin MFA-reset hold), and 5 confirmation codes an hour. Whoever holds the password can spend it and lock the owner out of password sign-in for up to an hour.
- A newly set password counts for emailed-code confirmation only after 7 days, and a key or authenticator app added in the last 7 days does not count as an approval factor on Hub.
- A phone approval shows that a key registered shortly after a fresh sign-in on that phone signed the request. The server cannot check that a biometric ran, and there is no push notification.
- Scripted password sign-ins without a mailbox do not work; automation uses agent tokens.
The list of routes that start a session is in the user guide, section 7.
Multi-tenant isolation
Tenants are isolated at the database using Postgres row-level security. Every tenant table is
scoped by org_id, derived from the authenticated context, and the policy is forced even for the
table owner — there is no query path that quietly returns another tenant’s rows. See
Tenant isolation.
Privacy-first AI
AI assistance defaults to a self-hosted model rather than a cloud one. There is no configuration in which a cloud model is the silent default. Where that self-hosted model runs, however, depends on the deployment, and the two cases are not the same:
- Self-hosted Kutrion. AI is off until an operator turns it on and points the server at an Ollama endpoint. That endpoint is one you run, so prompts and terminal output are answered on your own network.
- Hosted Kutrion. The default is the instance’s model — the Ollama endpoint the operator of the deployment has configured — which is Kutrion’s infrastructure, not yours. Putting inference on your own network is a configuration step, not the default: an organization admin points Kutrion at an Ollama endpoint you operate. That setting is available on every plan.
In both cases the cloud model is a separate path that stays shut unless three things line up together: a configured cloud key, a per-organization opt-in that is off until someone turns it on, and the cloud-AI plan entitlement. Anything that does go out has secrets and PII stripped first and is recorded on the audit trail, but that step is a filter rather than a gate: it removes shaped values, not the operational content around them — command text, terminal output, hostnames and file paths still reach the model. The privacy model, including the measured passthrough figure and what each deployment actually gives you, is in AI privacy model.
Product-protection layer
For self-hosted deployments, Kutrion adds protections that bind the software to where it is licensed to run:
- On-prem key binding. The master key’s unlock is derived from the host environment, a hardware root, and the license signature, so a licensed instance cannot simply be cloned to unlicensed hardware. See Cryptography.
- Honeytokens. Decoy credentials and tripwires detect tampering and unauthorized use; their state is surfaced to operators in the admin console. A decoy is a whole credential, never a key inside one — a decoy placed inside a multi-secret credential such as an environment-variable bundle has no record of its own and would never raise an alarm, so decoys are seeded as standalone credentials.
Known limitations
Kutrion separates shell and exec use of a connection in its own broker, but the host does not enforce that split. Both purposes log in as the same account, so an agent’s exec rights are bounded by that account’s privileges.
For one-shot runs of an allowlisted command on a host enrolled with a certificate, Kutrion also pins that exact command into the certificate (force-command), so the host refuses to run anything else on that connection. This does not apply to hosts that use a stored password or key or to hosts enrolled with a server-generated fallback key, and it does not limit what an allowed command does as the login account. Kutrion refuses to open a session for an agent limited to allowlisted commands on a certificate-enrolled host, so each such command runs as its own pinned connection. On hosts that use a stored password or key, or a server-generated fallback key, commands in a session are checked by Kutrion only.
Hosts enrolled with a fallback key cannot carry a per-command pin: one key serves every purpose, and the host’s key line cannot name a different command for each allowed one. To have the host pin each allowlisted command, enroll the host with a certificate.
For agent access, enroll a separate least-privilege account as its own connection. See A least-privilege connection for agents.
Related pages
- Cryptography — envelope encryption, key providers, and post-quantum posture.
- Tenant isolation — the row-level-security model.
- Architecture overview — how the system is put together.