Can projects sharing the work VM keep their network grants apart?
Decided 2026-10-04: A. The VM is the enforced unit. The decision and its reasons are in the I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing"). comment that starts Decision (2026-10-04):. Source: I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing").. Affects T00-indexT00-indexboundary 6 is the host terminal stream., 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., S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. and S13-guest-confinementS13-guest-confinement: Guest ConfinementControls inside the guest that narrow what a project user's processes can do, and tell the host which program opened each connection..
The problem
Section titled “The problem”Figure 1. Every trusted project shares the work VM and its one network address. The host gateway (wb-netd, then the proxy wb-proxyd) sees the same address for both project users, so a rule or credential meant for project A is usable by project B’s agent. The red path doesn’t need root in the guest.
Options
Section titled “Options”Impact
Section titled “Impact”SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. (no secrets in the guest), SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable. (default-deny egress), and 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 doesn’t gain control over enforcement) hold under every option.
Evidence
Section titled “Evidence”- verified
wb-netdleases one IPv4 address per VM and accepts only that VM’s MAC address (S07-02-packet-pathS07-02-packet-path: Packet PathHow wb-netd carries the guest's frames: the packet transport, the stack, the link filter, its caps, addressing, the MTU and connections., “Addressing”). - verified 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. still says each stream is “tagged with VM, project, session, hostname, and port” (“Connections”), with no source for the project and session.
- verified All trusted projects share the work VM, each as its own guest user (S06-04-vms-and-placementS06-04-vms-and-placement: VMs and PlacementThe work VM and the isolated VM, Xcode in them, and which VM a project's sessions run in. and S06-08-projects-and-sessionsS06-08-projects-and-sessions: Projects and Sessions Inside a VMHow projects map onto guest users and sessions onto worktrees, and how Claude Code runs in the guest.).
- inferred So before any label exists, project B’s agent can use project A’s credential binding without guest root. 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 S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. don’t say how the host would tell the two users’ connections apart.
- verified Work returned through git is not affected: pushes to the landing repository go over the host-guest socket, not the network (S08-03-pushesS08-03-pushes: PushesWhere the guest's pushes land, the settings receive-pack runs with, which refs a push may write, and the push at session end.).
- verified Guest labels can only narrow host rules, and guest root can forge them (S13-guest-confinementS13-guest-confinement: Guest ConfinementControls inside the guest that narrow what a project user's processes can do, and tell the host which program opened each connection., “Principle”, and risk T06-forged-labelsT06-forged-labels: Forged program labels after guest rootAfter a guest root escalation, forged program identities in the guest confinement layer (S13-guest-confinement).). Program narrowing is off until X14-flow-attributionX14-flow-attribution: Guest flow attributionA Network Extension transparent proxy in a macOS guest (S13-guest-confinement): can it be approved during the image build without MDM? (S09-01-policy-filesS09-01-policy-files: Policy FilesWhere policy is written, the network policy schema Wraith Box accepts, how the prover sees it, and narrowing by program and project., “Program narrowing”).
- verified A project can already be assigned to the isolated VM slot in its settings (S09-03-project-settingsS09-03-project-settings: Project SettingsWhat a project's settings hold, and what a repository's own .wraithbox/ configuration may add., “Settings contents”), which is what option B builds on.
- verified The macOS packet filter documents a
userrule option that matches “packets of sockets owned by the specified user” (man pf.confon macOS 27.0.1). - assumed That
pfper-user rules can give each project user a distinct source address inside a macOS guest. Testing it needs a VM, so it would be a spike. - assumed That the X14-flow-attributionX14-flow-attribution: Guest flow attributionA Network Extension transparent proxy in a macOS guest (S13-guest-confinement): can it be approved during the image build without MDM? Network Extension can be approved in the image without MDM and sees every relevant flow. That is spike X14-flow-attributionX14-flow-attribution: Guest flow attributionA Network Extension transparent proxy in a macOS guest (S13-guest-confinement): can it be approved during the image build without MDM? (I10I10 (open): X14-flow-attribution: Guest flow attributionA Network Extension transparent proxy in a macOS guest (S13-guest-confinement, layer 3): can it be approved during the image build without MDM?).
What this unblocks
Section titled “What this unblocks”- I51I51 (closed): S09-policy-credentials-audit: approval flow, what the blocked client sees, and approval noiseS07-egress-gateway and S09-policy-credentials-audit describe approval choices and their security (SEC14-no-fake-approvals), not how the flow behaves., the approval flow, which is blocked by this issue.
- The spec pull request that rewrites T00-indexT00-indexboundary 6 is the host terminal stream. (a new accepted threat), S07-02-packet-pathS07-02-packet-path: Packet PathHow wb-netd carries the guest's frames: the packet transport, the stack, the link filter, its caps, addressing, the MTU and connections. (“Connections”) and S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. (effective policy per VM).
- The priority of X14-flow-attributionX14-flow-attribution: Guest flow attributionA Network Extension transparent proxy in a macOS guest (S13-guest-confinement): can it be approved during the image build without MDM? (I10I10 (open): X14-flow-attribution: Guest flow attributionA Network Extension transparent proxy in a macOS guest (S13-guest-confinement, layer 3): can it be approved during the image build without MDM?): under option A it decides whether v1 has any per-project narrowing at all.
Details and glossary
Why the issue rules out option C. T00-indexT00-indexboundary 6 is the host terminal stream. assumes the agent may hold root in the guest. Anything inside the guest that decides which network card or address a connection uses, root can change. So routing by user protects against an agent without root, and against nothing more. That is the same protection a guest label gives in option A.
A related question. The git transport over the host-guest socket has the same problem: wb-hostd learns which project a push is for from wb-guestd, which runs in the guest. Risk T05-cross-proj-clonesT05-cross-proj-clones: Other projects' clones after guest rootAfter a guest root escalation inside the shared work VM, read or write access to other projects' guest clones (code only; no secrets are present; changes still return only as reviewable branches). covers that today (“changes still return only as reviewable branches”).
Glossary
- Work VM / isolated VM: the two VM slots per guest OS. Trusted projects share the work VM. Untrusted repositories, and projects assigned to it, use the isolated VM.
- Project user: the guest account each project runs as. It keeps projects’ files apart, but not their network traffic.
- Credential binding: a host-side rule that swaps a placeholder in a request for a real token, for named hosts and paths. The token never enters the guest.
- Label: information the guest attaches to a connection, such as the program or project that opened it. The host can use it to deny more, never to allow more.
- Guest root: full control of the guest operating system. The threat model assumes an attacker can get it.
- Accepted threat (
T*): a known gap that T00-indexT00-indexboundary 6 is the host terminal stream. documents rather than closes. - Network Extension: a macOS mechanism that lets a guest-side program see every connection and the process behind it. Spike X14-flow-attributionX14-flow-attribution: Guest flow attributionA Network Extension transparent proxy in a macOS guest (S13-guest-confinement): can it be approved during the image build without MDM? tests it.
pf: the packet filter built into macOS, configured by root.