Skip to content

T00 - Threat model

Purpose: Who Wraith Box defends against, what it protects, what it trusts, and which risks it accepts rather than solves.

ID Description Status
T01-allowed-channelsT01-allowed-channels: Data through allowed channelsData sent through allowed operations to allowed destinations, for example a push to an allowed repository that is public, or prompt content sent to the model provider. Data through allowed channels Accepted
T02-dns-namesT02-dns-names: Data in DNS namesData encoded in DNS names under allowed wildcards, bounded by a lookup budget per VM (S07-03-dns). Data in DNS names Accepted
T03-hypervisor-escapeT03-hypervisor-escape: Hypervisor escapeEscape from the hypervisor. Hypervisor escape Accepted
T04-bad-approvalsT04-bad-approvals: Bad approvalsA user approving a malicious request or merging a malicious change despite the flags. Bad approvals Accepted
T05-cross-proj-clonesT05-cross-proj-clones: Other projects' clones after guest rootAfter a guest root escalation inside the shared work VM, read or write access to other projects' guest clones (code only; no secrets are present; changes still return only as reviewable branches). Other projects’ clones after guest root Accepted
T06-forged-labelsT06-forged-labels: Forged program labels after guest rootAfter a guest root escalation, forged program identities in the guest confinement layer (S13-guest-confinement). Forged program labels after guest root Accepted
T07-ungated-sourcesT07-ungated-sources: Dependencies from ungated sourcesThe dependency gate (SEC07-dep-gate) covers the npm, PyPI, Go module proxy and crates.io hosts only. Dependencies from ungated sources Accepted
T08-homebrew-ungatedT08-homebrew-ungated: Young Homebrew bottlesHomebrew bottles from homebrew/core are not age-gated or checked against OSV. Young Homebrew bottles Accepted
T09-terminal-fingerprintT09-terminal-fingerprint: Host terminal facts in the guestThe guest learns the host terminal's name and version, its colors, the window size in cells and pixels, the state of its modes, and which program states it shows, from the replies to the queries S16-terminal-stream pa… Host terminal facts in the guest Accepted
T10-unnamed-credentialsT10-unnamed-credentials: Guest credentials in unnamed placeswb-proxyd removes Authorization, Proxy-Authorization and Cookie on every inspected host. Guest credentials in unnamed places Accepted
T11-shared-vm-grantsT11-shared-vm-grants: Projects in one VM share network grantsThe host sees one guest address per VM, and can't tell which project user, session or program opened a connection. Projects in one VM share network grants Accepted
T12-shared-exportT12-shared-export: Sessions of a project share what they can fetchA project's export.git holds the refs that any live session of the project selected (S08-02-export-repository). Sessions of a project share what they can fetch Accepted
T13-new-project-grantsT13-new-project-grants: New projects share the work VM's grantsA newly registered project has placement = work (S06-04-vms-and-placement). New projects share the work VM’s grants Accepted
T14-shared-proxydT14-shared-proxyd: One proxy process serves both VMsOne wb-proxyd serves the work VM and the isolated VM (S04-architecture, "Processes"). One proxy process serves both VMs Accepted
T15-shared-toolchainT15-shared-toolchain: Projects in one guest share the toolchain prefixEvery project user runs tools from the one prefix that the toolchain user owns (S06-01-image-layers, "Toolchain prefix"). Projects in one guest share the toolchain prefix Accepted
T16-hostd-landingT16-hostd-landing: A compromised `wb-hostd` decides what `wb land` brings inwb-hostd faces the guest, and it may read every project's export.git and write every project's landing.git (S04-03-self-sandboxing, "Each host daemon is self-sandboxed"). A compromised wb-hostd decides what wb land brings in Accepted
T17-terminal-auto-linksT17-terminal-auto-links: Terminals make guest text into linksThe filter drops OSC 8, but terminals find URLs in plain text and make them links, and Ghostty 1.3 does that for paths too. Terminals make guest text into links Accepted
T18-data-disk-persistenceT18-data-disk-persistence: Guest root persists on the data diskAn update and break-glass replace a VM's system disk (and, for an update, its auxiliary storage), and keep its data disk (S06-03-image-updates, "Updates", and S15-04-guest-admin, "Break-glass"). Guest root persists on the data disk Accepted
T19-pasted-login-codeT19-pasted-login-code: A login code pasted into a guestClaude Code in the guest can print a real authorize URL with its PKCE challenge. A login code pasted into a guest Accepted
T20-config-root-linksT20-config-root-links: Links inside a configuration rootwb resolves each allowlisted entry of the user's ~/.claude/ once, following links, to get its root. Links inside a configuration root Accepted
T21-shared-graphics-cacheT21-shared-graphics-cache: The VMs share a graphics cacheThe graphics device, keyboard and pointer stay in the device set for now (S06-06-devices-and-warm-start, "The graphics device"). The VMs share a graphics cache Accepted
T22-guest-kernel-panicT22-guest-kernel-panic: A guest process can panic its own VM's kernelIn X31-admin-channel a guest-side operation by an unprivileged user in a macOS 27.2 guest stopped the guest's kernel, and the guest rebooted. A guest process can panic its own VM’s kernel Accepted

Adversary. Instructions or code running inside the guest with full guest root: a prompt-injected or misaligned agent, a malicious dependency, or a tool the agent runs. It can read everything in the guest, craft any packet, and try every protocol on every interface it can see.

Assets. Host files; host credentials including the model credential; the user’s repositories and online accounts; other projects’ code; the integrity of the user’s working tree and future host-side executions; the user’s attention (approval fatigue is an attack surface).

Trusted. Host kernel and the platform’s hypervisor and virtualization API (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.); the host user account, including the user’s WSL distributions on Windows; Wraith Box host binaries; the platform’s credential store and hardware key store (Keychain and Secure Enclave on macOS); the operators of allowlisted services (as services, not their content); Apple’s macOS restore images, as the system trust store and the Virtualization installer’s signature check accept them; Claude Code releases, as Anthropic’s release key signs them (S17-03-downloadsS17-03-downloads: DownloadsHow wb-download fetches what an image build needs from the internet., and I262I262 (closed): X30-installer-trust: Installer refusal of a changed restore imageS17-install-and-upgrade (#49) checks a downloaded macOS restore image against the SHA-1 that Apple's catalog (mesu.apple.com) lists, the only hash it lists. for the installer’s check); and the host’s Xcode and the simulator runtimes the user exported, as Apple’s code signature accepts them (S06-14-xcode-imageS06-14-xcode-image: The Xcode ImageHow an image gets full Xcode and the simulator runtimes from the host, as a read-only disk the host builds, and who runs Xcode's first launch.).

Boundaries. (1) the VM; (2) the host-guest socket RPC surface to wb-guestd (vsock or the platform equivalent); (3) the virtual NIC packet surface to wb-netd; (4) git objects returning to the host; (5) user approvals; (6) the host terminal stream: the guest output that wb writes to the user’s terminal emulator, which acts on some escape sequences on the host, and the replies the emulator sends back (S16-terminal-streamS16-terminal-stream: Terminal StreamHow wb guards boundary 6 of T00-index, the guest output that wb writes to the user's terminal.). What host programs such as git log print about returned work after wb land is outside it (T04-bad-approvalsT04-bad-approvals: Bad approvalsA user approving a malicious request or merging a malicious change despite the flags.).

Accepted residual risks, documented rather than solved: