whitecell
Log in

Docs

Add a server, keep it current, or run all of it yourself.

The full documentation lives in the repository, one document per part, and opens with the first release made for users. This page is the short path through it.

Alpha. Commands and paths below match the current code. The installer puts whitecell on the path (/usr/local/sbin/whitecell); run it as root.

Guides

One task each, in the console’s own words, with screenshots of a real organisation. Start with the first one.

Requirements

  • A supported release, on x86_64 or arm64, with systemd as init. Run end to end on a server: Ubuntu 22.04, 24.04 and 26.04, Debian 12, RHEL 10 and its rebuilds on AlmaLinux 10, Fedora 43, openSUSE Leap 16.0 and Arch Linux. Installed and running, with the full checks still to come: Debian 13, and RHEL 9 and its rebuilds on Rocky Linux 9. Supported from package facts only, not yet run on a server: Amazon Linux 2023, Fedora 44, SLES 16 and openSUSE Tumbleweed. The rebuilds are AlmaLinux, Rocky Linux, Oracle Linux and CentOS Stream.
  • Root, and nft, curl, tar, sha256sum, base64, flock and /usr/bin/python3. The installer names everything missing on one line.
  • ufw and firewalld disabled. The installer refuses a server with either enabled, because Whitecell’s firewall table would open ports they close today. Turning them off is your decision. Fedora and openSUSE enable firewalld by default, and so does a RHEL-family server installed with the defaults.
  • No BPF LSM. The rule pack is kprobes on the kernel’s security functions. On 22.04 the 6.8 HWE kernel is recommended; its own 5.15 runs everything as well. Tetragon 1.7.1, the version the installer pins, does not start on Linux 7.1 or later, and the installer says so before its first step. A Fedora 43 server can boot its release’s first kernel, 6.17, instead.
  • A control plane on another machine: the managed one, or your own.

Add a server

In the console, choose “Add a server”. It shows one command with your console’s address, the script’s SHA-256 and a pairing code.

curl -fsSL --proto '=https' --tlsv1.2 https://console.example.com/install/whitecell.sh -o whitecell.sh
sudo bash whitecell.sh ABCD-EFGH-JKMN-PQRS-TV01

Run it without the code to be asked for it. On a terminal the script reads the code without echoing it, so it lands in no process’s arguments and no shell history. The code works once and expires, after 30 minutes by default.

sudo bash whitecell.sh --dry-run runs the checks and prints the steps without changing anything.

What the installer does

  1. Downloads the release and checks it against the SHA-256 pinned in the script. On a mismatch the file is deleted and nothing else runs.
  2. Installs the Python packages it needs when one is missing, and Tetragon at a pinned version and hash when it is absent. On Arch Linux it names the missing packages and stops instead, because installing them without a full upgrade is a partial upgrade, which Arch does not support.
  3. Installs Whitecell under /opt/whitecell/releases/, keeps the control plane’s certificate to pin it, and pairs with the code.
  4. Drafts /etc/whitecell/manifest.yaml from what runs on the server, with fixed rules and no model. The address you run the script from becomes an operator source, which is never blocked. A manifest already there is kept.
  5. Compiles the manifest and applies it: every service in audit, egress in observe, and no service restarted. Each service’s egress table attaches at its next restart.
  6. Starts the daemon and the actor, restarts Tetragon, and waits for the control plane to acknowledge a heartbeat. The last line is <host> is reporting to your console.

Every command’s output goes to /var/log/whitecell-install.log. Running the script again on a server that has reported is an update.

After the install

Read /etc/whitecell/manifest.report.md. A port that only a system unit listens on, or a service that was stopped during the inventory, is not on the surface yet. The drafted manifest keeps the SSH port open to any source.

whitecell status             # the release, then declared, loaded and intended mode per service
whitecell review --since 7d  # rule hits, observed egress, perimeter and units from the event stream
sudo whitecell test          # plants one harmless cron file and waits for the answer

Send a test. Attacks do not arrive on schedule, so sudo whitecell test plants one marked, harmless cron file that holds no job and waits for the normal path to answer it: the rules report it, the system reads it, the agent asks for it to be moved out of reach, and the first signed record arrives. Measured on 19 Oct 2026 on a one-vCPU Ubuntu 24.04 server: the hit reported in under a second, the triage’s verdict at 34 seconds, the file moved out of reach and the move receipted at 84 seconds, the command’s answer at 85. The console’s Add a server page shows each step as it lands. The file is /etc/cron.d/test-whitecell; the command removes it if the answer did not. On a server whose sudo does not find the command, run sudo /usr/local/sbin/whitecell test.

From here the control plane does the routine work. It asks about what nothing explains, decides destinations, and promotes each service once its audit window is quiet: hardening after seven days, egress after fourteen days observed and seven with nothing new.

