Skip to Content
kumoba

Security model

  • VM isolation. Each sandbox runs in a hardware-isolated VM with its own kernel. Its only channels to the host are the guest agent and the egress proxy.
  • Network. Private and IPv6 addresses are not reachable unless the operator opens them, and the addresses listed under Always blocked (loopback, link-local, the AWS, GCP, Azure and Alibaba metadata and service addresses, IPv6 forms that embed an IPv4 address, and the host's own addresses) never are, whatever the sandbox's policy. An operator can open specific intranet hosts and ranges with KUMOBAD_ALLOW_PRIVATE_HOSTS, on ports 80 and 443 unless an entry names others. An opened range does not bypass KUMOBAD_UPSTREAM_PROXY: traffic to it still goes through the proxy unless KUMOBAD_NO_PROXY lists the exact address, or the entry is a host name. IPv6 destinations are blocked unless that setting opens them, since a global IPv6 address can belong to your own network. A sandbox's allowlist can name addresses, ranges and ports, but only narrows these rules: 0.0.0.0/0 in an allowlist reaches public IPv4 addresses only. Address entries match connections to an IP address, never a name that resolves into the range, so kumobad looks up only names an allowlist lists.
  • Corporate proxies. With KUMOBAD_UPSTREAM_PROXY, kumobad resolves and checks each destination itself before tunnelling through the proxy. The guest's TLS session runs inside the tunnel.
  • Secrets. Values stay on the host. The guest only holds a placeholder, and the real value goes only into HTTPS requests to the hosts you allow. See How secrets work.
  • Previews. Links are signed, bound to one sandbox and port, and expire. Browsers load them from a separate listener (127.0.0.1:7789) that serves nothing else, so a page from a sandbox can't reach the API. Redirects stay inside the preview.
  • Live view. A desktop link is a preview link, and whoever has it can see the screen and use the keyboard and mouse until it expires. Share it like a password. Its watchUrl only shows the screen: the access is signed into the link, and kumobad opens the engine's stream with one of two tokens it derives for each sandbox and never sends to the browser, so the engine itself ignores a watch link's input. In a Linux sandbox the viewer's engine runs inside the VM and answers only requests addressed to the VM's own loopback. For a macOS sandbox it runs on the host as your user, reads frames the sandbox's worker copies out of the VM's display, and listens on a socket in that sandbox's private directory that only kumobad connects to. Text copied inside a sandbox reaches your clipboard only in the two seconds after you press a copy shortcut in the live view, or when you click Copy from desktop. In a macOS sandbox the worker reads and writes the signed-in user's clipboard through the guest agent, only when you paste, copy, click Copy from desktop or type a character the US layout lacks.
  • Known limit. All previews share one browser origin, so browser storage such as localStorage is shared between sandboxes' pages. Don't open untrusted previews in a browser profile whose preview storage matters. Per-sandbox origins are planned.
  • Daemon access. The Unix socket is mode 0600. The TCP listeners take a loopback address unless TLS is on (KUMOBAD_TLS_CERT and KUMOBAD_TLS_KEY); kumobad refuses to start on any other address without it. Over TLS every API call still needs the bearer token, and with KUMOBAD_TLS_CLIENT_CA a client must also present a certificate one of those CAs signed, or the TLS handshake fails before kumobad reads the request. The preview listener never asks for a client certificate, so on a network address anyone who can reach it can try links, and only a valid, unexpired signed link opens anything. Restrict who can reach both ports with a firewall all the same. After kumobad host init, the API listener also completes a handshake with a client that has no certificate, so a fleet can pair, but such a connection may only call POST /v1/pair with a one-time pairing token (kept hashed, expiring after an hour; an address that sends 5 wrong ones in a minute gets 429 for the rest of it, while a valid token always pairs); everything else, /healthz and preview links included, is refused with 403. A client certificate from another CA still fails the handshake. A pairing hands out a client certificate the host CA signed and the bearer token, so treat an unused pairing code like the token itself. On SIGHUP kumobad re-reads the certificate, key, client CA and token files: new handshakes and requests use the new ones. A connection already open keeps its TLS session, so a revoked client certificate loses only new connections, while every request checks the token again, so a withdrawn token is refused at once, except in shells and live views it already opened and in preview and desktop links issued before the rotation, which work until they expire, at most an hour later. Restart kumobad to close everything at once. KUMOBAD_TOKEN_FILE_NEXT names a second token that is accepted alongside the first while clients switch over; delete that file and send SIGHUP to stop accepting it. Each listener caps its open connections, shells, live views and WebSockets included, at an eighth of kumobad's open-file limit and closes connections that send no request within 30 s, so a flood of connections to one TCP listener stalls only that listener, not the Unix socket or the sandboxes. See Run sandboxes on another machine.

kumoba runs untrusted code, so isolation bugs matter more here than in most projects. Thank you for reporting them privately.

Reporting a vulnerability

Use GitHub's private vulnerability reporting: open the repository's Security tab and choose Report a vulnerability. Please do not open a public issue or pull request for a security problem.

Include what an attacker controls (guest code, an HTTP client of kumobad, a network peer), what they gain, and the smallest reproduction you have. You will get an acknowledgement within a week, and a fix or a plan once the report is confirmed. Credit goes in the release notes unless you prefer otherwise.

Scope

In scope: escaping a guest to the host, reaching another sandbox, bypassing the egress allowlist or the private-address blocks, reading a secret's value from inside a guest, forging or reusing preview links, and authentication bypass on the kumobad API.

Known limitation: browser previews from all sandboxes share one origin (127.0.0.1:7789 by default), so web storage written by one sandbox's page is readable by another's. Per-sandbox origins are planned.

Out of scope: denial of service by a client that holds the bearer token, and attacks that need the host's root account. libkrun and libkrunfw issues belong upstream at containers/libkrun, though a heads-up here is welcome.

Supported versions

Before 1.0 only the latest release gets security fixes.

Last updated on

On this page