Does a macOS guest work on our userspace network stack, reaching only the proxy, and how fast?
Answered 2026-10-05: yes, with conditions. Decided 2026-10-06: 1A, link MTU 65535, and 2A, refuse the guest OS’s own lookups quietly. The decision and its reasons are in the I17I17 (closed): X03-network-path: Network pathDoes a macOS guest boot on the file-handle network attachment with the gVisor stack: get a DHCP lease, resolve only allowlisted names, and reach only the proxy? comment that starts Decision (2026-10-06):. Source: X03-network-pathX03-network-path: Network pathA macOS guest boots on the file-handle attachment with the gVisor stack: gets a DHCP lease, resolves only allowlisted names, reaches only the proxy. (I17I17 (closed): X03-network-path: Network pathDoes a macOS guest boot on the file-handle network attachment with the gVisor stack: get a DHCP lease, resolve only allowlisted names, and reach only the proxy?). Changes S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… and FR00-indexFR00-index: Functional requirementsWhat Wraith Box must do for the user. (FR09-approve-unknownFR09-approve-unknown: Approve unknown destinationsA request to an unknown destination is blocked and offered to the user for approval out-of-band (allow once, allow for project, deny).). Follow-up: I93I93 (closed): S06-vm-lifecycle: set the guest clock after a cold boot too, since the guest has no NTPX03-network-path (#17) found that the guest has no network time: NTP is UDP, which wb-netd drops (S07-egress-gateway, "Connections"), and an idle macOS guest sends NTP to time.apple.com every 2 s with no answer..
Figure 1. Every frame from the guest arrives in wb-netd. The link filter lets through only what the gateway serves: DHCP, DNS, ping to the gateway, and TCP, which the stack accepts only to a synthetic address on an allowed port and relays to wb-proxyd (S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host.). Everything else is reset or dropped (red), and logged with the rule.
What changes in the specs without a choice
Section titled “What changes in the specs without a choice”S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host. now states the complete link filter, the DHCP options the gateway never offers (a proxy configuration URL among them), local answers for names under .arpa and .local, the size and reuse rules of the synthetic address pool, per-VM caps, rate limits on every event the guest can trigger, the same MTU on both ends of the link, and that NTP is dropped, so the guest clock comes from wb-guestd. S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… adds the filter to the fuzz targets, adds conformance checks for it, and compares the download benchmark with this spike.
Choices of the builder. These go beyond what the spike measured, and are yours to overrule:
- One approval event per name per session, with later queries counted on it. This overlaps the approval design of B51-approval-flowB51-approval-flow: What happens between a blocked lookup and the user's answer?Hold the DNS answer for a few seconds while the notification is open, answer a refusal with a negative TTL of zero, and keep guest OS names out of notifications.. The per-VM rules of B36-flow-attributionB36-flow-attribution: Can projects sharing the work VM keep their network grants apart?Not as the specs are written. changed this to one open approval event per name per VM.
wb-netdhas no host-side listener and never opens a connection to the guest. This commits port forwarding (FR11-port-forwardFR11-port-forward: Port forwardingDev servers listening in the guest are reachable on host loopback.) to a path outsidewb-netd.
Not measured: S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host. gives an empty answer to HTTPS and SVCB queries for allowlisted names, where the spike refused them and the guest connected fine. An empty answer gives the guest no record that could hold an encrypted ClientHello configuration or an HTTP/3 hint the proxy can’t honor. The cost: nobody has checked the macOS resolver behaves the same with it, so S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… adds a case for that, and until it passes the choice rests on reading, not on a run.
Decision 1: the link MTU
Section titled “Decision 1: the link MTU”The MTU is the largest frame between the guest and wb-netd. It only exists on that link: wb-proxyd opens its own connections upstream, so no packet from the guest ever crosses the internet and a large MTU can’t break anything out there. Bigger frames mean fewer frames to handle for the same bytes.
No security control depends on the MTU: the link filter, DNS and the proxy apply the same rules at any size.
Decision 2: the guest OS’s own lookups
Section titled “Decision 2: the guest OS’s own lookups”An idle guest at the login window, with nothing installed and nobody logged in, looked up 14 host names in its first hour, 109 queries in all, every one under apple.com or icloud.com: by their names, push, time, software update, location and iCloud services. It also asked for the reverse name of its own address and for _dns.resolver.arpa, which S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host. now answers locally without a prompt. Under the spec as it stood, each of the 14 host names raised one approval event per session, a prompt on the host for something the user never did.
Impact
Section titled “Impact”Evidence
Section titled “Evidence”- verified Lease 4.7 to 5.7 s after the VM started, median 4.9 s, on 11 cold boots, with only the file-handle attachment. Source: X03-network-pathX03-network-path: Network pathA macOS guest boots on the file-handle attachment with the gVisor stack: gets a DHCP lease, resolves only allowlisted names, reaches only the proxy., “Measurements”, and the
*-netd.jsonllogs on the spike branch. - verified Allowlisted
Aqueries got a synthetic address,AAAAan empty answer, and other namesNXDOMAIN. DNS to another server timed out or was reset. TCP outside a synthetic address and allowed port was reset. Only the gateway answered ping. UDP other than DNS and IPv6 were dropped. Source:results/run1-mtu1500-probe.txt. - verified The
wb-vmdstand-in had only the virtualization entitlement, thewb-netdstand-in none. Source:results/entitlements.txt. - verified With the ARP rule of the filter off, the guest declined every lease as an address conflict and never got an address. With the ICMP rule off, gVisor still didn’t answer ping to other addresses. Source:
results/run11-*andresults/run12-*on the spike branch. - verified Download throughput and CPU time at MTU 1500, 9000 and 65535. Source: X03-network-pathX03-network-path: Network pathA macOS guest boots on the file-handle attachment with the gVisor stack: gets a DHCP lease, resolves only allowlisted names, reaches only the proxy., “Measurements”.
- verified The idle guest’s names. Source:
results/run6-idle-hour-netd.jsonl. - assumed That
wb-proxyd, which terminates and re-originates TLS, costs more than the stack, so the stack isn’t the limit. X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts. measures inspection. - assumed That the macOS resolver behaves the same when
HTTPSandSVCBget an empty answer as when they were refused, as in the spike. S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… checks it. - assumed That a guest with a logged-in user and tools installed adds names to the idle list but no new kind of traffic.
What it unblocks
Section titled “What it unblocks”The wb-netd work in S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., and the conformance cases of S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… for the packet path. Decision 2 feeds the approval design (B51-approval-flowB51-approval-flow: What happens between a blocked lookup and the user's answer?Hold the DNS answer for a few seconds while the notification is open, answer a refusal with a negative TTL of zero, and keep guest OS names out of notifications.) and the image (X17-image-buildX17-image-build: Unattended image buildCan a macOS guest installed from an Apple restore image get past Setup Assistant, with wb-guestd running as a root LaunchDaemon, without SSH, scripted clicks, or MDM?).
Details and glossary
Why the stack needs a filter. Each allowlisted name gets its own made-up address from 198.18.0.0/15, so wb-netd must accept connections to thousands of addresses it doesn’t own. gVisor does that in promiscuous mode, and spoofing mode lets it answer from them. With spoofing on, gVisor also answers “that’s me” to an ARP question about any address. The guest asks that question about its own new address, to check nobody else has it, and with the answer it gave the address back and asked again, every 12 s, without end. The filter passes ARP only for the gateway, ping only to the gateway, and UDP only to DNS and DHCP. gVisor didn’t answer ping to other addresses even without the filter, so the ping rule is a second layer.
What Claude Code looked up. With a placeholder key, claude -p looked up only api.anthropic.com. Started interactively it also looked up raw.githubusercontent.com and platform.claude.com. The stub didn’t speak TLS, so anything after the first API call is not in the list.
Not measured. TLS inspection, a real upstream, more than one VM, and a restored VM.
- MTU: maximum transmission unit, the largest packet a link sends in one frame.
- DHCP: how a machine gets its address, router and DNS server when it joins a network.
- ARP: how a machine on a local network finds which network card has an IP address.
- Synthetic address: a made-up address from a reserved range that
wb-netdhands out for an allowlisted name, so the guest never learns the real one. - Promiscuous and spoofing mode: gVisor settings that let the stack accept and send traffic for addresses that aren’t its own.
- NTP: the protocol computers use to set their clocks over the network.