Skip to content

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..

sandbox profilewb-proxydteam-signed, groupsbinding, caKeychain serviceonly its signed groupsSecure Enclave tokenwrapped CA key, signtrustdchecks against the system rootsinternetoutbound TCP, DNSfileshome, login keychainlisten, runsockets, programs

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.

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.