Skip to content

S15 - Least Privilege on the Host

Purpose: The security design for SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts.: 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.

Requirements: SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts., with SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter. and 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. where a credential crosses a boundary.

Tests: C05-credentials-and-storeC05-credentials-and-store: Credentials and the Secret StoreThe test cases for the secret store and its callers, the signing setup that gives development builds their Keychain groups, and the credential checks wb-proxyd makes on guest requests and server responses., C09-guest-and-sessionsC09-guest-and-sessions: Guest and SessionsThe test cases for what a project user can reach inside the guest, wb-guestd's update and the guest clock, the shared toolchain prefix, the guest admin password, and the session lifecycle.

Briefs: B145-least-privilegeB145-least-privilege: Where are credentials held on the host, and who may reach them?Recommended, the configured secret store holds every credential, and each host process gets a declared set of items just in time., 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., B248-dev-signingB248-dev-signing: Can development builds signed by the developer's own team share Keychain items across an update?Yes, with conditions., B28-image-buildB28-image-build: Can an unprivileged host build a macOS guest image without SSH or clicks?No., B419-admin-pathB419-admin-path: How does the person at the host's terminal get root in their own guest, apart from every agent path?Recommended, a root daemon of its own in the guest, wb-guestroot, opened only by wb vm admin after a typed confirmation.

secret store nominal holder Wraith Box keychain, later a 1Password vault Wraith Box processes, as the user wb-credset run by wb cred wb-proxyd only what proxying needs, just in time wb-hostd no store access passes descriptors, reads none wb-guestadmin one build, rotation or cleanup, wbadmin items only wb-vmd (build) until the start call returns wb-build-ssh runs ssh, one session password on stdin write, list, delete fetch: bindings · wrapped CA key write, fetch: wbadmin items pipe pipe upstream host the binding's hosts, per request, over TLS VM running project code guest placeholders only build VM or fresh clone no project code yet wbadmin host-administered wb-guestd first contact: old and new password on its own connection
The secret store is outside every Wraith Box process. wb-credset, which wb runs for wb cred, writes, lists and deletes binding secrets in it. wb-proxyd fetches the binding secrets of the VM's sessions and the wrapped CA key, which only the host's hardware key store can sign with. wb-guestadmin writes and fetches the wbadmin passwords, pipes the build password to the build's wb-vmd and to wb-build-ssh, and writes the old and new password to wb-guestd at a VM's first contact. wb-hostd has no store access and passes descriptors on. A VM that runs project code gets placeholders only.
Page What it covers
S15-01-rightsS15-01-rights: RightsWhich rights Wraith Box takes on the host, and which entitlements its binaries hold. The rights Wraith Box takes on the host, and the entitlements of its binaries
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. The store that holds every credential, its backends, and what they guarantee
S15-03-access-rulesS15-03-access-rules: Access RulesHow each host process gets only the credentials it needs, for only as long as it needs them, and which process may access which item. The rules for store access, and which process may access which item
S15-04-guest-adminS15-04-guest-admin: The Guest Admin UserHow the host keeps the password of the guest admin user wbadmin, from the image build to each VM's first contact. The guest admin user wbadmin and its password, from the build to each VM
S15-05-admin-pathS15-05-admin-path: The Admin PathHow the person at the host's terminal gets a root shell in their own guest, on a path that no agent, session, or guest process can start or reach. The root shell for the person at the host’s terminal, apart from every agent path
S15-06-binding-commandsS15-06-binding-commands: The Binding CommandsHow wb cred sets, lists and removes the binding secrets in the secret store through the wb-credset helper, while wb itself holds no store access. wb cred and its wb-credset helper, which set, list and remove the binding secrets

Status: Draft