Skip to content

How does the person at the host's terminal get root in their own guest, apart from every agent path?

Awaiting decision. Source: I419I419 (closed): S15-least-privilege: a designed admin path from the host into the user's own guest, apart from every agent pathThe host has no way to do admin work inside a VM that wb-vmd booted.. Changes S15-04-guest-adminS15-04-guest-admin: The Guest Admin UserHow the host keeps the password of the guest admin user wbadmin, from the image build to each VM's first contact., S06-02-image-buildS06-02-image-build: Image BuildHow wb image build makes a guest image: the build VM, its two provisioning stages, terminfo, sealing, and storage. (“Sealing”), S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. (the wb-guestroot process and its port), S05-03-management-commandsS05-03-management-commands: Management CommandsThe commands of wb other than the agent commands., S06-12-guest-agentS06-12-guest-agent: Guest AgentWhat wb-guestd, the service in the guest, does for the host, and how it updates itself. (“Update at start”), S16-01-filterS16-01-filter: FilterWhere wb filters guest output, how the filter splits it into tokens, and the allowlist of what passes. (“Where”), C09-guest-and-sessionsC09-guest-and-sessions: Guest and SessionsThe test cases for what a project user can reach inside the guest, wb-guestd's update and the guest clock, the shared toolchain prefix, the guest admin password, and the session lifecycle., and adds S15-05-admin-pathS15-05-admin-path: The Admin PathHow the person at the host's terminal gets a root shell in their own guest, on a path that no agent, session, or guest process can start or reach.. Spike filed: X31-admin-channelX31-admin-channel: A root shell from a second guest daemonCan wb-guestroot, a root LaunchDaemon apart from wb-guestd on a vsock port of its own below 1024, give the host a root shell on a PTY while wb-guestd is dead, stopped or restarting? (I448I448 (closed): X31-admin-channel: a root shell from a second guest daemon while wb-guestd is downCan a second root LaunchDaemon in a macOS guest, wb-guestroot, give the host a root shell on a PTY over its own vsock port below 1024, while wb-guestd is dead, wedged or restarting?). Related: I156I156 (closed): S06-vm-lifecycle: v1 break-glass replaces the system disk, wbadmin stays disabledS15-least-privilege (PR #149) uses wbadmin for a break-glass console login when wb-guestd is dead or wedged: wb-guestadmin fetches the VM's password from the secret store, wb vm console shows it once, and the VM gets…, I158I158 (open): S15-least-privilege: developer break-glass through recoveryOS with a disabled wbadminCan the host boot a macOS VM into recoveryOS (VZMacOSVirtualMachineStartOptions, startUpFromMacOSRecovery), authenticate there as the volume owner wbadmin with its host-held password, and get a root Terminal on the…, I420I420 (open): wb-guestd: run the data mount's in-guest C09 checks in a real guest- datamount.test -test.v as a standard user (TestMounted); - sudo ./datamount.test -test.v as root (TestSetuidIgnored, TestRemountRefused); - the guest log's data volume root before its first claim on a fresh data….

wb vm admina person, in its ownterminal, types the VMwb claude, wb shellagent sessions anddebug shellswb-hostdadmin service and handlermarks the system diskfirst, writes 5019 eventsboth through wb-vmd,routed on the guest portShellService, sessionsrefused on a marked diskVM, untrustedwb-guestrootroot daemon, own portzsh as root on a PTYwb-guestdroot daemon, port 1023users, sessions, gitproject useragent processesadmin portport 1023no callcan’t bindor open it

Figure 1. Option A. The admin path has its own command, its own service and handler in wb-hostd, its own guest port, and its own guest daemon. The agent paths go to wb-guestd (S06-12-guest-agentS06-12-guest-agent: Guest AgentWhat wb-guestd, the service in the guest, does for the host, and how it updates itself.). Only wb-hostd is shared, because it terminates every host-guest connection (S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves.). The red flows are what the design stops.

Decision 1: what in the guest gives the root shell?

Section titled “Decision 1: what in the guest gives the root shell?”

Today nothing does. wbadmin is disabled, hidden, without a shell and out of admin (I156I156 (closed): S06-vm-lifecycle: v1 break-glass replaces the system disk, wbadmin stays disabledS15-least-privilege (PR #149) uses wbadmin for a break-glass console login when wb-guestd is dead or wedged: wb-guestadmin fetches the VM's password from the secret store, wb vm console shows it once, and the VM gets…), and wb shell runs as the project user. Each option below is reached only through wb vm admin, with the same typed confirmation.

wb-guestd serves a root shell on another port.

The case for B. It is a fraction of A’s work. wb-guestd is already a root daemon on a checked port, with an update path, a version check and a fuzzed listener, and a second service in it would reuse all of that. Most uses in the issue are root checks in a healthy guest, where wb-guestd answers. A wedged wb-guestd is rare, and break-glass already replaces the system disk. The separation the maintainer asked for could be kept at the service level: its own port and .proto package, never called by session code.

Confidence: medium-high. A meets the maintainer’s three requirements as the spec states them, and B, C and D each miss one. A no from X31-admin-channelX31-admin-channel: A root shell from a second guest daemonCan wb-guestroot, a root LaunchDaemon apart from wb-guestd on a vsock port of its own below 1024, give the host a root shell on a PTY while wb-guestd is dead, stopped or restarting?, such as launchd refusing a second daemon on the port, would move the recommendation to B, with “dead or wedged” left to break-glass.

Decision 2: what may the VM do after a root shell?

Section titled “Decision 2: what may the VM do after a root shell?”

A. Marked until the next start replaces the system disk

Section titled “A. Marked until the next start replaces the system disk”

wb-hostd marks the system disk before it opens the shell. Session starts and suspend are refused with vm-admin-used. Idle and a lend of its slot stop the VM cold rather than save it. The next start deletes any saved state and gives the VM a fresh clone of the image, as break-glass does. The data disk stays.

As A, but wb vm admin --clear <vm>, with a typed confirmation, lets project sessions run on the changed disk.

The case for B. The maintainer asked that a developer may “do as they please” in their own VM, and A undoes their changes at each stop. The person owns the VM and typed a confirmation, and host controls don’t depend on the guest (SEC11-root-gains-nothingSEC11-root-gains-nothing: Guest root is not a privilegeFull control of the guest grants no control over enforcement, secrets, or policy.). B costs only guest-side layers.

Confidence: high for A as the default. B can be added later without changing A, once a developer needs a VM that keeps root changes.

The SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another. sentence. S15-05-admin-pathS15-05-admin-path: The Admin PathHow the person at the host's terminal gets a root shell in their own guest, on a path that no agent, session, or guest process can start or reach. states “A marked VM starts no project session until its system disk is replaced” for now. With A, that sentence moves into SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another. in SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces.. Adding B after that is then a change to SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another., and goes through its own brief.

Requirement1A. Own daemon1B. Port in wb-guestd1C. Console1D. recoveryOS
SEC11-root-gains-nothingSEC11-root-gains-nothing: Guest root is not a privilegeFull control of the guest grants no control over enforcement, secrets, or policy. guest root gets no host controlkeptas in Akept tooas in C
SEC14-no-fake-approvalsSEC14-no-fake-approvals: Approvals cannot be spoofed by the guestApproval prompts are never rendered in the agent's terminal stream. no approval in the agent’s streamown terminalas in Aown terminalas in C
SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another. one project can’t persist into anotherwith the markas in Awbadmin enableddisk replaced
SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. no host secret in the guestno password usedas in Apassword typed inas in C
Works when wb-guestd is deadX31-admin-channelX31-admin-channel: A root shell from a second guest daemonCan wb-guestroot, a root LaunchDaemon apart from wb-guestd on a vsock port of its own below 1024, give the host a root shell on a PTY while wb-guestd is dead, stopped or restarting? checksnountriednot tried
Runs I420I420 (open): wb-guestd: run the data mount's in-guest C09 checks in a real guest- datamount.test -test.v as a standard user (TestMounted); - sudo ./datamount.test -test.v as root (TestSetuidIgnored, TestRemountRefused); - the guest log's data volume root before its first claim on a fresh data…’s root checksyeswhen it runsonce triedsystem offline

I420I420 (open): wb-guestd: run the data mount's in-guest C09 checks in a real guest- datamount.test -test.v as a standard user (TestMounted); - sudo ./datamount.test -test.v as root (TestSetuidIgnored, TestRemountRefused); - the guest log's data volume root before its first claim on a fresh data…, the data mount’s root checks of C09-guest-and-sessionsC09-guest-and-sessions: Guest and SessionsThe test cases for what a project user can reach inside the guest, wb-guestd's update and the guest clock, the shared toolchain prefix, the guest admin password, and the session lifecycle., and the root runs of I296I296 (closed): wb-guestd: create and recreate project users with their homeswb-guestd must create each project user from the IDs the host kept, recreate the users on a fresh system disk, and give each home on the data disk only to the record with every kept ID (S06-03-image-updates,… and I297I297 (closed): wb-guestd: lock, kill loop and removal of project usersS13-01-process-hardening has wb-guestd lock a project user, kill its processes in a bounded loop that also boots out its launchd domain, and stop every project user's processes when the link drops or a new wb-guestd… that moved there. X31-admin-channelX31-admin-channel: A root shell from a second guest daemonCan wb-guestroot, a root LaunchDaemon apart from wb-guestd on a vsock port of its own below 1024, give the host a root shell on a PTY while wb-guestd is dead, stopped or restarting? (I448I448 (closed): X31-admin-channel: a root shell from a second guest daemon while wb-guestd is downCan a second root LaunchDaemon in a macOS guest, wb-guestroot, give the host a root shell on a PTY over its own vsock port below 1024, while wb-guestd is dead, wedged or restarting?) runs first. The builder issues for wb-guestroot, the wb-hostd service and wb vm admin follow the decision. S06-02-image-buildS06-02-image-build: Image BuildHow wb image build makes a guest image: the build VM, its two provisioning stages, terminfo, sealing, and storage., “Provisioning stages”, gets one line for installing wb-guestroot after PR449PR449 (merged): docs(spec): Claude Code in its own image layer, from the stable channelSpec change (IMG.0) per the Decision (2026-10-16) and Triage comments on #220: Claude Code goes in its own top layer, installed on a clone of a sealed image and sealed again, from Anthropic's stable channel by default… merges.

Details and glossary

Why mark the disk at all. Every host control already assumes guest root is hostile, so a root shell gains nothing on the host. What it can undo are the guest’s own layers: the sealing scan’s checks, such as no sudoers entries and no extra admin account, on which the separation of project users in one VM rests. A fresh system disk brings them back.

Why before rotation is refused. The first contact of a fresh disk rotates wbadmin’s password, and relies on nothing else running in the guest (S15-04-guest-adminS15-04-guest-admin: The Guest Admin UserHow the host keeps the password of the guest admin user wbadmin, from the image build to each VM's first contact., “What first contact relies on”).

  • vsock: the socket between the host and a VM, with ports like TCP. CID is the address of each end. The host’s is 2.
  • LaunchDaemon: a program that macOS’s launchd runs as root at boot, and restarts when it exits.
  • PTY: a pseudo-terminal, what a shell needs to behave interactively.
  • recoveryOS: the macOS recovery system, booted instead of the installed system.
  • Cold start: a boot from scratch, not a restore from saved state.