Brokers and detonation hosts
You are attaching a Hyper-V or Proxmox host to run sandboxes, or you already run one and need to size it, change its golden image, add another, or rotate the broker CA.
UPDATED
A detonation host is a machine you run that hosts the sandbox VMs. The broker is the Windows service, on that host or in a VM on it, that takes runs from your server, starts a VM cloned from your golden image, and hands back what the installer did. Without one, nothing is verified. Since platform 26.11.100 a run executes only the installer digest it was queued for (what gets tested). This page is how an operator runs them today. What each host needs, and which connections it makes, is on the architecture page.
Attaching a broker
Brokers are managed on the console’s Brokers page (/brokers). You do not copy certificates around: the server keeps its own broker CA, and the install command it generates carries a one-time enrollment token and the broker CA root the broker pins. The broker dials your server, enrolls once, and from then on connects with a client certificate issued under that root.
- Hyper-V. The broker runs on the Hyper-V host itself, next to the sandbox VMs, as its own local account rather than LocalSystem. You generate the install command on the Brokers page, run it elevated on the host, and the broker turns Healthy once it has enrolled. Since 26.11.1600 a connected broker reads Cannot detonate instead of Healthy while its WepDetonation switch is missing or not Private, while it has approved no golden image, or while its image reads not held or no image. A fresh install sets no default image, and the broker’s start-up check logs Warning Event 1237 (1238 if it cannot read the switches). Only Hyper-V can give a sandbox a network connection, through an opt-in recording proxy you set up and switch on yourself (setting it up); Chocolatey and Scoop runs need it.
- Proxmox VE. The broker runs in a Windows VM that is itself a guest on the Proxmox host, and drives Proxmox over its API with a least-privilege token. You pick the Proxmox backend when you generate the install command, then run the bring-up wizard on the broker VM; it creates the token, stages the template, plants the image’s public key and sets up the small result extractor on the Proxmox host. Since the 26.11.2000 broker MSI it also stages further templates, such as the interactive golden: pass
--further-templates <file>, and it verifies each one’s signed record before any download.--template-expires-on <yyyy-MM-dd>records the day the default template’s Windows evaluation ends. The wizard needs Proxmox VE 8.2 or later. Run it from an elevated PowerShell once the broker MSI is installed; without elevation it stops and exits with code 2. Since the 26.11.1800 broker MSI its last step asks the running broker service to make one validating detonation. A broker service older than the wizard cannot take that request, and the wizard names the version to upgrade it to. Interrupted at any step, the wizard can be run again, and it finishes without duplicate Proxmox objects or a second trust anchor. The golden image is built on a separate Hyper-V-capable Windows machine, because the broker VM has no Hyper-V.
Limits on Proxmox. Its sandboxes have no network adapter, so an installer that needs the network cannot be tested there, and neither can Chocolatey and Scoop packages. Its golden images are the templates it serves, more than one since the 26.11.1900 broker MSI (the wizard stages further ones since the 26.11.2000 broker MSI), and the console does not choose them: a run’s golden image picks the template it clones. Proxmox checks the template’s bytes once, when it imports it, against the digest in your signed template record. After that the broker cannot re-hash the template on the Proxmox host. Before each clone it checks the record it holds instead: its signature, that it names the VMID about to be cloned, and that its digest is the one configured. A change made to the template on the Proxmox host after import is not detected. Since the 26.11.1700 broker MSI the broker checks each result’s signed manifest and file digests before it passes the result on, and a result that fails is refused as tampered. The run’s signing key reaches the guest on an ISO in the node’s storage, so whoever controls the PVE node, or can read that storage, can sign a result of their own.
Network-capturing runs on Hyper-V. Since platform 26.11.502, before anything installs, the sandbox checks that the broker host’s firewall keeps it away from the host’s own services. If a host port answers, the run stops with no verdict on the package and reads “The sandbox’s network isolation failed its check”, with the steps that fix the broker host, and a re-test sweep pauses on it. Since 26.11.600 the run’s evidence also records whether the sandbox got its address on the broker’s proxy network, whether the proxy answered, and whether the host’s other ports stayed blocked. Both need a golden image rebuilt with that release’s tools kit. Since 26.11.700 Chocolatey and Scoop runs wait until a broker on that release takes them, because an older broker counts Windows’ own background traffic against the package; the run’s reason names the upgrade it waits for (mitm-trust-traffic-v1). Winget runs do not wait.
The Proxmox result extractor, since platform 26.11.100. The extractor no longer mounts a guest-built disk or reads it as root. A one-shot, unprivileged child process parses the result volume, the listener runs as a sandboxed non-root account, and every link, device node, FIFO and socket on the volume is refused. Before, a detonated installer could reach a file on the host. Upgrading means reinstalling, not swapping the binary: unpack the new kit on each Proxmox host, run its deploy/install.sh, and re-pin the broker as usual. A qcow2 harvest needs the nbd kernel module loaded with max_part=0 before the helper starts; a module loaded later fails with a message saying so, until a restart. The kit no longer needs ntfs-3g.
Add another. Since platform 26.10.3000, Add broker sits in the Brokers page head, beside minting an enrollment token, so a deployment that already has a working broker can add a second. Before that, the install command was offered only while no broker was listed, or from an existing broker’s drawer.
Re-enrolling. A broker that lost its key or certificate re-enrolls with a single-use token passed to the broker’s --re-enroll on its host. Since platform 26.11.1700 the token comes from Re-enroll, the first button in the broker’s drawer. It asks for the page’s confirm phrase, then mints a token valid for 15 minutes and says where to run the command. A token minted from a broker’s drawer, by Re-enroll or by Generate install command, replaces that broker. When the new one first checks in Healthy, the old one is revoked and decommissioned, and each row names the other. A broker whose pinned root no longer matches needs a reinstall from a freshly generated command instead.
Old broker MSIs, since platform 26.11.501. A broker installed from an MSI older than 0.242.0 can no longer enroll: the platform no longer answers the old enrollment protocol, and refuses such a broker before it reads the token. Brokers already enrolled keep working. Reinstall an old broker from a current install command. While the tenant holds no broker install command that can still enroll, the platform refuses every broker enrollment at once.
The broker port
Brokers dial your server on the broker port, 18443 on the host by default. Since platform 26.10.3101 the Community broker overlay publishes it on loopback only, so a broker on another machine needs WEP_BROKER_BIND set to an address that machine can reach; a broker on the same host needs no change. The port answers only the broker’s routes: console, agent and feed routes answer 404 there, and forwarded headers are ignored, so rate limits and logs read the address of the connection. Docker’s published ports bypass ufw and firewalld, so limit the port with the rules below, which do apply.
Since platform 26.11.100 Community Edition can also keep a list of the networks allowed to reach the broker port, in Network settings; /brokers shows its state under Broker port. The list admits every address until the console’s check shows that the host keeps client addresses, because a Docker host can hide client addresses behind its own. Once the check passes, the listener refuses any other source. A broker on the Docker host itself arrives from Docker’s own address, which the list never matches, so leave the list empty and keep the loopback bind for it. Since platform 26.11.2700, when a broker first checks in from outside the Docker host while no list is saved, Community Edition raises a row on Home: “A broker connects from outside this host, and no broker network list is set”. Its Review opens Network settings with that broker’s network filled in, and the list stays empty until you save it.
A change to the Docker host under a Community stack (its kernel, its user-namespace mapping or the Docker networks the platform is attached to) resets the check at the next platform start. Until the check runs again, the saved list is not enforced for the address families it checked before. Since platform 26.11.1700 the inbox shows a broker port item and Home a broker port open row while that lasts, both linked to Network settings. /brokers says since when and why. Since 26.11.1800 Home’s row cannot be deferred: it stays until the check runs again or the list is cleared.
Limiting the port on Docker
These rules were run on Docker 29.9.2 on Ubuntu 24.04, and on Docker Desktop for Windows. Each Linux rule takes one network: put your broker network where the examples have 192.0.2.0/24 and 2001:db8:10::/64, and your host port where they have 18443. Rules added this way live in the kernel only, and were not tested across a reboot.
Linux, iptables backend (docker info shows Firewall Backend: iptables). Docker sends forwarded traffic through its DOCKER-USER chain after it has rewritten the destination port, so the rule matches the connection’s original port. IPv6 needs an input rule, because Docker’s userland proxy takes IPv6 connections on the host itself:
sudo iptables -I DOCKER-USER -p tcp -m conntrack --ctorigdstport 18443 --ctdir ORIGINAL ! -s 192.0.2.0/24 -j DROP
sudo ip6tables -I INPUT -p tcp --dport 18443 ! -s 2001:db8:10::/64 -j DROP
Linux, nftables backend (Docker 29, Firewall Backend: nftables). It has no DOCKER-USER chain, so add a table of your own. Keep ct direction original, or the forward rule drops the replies too:
sudo nft add table inet wepbroker
sudo nft add chain inet wepbroker brokerfwd '{ type filter hook forward priority filter - 10; policy accept; }'
sudo nft add chain inet wepbroker brokerin '{ type filter hook input priority filter - 10; policy accept; }'
sudo nft add rule inet wepbroker brokerfwd meta l4proto tcp ct direction original ct original proto-dst 18443 ip saddr != 192.0.2.0/24 drop
sudo nft add rule inet wepbroker brokerin tcp dport 18443 ip6 saddr != 2001:db8:10::/64 drop
Docker Desktop on Windows. Keep the loopback default and run the broker on the same machine. Docker Desktop installs firewall rules that admit every remote address to its backend, and Windows Defender Firewall admits a connection any allow rule matches, so a rule of your own that allows only the broker network limits nothing. A Windows Defender Firewall block rule on the port closed it to every remote source in our test. A rule that admits one network and blocks the rest has not been tested.
Check from a second machine. From a machine outside the broker network, curl -kv --connect-timeout 10 -o /dev/null https://<host-ip>:18443/ must time out, exit code 28. From the broker machine the same command must reach the port: any exit code other than 28 or 7 (refused) means the port answered.
The broker host’s .NET runtime
Since platform 0.251.0 the broker needs a shared .NET runtime, 8 or later and x64 (Microsoft.NETCore.App), on the broker host, a Proxmox broker VM included. The broker uses it to unpack Burn bundle installers, the step that derives an MSI from a bundle. Since 26.11.1300 the broker MSI checks for it: a fresh install or an upgrade stops with a message naming the runtime, and repair and uninstall are unaffected. An x86 or Arm64 runtime does not count. A broker installed earlier on a host without the runtime fails every bundle extraction as tool-failed until you install it. Install it before you upgrade, for example with winget install Microsoft.DotNet.Runtime.10.
The same release dropped the MSI’s Docker Desktop requirement on Hyper-V hosts. Docker Desktop matters only where the platform itself runs in it, as on a single Windows machine that hosts both.
Golden images and timeouts
The golden image is a Windows image you build from your own ISO with the golden-image tools kit that ships with each release, sign with a key you hold, and place in the broker’s baseline directory. The broker checks each image’s signature against the public key you planted on the host, and advertises only the images that pass. It reads that directory when its service starts, so restart it after adding an image. Building a golden image gives the steps.
Since platform 26.10.3000:
- Detonation defaults, a section on the Brokers page, holds the golden image and installer timeout every broker uses unless it names its own. A change to either applies from the next run, with no restart. The installer timeout runs from 60 to 14,400 seconds, but a headless run stops an install at 2,040 seconds whatever it says.
- Edit image and timeout, in a broker’s drawer, gives that broker its own. The image must be one the broker reported as approved. A run then goes only to a broker that holds the image it needs, and a broker whose chosen image it no longer reports takes no runs until you choose another; its drawer says so. A Proxmox broker’s timeout can be set this way; its image cannot.
- A version’s page names the golden image and the broker its detonation ran on. Each save is recorded in the audit trail with the values before and after.
Sizing the sandbox VMs
A broker can run more than one detonation at once, each in its own sandbox VM. Since platform 0.253.0, Edit detonation VMs in a broker’s drawer sets how many it runs at once, each VM’s memory in whole GiB, and its virtual processors, with no restart on the broker host. The count goes up to 16 and no higher than the host’s logical processors, and all the VMs’ memory together must fit in the host’s physical memory. The dialog checks each value against what the host last reported and shows the host’s recent load. A field left empty keeps the broker’s own default, set in its service environment, else 6 GiB, 4 vCPUs and one run at a time. A saved size the host can no longer give is refused when a run is dispatched, never swapped for another. The button is admin-only and needs the 0.253.0 broker MSI or later.
- Hyper-V can also be given a size to grow up to, which turns on dynamic memory starting at the set size. Without one, since platform 26.10.2900, a VM runs with static memory at exactly its set size: before, Hyper-V’s defaults could leave it on dynamic memory and shrink it far below that mid-install. That fix needs the 26.10.2900 broker MSI.
- Proxmox is sized the same way once its API token holds
VM.Config.MemoryandVM.Config.CPU. A role the wizard created before 0.253.0 lacks them; the drawer gives thepveumcommand that adds them, and you then restart the broker’s service.
The detonation queue follows its brokers: it runs as many detonations at once as your live brokers take together, and starts a run only when the server’s spool volumes have room for one more at worst case. Wep:Detonation:MaxConcurrentLeases, when you set it, is a ceiling on that total.
Rotating certificates and the broker CA
A broker’s own certificate. The server renews broker certificates itself, and Rotate now in a broker’s drawer forces one. Since platform 0.251.0 a broker receives the new certificate, checks it, and switches to it once no detonation or transfer is running, within 60 minutes. An older broker is offered none, and its drawer says why.
The broker CA root. Since platform 26.10.2900, a Broker CA root section on the Brokers page replaces the root itself, in steps:
- Start mints the next root, pending. Each broker learns it at its next idle moment and rehearses it.
- Switch makes the new root serve; every connected broker reconnects within 60 minutes.
- Retire drops the old root for good: every broker forgets it, and its private key is erased. It is one-way.
Abort withdraws a pending root before the switch, and Revert goes back to the old root after the switch, until the retirement. Each step shows a preview and runs only on the typed phrase the preview gives. Below 100% ready, that phrase counts the brokers the step would strand, and the preview names each one and why. Only an admin runs a step; every other role sees the progress.
- Which brokers move in place. A broker on 0.251.0 or later whose install pinned the root moves without a reinstall. One that cannot is reinstalled over the top with a freshly generated install command after the switch;
--re-enrolldoes not help it. After a revert, an install command generated while the new root served stops working: generate a new one. - Backups first, on Community Edition. The first move, the switch and the retirement each wait for a backup taken after the previous step.
- No rollback below 0.253.0. Once you have run any rotation step, do not roll back to a platform image older than 0.253.0: its restore would put the old roots back and strand the brokers that moved. From 0.253.0 a Community Edition restore carries the live broker CA roots forward.
When a release needs a new golden image
The sandbox agent, Syft and the image’s hardening are baked into the golden image, so the broker’s and the server’s version tell you nothing about what runs inside the sandbox. A fix to any of them reaches your detonations only after you rebuild the golden image with that release’s tools kit. The release notes say so when it applies: “this takes effect after a golden-image rebuild with this release’s tools kit”. Recent examples:
- 26.11.1300: the pick of the installed program’s exe, and .NET 10.0.15 in the sandbox agent.
- 26.11.1200: an SBOM that no longer lists software already in the install folder before the install.
- 26.11.1100: the check of the installed program’s certificate chain; until it runs, a package whose only signer reference is its installed program holds at the signer check.
- 26.11.900: a golden that switches off Edge’s own background requests.
- 26.11.800: Syft v1.52.0 in place of v1.44.0.
- 26.11.700: a golden that makes no Windows Update or settings requests of its own.
- 26.11.601: network-capturing runs that find their adapter on the proxy network.
- 26.11.600: the network check.
- 26.11.502: the isolation check and the network-capture fix.
- 26.11.100: a failed Chocolatey run keeps Chocolatey’s own log in its evidence, and per-binary evidence no longer reads a signed binary with unused bytes between its sections as tampered.
- 26.10.3000: a sandbox clock pulled back mid-run no longer makes process capture overrun its watchdog.
- 0.250.1: the .NET security fixes in the sandbox agent.
The installer window detector added in 26.10.3000 also needs a rebuilt image, and should stay off for now: there is no recommended setting yet.
Rebuild from the ISO with the new kit rather than editing the current image, keep the image’s logical name so no setting changes, and keep the old image, its signature and its sidecar outside the baseline directory so you can put it back. Drain first: no re-test sweep armed and nothing in the detonation queue. The steps, and the re-test sweep that follows, are under re-cutting the image. The 26.11.1900 and 26.11.1901 kits cannot build an image from an ISO, and the 26.11.2000 kit builds golden images again; that section says what to check before a new image goes into service. Broker fixes, by contrast, come with the release’s broker MSI, which upgrades a broker in place; the release notes name those too. The upgrade to the 26.11.1800 broker MSI still resets the service account’s password once: a broker whose enrollment key is in the host’s TPM then cannot open it, writes event 1210, and needs Re-enroll in its drawer once. Upgrades from that MSI on keep the key. In 26.11.100, a detonation that finds the inspection proxy’s port already held is retried rather than quarantined, with the new broker. In 26.11.700 the capture proxy answers Windows’ connectivity check and certificate-authority fetches itself, so a Chocolatey or Scoop capture no longer counts them as the package’s downloads, also with the new broker. In 26.11.1500 cancelled Hyper-V guests are turned off and removed, and leftovers are swept when the broker starts. In 26.11.1600 a broker with no identity logs Event 1274. Both come with that release’s broker MSI. Since 26.11.502 the order is platform first, then the golden image and the broker: an older platform would read a refusal from the new isolation check as a verdict on the package.