Skip to content

Do the guest's tools accept the inspection CA?

Answered 2026-10-08: no. Decided 2026-10-10: A, accept it. The decision and its reasons are in the I185I185 (closed): Decide how wb-guestd makes a macOS guest trust the per-VM CAX04-tls-inspection (#18) found that a root daemon in a macOS 27 guest can't make the system trust a CA without a user to confirm: comment that starts Decision (2026-10-10):. B is rejected on principle without the test that A proposed, and C isn’t viable. I185I185 (closed): Decide how wb-guestd makes a macOS guest trust the per-VM CAX04-tls-inspection (#18) found that a root daemon in a macOS 27 guest can't make the system trust a CA without a user to confirm: makes the spec change: it amends FR08-no-proxy-configFR08-no-proxy-config: No per-tool proxy settingsAllowlisted network destinations work for every tool without per-tool proxy configuration. and rewrites “Guest trust” in 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.. Source: X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts. (I18I18 (closed): X04-tls-inspection: Inspection compatibilityDo Go-based, Swift-based, and Xcode clients accept the name-constrained Wraith Box CA when it is trusted only in the guest?). Changes S09-08-guest-trustS09-08-guest-trust: Guest TrustHow wb-guestd makes the guest's clients trust the VM's CAs., and the day-60 step and one sentence of “Lifetimes”), 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 read allowlist), S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. (the toolchain user’s environment), S07-07-hosts-and-modesS07-07-hosts-and-modes: Hosts and ModesHow wb-proxyd binds a stream to its name, which upstream addresses it refuses, and the inspect, pass and audit modes. (“Modes, per host”, pass), S12-platformsS12-platforms: PlatformsWhich host and guest operating systems Wraith Box targets, how platform-specific code is isolated, what each platform uses, and how wb works inside WSL. (the macOS “CA trust” cell) and 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… (the spike list). Follow-up: I213I213 (open): Attended guest setup: let the maintainer confirm CA trust in the guest UIFollow-up to the decision on #185 (option A, accept that URLSession and pip's truststore reject inspected hosts). (an attended step in which the maintainer confirms trust in the guest UI).

wb-proxydleaf signed by the VM CAmacOS guest (untrusted)wb-guestd (root)no user to confirmtrust files + variablesSSL_CERT_FILE and 5 moresystem trust store”no user interaction”curl, git, Go, Node, …URLSession clientsreadsrejected

Figure 1. wb-guestd can write the trust files and variables, and the tools that read them accept the leaf from wb-proxyd. The system trust store refuses the CA without a user, so URLSession clients reject inspected hosts (X04-tls-inspectionX04-tls-inspection: Inspection compatibilityGo-based, Swift-based, and Xcode clients accept a CA that only the guest trusts., answer 1).

Decision: URLSession clients on a macOS guest (I185)

Section titled “Decision: URLSession clients on a macOS guest (I185)”

URLSession clients reach only pass hosts. A host with a credential binding or a built-in profile, such as github.com or the model API, can’t be a pass host, so they can’t reach it. FR08-no-proxy-configFR08-no-proxy-config: No per-tool proxy settingsAllowlisted network destinations work for every tool without per-tool proxy configuration. is then amended to leave out URLSession clients on inspected hosts. Then test option B in a VM before deciding on it.

At image build, add is-root to the authorization right com.apple.trust-settings.admin, so root may set admin trust without a user. Guest root then gets admin trust over trustd and URLSession for every user in the guest. 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). already concedes that guest root reaches every project, and the CA has no name constraints (I39I39 (closed): S09-policy-credentials-audit: CA name constraints and rotation versus live policy changes- S07-egress-gateway "Approvals": "Policy changes take effect without restarting anything." - S09-policy-credentials-audit "Scope": the CA has name constraints for the inspected hostnames, and "when the inspected set…), so a root-made CA could vouch for any name. The whole control is the gap between is-root and allow: with allow, any user could change admin trust. The sealing scan compares the full rule and the rights next to it, at every seal and at first contact, because authd may rewrite its database on a macOS update.

Deliver the CA as a configuration profile through MDM, which installs without a click.

RequirementA. AcceptB. Root sets trustC. MDM
FR08-no-proxy-configFR08-no-proxy-config: No per-tool proxy settingsAllowlisted network destinations work for every tool without per-tool proxy configuration. allowed hosts work for every tool without proxy settingsamended: not for URLSession clients on inspected hostsif the VM test passesnot viable
SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable. only allowed hostskeptunchangedsame
SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM. and SEC07-dep-gateSEC07-dep-gate: Dependency gatePackage downloads (npm, PyPI, Go modules, crates) are refused when the version is younger than a minimum age or has a known vulnerability at or above a severity threshold. checked on inspected hostskept, fails closedunchangedsame
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 gets nothing from the hostkeptguest root gains admin trust, which 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). already concedesenrollment in the guest
T01-allowed-channelsT01-allowed-channels: Data through allowed channelsData sent through allowed operations to allowed destinations, for example a push to an allowed repository that is public, or prompt content sent to the model provider. each pass host is a channelmore pass hosts, if users add themfeweralso fewer
Details and glossary

How the spike ran. A macOS 27 guest from the 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? image, with the Xcode command line tools, Xcode 27.0 and Homebrew. A Go relay in the guest took the place of wb-proxyd, and pf in the guest sent every process’s port 443 to it, so no tool had proxy settings. The relay signed a 24-hour leaf for each name with a CA of the 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. profile, without name constraints. Each client ran three ways: without the CA anywhere, with all variables set, and with one variable at a time.

Why “no”. The question names Swift-based and Xcode clients. Xcode’s package resolution passes, because it clones over git. URLSession, the HTTP client of Apple’s frameworks, reads only the system trust store, and nothing could put the CA there.

Glossary.

  • CA (certificate authority): the certificate that signs others. A client accepts a server’s certificate when a CA it trusts signed it.
  • Leaf: the certificate a server shows. wb-proxyd signs one per inspected host name.
  • Trust store: the list of CAs a client accepts. macOS keeps one for the system, and many tools read their own file instead.
  • Trust variable: an environment variable that points a tool at a CA file, such as SSL_CERT_FILE.
  • Pinning: a client accepts only the certificates it expects for a host, whatever CAs it trusts.
  • URLSession: Apple’s HTTP client, used by Swift programs and Apple’s tools.
  • Authorization right: a rule in macOS’s authorization database that says who may do a protected action, here change trust settings.
  • MDM: mobile device management, Apple’s remote management of devices, which can install profiles without a click.