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….
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.
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?”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.
Also in the spec, not asked
Section titled “Also in the spec, not asked”- Who starts it. Only
wb vm admin, refused without a terminal, with a typed VM name, and no flag to skip it.wb vm reset-dataasks only for a yes. It is never a guest RPC (SEC14-no-fake-approvalsSEC14-no-fake-approvals: Approvals cannot be spoofed by the guestApproval prompts are never rendered in the agent's terminal stream.).wbchecks the terminal and the name, andwb-hostdchecks the caller’s UID and the VM’s state. A host process of the user’s UID that runswbon a terminal of its own passes both, and the mark and its 5019 event are written for it as for a person. It is refused while a session runs, while the build VM has the isolated slot (admin-slot-lent), and before first contact’swbadminrotation has ended. The check and the mark happen under the VM’s start lock. - While the shell is open. It counts like a live session: no idle save, no lend of the slot, and
wb vm stopandwb vm suspendare refused withvm-admin-open. The host trusts nothing the shell shows, andwb vm adminprints the warning of T19-pasted-login-codeT19-pasted-login-code: A login code pasted into a guestClaude Code in the guest can print a real authorize URL with its PKCE challenge. first. - The data disk. It stays mounted as it is. The root shell can read every project’s home, which is the person’s own data. What it writes there stays, as T18-data-disk-persistenceT18-data-disk-persistence: Guest root persists on the data diskAn update and break-glass replace a VM's system disk (and, for an update, its auxiliary storage), and keep its data disk (S06-03-image-updates, "Updates", and S15-04-guest-admin, "Break-glass"). says for guest root.
- Audit. A Device Config State Change (5019) event at the mark and one at the end with its cause, the mark in
wb vm status, and a 5019 event for each refusal of the start. No shell opens until the mark and its event are written, and a connection that fails afterwards keeps the mark. - Tests. Tests reach
wb-guestrootthroughwb-dev-vm, test tooling that is never in the app bundle. No shipped binary has a test-only way to guest root. The admin path adds no network device (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.).
Impact
Section titled “Impact”Evidence
Section titled “Evidence”- verified Only guest root can bind a vsock port below 1024, and a project user took port 1024 while launchd restarted a daemon. Source: X27-vsock-confinementX27-vsock-confinement: vsock confinement of project usersCan a non-root process in a macOS guest open AFVSOCK, and bind or listen on wb-guestd's port while wb-guestd is running or being restarted?.
- verified The session profile denies
AF_VSOCKsockets to project users. Source: S13-02-filesystem-profileS13-02-filesystem-profile: Layer 2: Seatbelt Filesystem Profile (v1)The Seatbelt profile each session's process tree runs under, where it comes from, its exceptions for Xcode builds, and its known gaps., “Host-guest socket”. - verified
wb-hostdconnects only to the guest ports in a fixed table, and routes each connection on its port. Source: S04-02-vm-providerS04-02-vm-provider: VM Provider and StreamsHow wb-vmd hands guest connections and the NIC endpoint to other processes, the fixed device set of a VM, and where wb-proxyd takes a stream's identity from., “The host opens every connection”. - verified
wb-guestd’s listener closes a connection from any CID but the host’s. Source: S04-02-vm-providerS04-02-vm-provider: VM Provider and StreamsHow wb-vmd hands guest connections and the NIC endpoint to other processes, the fixed device set of a VM, and where wb-proxyd takes a stream's identity from., “Guest ports below 1024”, andinternal/platform/guestsock/guestsock.go. - verified
wb-vmd’s static check refuses console device classes. Source: S04-02-vm-providerS04-02-vm-provider: VM Provider and StreamsHow wb-vmd hands guest connections and the NIC endpoint to other processes, the fixed device set of a VM, and where wb-proxyd takes a stream's identity from., “What only the code keeps out”. - verified 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… decided that
wbadminstays disabled, hidden, without a shell and out ofadmin, and the sealing scan checks it. Source: 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…, 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., “Thewbadminexception”. - verified
wb-dev-vmrelays a local socket to a guest port below 1024. Source: S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice., “Test tooling”. - inferred A fresh clone of the sealed image holds what the sealing scan checked, so replacing the system disk ends what a root shell changed there. What it wrote to the data disk stays (T18-data-disk-persistenceT18-data-disk-persistence: Guest root persists on the data diskAn update and break-glass replace a VM's system disk (and, for an update, its auxiliary storage), and keep its data disk (S06-03-image-updates, "Updates", and S15-04-guest-admin, "Break-glass").).
- assumed That a second root LaunchDaemon on its own port answers while
wb-guestdis unloaded, stopped or crash-looping. 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?) checks it. - assumed That recoveryOS accepts a disabled
wbadmin. 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… would check it, and it is deferred.
What it unblocks
Section titled “What it unblocks”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.