S15-01 - Rights
Purpose: Which rights Wraith Box takes on the host, and which entitlements its binaries hold.
Design
Section titled “Design”No root or administrator rights at run time
Section titled “No root or administrator rights at run time”The processes of S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves.’s table run as the user. They don’t need root:
- The packet transport and the userspace network stack replace the host networking features that would need root.
- The image build never writes to a guest disk from the host, so it doesn’t need root either (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?).
No extra host user accounts
Section titled “No extra host user accounts”Wraith Box’s own processes are kept apart by self-sandboxing (S04-03-self-sandboxingS04-03-self-sandboxing: Self-SandboxingHow each host daemon confines itself at startup, and the wb-launcher that starts confined programs on macOS., “Each host daemon is self-sandboxed”). Projects are kept apart by guest users (SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another.).
Hardening and entitlements
Section titled “Hardening and entitlements”Every binary in the bundle is signed with the hardened runtime (S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice.). On macOS:
wb-vmdalone hascom.apple.security.virtualization;- no process has
com.apple.vm.networking(X25-vmd-sandboxX25-vmd-sandbox: Self-sandboxed `wb-vmd`Can wb-vmd confine itself at start with a Seatbelt profile that allows the Virtualization framework, its VM bundles under <data>/vms and nothing else, and still create, start, save and restore a macOS VM?); - in a build signed by a team, a process with store access gets the Keychain access groups of the items it declares, and no other (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”);
- the build doesn’t give any program
com.apple.developer.team-identifierorcom.apple.application-identifier. The check of a team build tolerates the first when it names the build’s team, because Xcode may add it, and counts the second as an access group (S17-01-bundleS17-01-bundle: The BundleWhat a Wraith Box bundle holds, and how mise run build builds and signs it., “The entitlement check”).
A new entitlement needs a change here first. Other hosts use the equivalents in 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..
Dev and CI builds sign a copy of wb-vmd ad hoc, with the hardened
runtime and that one entitlement, from wb-vmd.entitlements in the
Swift package. The signing task fails when the signed binary holds any
other set. Signing with a Developer ID, and checking the profile under
it, is I118I118 (open): wb-vmd sandbox profile under the hardened runtime and a Developer ID signatureFound while answering #64 (X25-vmd-sandbox)..
The release check
Section titled “The release check”wb-release-check (S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., S14-claude-in-guestS14-claude-in-guest: Claude Code in the GuestHow Claude Code gets into the guest image, which of the user's Claude Code configuration goes with it, how it starts, and the agent interface that keeps Claude Code's specifics in one place (V1-02-claude-only).) doesn’t
declare a store item or an entitlement. Its compiled-in profile allows
only its inherited descriptors. It denies files, the network, the
secret store, and starting programs. The Claude Code release key
compiled into it is public.
The downloads
Section titled “The downloads”wb-download (S17-install-and-upgradeS17-install-and-upgrade: Install, Downloads and UpgradesBuild, install, upgrade and remove a Wraith Box bundle, move its stored data to a new version, and download what an image build needs from the internet.) doesn’t declare a store item
or an entitlement. Its compiled-in profile is the network part of the
wb-proxyd profile that 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… measured for I61I61 (closed): X23-sandboxed-daemons: wb-proxyd profile with Keychain and Secure EnclaveSplit from #34 (X23-sandboxed-daemons) during triage on 2026-10-04.,
limited to TCP port 443. It allows:
- name lookups;
com.apple.trustd.agentand the metadata of the app bundle’s directory, for certificate checks;- the routing table
sysctlread thatgetifaddrsmakes; - its inherited descriptors.
It denies files, the secret store and starting programs. wb-launcher
caps the size of the files it writes. wb-hostd doesn’t get the
network.
One-time prerequisites
Section titled “One-time prerequisites”wb setup checks the prerequisites of 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.. It explains each
missing one, and says who can fix it. The user makes each change, and
wb setup doesn’t ask for an administrator password.
A prerequisite that needs administrator rights on every run needs a change to this spec first.
Status: Draft