Updates

Each release is installed in its own directory, and /opt/whitecell/src points at the one that runs. An update restarts only the daemon and the actor, never a workload. The console’s Settings decide how releases arrive:

  • Automatic. Test servers and those set to go first update at once; the others a day later, one at a time.
  • Ask me first. Each server’s update waits for a yes.

Before the switch the installer arms a two-minute watchdog. Unless the control plane acknowledges a heartbeat from the new release in time, the previous release comes back and the daemon and the actor restart on it. The server’s page in the console says when that happened, and why. To update by hand on a server that has reported:

sudo bash whitecell.sh --update

Run it yourself

The control plane and the agent run on their own machine, never on a protected server. That machine runs Whitecell’s daemon and actor too, and is protected like any other. The full bring-up is in control-plane.md, “Two-box deployment”. In short, on the control-plane machine, from a checkout of the repository:

sudo WITH_CP=1 scripts/install-daemon.sh .      # daemon, actor and control plane
sudo scripts/cp-tls.sh 203.0.113.10             # its own certificate; every server pins it
whitecell cp init --label you                   # the first operator token
whitecell cp host add web-01                    # a one-time pairing code
whitecell cp token create --role agent --label runtime
sudo scripts/install-agent.sh                   # the agent, the daily digest and the weekly brief

On each protected server, copy the control plane’s cert.pem, pair, and install with WITH_CP=0. The code goes on standard input, never on the command line, because Tetragon exports process arguments.

whitecell pair --cp-url https://203.0.113.10:8484 --host web-01 \
  --ca cert.pem --token-file -

Your control plane can publish the same one-command installer: scripts/render-installer.py renders it with your release, your control plane’s address and its certificate, and prints the hash to show beside the command. The agent reads its model and key from /etc/whitecell/agent.env; any OpenAI-compatible server works, as models.md describes. Run a model through whitecell bench before it leaves dry-run, and treat any followed injection as disqualifying.

Run it yourself, or let us sets self-hosting beside the managed service: the same protection, with the line drawn at who operates it.

Stop everything

whitecell cp kill on                    # on the control plane: no action reaches any server
touch /etc/whitecell/actions.disabled   # on a server: its actor refuses everything

The console has the same switch in Settings. Rules and the agent keep recording what they would have done. Turning actions back on from the console needs a passkey confirmation.

The documentation

Each part has its own document in the repository’s docs/ directory. Start with the architecture; it is the map.

DocumentWhat it covers
architecture.mdThe map: manifest, compiler, validators, apply, daemon, control plane, decisions, agent, updates, supported releases.
init.mdThe inventory, the drafted manifest, the one-command installer, updates and the watchdog, uninstalling, each release’s package facts.
platforms.mdWhich releases Whitecell runs on, which have run it on a server, and how a release or a family is added.
first-boot.mdA first install by hand on a new VPS, step by step.
rules.mdThe Tetragon rule pack: each rule, what it fires on, what is quiet, and why kprobes.
daemon.mdwhitecelld: sources, event shape, logins and sessions, the outbound chain, heartbeats, inventory, uninstalling.
promotion.mdAudit to enforce and back: the learned writable directories, the page check, egress enforcement.
control-plane.mdThe catalogue, policy and autonomy, the reflex, triage, exceptions, decisions about addresses, sessions, inventory, updates, receipts.
agent.mdThe runtime agent: the triage call, the investigation, rechecks, destinations, digests and costs.
models.mdBring your own model, the spend cap, and the benchmark.
cloudflare.mdA server behind Cloudflare’s proxy or a Cloudflare Tunnel.
api/cp-v1.mdThe control plane’s HTTP contract.
api/console-v1.mdThe console’s API: sign-in, the simple surface, notifications.

Commands

CommandWhereWhat it does
inventory / initserverWhat the server runs, as JSON; a v1 manifest drafted from it, with no model.
compileanywhereManifest to policy files. Writes files only.
applyserverValidate and install a build, each service in its recorded mode.
statusserverThe release, then declared, loaded and intended mode per service.
promote / demoteserverAudit to enforce with a watch window, and back.
daemon / reviewserverThe typed event stream, and the report built from it.
join / pairserverPair with a control plane, by code or by token.
uninstallserverTake Whitecell off the server and nothing else. Prints its plan and asks first; sudo bash whitecell.sh --uninstall runs it.
cpcontrol planeserve, init, token, host, kill, reflex, notify.
act / actionscontrol planeRequest an action; list, show, approve, decline or revoke actions.
exceptionscontrol planeList, add, approve, decline or renew exceptions.
agentcontrol planeRun the agent, print the record it would see, or write a digest or brief.
receipts verifyanywhereCheck an exported receipt log offline with the public key.
benchanywhereScore a model on the recorded scenarios. Nothing executes.