Architecture — 11 min read

Why Servor's servers cannot run your commands

Signed execution explained: the command is signed in your browser with a key derived from your vault key, the API relays it verbatim, and the agent verifies the signature on the machine before running it. What that buys you when the control plane is compromised.

Published
November 16, 2026
Reading time
11 min read
Servor Team
Engineering
Tags
Cryptography · Ed25519
Lire cet article en français

The question nobody asks their infrastructure vendor

When a platform runs commands on your servers, there is a question worth asking that almost nobody does: could the platform run a command you never approved? For most tools the honest answer is yes. They hold a credential — an SSH key, an API token, a session — that lets their servers act as you. Their promise not to abuse it is a policy, and a policy is only as good as the day their control plane is breached.

Servor was built to give a different answer. Not “we would never”, but “we cannot”. The control plane is a courier: it carries a command it cannot read the authority behind, to an agent that checks that authority itself. This piece is about the mechanism that makes that true, and about what specifically stops being possible for an attacker who owns our servers.

Where the authority to execute actually lives

The authority is a key, and the key is never on our servers. When you unlock your vault, your browser derives an Ed25519 signing key from your vault key — the same material that decrypts your credentials, never transmitted, held in memory only. That signing key is the one and only thing that can authorise a command to run on your machines.

So the shape of every execution is fixed by where that key is:

  1. the browser builds the exact command line and signs it — the command, the target, and a nonce, together, under the Ed25519 key;
  2. the API receives that signed grant and relays it verbatim to the agent over the tunnel;
  3. the agent on the target machine verifies the signature locally against the public key it was enrolled with, and only then runs the command.

The private key touches none of that path after the browser. The API sees a signed blob and a destination. It cannot manufacture a second one.

The rule that falls out of it: verbatim, or not at all

This is the constraint that surprises people, and it is not a preference — it is forced by the maths. The server cannot wrap a signed command. No prepending a cd /srv/app, no slipping in a sudo, no exporting an environment variable around it. The signature covers exact bytes; change one and verification fails on the agent. If a convenience seems to require the server to rewrite what you signed, the convenience is the thing that has to go, because the alternative is a signature that no longer describes what executes.

This is why the copilot proposes one whole command at a time rather than a script the server assembles. The thing you approve and sign is the thing that runs, byte for byte. It is less clever than a server-side orchestration layer, and that is exactly the point: cleverness in the middle is where the ability to run something you did not approve would live.

The AI has one tool, and it is not the executor

The copilot's only tool is run_command, and it is declared without a server-side implementation. When the model calls it, the call does not execute on our infrastructure — it is handed back to your browser. The browser classifies the command's risk, applies the current mode's policy (Ask, Plan, or Auto), shows you the approval, signs, and only then relays. The model is a proposer; the browser is the gate; the agent is the executor. At no point is our server in the position to run something on its own initiative, because it was never handed the ability to.

Two checks, on both sides, that no approval can override

Signatures answer “did the right key authorise this?”. A separate defence answers “should this ever run at all?”. A shared forbidden-command list — rm -rf /, raw writes to /dev/sd*, edits to /etc/shadow or /etc/sudoers, fork bombs — is enforced twice: once on the control plane before it relays, and again on the agent before it runs. Even in Auto mode, even with a valid signature, a command that matches the list is refused. It is defence in depth against the case where one layer is wrong, and against the operator who approves something catastrophic in a hurry.

A third property closes a subtler gap: every signature carries a nonce, and a nonce is single-use. A grant captured off the wire cannot be replayed to run the same command a second time — the control plane rejects a nonce it has already seen. Signing proves who authorised; the nonce proves it was authorised now, once.

SSH is for bootstrap, and nothing else

It would be easy to assume something like SSH is quietly driving all this from our servers. It is not. SSH is used exactly once per machine, for bootstrap: to probe the connection, run the initial discovery, and install the agent. After that, execution goes through the agent tunnel, an outbound connection the agent itself opens. If the tunnel is not connected, runCommand does not fall back to SSH — it fails outright with an “agent unavailable” error. There is deliberately no second execution path to compromise, because a fallback is a door, and doors get used by the wrong people.

What a compromised control plane can and cannot do

Suppose an attacker fully owns our servers. Being precise about the blast radius:

  • They cannot forge an execution. Running a command needs a valid Ed25519 signature over it, and the key lives in your browser, not our database. No key, no grant the agent will accept.
  • They cannot rewrite one in flight. The grant is relayed verbatim; any edit breaks the signature the agent checks.
  • They cannot read your credentials to act through some other channel — that is the zero-knowledge storage story, and it holds independently.
  • What they could do is disrupt availability — refuse to relay, drop the tunnel — and see metadata like hostnames and team names. That is real, and worth saying. It is denial, not forgery.

The point of the design is not a claim of invulnerability. It is a reduction in what a compromise is worth: the most dangerous capability — running arbitrary commands on your fleet — is simply not one our servers possess to lose.

The trade you are actually making

Nothing is free. Because the authority lives in your browser, execution requires an unlocked vault in an open session — there is no way for us to run a nightly job “as you” while you sleep, precisely because we cannot act as you. Scheduled work is expressed as commands the agent runs against policy you set, not as us wielding your key. That is the honest cost of the guarantee, and for infrastructure it is a cost worth paying: the thing you give up is the thing an attacker most wanted.

Where this sits in the rest of Servor

Signed execution is one half of a pair. The other is that we cannot read what we store — covered in the zero-knowledge implementation piece. The discipline that wraps a human around each command — approve, sign, verify — is the Plan-Execute-Verify piece, and the outbound tunnel that carries the signed grant without opening a port is the agent reverse-tunnel piece. If you want the product view rather than the cryptographic one, the AI copilot page is the place to start. Questions about the choices? Write to hello@servor.app — we always answer.

Next step

Run it, don't just read it.

Free for two servers, no card. Every command is signed in your browser before it runs — our servers relay it, they cannot forge it.

Continue reading

Archive →