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.
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 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.
Impact
Section titled “Impact”| Requirement | A. No Full Disk Access | B. 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 another | unchanged | unchanged: 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 control | same as today | same as today |
Evidence
Section titled “Evidence”- verified The stand-in gave a root shell (uid 0, on a PTY) with
wb-guestdrunning, booted out, stopped withSIGSTOP, and killed whenever it ran, in a 40 s window. In that loop, 44 of 44 tries on its port answered and 44 of 44 onwb-guestd’s port were reset. 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?, “Answer” item 1,results/state-*.out,results/crash-poll*.jsonl. - verified A standard user’s
bindof port 1022 failed withEACCESon every one of 12,646 tries, during restarts and while the daemon was booted out. Root bound it at once. Source: “Answer” item 2,results/squat*.out. - verified
dsmemberutil,diskutilandmount -ubehaved the same in the admin shell and undersudoover SSH. Deleting a user failed in the admin shell witheDSPermissionError. The guest’s TCC database denieswb-guestrootFull Disk Access and allowssshd-keygen-wrapper. Source: “Answer” item 4,results/s1-*.out,results/tcc.out. - verified The two updates at one boot both installed, about 0.2 s apart, and 400 rounds at the same instant left no temporary file. Source: “Answer” item 5,
results/boot5.out,results/race.json. - verified A standard user’s vsock connect to the guest’s own address hung, and the guest’s kernel panicked, 2 times in 2 tries. Source: “Answer” item 3,
results/panic*.out. 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. narrows it down. - assumed That a grant (option B) is possible at all without device management, which the spike didn’t try. 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. can settle it if B is chosen.
- assumed That
sudoat a console behaves likesudoover SSH. The guest had no console login.
What it unblocks
Section titled “What it unblocks”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.