REFERENCE

How a version is tested

A version is on its way to the sandbox or back from it, and you want to know what the run does, what it records, and what a result other than attested means.

UPDATED

A detonation is one run of one installer in a sandbox VM cloned from your golden image. Since platform 26.11.100 the broker installs only the installer digest the run was queued for, the way an endpoint would, records what changed, and hands the evidence back. The platform then grades the version’s attestation tier and, when it attests, signs a statement. Which installers run and what gets served is on where Attestree enforces; the image itself is on building a golden image; re-tests, budgets and waivers have their own page.

Blocked demand: what endpoints asked for

A fenced endpoint whose winget asks your feed for a package you have not admitted gets an empty answer rather than an error, and the platform records the attempt as blocked demand. It shows on the winget catalog list (/catalog?manager=winget) as Blocked install demand, a collapsed panel under the table with a count, and the console’s inbox raises an item that opens it.

  • Resolved rows are winget package ids the platform can list versions for. Each says how many endpoints asked, and whether they tried to install or only searched. Ingest queues the id’s newest winget version for ingest and detonation in one click, and takes the row off the list. For an account that may not ingest, or an id whose versions cannot be listed, it opens the Ingest dialog with the id filled in instead. Since 26.11.1200 only an account that holds fleet.endpoint.per-user-view sees blocked-demand ids and terms, and every other account sees counts. The ids resolve against the downloaded winget index.
  • Unresolved rows are typed words that are not a package id, such as powertoys. They have no Ingest, only Dismiss.
  • A request for an older version than the feed serves stays listed even for a served package: a downgrade attempt is a security signal, not missing demand.

A row leaves the list once its package is promoted. What the record holds about the people on those endpoints, and for how long, is on personal data.

What a run records

A version’s Evidence tab shows what its run saw:

  • Footprint: files added, registry keys, services and listeners.
  • Persistence and exposure: autostarts, service binaries, listening endpoints, scheduled tasks, drivers, firewall rules and provisioned packages.
  • Network during install, the SBOM, and Behavior: child processes, whether the installer launched the app, and pages it opened.
  • Sandbox build and installed bytes: the sandbox agent version and the golden cut the run used. The version’s page also names the image and the broker.

The image’s own background activity is taken out of the footprint, so a listener or a scheduled task Windows creates in every run is not charged to the installer.

Scheduled tasks are never a silent zero (since platform 0.241.0). The sandbox reads them from the Task Scheduler, and when it could not, the row reads “not assessed” with the reason instead of 0, and the divergence check treats the tasks as unknown. Since 0.242.0 a Task Scheduler that was already down before the installer started is a fault on our side, so a re-test returns the version to attested. One that stopped during the install ends the run without attestation, because an installer running as SYSTEM can stop the scheduler to hide a task: the version is quarantined, and a version that was attested before does not keep that status. Re-detonate it: if the scheduler fails with this installer and not with others, the installer is the cause.

Per-user installers: the user lane

Endpoints install a per-user package in the signed-in user’s session, so a per-user installer is tested that way too:

  • It runs as SYSTEM first. If that run reports the installer needs a signed-in user or, since platform 0.240.2, the installer exits with an error and leaves no persistence behind, it runs once more as the test user, on the per-user image.
  • A version you pinned per-user starts there (since platform 0.240.2). A version pinned machine-wide never runs on the user lane. A Chocolatey install never does, and a per-user Scoop install always does.
  • It needs a broker that holds the per-user image, win11-pro-interactive (building it). Without one, an installer that needs a user ends as requires interaction, and any other failure keeps its own status, with a note that the user lane was not available.

Every user-lane run is the test user’s first sign-in on a fresh clone, and Windows does a lot at a first sign-in. Since platform 0.242.0 the sandbox agent waits for it to settle before it takes the snapshot the footprint is measured against, and if it has not settled within 5 minutes the run ends as a fault on our side before the installer starts. Since 0.242.1 the wait also covers Explorer and Windows’ registration of the user’s apps, and since 0.242.2 a run during which Windows resumes deferred app registration ends the same way. Each of these lives in the image, so it needs an image built with that release’s kit or later. The Evidence tab says how long the first sign-in took to settle.

Installers that need the network

