Skip to content

S15-01 - Rights

Purpose: Which rights Wraith Box takes on the host, and which entitlements its binaries hold.

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:

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

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:

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

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.

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.agent and the metadata of the app bundle’s directory, for certificate checks;
  • the routing table sysctl read that getifaddrs makes;
  • 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.

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