Can a self-sandboxed wb-proxyd still use its Keychain items and Secure Enclave keys?
Answered 2026-10-15: yes. You only approve the answer. Source: I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04., X23-sandboxed-daemonsX23-sandboxed-daemons: Self-sandboxed Go daemons on macOSCan wb-netd, wb-proxyd and wb-hostd confine themselves at start with a sandbox profile, as S04-architecture says, while the Go runtime, inherited descriptors, and Keychain and Secure Enclave access in wb-proxyd keep w…, “wb-proxyd with the Keychain and the Secure Enclave (I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04.)”. Touches S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., through I261I261 (closed): docs(spec): wb-proxyd and store-only self-sandbox profiles from X23 I61The result of #61 (X23-sandboxed-daemons, "wb-proxyd with the Keychain and the Secure Enclave (I61)") measured the wb-proxyd profile..
Figure 1. What the measured profile lets wb-proxyd reach. The Keychain service returns only items in the access groups of its code signature. The signature refuses another group, before the profile matters. Red: denied by the profile.
Evidence
Section titled “Evidence”- verified Under the profile, the helper wrote, read and deleted a
binding/item, made a Secure Enclave key, kept its token object ID in aca/item, restored it and signed, and fetchedapi.anthropic.comwith the chain checked against the system roots. Four runs, the same result. Source: X23-sandboxed-daemonsX23-sandboxed-daemons: Self-sandboxed Go daemons on macOSCan wb-netd, wb-proxyd and wb-hostd confine themselves at start with a sandbox profile, as S04-architecture says, while the Go runtime, inherited descriptors, and Keychain and Secure Enclave access in wb-proxyd keep w…, I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. section, “Run”. - verified The network part alone refused the store and the Secure Enclave, and sandboxd reported the two Mach services. Adding them was enough for every store call. Source: the I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. section, “How the profile was found”.
- verified The certificate check needs
com.apple.trustd.agentand the metadata of the helper’s own bundle directory. Every other rule of the wide I34I34 (closed): X23-sandboxed-daemons: Self-sandboxed Go daemons on macOSX23-sandboxed-daemons (added to S11-verification-and-spikes in #14) TLS profile could be removed. Source: the minimizing script in the I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. section. - verified The profile denies files, the login keychain, listening, UDP other than DNS, and starting programs. Unconfined, the same helper saw the attributes of 166 login keychain items. Source: the I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. section, “Run”.
- verified A profile with only the Keychain and Secure Enclave services works as the store-only profile, for
wb-credsetandwb-guestadmin. Source: the I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. section, “Answer”. - assumed That no untested path, such as a revocation check, needs a service the profile denies. sandboxd reported only some denials. The rules came from removing rules one at a time, not from the log. If one is missing, the check fails and
wb-proxydrefuses the connection, which fails closed.
What this unblocks
Section titled “What this unblocks”- I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. closes. It blocks nothing else.
- I261I261 (closed): docs(spec): wb-proxyd and store-only self-sandbox profiles from X23 I61The result of #61 (X23-sandboxed-daemons, "wb-proxyd with the Keychain and the Secure Enclave (I61)") measured the wb-proxyd profile. writes the profile into S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., after the I49I49 (closed): S10-tech-stack: installation, restore image download, upgrades and migrationsS10-tech-stack "Packaging and signing" gives the shape of the macOS app bundle. wave merges.
Details and glossary
Why the helper’s own bundle. Security.framework reads the metadata of the calling program’s bundle before trustd checks a chain. The real path of Contents/Helpers/wb-proxyd.app goes into the profile as a parameter, worked out before the daemon confines itself, so no path is pasted into the profile text.
Why the issue’s keychain file wasn’t used. I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. was filed before B23-keychain-unsignedB23-keychain-unsigned: How do development builds without a signing identity keep their Keychain items and their CA key?Between updates the access-control list works, but after each update every item asks for a password nobody knows. and B248-dev-signingB248-dev-signing: Can development builds signed by the developer's own team share Keychain items across an update?Yes, with conditions. were decided. Since then a build signed by a team keeps its items in the data protection keychain behind access groups, and an ad-hoc build has no Keychain backend. The spike measured that setup.
Glossary
- Seatbelt profile: the rules a macOS process applies to itself, in Apple’s profile language. Anything not allowed is denied.
- Mach service: a named system service a process talks to, such as the Keychain. A profile allows each by name.
- Access group: the label on a Keychain item that says which signed programs may use it.
- Token object ID: an opaque value that restores a Secure Enclave key on this Mac only.