Skip to Content
NeoRun

Security model

What the agent can and cannot do, where keys live, and what NeoRun records.

NeoRun's job is to let an agent act on your servers without trusting the agent. These rules hold at every safety level. Each one has a test in the code.

What the agent can do

  • Look: list servers, inspect them, read an app's logs, plan a deploy.
  • Rehearse: run any command in a throwaway copy of a server.
  • Ask: request a deploy, a rollback or an infra change, and ask for a person on any of them.
  • Act on its own, only where the server's safety level allows it and the change is reversible and not on the never-automatic list.

What the agent cannot do

  • Hold credentials. The agent refers to servers by NeoRun id only. SSH keys are encrypted at rest and decrypted only briefly by the control plane.
  • Approve. Approval cannot be reached with any MCP token scope.
  • Run commands on a real server. There is no raw shell tool and no raw SQL tool. On a real server only typed operations and approved changes run.
  • Change an approved change. What is applied must hash-match what was approved, and an approval is used once.
  • Ask for less oversight. ask_human only ever adds a person.
  • Touch what you excluded. SSH access and users, opening a port to the world, deleting data and changing things NeoRun did not create always need a person.

Where keys live

  • SSH keys you give NeoRun are stored encrypted with NEORUN_ENCRYPTION_KEY and are never shown again. Backups do not contain that key.
  • Agent tokens are short-lived, bound to the NeoRun address they were issued for, and carry a scope. Refresh tokens are single use. Write access expires 12 hours after you last entered your password, however often the agent refreshes. Only a new password step gives it back.
  • Phone push uses a key pair NeoRun makes for itself, stored with the private key encrypted under NEORUN_ENCRYPTION_KEY.
  • The server's host key is the one you confirmed when you connected it. NeoRun checks it on every connection.

Host output is untrusted

Logs, container output, file contents and anything else a server or a rehearsal reports are returned labelled as untrusted, and never feed a policy decision. Host output can trigger a request (an unhealthy check asks for a rollback) or shape a plan (a preflight picks a routing mode), but a decision reads only the plan or change NeoRun built or measured itself, NeoRun's own records and the server's safety level. A plan's risk comes from what the plan does, never from what the server says.

What is recorded

  • The evidence ledger. Every change to a server is written to an append-only ledger with what changed and how to undo it, before it runs. A change with no known undo is marked irreversible and always needs a person.
  • An audit log of requests, including refusals.
  • Approvals, with who decided, by which channel and when.

Refusals

NeoRun says "I can't safely rehearse this" and refuses, for everyone, to approve or apply changes to the kernel and its modules, the server's network configuration, mounts and other reboot-time configuration, and anything that reaches other hosts. See Rehearsal on a copy.

Where your servers run NeoRun's code

  • The control plane runs where you host it. Run it on its own machine, not on a server you let agents deploy to.
  • The probe, a single static program, runs on your server over SSH to inspect it, rehearse, apply and check.
  • NeoRun's per-app edge, a Caddy it runs on your server, publishes your apps.

Known gaps

  • NeoRun cannot see inside HTTPS during a rehearsal. The HTTPS hosts contacted are listed for you.
  • The kernel can load a module for a rehearsal, which cannot be blocked per container. NeoRun detects it and reports it with the change.
  • Scoping an agent's grant to a single server is not built.

Planned

An outbound agent for servers that cannot take an incoming SSH connection, so no port needs to open and NeoRun stores no SSH key, is not built. Today NeoRun connects to your server over SSH.

Reporting a problem

There is no published security contact yet.

Edit this page on GitHub

On this page