A sandbox has no network by default. An installer that needs it fails offline and then runs once more behind a Hyper-V broker’s recording proxy, which inspects its TLS traffic. With no broker offering the proxy, that run cannot be placed, and the version waits at exceeds the detonation budget, the state for a run no broker can take. You can also start such a run yourself with Re-detonate with network inspection, under Testing in a winget version’s Actions menu, on a version that is not attested. A Chocolatey or Scoop run always asked for a broker with network inspection until 26.11.2000. Since then, when none of the brokers enrolled for dispatch offers network inspection, connected or not, the run is offline (Chocolatey and Scoop).

  • The tier. Since platform 0.241.0 a run under the proxy grades attested-mitm, below every offline tier, so no signature lifts it, and promoting such a version asks for a typed confirmation when the promotion gate enforces. Since 0.251.0 a Chocolatey or Scoop run that made no network connection is graded on its signature instead.
  • Where it may go. Since platform 0.238.0 a winget run reaches only the hosts the platform’s own download of that installer went through: the installer URL’s host, each redirect, and the host that served the bytes. Bytes the run did not download itself, such as a copy from your byte store, allow the installer URL’s host alone, and a derived MSI allows none. A stub downloader whose second stage lives on another host fails, and the evidence names that host. A Chocolatey or Scoop run reaches the download hosts the platform resolved before it, and never the Chocolatey Community Repository or the platform’s own hosts. Whatever the list, the proxy never relays to loopback, link-local, cloud metadata or private addresses, or to the broker host’s own addresses. The Evidence tab’s Network during install lists where the run went, what refused inspection and what the proxy blocked.
  • The isolation check (since 26.11.502). Before anything installs, the sandbox tries host ports the broker host’s firewall must block. If one answers, the run stops before the installer starts, the package gets no verdict, and the run reads “The sandbox’s network isolation failed its check”, with the steps that fix the broker host. A re-test sweep pauses on it. Since 26.11.600 the result also says 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, so a capture that recorded nothing says why. Both need a golden image built with that release’s kit or later.
  • Windows’ own traffic (since 26.11.700). The proxy answers Windows’ connectivity check itself, and answers certificate revocation, issuer-certificate and trust-list fetches to a reviewed list of public certificate-authority hosts with “unavailable”, contacting no one. Those fetches are listed apart from the package’s requests, under trust_traffic in a catalog evidence bundle’s sni.json, and the counts beside them leave them out. A fetch shaped like a certificate to any other host still counts against the package. A Chocolatey or Scoop run waits for a broker upgraded to 26.11.700 or later; a winget run does not.

Setting it up is your job, on each Hyper-V broker host that should offer it:

  1. Create an Internal switch named WepDetonationMitm, give the host’s adapter on it 192.0.2.1/24, and add no NAT for it, so a VM on that switch can reach only the proxy.

    New-VMSwitch -Name WepDetonationMitm -SwitchType Internal
    New-NetIPAddress -InterfaceAlias 'vEthernet (WepDetonationMitm)' -IPAddress 192.0.2.1 -PrefixLength 24
    
  2. Add the Attestree MITM detonation isolation firewall rules, which keep that VM off every other service on the host. The broker MSI adds them when the switch already exists; otherwise run Wep.Detonation.Broker.exe ceremony mitm-isolation elevated, from C:\Program Files\Wep\DetonationBroker.

  3. Add WEP_BROKER_MITM_ENABLED=1 to the broker service’s environment, keeping the values already there, and restart the broker.

The broker makes its own inspection certificate authority at its first such run, and the sandbox agent trusts it inside the VM for the run; you supply none. ceremony mitm-ca-list lists them and ceremony mitm-ca-rotate makes a new one. The broker’s drawer on the Brokers page lists the postures it offers. One that should offer inspection but fails its check, for example because its firewall rules are missing, offers offline only, says why, and logs Event 1235 on its host.

Since the 26.11.2000 broker MSI, network inspection keeps decrypted traffic out of crash dumps and the page file. On a Hyper-V broker, the proxy runs as a confined process of its own, and it now holds the bytes it decrypts in buffers locked in memory and wipes them after use. Before the run’s sandbox can connect, it turns its own crash dumps off, raises its minimum working set and locks those buffers. A broker whose proxy cannot do that does not offer network inspection, and Event 1235 and the Brokers page give the reason, which includes “memory lock:” or “crash dumps:” and what failed.

When our side fails

A fault of the detonation infrastructure is not a verdict on the package.

  • Retried (since platform 0.242.3): Hyper-V refusing the VM for lack of host memory, the broker failing before the VM starts (a missing switch, a failed copy of the image), a dispatch that was cancelled or ran out of time and, since 0.253.0, a VM size the host can no longer give. The version keeps its state while the queue retries with back-off. When the retries run out, a re-test returns the version to attested and any other run ends it at exceeds the detonation budget, never quarantined. The broker half needs that release’s broker MSI.
  • Lost runs (since platform 0.247.0). A run the queue lost, for example across a platform restart, is queued again once a broker is available, and the version’s provenance records it as strand-requeued. After two such attempts a lost re-run of an attested version returns it to attested, a version’s first run is quarantined with a reason naming the lost run, and a run of one of your Chocolatey or Scoop versions is cancelled.
  • Re-tests that fail on our side return the version to attested as it was; re-tests lists which failures count.
  • Other first runs. Some faults on our side, such as a test user whose first sign-in never settled, leave a version’s first run in quarantine with an explanation that names our side, and mark no installer rejected. Re-detonate once the cause is fixed.

