Skip to content

Can a compromised wb-download install an older macOS build?

Answered 2026-11-29: no. Decided 2026-11-29: B, pin the known builds (I658I658 (open): wb-hostd: accept only restore images whose SHA-256 is on the release's pinned list (B618 option B)Package IMG.2 of docs/implementation-plan.md, part 5 of 5 (IMG.2e).). Source: I618I618 (closed): X33-restore-downgrade: Restore image downgrade by a compromised wb-downloadFollow-up from #262 (X30-installer-trust)., X33-restore-downgradeX33-restore-downgrade: Restore image downgradeCan a compromised wb-download install an older macOS build that Apple's signing server still signs for a VM, by reporting a newer version in its catalog entry?. Affects S17-04-restore-and-releaseS17-04-restore-and-release: Restore Image and ReleaseThe steps by which wb-download and wb-hostd fetch and check a macOS restore image and a Claude Code release. and I658I658 (open): wb-hostd: accept only restore images whose SHA-256 is on the release's pinned list (B618 option B)Package IMG.2 of docs/implementation-plan.md, part 5 of 5 (IMG.2e)..

wb-download27.0 image, manifestsays 27.2.1wb-hostdSHA-1, floor, rollbackon the entry: passentry: 27.2.1wb-vmd-installVZ reads the manifestreports 27.2.1signing serversigns 27.0, 26.0, 13.0VM after the installguest sw_verssays 27.0 (26A428)Every check before the install reads a value wb-download wrote.Only the installed guest tells the truth (option A).

Figure 1. The downgrade path that X33-restore-downgradeX33-restore-downgrade: Restore image downgradeCan a compromised wb-download install an older macOS build that Apple's signing server still signs for a VM, by reporting a newer version in its catalog entry? measured. The checks of S17-04-restore-and-releaseS17-04-restore-and-release: Restore Image and ReleaseThe steps by which wb-download and wb-hostd fetch and check a macOS restore image and a Claude Code release. and the version that VZMacOSRestoreImage reports all come from what wb-download wrote. Apple’s signing server signs the old build. The guest reads its version from the system volume, which the restore OS checks (X30-installer-trustX30-installer-trust: Installer refusal of a changed restore imageDoes the Virtualization framework's macOS installer, run by wb-vmd-install, refuse a restore image that Apple didn't sign, or one with a changed or replaced component, and does the install contact Apple while wb-vmd-i…).

A. Check the guest’s version before sealing

Section titled “A. Check the guest’s version before sealing”

After the provisioning boot, wb-guestd reports the guest’s macOS version and build, read from the system volume. wb-hostd requires the build to equal the entry’s, and applies the floor and the rollback check to the guest’s version. A mismatch fails the build before it seals the image. The value is read in the provisioning boot of the freshly restored system volume, which the restore OS checked, before any agent or project code runs and with only the build’s own network, so wb-hostd parses it as adversarial input in a fixed form.

Each Wraith Box release holds the SHA-256 of every restore image it accepts. wb-hostd hashes the file and refuses one that isn’t on the list, before the install.

The spec is as this pull request leaves it. A compromised wb-download can install any build the server still signs. I658I658 (open): wb-hostd: accept only restore images whose SHA-256 is on the release's pinned list (B618 option B)Package IMG.2 of docs/implementation-plan.md, part 5 of 5 (IMG.2e). closes as not planned.

A fourth option, reading the version from the installed system volume on the host, isn’t viable: SEC15-no-guest-disk-mountSEC15-no-guest-disk-mount: The host never mounts a guest-written diskA disk image is guest-written once a guest has run with it attached, and every copy or clone of a guest-written image is guest-written too. forbids the host to mount a guest disk.

The case for B. B refuses an old build before it boots at all, and doesn’t trust anything the guest says, not even wb-guestd on a fresh Apple OS. It also catches a build that equals the entry but that Apple withdrew. Its cost is the release cadence: a pinned list ties Wraith Box releases to Apple’s, and a user who updates macOS first can’t build an image until Wraith Box ships.

Confidence in A is medium. A finding that the guest’s sw_vers can be changed without failing the install, or that the old build’s first boot can reach more than the build network, would favor B.

RequirementA. Guest versionB. Pinned buildsC. Keep the gap
SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another. one project can’t reach another’s dataguest OS at or above the floorguest OS from the listany signed build
SEC15-no-guest-disk-mountSEC15-no-guest-disk-mount: The host never mounts a guest-written diskA disk image is guest-written once a guest has run with it attached, and every copy or clone of a guest-written image is guest-written too. the host never mounts a guest diskasks wb-guestdhashes the downloadno change
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 hostno new ruleno new ruleno change
Details and glossary

Why the attacker rewrites the manifest. If wb-download only lied in its entry and served Apple’s 27.0 image unchanged, VZMacOSRestoreImage would report 26A428, and comparing that with the entry would catch it. An attacker who controls wb-download controls the file as well, so they rewrite the manifest’s version strings and report the new file’s SHA-1. The signing server never sees those strings: it signs the component digests, which are unchanged.

The guest reads a checked volume. The guest reads its version from the system volume. The restore OS checks that volume while it copies it, and one changed byte failed the install (X30-installer-trustX30-installer-trust: Installer refusal of a changed restore imageDoes the Virtualization framework's macOS installer, run by wb-vmd-install, refuse a restore image that Apple didn't sign, or one with a changed or replaced component, and does the install contact Apple while wb-vmd-i…). In c04 the guest reported its true build after a manifest that lied.

Glossary