ATTESTREE TERM

Golden image

Also: master image, golden VHDX

A golden image is a master copy of an operating system with its apps and settings already in place, from which new machines are cloned. It is kept patched and rebuilt rather than edited in place, so every machine made from it starts the same.

UPDATED

Setting up every machine by hand gives every machine its own small differences. A golden image avoids that: you configure one machine the way you want, capture its disk, and make every new machine from the capture. Virtual desktops, server farms and test labs are usually built this way.

How one is made and kept

Microsoft’s guidance for Azure Virtual Desktop walks the usual steps:

  • Start clean. Build a fresh VM from a supported operating system, rather than from an earlier custom image.
  • Customize it. Install the apps, the latest updates and the settings every machine should have, taking snapshots along the way to roll back to.
  • Generalize it. Run Sysprep, which removes the details unique to that one PC, so the image can be reused safely.
  • Capture it, delete the VM you captured it from, and make new machines from the image.

A golden image goes stale as soon as it is captured, so it has to be updated and patched on a schedule. The usual answer is to rebuild it rather than patch it in place: Azure’s VM Image Builder, for one, exists to rebuild a golden image on the latest patched version of its source image. Microsoft also calls it a master image.

The golden image in Attestree

Every detonation in Attestree runs in a sandbox VM made from your golden image, and the image decides much of what a run can see:

  • A fresh copy each time. On Hyper-V each run boots a full copy of the image, and on Proxmox a linked clone of a template made from it. The copy is deleted when the run ends, so no run inherits another’s state.
  • Built by you, from your ISO. The build pins its inputs, the Windows ISO, Syft and the runtimes, by SHA-256, and bakes in the sandbox agent. Built hardened, the image has Defender, SmartScreen and Windows Update turned off, so they neither block an installer nor show up in its evidence.
  • Signed with your key. The build signs the image with an ECDSA P-256 key you hold. The broker on your detonation host will not start without a trusted key, and refuses an image no trusted key verifies. On Hyper-V it checks the image again before each sandbox boots.
  • A record of the build. Beside the image the build writes a golden VHDX build record of its inputs, such as the agent version, the Syft version and the ISO’s digest, and SLSA provenance in Attestree’s golden VHDX build type.
  • It shapes the SBOM. Syft runs from inside the image, so what a run’s SBOM covers depends on the tooling the image was built with.
  • Rebuilt, not edited. A platform release can change what runs inside the image, and those changes take effect only after you rebuild it with that release’s kit. A re-test sweep can then re-run attested versions on the new image.

Building a golden image covers the build host, the key, the Proxmox template and rebuilding.

SOURCES