Cancelling a stuck detonation

Since platform 0.241.0 an admin can end a winget version’s queued or running run with Cancel this detonation, under Testing in the version’s Actions menu, and since 0.247.0 also a version left queued with no run. Since 26.11.501 the same verb cancels a Chocolatey or Scoop run from that version’s own page, and its typed phrase names the manager, so it never cancels a same-named package under another manager. It takes a typed confirmation and a reason, both recorded in the audit trail first. A re-run of an attested version returns to attested with the verdict and tier it had, unless it was attested under a baseline-gate waiver that has since been revoked, in which case it is rolled back. Any other version lands in cancelled: not quarantined, its installer not judged, and offered Re-detonate.

Divergence between provenance and behaviour

A divergence finding says a version behaved in a way its provenance does not explain, in the console’s words “clean on paper, dirty in sandbox”. It is a flag only, and never blocks promotion, installation or attestation. It shows on the version’s page under Divergence finding, in the Trust group of the Actions menu.

  • What it compares. The run against the prior attested version of the same package: new autostarts, scheduled tasks, service binaries and drivers weigh most, then new listening endpoints and, when both versions ran under the proxy, new hosts contacted. A version with no attested predecessor is judged on red flags alone. The finding names the provenance it contradicts, and shows network traffic only by kind of domain and count; the raw host names are kept apart, behind the catalog.divergence.read-egress grant.
  • Expected behaviour. A persistence entry that points at a file the installer itself wrote, in a footprint unchanged from the prior attested version, is recorded as expected rather than open, which is what a vendor’s quiet self-updater looks like. An updater that never appears in the sandbox can be recorded as expected from the fleet’s own signed reports of it; that basis is weaker, needs a pinned signer root, and reverts to open if the reports stop. A scheduled-task signal from a run that could not read the tasks is never treated as expected without a waiver or the fleet’s reports.
  • What you can do. Acknowledge an open finding, or mark a persistence kind (autostarts, scheduled tasks or service binaries) expected for this package from now on, with a reason: vendor-own-updater, legitimate-persistence or test-only. That waiver can also quiet the package’s older open findings, and a persistence entry that points somewhere the installer did not write still fires. Each act takes a typed confirmation, and a waiver can be revoked. All three need the catalog.divergence.triage grant, which no default policy gives, even to an admin; an admin switches it on at Privilege grants (/policy/grants).

The installer window detector

Since platform 26.10.3000 a detonation setting, Installer window detector mode, watches the windows an installer shows in the sandbox. It looks for installs stuck on a dialog: a waiting or alert window that holds while the install does nothing, or an install that stops making progress.

  • off, the default, leaves runs as before.
  • observe records what the detector would decide and never stops a run.
  • enforce stops such an install. A stop that left persistence behind is judged as a timeout. One that left none gets one more run, judged by today’s limits with the detector only observing, or a run behind the proxy if the run was offline and a broker offers that (since 26.10.3101). A stop on that second run reads as couldn’t judge and waits at exceeds the detonation budget, never quarantined.

Since 26.11.100 the Evidence tab shows what the installer displayed when the detector decided. The setting sits in Detonation defaults on the Brokers page. Since 26.11.1200 it is read at the start of every run, so a change applies without a restart. It needs a golden image built with the 26.10.3000 kit or later. Leave it off for now: there is no recommended setting yet.

Where this stops

  • A run is one observation. It records what one install did in one sandbox; it does not prove the installer safe. Quarantined means the run failed in a way the platform could not classify, not that it found malware.
  • The user lane needs the per-user image on a Hyper-V broker, and Windows’ first sign-in can still end a run as our fault. Without the image, a per-user installer that fails as SYSTEM is not tried as a user.
  • The network reaches a sandbox only on Hyper-V, behind the proxy you set up and switch on. A version tested that way grades attested-mitm. An installer that ignores the system proxy reaches nothing, and more than one inspected run at once gives no speed-up. Proxmox sandboxes have no network.
  • Faults on our side are retried or returned to attested, but a first run the queue lost twice, or one whose test user never settled, ends in quarantine until you re-detonate it.
  • The isolation check stops runs, not the host. On a broker host whose firewall lets the sandbox reach its services, every network-capturing run stops before its installer starts until you fix the host.
  • Divergence findings block nothing, and acting on them takes a grant no default policy gives.
  • The window detector ships off, needs a rebuilt golden image, and has no recommended setting.