How do development builds without a signing identity keep their Keychain items and their CA key?
Answered 2026-10-13: yes between updates, no across an update, and no permanent Secure Enclave key. Decided 2026-10-15: 1D (1A until X29-dev-signingX29-dev-signing: Keychain access group for development buildsCan a developer's free personal team, an Apple ID signed in to Xcode without a paid membership, sign the helpers in Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a provisio…) and 2A. The decisions are in the I23I23 (closed): X09-keychain-unsigned: Keychain access without a signing identityDoes the fallback Keychain access model from S09-policy-credentials-audit work for an ad-hoc signed binary, and can such a binary create a Secure Enclave key? comment that starts Decision (2026-10-15):. The spec changes are I249I249 (closed): S09-policy-credentials-audit, S15-least-privilege: developer-signed builds and a wrapped Secure Enclave CA key, from B23-keychain-unsignedThe maintainer decided the two points of B23-keychain-unsigned on 2026-10-15, in the #23 comment that starts Decision (2026-10-15):., and the follow-up spike is X29-dev-signingX29-dev-signing: Keychain access group for development buildsCan a developer's free personal team, an Apple ID signed in to Xcode without a paid membership, sign the helpers in Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a provisio… (I248I248 (closed): X29-dev-signing: Keychain access group for development builds signed by a personal teamCan a developer's free personal team (an Apple ID signed in to Xcode, no paid membership) sign the helper binaries inside Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a…). Source: I23I23 (closed): X09-keychain-unsigned: Keychain access without a signing identityDoes the fallback Keychain access model from S09-policy-credentials-audit work for an ad-hoc signed binary, and can such a binary create a Secure Enclave key?, X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary.. Touches 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., S15-least-privilegeS15-least-privilege: Least Privilege on the HostThe security design for SEC12-least-privilege: which rights Wraith Box takes on the host, where credentials are held, and how each host process gets only the credentials it needs, for only as long as it needs them., S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice. and 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..
Figure 1. Left: the first decision. An ad-hoc signed binary is on an item’s list by its build hash (cdhash), so after an update no Wraith Box binary is on it and the Keychain asks for a password only Wraith Box knows (X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary.). Right: the second decision. The wrapped key is useless on another Mac, but any process of the user on this Mac that has it can sign.
Decision 1: keeping items across an update
Section titled “Decision 1: keeping items across an update”Impact of decision 1
Section titled “Impact of decision 1”| Requirement | D. Developer signed | A. Fail closed | B. Copy over | C. Known password |
|---|---|---|---|---|
| SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts. each item reachable only by its declared processes | by code signature | by build hash | one reader of all during an update | any process can ask |
| SEC14-no-fake-approvalsSEC14-no-fake-approvals: Approvals cannot be spoofed by the guestApproval prompts are never rendered in the agent's terminal stream. a prompt is never an approval | no dialogs | no dialogs | no dialogs | routine dialogs |
| Work for the developer after an update | none | all bindings again | none | one dialog per item |
| Generated items survive | kept | lost | copied | kept |
Decision 2: where the CA signing key is kept
Section titled “Decision 2: where the CA signing key is kept”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. keeps the CA key in the Secure Enclave, with a software key in the store as the fallback. A permanent Secure Enclave key needs an entitlement, so it isn’t there for an ad-hoc build.
Evidence
Section titled “Evidence”- verified The list pins an ad-hoc signed binary by cdhash. A rebuilt binary, another binary and
security find-generic-passwordeach got a dialog for the keychain file’s password. The maintainer saw each one. Source: X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary., “Keychain file”. - verified No call repaired a list without the dialog:
SecKeychainItemSetAccessWithPasswordwith the right password returned -25293. Source: X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary., “Keychain file”. - verified
SecKeychainSetUserInteractionAllowed(false)turns the dialog into error -25293, andkSecUseAuthenticationUIFaildoesn’t. Option A depends on the first. Source: X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary.. - verified A permanent Secure Enclave key fails with -34018 without an entitlement. A wrapped key restores the same key in another process, another binary and a rebuilt binary, and CryptoKit loads it too. Source: X09-keychain-unsignedX09-keychain-unsigned: Keychain access without a signing identityConfirm the fallback access-control model from S09-policy-credentials-audit and the Secure Enclave key creation for an ad-hoc signed binary., “Secure Enclave”.
- verified Secretive keeps CryptoKit wrapped keys in the data protection keychain behind an access group, and its debug builds are signed with the developer’s team. Source:
secretiveSecureEnclaveStore.swift(saveKey),CryptoKitMigrator.swift:17,Config.xcconfig. - assumed That a free personal team can sign the helpers of an app bundle with
keychain-access-groups. Option D depends on it, and a follow-up spike would settle it. - assumed That
kSecAttrTokenOIDkeeps working. Apple doesn’t document it. Secretive reads the same attribute, and CryptoKit’s own format matched on macOS 27.0.1. - inferred That option B works: adding an item whose list names other binaries didn’t raise a dialog, but the whole copy wasn’t run.
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.: the
wb-proxydsandbox rules for the Keychain and the Secure Enclave, in 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…. - The spec text of S15-02-secret-storeS15-02-secret-store: The Secret StoreWhere credentials are held: the secret store, its backends, and the guarantees a backend must give. (“Keychain”, G2) and S09-06-ca-keysS09-06-ca-keys: CA KeysHow the key of each TLS inspection certificate authority is made, stored and restored, and when a CA is valid. (“Key”), in I249I249 (closed): S09-policy-credentials-audit, S15-least-privilege: developer-signed builds and a wrapped Secure Enclave CA key, from B23-keychain-unsignedThe maintainer decided the two points of B23-keychain-unsigned on 2026-10-15, in the #23 comment that starts Decision (2026-10-15):..
- I248I248 (closed): X29-dev-signing: Keychain access group for development builds signed by a personal teamCan a developer's free personal team (an Apple ID signed in to Xcode, no paid membership) sign the helper binaries inside Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a…, X29-dev-signingX29-dev-signing: Keychain access group for development buildsCan a developer's free personal team, an Apple ID signed in to Xcode without a paid membership, sign the helpers in Wraith Box.app (wb-proxyd, wb-hostd, wb-vmd) with a keychain-access-groups entitlement and a provisio…: whether a free personal team can grant
keychain-access-groupsto the helpers inWraith Box.app. Option D waits for it, and A applies until it answers yes.
Details and glossary
Why the dialog asks for a password nobody knows. A Keychain file has its own password. S15-least-privilegeS15-least-privilege: Least Privilege on the HostThe security design for SEC12-least-privilege: which rights Wraith Box takes on the host, where credentials are held, and how each host process gets only the credentials it needs, for only as long as it needs them. gives the file a random one and keeps it in the login keychain, so Wraith Box can unlock the file without asking. When a binary that isn’t on an item’s list asks for the item, macOS asks the user to confirm with that file’s password, not the login password. The user never saw it.
Why signed builds don’t have the problem. With a Developer ID or Apple Development certificate, items go into the data protection keychain and are shared by an access group, which names the team, not a build. An update signed by the same team keeps access.
Glossary
- Ad-hoc signed: signed without a certificate. The signature only records the binary’s hash.
- cdhash: the hash of a binary’s code, which changes with every build.
- Access-control list: the list of binaries that an item in a keychain file lets in without a dialog.
- Access group: an entitlement that lets every binary of one team share Keychain items.
- Secure Enclave: the Mac’s key hardware. Its keys can’t be read out.
- Wrapped key (token object ID): a Secure Enclave key encrypted by this Mac’s Secure Enclave, which only that Secure Enclave can use.