Skip to content

Does a second guest daemon give the admin path a root shell while wb-guestd is down?

Answered 2026-11-08: yes, with conditions. Decided 2026-11-10 (I614I614 (closed): Build the admin path: wb-guestroot, the admin service and wb vm adminFollow-up of #448 (X31-admin-channel), as the triage of #448 asked: no issue exists yet for building the admin path of S15-05-admin-path.): A. Source: 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?). Changes 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. and 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.. Follow-ups: I614I614 (closed): Build the admin path: wb-guestroot, the admin service and wb vm adminFollow-up of #448 (X31-admin-channel), as the triage of #448 asked: no issue exists yet for building the admin path of S15-05-admin-path. builds the admin path, I615I615 (open): Guest kernel panic found in X31-admin-channel: narrow it down and gate the conformance casesFound in #448 (X31-admin-channel), by chance. tracks the kernel panic.

wb-hostdopens every connectionguest (untrusted)wb-guestd, port 1023down, stopped or loopingwb-guestroot, port 1022root shell, no Full Disk Accessproject processnot root44 of 44 answeredbind: refused

Figure 1. The admin path of 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. reaches wb-guestroot on a port of its own. In 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? it answered whatever state wb-guestd was in. A project process can’t bind its port, and the session profile denies it vsock altogether (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.).

The open decision: Full Disk Access for wb-guestroot

Section titled “The open decision: Full Disk Access for wb-guestroot”

TCC, macOS’s privacy control, applies to root too. A root daemon gets Full Disk Access only when it is granted, and with System Integrity Protection on, root in the guest can’t grant it to itself. Root can probably still reach that access through ssh localhost, since Remote Login holds the grant, so it isn’t a boundary. That route is inferred, and the spike didn’t try it. The spike’s shell couldn’t delete a user record, while sudo over SSH could, because Remote Login has Full Disk Access.

The admin shell does root checks such as the data mount cases, and not what TCC guards.

  • Cost: none. A check that needs a TCC-guarded file is done another way, or not through the admin path.
  • Trade-off: the narrower daemon, at the cost of a shell that fails where TCC guards.

The image build grants wb-guestroot Full Disk Access, so its shell matches sudo over SSH.

  • Cost: a grant needs the System Settings dialog in the build VM or a configuration profile, and neither was tried. Each image build would carry that step.
  • Trade-off: a shell as capable as sudo over SSH, at the cost of a broader daemon in the guest. No SEC* requirement covers that breadth, since the guest is untrusted either way.

The case for B. “A look inside a VM whose wb-guestd is dead” may need logs or files TCC guards, and a shell that fails there sends the person to SSH, which the product doesn’t offer. B makes the admin path the one full root shell. The VM is marked and its system disk replaced after use either way.

Confidence in A is moderate. In the shell, dsmemberutil, diskutil list and info, mount -u on an attached image, and sysadminctl -addUser worked, and deleting a user failed. Reformatting the data volume, step 4 of 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…, wasn’t tried. If that or another 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… step needs Full Disk Access, B gains.

RequirementA. No Full Disk AccessB. Grant it
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 reach anotherunchangedunchanged: VM is marked
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 grants no host controlsame as todaysame as today

I614I614 (closed): Build the admin path: wb-guestroot, the admin service and wb vm adminFollow-up of #448 (X31-admin-channel), as the triage of #448 asked: no issue exists yet for building the admin path of S15-05-admin-path., which builds the admin path, and through it 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 in-guest root checks.

Details and glossary

Why a second daemon. 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. wants a root shell that shares nothing with the agent paths and still answers when wb-guestd doesn’t. The spike ran a stand-in for wb-guestroot next to the real wb-guestd code, each a root LaunchDaemon that launchd restarts.

The kernel panic. The session profile already denies vsock sockets to project processes, so this is no new hole for them. A process outside the profile could stop the VM, which is a denial of service in the guest only. The host and its controls stayed up.

  • vsock: the host-guest socket, a channel between host and guest that doesn’t go through the network.
  • LaunchDaemon: a system service that launchd starts at boot and restarts when it exits.
  • TCC: Transparency, Consent and Control, macOS’s privacy control over files and devices. It applies to root.
  • Full Disk Access: the TCC grant that lets a process read and change the files TCC guards.
  • SIP: System Integrity Protection. It keeps root from changing system files, TCC’s database among them.