Skip to content

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

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.

secret storenominal holderWraith Box keychain,later a 1Password vaultWraith Box processes, as the userwbthe CLI: cred setwb-proxydonly what proxyingneeds, just in timewb-hostdno store accesspasses descriptors,reads nonewb-guestadminone build, rotation orcleanup, wbadminitems onlywb-vmd (build)until the startcall returnswb-build-sshruns ssh, one sessionpassword on stdinwritefetch: bindings · use: CA keywrite, fetch: wbadmin itemspipepipeupstream hostthe binding’s hosts,per request, over TLSVM running project codeguestplaceholders onlybuild VM or fresh cloneno project code yetwbadminhost-administeredwb-guestdfirst contact: old andnew password on itsown connection

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

A. The store, with declared access per process

Section titled “A. The store, with declared access per process”

Each process has a declared set of store items and an access kind for each. A backend must keep Wraith Box items apart and scope them per process. It fails closed when locked. A weaker backend runs only when you turn it on by name.

The first draft, and S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. as written. Other processes get their secrets through wb-proxyd.

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.

  1. Who builds and rotates. wb-guestadmin, a short-lived program started through wb-launcher, with access to wbadmin/* 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.
  2. The build’s ssh. wb-guestadmin writes two lines to the standard input of wb-build-ssh, which runs ssh: wb-askpass reads the first for the login, and the guest’s sudo -S gets 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. How ssh reaches the guest’s port 22 through wb-netd is 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..
  3. Break-glass. When wb-guestd is dead or wedged, wb-hostd replaces the VM’s system disk with a fresh clone. The data disk stays, and first contact rotates again.
  4. 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, and wbadmin stays disabled, hidden, without a shell and out of admin. 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….
  5. 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/unlock in 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..
  6. 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 op means starting a program, which wb-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.
  7. 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..
  8. 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..
  9. wbadmin rotation on standard input. Relies on sysadminctl reading 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-guestd enables wbadmin for 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 fails pwpolicy -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.
  10. 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..
  11. 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..
  12. Rotation failure. A failed or unanswered rotation marks the disk “rotation unknown”, refuses sessions, and recovers by replacing the disk. Designed, no issue needed.
  13. A compromised wb-hostd and 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.
  14. 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?.
RequirementA. Store, declaredB. wb-proxyd holds allC. Discard
SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts. least privilege on the hostper process, just in timeone process has allno password kept
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 doesn’t reach the hostno escalation: wb-guestd is rootguest streams reach the holderno password left
SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. no host secret in the guestamended: the guest’s own password isn’t a host secretneeds the same amendmentnothing kept
SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter. every decision recorded on the hosteach access, no valueunspecifiednothing to record
Prompts at session start (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.)one unlock, batchedone unlockn/a
Break-glass (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…: replace the disk) and later recovery (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…)disk replaced; password kept for 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…disk replaced; kept in wb-proxyddisk replaced; no recovery path
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