Where are credentials held on the host, and who may reach them?
Decided 2026-10-07: A, the store, with declared access per process. The decision is in the I145I145 (closed): SEC12-least-privilege: who holds the image build provisioning password (X17)X17-image-build (PR #141, #28) found that the image build needs a provisioning password: - wb-vmd sets it on VZMacGuestProvisioningOptions; - the build's one SSH session uses it; - wb-guestd's disable step needs the… comment that starts Decision (2026-10-07), and PR149PR149 (merged): docs(spec): S15-least-privilege, credentials held by the secret store- Decides: how SEC12-least-privilege is met as a whole. implements it. PR149PR149 (merged): docs(spec): S15-least-privilege, credentials held by the secret store- Decides: how SEC12-least-privilege is met as a whole. kept its edits to the other specs, and I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2. got a comment that narrows its scope. The question of whether S01-spec-based-developmentS01-spec-based-development: Spec-Based DevelopmentHow the design is written down: the kinds of design documents, their IDs, the spec template, how a spec is split into pages, and how packages are named. records one spec per security requirement was decided 2026-10-12: B, not now, in the I223I223 (closed): S01-spec-based-development: one spec per security requirement, now or later (B145 open question)B145-least-privilege asked, among its "Questions for you", whether S01-spec-based-development should record "one spec per security requirement" now or later. comment that starts Decision (2026-10-12):. Source: I145I145 (closed): SEC12-least-privilege: who holds the image build provisioning password (X17)X17-image-build (PR #141, #28) found that the image build needs a provisioning password: - wb-vmd sets it on VZMacGuestProvisioningOptions; - the build's one SSH session uses it; - wb-guestd's disable step needs the…, 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., SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts.. Related: I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2., I146I146 (closed): X17-image-build decision 1: keep the disabled provisioning user in the imageX17-image-build open decision 1 (docs/spikes/X17-image-build.md, B28-image-build): the provisioning user (wbprov) is the volume's only secure-token holder, and macOS refuses both deleting it and taking its token away., I139I139 (closed): S06-vm-lifecycle: SSH for the image build's provisioning boot without a NAT networkX17-image-build (#28) answered "no": a host without root can't get wb-guestd into a new macOS guest by writing to its disk., 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., I151I151 (open): S15-least-privilege: 1Password as a secret store backendS15-least-privilege (PR #149, B145-least-privilege) makes the configured secret store the nominal holder of every credential, with the macOS Keychain first and 1Password next. to I158I158 (open): S15-least-privilege: developer break-glass through recoveryOS with a disabled wbadminCan the host boot a macOS VM into recoveryOS (VZMacOSVirtualMachineStartOptions, startUpFromMacOSRecovery), authenticate there as the volume owner wbadmin with its host-held password, and get a root Terminal on the…, 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.. Changes SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces. (SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. and SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts.), S01-spec-based-developmentS01-spec-based-development: Spec-Based DevelopmentHow the design is written down: the kinds of design documents, their IDs, the spec template, how a spec is split into pages, and how packages are named. “Spec template”, S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command., S06-02-image-buildS06-02-image-build: Image BuildHow wb image build makes a guest image: the build VM, its two provisioning stages, terminfo, sealing, and storage., 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., S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice., 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… 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..
What changed since the first draft
Section titled “What changed since the first draft”Every change below is yours, from 2026-10-07. The design differs from what I145I145 (closed): SEC12-least-privilege: who holds the image build provisioning password (X17)X17-image-build (PR #141, #28) found that the image build needs a provisioning password: - wb-vmd sets it on VZMacGuestProvisioningOptions; - the build's one SSH session uses it; - wb-guestd's disable step needs the… and I146I146 (closed): X17-image-build decision 1: keep the disabled provisioning user in the imageX17-image-build open decision 1 (docs/spikes/X17-image-build.md, B28-image-build): the provisioning user (wbprov) is the volume's only secure-token holder, and macOS refuses both deleting it and taking its token away. say today.
-
The host keeps the guest admin password. I145I145 (closed): SEC12-least-privilege: who holds the image build provisioning password (X17)X17-image-build (PR #141, #28) found that the image build needs a provisioning password: - wb-vmd sets it on VZMacGuestProvisioningOptions; - the build's one SSH session uses it; - wb-guestd's disable step needs the… option 4 had nobody keep it, and accepted a dead secure token. Now the host keeps it, and the token keeps working. 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. holds because the asset never leaves its VM: the password and the token unlock only that VM’s disk, and no VM can reach another VM’s
wbadmin. One password per VM: every VM is a clone of the image, so the password is rotated at each VM’s first contact, and a password burned in one VM opens nothing elsewhere. I146I146 (closed): X17-image-build decision 1: keep the disabled provisioning user in the imageX17-image-build open decision 1 (docs/spikes/X17-image-build.md, B28-image-build): the provisioning user (wbprov) is the volume's only secure-token holder, and macOS refuses both deleting it and taking its token away. option 1B is dropped, because a second admin only renames the token holder. -
The store is the holder, not a Wraith Box process. The first draft made
wb-proxydthe nominal holder of every credential, which gives the process that faces guest streams every secret. Now the configured secret store holds them, the macOS Keychain first, 1Password next, other backends later.wb-proxydfetches only what proxying needs. The guest admin user is renamedwbadmin, and a short-livedwb-guestadmingenerates, writes and rotates its passwords, withoutwb-proxyd. -
I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2. narrows. It has to show that guest root can’t extract the host-held password or reset its way into the token.
-
Specs carry no review material. On review, you set the rule that a spec states only the design. 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. lost its “For review” and “Open questions” sections, each leaning became its design, and this brief and I151I151 (open): S15-least-privilege: 1Password as a secret store backendS15-least-privilege (PR #149, B145-least-privilege) makes the configured secret store the nominal holder of every credential, with the macOS Keychain first and 1Password next. to I156I156 (closed): S06-vm-lifecycle: v1 break-glass replaces the system disk, wbadmin stays disabledS15-least-privilege (PR #149) uses wbadmin for a break-glass console login when wb-guestd is dead or wedged: wb-guestadmin fetches the VM's password from the secret store, wb vm console shows it once, and the VM gets… carry the rest. S01-spec-based-developmentS01-spec-based-development: Spec-Based DevelopmentHow the design is written down: the kinds of design documents, their IDs, the spec template, how a spec is split into pages, and how packages are named.’s template, the
spec-draftandbriefskills,review-briefs.mdandplanning.mdfollow.wb-guestadminbecame a process of its own in S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves.. -
Break-glass replaces the disk. You decided I156I156 (closed): S06-vm-lifecycle: v1 break-glass replaces the system disk, wbadmin stays disabledS15-least-privilege (PR #149) uses wbadmin for a break-glass console login when wb-guestd is dead or wedged: wb-guestadmin fetches the VM's password from the secret store, wb vm console shows it once, and the VM gets… as option C. In v1, break-glass replaces the VM’s system disk, nobody logs in, and
wbadminstays disabled, hidden, without a shell and out ofadmin, so the sealing scan is unchanged. The host still keeps the per-VM password, for rotation and a later diagnostics path. Developer break-glass through recoveryOS is I158I158 (open): S15-least-privilege: developer break-glass through recoveryOS with a disabled wbadminCan the host boot a macOS VM into recoveryOS (VZMacOSVirtualMachineStartOptions, startUpFromMacOSRecovery), authenticate there as the volume owner wbadmin with its host-held password, and get a root Terminal on the…. -
Both reviews applied. You adopted every recommendation of the code review and the security review on PR149PR149 (merged): docs(spec): S15-least-privilege, credentials held by the secret store- Decides: how SEC12-least-privilege is met as a whole., with two decisions of your own:
- SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. is amended. A credential that opens nothing outside its own VM, such as the guest’s own
wbadminpassword, isn’t a host secret. It enters its VM only at first contact, before project code runs, and is rotated per VM. - Rotation with a disabled
wbadmin. At first contactwb-guestd, as root, enableswbadmin, runs the reset with both passwords on standard input, and disables it again, before any project code runs. I154I154 (closed): S15-least-privilege: check that wbadmin rotation works with both passwords on standard inputS15-least-privilege (PR #149) rotates wbadmin's password at each VM's first contact. still checks that the reset keeps the secure token usable.
The review changes:
wb-hostdkeeps the current-item marker instate.db, and a failed or unanswered rotation marks the disk “rotation unknown” and refuses sessions until the disk is replaced. The build’ssshruns through a fixedwb-build-sshshim, a second bounded launcher exception next towb-git, with-F /dev/null, no known-hosts file andIdentitiesOnly=yes, only on the build VM’s own network, and an incomplete session burns the build password. The password reachessshon its standard input throughwb-askpasswithSSH_ASKPASS_REQUIRE=force, because OpenSSH closes inherited descriptors before it runs askpass.wb-guestadminrequests carry only item names, and it checks its guest connection’s peer withLOCAL_PEERPID. The ad-hoc keychain’s unlock item, the CA fallback item and the build VM’s rotation are in the access table. G2 for 1Password and ad-hoc builds now says that only our code enforces it, and ad-hoc builds are for development only. 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. states what first contact relies on, 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… has a conformance case.wbadmin’s keychains are deleted before sealing. Stale text in S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command., 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., 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., S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice. and SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces. is fixed. - SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. is amended. A credential that opens nothing outside its own VM, such as the guest’s own
The picture
Section titled “The picture”Figure 1. Each arrow into or out of the store is a declared access: write, fetch, or use in place. wb-hostd has no store access. The red dashed arrow is a path the design stops. A credential that opens anything outside one VM never enters a guest (SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential.).
Options
Section titled “Options”Decision 1: where credentials are held
Section titled “Decision 1: where credentials are held”Open points and their issues
Section titled “Open points and their issues”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. states each leaning below as its design, because a spec carries no open questions (S01-spec-based-developmentS01-spec-based-development: Spec-Based DevelopmentHow the design is written down: the kinds of design documents, their IDs, the spec template, how a spec is split into pages, and how packages are named., “Spec template”). The points and what each relies on are listed here instead, with the issue that tracks each one that still needs work.
- Who builds and rotates.
wb-guestadmin, a short-lived program started throughwb-launcher, with access towbadmin/*items only, now a process of its own in S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves.. The alternative,wb-hostd, would give store access to the process that runs the host-guest socket handlers. - The build’s
ssh.wb-guestadminwrites two lines to the standard input ofwb-build-ssh, which runsssh:wb-askpassreads the first for the login, and the guest’ssudo -Sgets the second. Answering the prompt through a terminal was the alternative, rejected so that the password never passes through a terminal stream. The session runs only on the build VM’s own network. Howsshreaches the guest’s port 22 throughwb-netdis I139I139 (closed): S06-vm-lifecycle: SSH for the image build's provisioning boot without a NAT networkX17-image-build (#28) answered "no": a host without root can't get wb-guestd into a new macOS guest by writing to its disk.. - Break-glass. When
wb-guestdis dead or wedged,wb-hostdreplaces the VM’s system disk with a fresh clone. The data disk stays, and first contact rotates again. - Break-glass login, and
admin. Decided on I156I156 (closed): S06-vm-lifecycle: v1 break-glass replaces the system disk, wbadmin stays disabledS15-least-privilege (PR #149) uses wbadmin for a break-glass console login when wb-guestd is dead or wedged: wb-guestadmin fetches the VM's password from the secret store, wb vm console shows it once, and the VM gets…, option C: in v1 nobody logs in, no password is fetched, andwbadminstays disabled, hidden, without a shell and out ofadmin. Developer break-glass through recoveryOS with the volume owner’s password is I158I158 (open): S15-least-privilege: developer break-glass through recoveryOS with a disabled wbadminCan the host boot a macOS VM into recoveryOS (VZMacOSVirtualMachineStartOptions, startUpFromMacOSRecovery), authenticate there as the volume owner wbadmin with its host-held password, and get a root Terminal on the…. - Unlocking the dedicated keychain. With signed builds, the data protection keychain with an access group per role. Ad-hoc builds, for development only, use a dedicated keychain file whose password is
wraithbox/unlockin the login keychain, a declared item. G2 on the Keychain waits for 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. and I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04.. - 1Password. The desktop app integration, with a vault per role, and a license check of the client first: I151I151 (open): S15-least-privilege: 1Password as a secret store backendS15-least-privilege (PR #149, B145-least-privilege) makes the configured secret store the nominal holder of every credential, with the macOS Keychain first and 1Password next.. Running
opmeans starting a program, whichwb-guestadmin’s profile denies, so I151I151 (open): S15-least-privilege: 1Password as a secret store backendS15-least-privilege (PR #149, B145-least-privilege) makes the configured secret store the nominal holder of every credential, with the macOS Keychain first and 1Password next. has to solve that. - Passwords in host remote URLs. Removed from withheld URLs too, before the audit record: I152I152 (closed): S08-workspace-and-git: remove credentials from withheld remote URLs before the audit recordS08-workspace-and-git "Remote URLs" removes the user name and password from each remote URL that wb gives the guest, and sends each withheld URL to wb-hostd's audit writer with its reason..
- OAuth token endpoint. A binding names its token endpoint, so the refresh token goes only to a declared recipient: I153I153 (closed): S09-policy-credentials-audit: an OAuth binding names its token endpointS09-policy-credentials-audit lets a binding hold an OAuth 2 refresh token or client credentials, which wb-proxyd exchanges for short-lived access tokens..
wbadminrotation on standard input. Relies onsysadminctlreading both passwords from standard input, and on the reset keeping the secure token usable: I154I154 (closed): S15-least-privilege: check that wbadmin rotation works with both passwords on standard inputS15-least-privilege (PR #149) rotates wbadmin's password at each VM's first contact..wb-guestdenableswbadminfor the reset, because 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? item 8 showed that a disabled account failspwpolicy -authentication-allowed. If I154I154 (closed): S15-least-privilege: check that wbadmin rotation works with both passwords on standard inputS15-least-privilege (PR #149) rotates wbadmin's password at each VM's first contact. fails, rotation fails in every VM, and no session starts anywhere until the rotation design changes.- The provisioning password in the bundle. Relies on Virtualization not writing it into the build bundle, which the build’s test checks: I155I155 (closed): S15-least-privilege: check that Virtualization doesn't write the provisioning password into the build bundleS15-least-privilege (PR #149) never writes the image build's provisioning password to disk outside the secret store..
- Guest root and the secure token. Relies on guest root being unable to extract the host-held password or reset its way into the token: I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2..
- Rotation failure. A failed or unanswered rotation marks the disk “rotation unknown”, refuses sessions, and recovers by replacing the disk. Designed, no issue needed.
- A compromised
wb-hostdand the build pipes. It can keep a read end of a build pipe and read that build’s password. S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. records this residual, limited to builds, because the password is burned at the build VM’s first contact. - The Claude subscription login stays with X01-model-credentialX01-model-credential: Model credential via the proxyDoes Claude Code work with a placeholder credential while wb-proxyd injects the real one, for each supported authentication mode, including token refresh?.
Questions for you
Section titled “Questions for you”- S01-spec-based-developmentS01-spec-based-development: Spec-Based DevelopmentHow the design is written down: the kinds of design documents, their IDs, the spec template, how a spec is split into pages, and how packages are named.. Should it record the “one spec per security requirement” approach now, or after you have reviewed this first one? This pull request changes S01-spec-based-developmentS01-spec-based-development: Spec-Based DevelopmentHow the design is written down: the kinds of design documents, their IDs, the spec template, how a spec is split into pages, and how packages are named.’s template only, to keep review material out of specs. Decided 2026-10-12 on I223I223 (closed): S01-spec-based-development: one spec per security requirement, now or later (B145 open question)B145-least-privilege asked, among its "Questions for you", whether S01-spec-based-development should record "one spec per security requirement" now or later.: B, not now.
- The other specs. This pull request also edits S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command., 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., S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice. 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…, which named
wb-proxydas the only reader or missed the new processes. Keep those edits here, or split them out? - I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2. and I146I146 (closed): X17-image-build decision 1: keep the disabled provisioning user in the imageX17-image-build open decision 1 (docs/spikes/X17-image-build.md, B28-image-build): the provisioning user (wbprov) is the volume's only secure-token holder, and macOS refuses both deleting it and taking its token away.. Update their bodies to the narrowed question and the dropped option, or close them and file again?
- Other specs’ review material. I157I157 (closed): Move review blocks and open questions out of the specs into briefs and issuesPR #149 changes S01-spec-based-development, "Spec template": a spec states the design, and review material (what approving commits to, the controls touched, assumptions, open decisions) lives in the review brief and… moves the “For review” blocks, open questions and “pending” wording out of the specs this pull request doesn’t touch.
Impact
Section titled “Impact”Evidence
Section titled “Evidence”- verified macOS refuses to delete the provisioning user or take its secure token:
sysadminctl -deleteUserand-secureTokenOffrefuse, anddscl . -deletefails (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?, “Answer”, item 7). - verified
sysadminctl -adminPassword "$P"puts the password in the process arguments, which any guest process sees withps, and-makes it read the password interactively (I145I145 (closed): SEC12-least-privilege: who holds the image build provisioning password (X17)X17-image-build (PR #141, #28) found that the image build needs a provisioning password: - wb-vmd sets it on VZMacGuestProvisioningOptions; - the build's one SSH session uses it; - wb-guestd's disable step needs the… comment of 2026-10-07). - verified A reset without the old password logged that the changed password can’t be used for disk encryption (I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2. body, 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? cleanup log). The rotation passes the old password for that reason.
- verified S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., 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 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. named
wb-proxydas the only process with secret store access before this change. - inferred The Keychain scopes an item by the reading app’s code signature. An ad-hoc signed binary is identified by its hash. Each update then asks again. 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. and I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04. confirm it.
- assumed 1Password’s desktop app authorizes its CLI for 10 minutes after use, up to 12 hours, and scopes by vault and session, not by process. To check against its documentation in I151I151 (open): S15-least-privilege: 1Password as a secret store backendS15-least-privilege (PR #149, B145-least-privilege) makes the configured secret store the nominal holder of every credential, with the macOS Keychain first and 1Password next..
- assumed
sysadminctlreads both-newPassword -and-adminPassword -from standard input in one call, and the reset of a briefly enabledwbadminkeeps the secure token usable. I154I154 (closed): S15-least-privilege: check that wbadmin rotation works with both passwords on standard inputS15-least-privilege (PR #149) rotates wbadmin's password at each VM's first contact. checks both on a VM. - verified A disabled account fails
pwpolicy -authentication-allowed(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?, “Answer”, item 8), which is whywb-guestdenableswbadminfor the reset. - inferred OpenSSH closes every descriptor above standard error before it runs askpass, so an inherited descriptor can’t reach
wb-askpass, and its standard input can (security review on PR149PR149 (merged): docs(spec): S15-least-privilege, credentials held by the secret store- Decides: how SEC12-least-privilege is met as a whole.). - assumed Guest root can’t extract the host-held password or reset its way into the secure token. I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2. measures it.
- assumed Virtualization doesn’t write the provisioning password into the build bundle. I155I155 (closed): S15-least-privilege: check that Virtualization doesn't write the provisioning password into the build bundleS15-least-privilege (PR #149) never writes the image build's provisioning password to disk outside the secret store. checks it.
What it unblocks
Section titled “What it unblocks”- I145I145 (closed): SEC12-least-privilege: who holds the image build provisioning password (X17)X17-image-build (PR #141, #28) found that the image build needs a provisioning password: - wb-vmd sets it on VZMacGuestProvisioningOptions; - the build's one SSH session uses it; - wb-guestd's disable step needs the… closes when this merges.
- The image build, once I139I139 (closed): S06-vm-lifecycle: SSH for the image build's provisioning boot without a NAT networkX17-image-build (#28) answered "no": a host without root can't get wb-guestd into a new macOS guest by writing to its disk., I154I154 (closed): S15-least-privilege: check that wbadmin rotation works with both passwords on standard inputS15-least-privilege (PR #149) rotates wbadmin's password at each VM's first contact. and I155I155 (closed): S15-least-privilege: check that Virtualization doesn't write the provisioning password into the build bundleS15-least-privilege (PR #149) never writes the image build's provisioning password to disk outside the secret store. are done.
- I142I142 (closed): X17-image-build: measure whether guest root can revive the disabled provisioning user secure tokenFrom the security review of PR #141 (X17-image-build, #28), finding 2. and I146I146 (closed): X17-image-build decision 1: keep the disabled provisioning user in the imageX17-image-build open decision 1 (docs/spikes/X17-image-build.md, B28-image-build): the provisioning user (wbprov) is the volume's only secure-token holder, and macOS refuses both deleting it and taking its token away., with their narrowed scope.
- I151I151 (open): S15-least-privilege: 1Password as a secret store backendS15-least-privilege (PR #149, B145-least-privilege) makes the configured secret store the nominal holder of every credential, with the macOS Keychain first and 1Password next. (1Password), I152I152 (closed): S08-workspace-and-git: remove credentials from withheld remote URLs before the audit recordS08-workspace-and-git "Remote URLs" removes the user name and password from each remote URL that wb gives the guest, and sends each withheld URL to wb-hostd's audit writer with its reason., I153I153 (closed): S09-policy-credentials-audit: an OAuth binding names its token endpointS09-policy-credentials-audit lets a binding hold an OAuth 2 refresh token or client credentials, which wb-proxyd exchanges for short-lived access tokens., I154I154 (closed): S15-least-privilege: check that wbadmin rotation works with both passwords on standard inputS15-least-privilege (PR #149) rotates wbadmin's password at each VM's first contact., I155I155 (closed): S15-least-privilege: check that Virtualization doesn't write the provisioning password into the build bundleS15-least-privilege (PR #149) never writes the image build's provisioning password to disk outside the secret store., I158I158 (open): S15-least-privilege: developer break-glass through recoveryOS with a disabled wbadminCan the host boot a macOS VM into recoveryOS (VZMacOSVirtualMachineStartOptions, startUpFromMacOSRecovery), authenticate there as the volume owner wbadmin with its host-held password, and get a root Terminal on the…, and the next spec in this form.
Details and glossary
Why “nominally”. A credential always spends some time somewhere else: in the process that injects it, in the TLS connection that sends it, or in the guest that checks it. 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. keeps the store as the one place a credential lives, and makes each other place a declared access with a kind, a channel, and an end.
Fetch and use. A fetch brings the value into the process. With a use, the store signs or decrypts in place and keeps the value. The Secure Enclave CA key and 1Password’s SSH agent work that way, and 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. prefers use wherever the store allows it.
Why the host may keep the guest’s admin password. wb-guestd runs as root in the guest and does what the host asks, so the host is already the guest’s administrator. The password adds the secure token, which lets a volume owner approve changes such as turning off System Integrity Protection.
Glossary
- Secret store: the place credentials are kept, for example the macOS Keychain, or a 1Password vault.
- Declared access: an entry in 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. that lets one process write, fetch or use one kind of store item.
- Secure token: a macOS account property that lets the account unlock the disk and approve changes to it.
- Break-glass: the emergency path when
wb-guestdis broken. In v1 it replaces the VM’s system disk, and nobody logs in. - Descriptor: a handle to an open pipe or socket that one process can pass to another. The data then goes straight between them.
- Burned: a credential that reached a place that may be hostile, and is replaced before it is used again.