interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / TRUST-1-GATE2-EXPERIMENTS.md

136 lines · 9497 bytes Raw Blame History Source

TRUST-1 Gate 2: one-change-at-a-time experiments

Written for Drake, who runs these at the keyboard of the Spark (Machine 1). Companion to docs/TRUST-1-OPERATOR-STEPS.md (Steps 1, 2, 7) and Gate 2 in docs/TRUST-1-IMPLEMENTATION-PLAN.md. Baseline evidence is in evidence/trust1_gate2_baseline_2026-10-03/.

Where things stand

Four boots are captured (see the README in that evidence folder). Cold boots (powered fully off, then the power button) gave identical measurements. One warm restart (sudo reboot) gave a different PCR1 and PCR10. A "PCR" is one of the TPM chip's numbered logbook slots that record what started up. I now change exactly ONE thing at a time and see which slots move. That tells me which slots mean something about security and which just wobble.

What Gate 2 requires (from the plan)

Acceptance as the plan defines it: "Baseline repeated cold boots produce stable measurements or variation explained. Each experiment changes exactly one variable ... with before, mutation, PCR/event result, after, rollback, post-rollback measurements recorded. Final report explains why each candidate PCR contributes to security; no PCR selected by convention." Stop condition in the plan: any unexplained PCR change goes to the UnexpectedState protocol (Gate 9) and no policy is chosen.

**Gate 2 PASS criterion: the plan gives the acceptance test above but no single numeric line, so for the pass/fail count: DOCS SILENT.** Proposal (not yet accepted): Gate 2 PASSES when (1) the baseline shows cold boots identical (already met: boot2 vs boot3 changed=0), (2) every experiment below has a before, after and post-rollback capture, with post-rollback equal to before on every PCR (otherwise the receipt says STOP_UNEXPECTED_STATE), (3) every PCR that moved in any experiment has a written reason, and (4) the final report names which PCRs the policy may use and why.

Rules for every experiment

The capture and compare commands are the same each time. Replace EXPn with the experiment name (for example exp1):

# before the change
bash scripts/tpm_measurement_campaign.sh capture ~/trust1-evidence/EXPn-before EXPn-before
# ... make the one change, restart as the experiment says ...
bash scripts/tpm_measurement_campaign.sh capture ~/trust1-evidence/EXPn-after EXPn-after
bash scripts/tpm_measurement_campaign.sh compare ~/trust1-evidence/EXPn-before ~/trust1-evidence/EXPn-after
# ... undo, cold boot ...
bash scripts/tpm_measurement_campaign.sh capture ~/trust1-evidence/EXPn-rollback EXPn-rollback
bash scripts/tpm_measurement_campaign.sh compare ~/trust1-evidence/EXPn-before ~/trust1-evidence/EXPn-rollback

What it does: reads the startup measurements and saves them in a folder. Changes: nothing on the machine. Success: each compare ends with compared=... changed=...; for the rollback compare I want changed=0 apart from clearly named non-PCR items (event log bytes, timer state). Optionally the orchestrator builds the signed receipt with the tool's receipt subcommand (--variable EXPn --before ... --after ... --post-rollback ..., and --prev pointing at the previous experiment's receipt); you do not need to.

Which PCR means what is UNVERIFIED in this document (I have not cited the TCG specification here), so "expected effect" lines are guesses to be checked against the results, not facts. Confidence is stated on each.


Experiment 1. A second warm restart (is the warm value stable?)

Question: the warm restart changed PCR1; is the new value always the same? This resolves the one [UNKNOWN] from the baseline.

Experiment 2. Turn the firmware-update checker back on

Question: does Ubuntu's background firmware-update check change any measurement?

Experiment 3. Cold boot with a USB stick plugged in

Question: does merely having a USB storage device present change a measurement? (No spare sticks existed on 2026-10-03, so this experiment waits until one is available. Use any stick with nothing needed on it, never the recovery stick.)

Experiment 4. Visit the firmware setup screen and leave without changing anything

Question: does just entering the setup menu (and saving nothing) change a measurement?

Experiment 5. Cold boot with the recovery stick first in the boot order

Question: does changing boot order, without actually booting from the stick, change measurements? (This also exercises Gate 1's stick.)

Order and stop rule

Run 1, 2, 4 first (no hardware needed), then 3 and 5 when sticks exist. After each, send the compare lines to the orchestrator. If any rollback compare shows a PCR that does not return to its "before" value, STOP: that is the plan's UnexpectedState case, no PCR is chosen, and the orchestrator writes it up. The Q15 list in the plan has more variables (kernel, init image, loader and so on); those are not in this first set because they change software I build, and need their own written steps.