<!-- README.md -->

# MockHermes laboratory controls and source

This package preserves the final benign containment probe, the original Windows baseline records and the laboratory source used by the experiments. It contains no virtual disk, TPM state, login material, Windows installation media or malware executable. The recorded checks describe historical runs; verifying these files does not attest a machine's current isolation.

The [source map](source-map.json) describes 101 unchanged files. The [source ZIP](mockhermes-source.zip) contains 79 files that were not previously published. Twenty-two fixture sources retain their original experiment-archive paths and hashes. The map names each reused path and the path it occupies in the reconstructed source tree. No duplicate upload is needed. The source snapshot includes the recorder, supervisor, fixed guest fixtures, tests, Compose configuration, Docker build inputs, dependency lock and recipes.

## Control records

- [Complete benign preflight](records/preflight-20261020T200039Z-200e6a97/) contains 38 original files, including its 37-entry hash index, original PCAP, raw duplex exchanges, result and before/after namespace records. The Linux guest passes fourteen checks and exits zero; the recorder exits zero and closes completely. All 73 packets pass the retained structural check.
- [Source/image attestation](records/preflight-attestation.json) binds that preflight index to the recorded Docker image and 78 source hashes. Every attested source exists in the reconstructed snapshot with the same hash.
- [Windows provisioning report](records/windows-provisioning.json) is the unchanged 14,226-byte original report from `install-20261017T210315Z-e687ea35`, captured on 2026-10-17. It records five setup checks and 23 guest checks. The [baseline manifest](records/base-manifest.json) joins that report to the disk, UEFI and TPM identities. Actual images and private setup files remain outside this archive.

The final topology has explicit local forwards for `194.102.104.223` ports 8080, 8093 and 8787. All reach one recorder at container loopback port 8080. The initial client baseline had only 8080; subsequent report experiments added 8787, and the delivery experiment added 8093. The final preflight does not retroactively attest earlier configurations.

Namespace snapshots show only loopback interfaces and local/broadcast routes, zero effective capabilities and `NoNewPrivs=1`. They also show `ipv4_forwarding=1`. Restricted QEMU networking and the lack of an external container interface/route form the network boundary. Windows has no default route or IPv4 DNS server; the Linux probe deliberately installs a default route for blocked-path tests. Selected failures alone are not a general reachability proof. The final Linux probe does not test UDP DNS, and the PCAP has no capture-loss counter.

## Offline verification and source reconstruction

Place the public `tooling/`, `experiments/` and earlier evidence folders beneath one archive root. Preserve their public paths; local upload wrappers such as `section-12/` are omitted. The standard-library [inspector](inspect_mockhermes_lab.py) reads files only. It does not import reconstructed code, start services, create a VM, send traffic or execute a specimen.

```sh
python3 tooling/mockhermes-laboratory/inspect_mockhermes_lab.py \
  --archive-root . \
  --output /tmp/hermes-lab-review.json \
  --materialize-sources /tmp/hermes-lab-source
```

Both output paths must be new. Omitting `--materialize-sources` performs verification without copying the source tree. The generated report must equal [lab-review.json](lab-review.json). The inspector checks the ZIP member set, all new and reused source identities, the complete final preflight file set, source attestation, namespace snapshots, recorded QEMU command, packet structure and direction-specific probe markers, provisioning identity and baseline join. Its negative controls reject a truncated PCAP, a request-only PCAP, an added namespace interface and altered source bytes.

The Windows protection, telemetry and baseline-disk results are historical receipt facts. This compact check does not reread the original disk or whole PML. The [experiment register](../../experiments/laboratory-register/README.md) preserves separate specimen-run identities, outcomes, capture status and links to their previously published evidence packages. Whole-disk reproduction needs the original stopped overlay, explicit matching baseline and recorded forensic dependencies.

The reconstructed source is research tooling, not a prebuilt appliance. Runtime setup additionally requires the Docker build dependencies, KVM, Windows installation and benign guest tools documented by the source. Those components are not acquired by the inspector. The existing benign regression suite was rerun for publication: 327 tests passed using the pinned environment. That tests the recorder and fixtures with synthetic exchanges; it is not another specimen experiment or a new containment probe.

[MANIFEST.json](MANIFEST.json) records the published files. Original capture timestamps, historical internal paths and receipt limitations remain unchanged.