From 939248bdbacb58785bf3f92b9bdc91d8b8d30297 Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:36:28 +0000 Subject: [PATCH 01/15] workspace: bring stage2's Dockerfile.build under sync/check-harness stage2 vendors a byte-identical Dockerfile.build but was not in HARNESS_REPOS (it has no build.mk), so sync-harness never updated it and check-harness never saw it drift. Add HARNESS_DOCKERFILE_REPOS for repos that vendor only Dockerfile.build, and iterate over explicit repo/file paths instead of the repos x files product. Co-Authored-By: Claude Opus 5.5 --- Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 9fe5cdc..dfc533e 100644 --- a/Makefile +++ b/Makefile @@ -95,27 +95,27 @@ image: ## Build the shared lockboot:build + lockboot:harness images from stage0 # excluded (risc0/rzup toolchain, not lockboot:build); os402 is not yet normalized. HARNESS_REPOS := stage1 vaportpm HARNESS_FILES := build.mk Dockerfile.build +# stage2 vendors Dockerfile.build only (its Makefile has its own DOCKER_RUN, no build.mk). +HARNESS_DOCKERFILE_REPOS := stage2 +HARNESS_PATHS := $(foreach r,$(HARNESS_REPOS),$(addprefix $(r)/,$(HARNESS_FILES))) \ + $(addsuffix /Dockerfile.build,$(HARNESS_DOCKERFILE_REPOS)) .PHONY: sync-harness -sync-harness: ## Copy the canonical build.mk + Dockerfile.build from stage0 into stage1 + vaportpm - @for r in $(HARNESS_REPOS); do \ - for f in $(HARNESS_FILES); do \ - cp -v $(CANON)/$$f "$$r/$$f"; \ - done; \ +sync-harness: ## Copy the canonical build.mk + Dockerfile.build from stage0 into stage1 + vaportpm (+ Dockerfile.build into stage2) + @for p in $(HARNESS_PATHS); do \ + cp -v $(CANON)/$${p#*/} "$$p"; \ done .PHONY: check-harness check-harness: ## Fail if any repo's build.mk / Dockerfile.build drifted from stage0's canonical copy @drift=0; \ - for r in $(HARNESS_REPOS); do \ - for f in $(HARNESS_FILES); do \ - if ! cmp -s $(CANON)/$$f "$$r/$$f"; then \ - echo "DRIFT: $$r/$$f differs from $(CANON)/$$f"; drift=1; \ - fi; \ - done; \ + for p in $(HARNESS_PATHS); do \ + if ! cmp -s $(CANON)/$${p#*/} "$$p"; then \ + echo "DRIFT: $$p differs from $(CANON)/$${p#*/}"; drift=1; \ + fi; \ done; \ if [ $$drift -eq 0 ]; then \ - echo "harness OK: build.mk + Dockerfile.build identical across $(CANON) $(HARNESS_REPOS)"; \ + echo "harness OK: $(HARNESS_PATHS) identical to $(CANON)"; \ else \ echo ">> run 'make sync-harness' (or reconcile the canonical $(CANON) copy)"; exit 1; \ fi From a0a85773402f9977e6884e4f40d7d9c89513f2cd Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:44:54 +0000 Subject: [PATCH 02/15] AGENTS.md: one PR per repo per changeset Follow-ups go on the open PR's branch, not a sibling PR; a cross-repo changeset is one branch per repo, tested together on both arches before any of it merges. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 483fceb..434b9de 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -70,6 +70,9 @@ Out of scope -- do not fold into the chain or org overviews: **os402** (dormant - **Commit messages and PR bodies are plain ASCII** -- no em dashes or smart punctuation; use `-`, `--`, `->`, straight quotes. (`git log -1 --format=%B | grep -nP '[^\x00-\x7F]'` should print nothing.) - **Open PRs as draft** (`gh pr create --draft`); the author marks them ready. +- **One PR per repo per changeset.** Follow-up work for the same changeset is a new commit on the + open PR's branch, never a sibling PR. A cross-repo changeset is one branch per repo, tested + together (both arches) before any of it merges -- main only receives sets that work as a whole. - **Merge with a merge commit** (`gh pr merge --merge --delete-branch`), not squash (squash is disabled; the ruleset allows merge commits on every repo, workspace included). - **After a merge, `git checkout main && git pull --ff-only` before new work** -- never keep committing From c5601af16b1cc149d31c5bb8714ed2af769e3e5b Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Wed, 4 Nov 2026 15:34:19 +0000 Subject: [PATCH 03/15] workspace: make selftest / selftest- across the sibling repos Tests a cross-repo changeset together: whatever branch each sibling is on. `selftest` runs vaportpm `make ci` once, then per arch (x86_64 under KVM, aarch64 TCG-emulated): build stage0 + stage1, then stage0, stage1 and stage2 `selftest-` in chain order, with a PASS/FAIL summary and a non-zero exit on any failure. Co-Authored-By: Claude Opus 5.5 --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Makefile b/Makefile index dfc533e..200790a 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,41 @@ check-harness: ## Fail if any repo's build.mk / Dockerfile.build drifted from st echo ">> run 'make sync-harness' (or reconcile the canonical $(CANON) copy)"; exit 1; \ fi +# Whole-chain self-test across the CURRENT checkouts of the sibling repos (whatever branch each is +# on), so a cross-repo changeset is tested together before any of it merges. Per arch, in chain +# order (each stage boots the previous stage's artifacts): build stage0 + stage1, then each repo's +# own `selftest-` (stage0 boot matrix; stage1 chain modes + smoke-args; stage2 pivot + grow). +# `selftest` also runs vaportpm's arch-independent `make ci` once, then both arches. +# x86_64 boots under KVM; aarch64 is TCG-emulated on an x86_64 host -- slow, but the same tests. +# Logs land in each repo's build//; the summary is printed at the end. +SELFTEST_ARCHS := x86_64 aarch64 + +.PHONY: selftest +selftest: ## Self-test the whole chain on both arches (+ vaportpm ci); PASS/FAIL summary + @sum=$$(mktemp); fail=0; \ + if $(MAKE) --no-print-directory -C vaportpm ci; then echo "PASS vaportpm ci" >> "$$sum"; \ + else echo "FAIL vaportpm ci" >> "$$sum"; fail=1; fi; \ + for a in $(SELFTEST_ARCHS); do \ + $(MAKE) --no-print-directory selftest-$$a SELFTEST_SUMMARY="$$sum" || fail=1; \ + done; \ + echo "==================== workspace self-test summary"; cat "$$sum"; rm -f -- "$$sum"; \ + if [ "$$fail" = 0 ]; then echo "ALL SELF-TESTS PASSED"; else echo "SOME SELF-TESTS FAILED"; exit 1; fi + +.PHONY: selftest-x86_64 selftest-aarch64 +selftest-x86_64 selftest-aarch64: selftest-%: + @sum="$${SELFTEST_SUMMARY:-/dev/null}"; fail=0; \ + step() { label="$$1"; shift; echo ">> [$*] $$label"; \ + if "$$@"; then echo "PASS $$label" >> "$$sum"; else echo "FAIL $$label" >> "$$sum"; return 1; fi; }; \ + step "stage0 $* build" $(MAKE) --no-print-directory -C stage0 build-$* \ + && step "stage1 $* build" $(MAKE) --no-print-directory -C stage1 build-$* \ + || fail=1; \ + if [ "$$fail" = 0 ]; then \ + step "stage0 $* selftest" $(MAKE) --no-print-directory -C stage0 selftest-$* || fail=1; \ + step "stage1 $* selftest" $(MAKE) --no-print-directory -C stage1 selftest-$* || fail=1; \ + step "stage2 $* selftest" $(MAKE) --no-print-directory -C stage2 selftest-$* || fail=1; \ + fi; \ + [ "$$fail" = 0 ] + # One canonical branch ruleset applied to every governed repo (PR-gated, no force-push/deletion, # no linear-history, per-repo CI gate) so branch protection can't drift like it did before. The # policy lives in tools/rulesets.sh (no JSON on disk); needs `gh` with admin + `jq`. From 1fcd13e608b69bd4a018918d3880ba0d1b425a38 Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Wed, 4 Nov 2026 16:24:01 +0000 Subject: [PATCH 04/15] rulesets: protect release tags + enable immutable releases tools/rulesets.sh now also governs releases on the repos that cut them (stage0 stage0-v*, stage1 uki-v*, stage2 stage2-v*, vaportpm v*): - lockboot-release-tags: a tag ruleset on the release-tag pattern with creation, update, deletion and non_fast_forward restricted; repo admins bypass. Only an admin can cut a release tag; none can be moved or deleted. Other tags are unrestricted. - immutable releases (PUT /repos/{o}/{r}/immutable-releases): published assets and tag are locked and GitHub signs a release attestation. sync applies both; check reports a missing/drifted tag ruleset or immutability off. The drift projection also compares ruleset target and ref include patterns. .github and workspace cut no releases and get neither. AGENTS.md and the make help text describe the policy. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 4 ++ Makefile | 10 ++-- tools/rulesets.sh | 121 +++++++++++++++++++++++++++++++++++++--------- 3 files changed, 109 insertions(+), 26 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 434b9de..3b944dd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -61,6 +61,10 @@ Out of scope -- do not fold into the chain or org overviews: **os402** (dormant `ci build-x86_64 build-aarch64` (stage0/1/2), `ci` (vaportpm), none (.github / workspace). `sync` also deletes any legacy differently-named ruleset. `make check-rulesets` catches drift and is the source of truth for branch protection -- change the policy in the script, not the GitHub UI. +- Release repos (stage0 `stage0-v*`, stage1 `uki-v*`, stage2 `stage2-v*`, vaportpm `v*`) also get, + from the same script: a **`lockboot-release-tags`** tag ruleset (only admins create release tags; + none can be moved or deleted) and **immutable releases** (published assets + tag are locked; a bad + release is deprecated via notes/flags or deleted -- its tag name is never reusable -- not edited). ## Git & PR workflow diff --git a/Makefile b/Makefile index 200790a..29c18af 100644 --- a/Makefile +++ b/Makefile @@ -125,7 +125,8 @@ check-harness: ## Fail if any repo's build.mk / Dockerfile.build drifted from st # order (each stage boots the previous stage's artifacts): build stage0 + stage1, then each repo's # own `selftest-` (stage0 boot matrix; stage1 chain modes + smoke-args; stage2 pivot + grow). # `selftest` also runs vaportpm's arch-independent `make ci` once, then both arches. -# x86_64 boots under KVM; aarch64 is TCG-emulated on an x86_64 host -- slow, but the same tests. +# x86_64 boots under KVM; aarch64 is TCG-emulated on an x86_64 host -- the same tests, and the +# boot phase takes ~12 min per arch either way. # Logs land in each repo's build//; the summary is printed at the end. SELFTEST_ARCHS := x86_64 aarch64 @@ -156,14 +157,15 @@ selftest-x86_64 selftest-aarch64: selftest-%: [ "$$fail" = 0 ] # One canonical branch ruleset applied to every governed repo (PR-gated, no force-push/deletion, -# no linear-history, per-repo CI gate) so branch protection can't drift like it did before. The +# no linear-history, per-repo CI gate) so branch protection can't drift like it did before -- plus, +# on release repos, a release-tag ruleset and immutable releases. The # policy lives in tools/rulesets.sh (no JSON on disk); needs `gh` with admin + `jq`. .PHONY: sync-rulesets -sync-rulesets: ## Apply the canonical branch ruleset to every governed repo (needs gh admin) +sync-rulesets: ## Apply the branch ruleset (+ release-tag ruleset, immutable releases) to every governed repo (needs gh admin) @tools/rulesets.sh sync .PHONY: check-rulesets -check-rulesets: ## Fail if any governed repo's branch ruleset drifted from the policy +check-rulesets: ## Fail if any governed repo's rulesets or immutable-releases setting drifted from the policy @tools/rulesets.sh check .PHONY: clean-cache diff --git a/tools/rulesets.sh b/tools/rulesets.sh index f05ffe6..4b0aad8 100755 --- a/tools/rulesets.sh +++ b/tools/rulesets.sh @@ -17,12 +17,36 @@ # * repo admins may bypass (so a red/flaky CI can't lock you out entirely) # * required status checks per repo (below). Convention: `ci` (fmt + clippy + test) and # `build-x86_64` / `build-aarch64`. `.github` has no CI, so no checks. +# +# Release policy -- on repos that cut releases (those with a release-tag pattern below): +# * a second ruleset, lockboot-release-tags, on the repo's release tags: creation, +# update (move), and deletion are restricted, so only a repo admin (bypass) can cut a +# release tag and nobody can move or delete one. Other tags are unrestricted. +# * immutable releases: once published, a release's assets and tag are locked, and GitHub +# signs a release attestation (`gh release verify` / `verify-asset`). Title, notes, and +# the prerelease/latest flags stay editable; a bad release is deprecated (or deleted -- +# its tag name can never be reused), not changed. Applies to releases published after +# it is enabled. set -euo pipefail ORG=lockboot RULESET_NAME=lockboot-main +TAG_RULESET_NAME=lockboot-release-tags REPOS=(stage0 stage1 stage2 vaportpm .github workspace) +# GitHub repo name -> release-tag ref pattern (empty = the repo cuts no releases: no tag +# ruleset, no immutable-releases setting). Must match the tags each release workflow triggers on. +release_tag_pattern() { + case "$1" in + stage0) echo "refs/tags/stage0-v*" ;; + stage1) echo "refs/tags/uki-v*" ;; + stage2) echo "refs/tags/stage2-v*" ;; + vaportpm) echo "refs/tags/v*" ;; + .github|workspace) echo "" ;; + *) return 1 ;; + esac +} + # GitHub repo name -> required check contexts (space-separated; empty = no CI gate). required_checks() { case "$1" in @@ -66,13 +90,33 @@ desired() { }' } -ruleset_id() { gh api "repos/$ORG/$1/rulesets" --jq ".[] | select(.name==\"$RULESET_NAME\") | .id" 2>/dev/null | head -1; } +# The desired release-tag ruleset JSON for one repo (only called when it has a pattern). +desired_tags() { + local pattern + pattern=$(release_tag_pattern "$1") || { echo "unknown repo: $1" >&2; return 1; } + jq -n --arg name "$TAG_RULESET_NAME" --arg pattern "$pattern" ' + { + name: $name, + target: "tag", + enforcement: "active", + conditions: { ref_name: { include: [$pattern], exclude: [] } }, + # Repo admins bypass: the only actor that can cut (create) a release tag. + bypass_actors: [ { actor_id: 5, actor_type: "RepositoryRole", bypass_mode: "always" } ], + rules: [ { type: "creation" }, { type: "update" }, { type: "deletion" }, + { type: "non_fast_forward" } ] + }' +} + +# ruleset_id [name] (name defaults to the branch ruleset) +ruleset_id() { gh api "repos/$ORG/$1/rulesets" --jq ".[] | select(.name==\"${2:-$RULESET_NAME}\") | .id" 2>/dev/null | head -1; } # Governance-relevant projection of a ruleset, for drift comparison. Ignores GitHub-added # metadata (id/_links/source/created_at) and param defaults we don't pin. salient() { jq -S '{ enforcement, + target, + include: ([.conditions.ref_name.include[]?] | sort), linear_history: ([.rules[]?.type] | any(. == "required_linear_history")), rule_types: ([.rules[]?.type] | sort), checks: ([.rules[]? | select(.type=="required_status_checks") @@ -80,16 +124,30 @@ salient() { }' } -sync_one() { - local repo=$1 payload id - payload=$(desired "$repo") || return 1 - id=$(ruleset_id "$repo") +# upsert_ruleset : create or update the named ruleset. +upsert_ruleset() { + local repo=$1 name=$2 payload=$3 id + id=$(ruleset_id "$repo" "$name") if [ -n "$id" ]; then printf '%s' "$payload" | gh api "repos/$ORG/$repo/rulesets/$id" -X PUT --input - >/dev/null - echo " $repo: updated ruleset ($id)" + echo " $repo: updated ruleset $name ($id)" else printf '%s' "$payload" | gh api "repos/$ORG/$repo/rulesets" -X POST --input - >/dev/null - echo " $repo: created ruleset" + echo " $repo: created ruleset $name" + fi +} + +immutable_enabled() { gh api "repos/$ORG/$1/immutable-releases" --jq .enabled 2>/dev/null; } + +sync_one() { + local repo=$1 payload pattern + payload=$(desired "$repo") || return 1 + upsert_ruleset "$repo" "$RULESET_NAME" "$payload" + pattern=$(release_tag_pattern "$repo") + if [ -n "$pattern" ]; then + upsert_ruleset "$repo" "$TAG_RULESET_NAME" "$(desired_tags "$repo")" + gh api -X PUT "repos/$ORG/$repo/immutable-releases" >/dev/null + echo " $repo: immutable releases enabled" fi # Remove any other (legacy, differently-named) branch rulesets so exactly one canonical policy # governs the default branch -- e.g. the old main-protect / protect-main this migration replaces. @@ -102,30 +160,49 @@ sync_one() { done } -check_one() { - local repo=$1 id want got - want=$(desired "$repo" | salient) || return 2 - id=$(ruleset_id "$repo") - if [ -z "$id" ]; then echo " DRIFT $repo: no '$RULESET_NAME' ruleset"; return 1; fi +# check_ruleset : print drift (if any) for one ruleset; 1 on drift. +check_ruleset() { + local repo=$1 name=$2 want got id + want=$(printf '%s' "$3" | salient) + id=$(ruleset_id "$repo" "$name") + if [ -z "$id" ]; then echo " no '$name' ruleset"; return 1; fi got=$(gh api "repos/$ORG/$repo/rulesets/$id" | salient) - local legacy - legacy=$(gh api "repos/$ORG/$repo/rulesets" \ - --jq "[.[] | select(.name != \"$RULESET_NAME\" and .target == \"branch\").name] | join(\", \")" 2>/dev/null) - if [ "$want" = "$got" ] && [ -z "$legacy" ]; then - echo " ok $repo" + [ "$want" = "$got" ] && return 0 + echo " $name:"; diff <(printf '%s\n' "$want") <(printf '%s\n' "$got") | sed 's/^/ /' + return 1 +} + +check_one() { + local repo=$1 desired_json pattern legacy report rc=0 + desired_json=$(desired "$repo") || return 2 + pattern=$(release_tag_pattern "$repo") + report=$( + check_ruleset "$repo" "$RULESET_NAME" "$desired_json" || echo FAIL + legacy=$(gh api "repos/$ORG/$repo/rulesets" \ + --jq "[.[] | select(.name != \"$RULESET_NAME\" and .target == \"branch\").name] | join(\", \")" 2>/dev/null) + [ -n "$legacy" ] && { echo " legacy branch ruleset(s) to remove: $legacy"; echo FAIL; } + if [ -n "$pattern" ]; then + check_ruleset "$repo" "$TAG_RULESET_NAME" "$(desired_tags "$repo")" || echo FAIL + [ "$(immutable_enabled "$repo")" = "true" ] || { echo " immutable releases: not enabled"; echo FAIL; } + fi + ) + if printf '%s\n' "$report" | grep -qx FAIL; then + echo " DRIFT $repo:"; printf '%s\n' "$report" | grep -vx FAIL + rc=1 else - echo " DRIFT $repo:" - [ "$want" != "$got" ] && diff <(printf '%s\n' "$want") <(printf '%s\n' "$got") | sed 's/^/ /' - [ -n "$legacy" ] && echo " + legacy branch ruleset(s) to remove: $legacy" - return 1 + echo " ok $repo" fi + return $rc } cmd=${1:-check}; shift || true targets=("$@"); [ ${#targets[@]} -eq 0 ] && targets=("${REPOS[@]}") case "$cmd" in - show) for r in "${targets[@]}"; do echo "== $r ==" >&2; desired "$r"; done ;; + show) for r in "${targets[@]}"; do + echo "== $r ==" >&2; desired "$r" + if [ -n "$(release_tag_pattern "$r")" ]; then desired_tags "$r"; echo "(+ immutable releases)" >&2; fi + done ;; sync) echo "sync rulesets ($RULESET_NAME) onto: ${targets[*]}"; for r in "${targets[@]}"; do sync_one "$r"; done ;; check) echo "check rulesets ($RULESET_NAME) on: ${targets[*]}"; rc=0; for r in "${targets[@]}"; do check_one "$r" || rc=1; done; exit $rc ;; *) echo "usage: $0 {sync|check|show} [repo...]" >&2; exit 2 ;; From 150d1bd33b8494bc5539dd1bdf60f127772823fe Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Wed, 4 Nov 2026 16:37:55 +0000 Subject: [PATCH 05/15] rulesets: release-tag pattern is plain v* on every release repo Matches the stage0/stage1/stage2 workflows, which now trigger on v* (vaportpm already did). release_tag_pattern collapses to one case. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 2 +- tools/rulesets.sh | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3b944dd..f0223f5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -61,7 +61,7 @@ Out of scope -- do not fold into the chain or org overviews: **os402** (dormant `ci build-x86_64 build-aarch64` (stage0/1/2), `ci` (vaportpm), none (.github / workspace). `sync` also deletes any legacy differently-named ruleset. `make check-rulesets` catches drift and is the source of truth for branch protection -- change the policy in the script, not the GitHub UI. -- Release repos (stage0 `stage0-v*`, stage1 `uki-v*`, stage2 `stage2-v*`, vaportpm `v*`) also get, +- Release repos (stage0, stage1, stage2, vaportpm; release tags are plain `v*` everywhere) also get, from the same script: a **`lockboot-release-tags`** tag ruleset (only admins create release tags; none can be moved or deleted) and **immutable releases** (published assets + tag are locked; a bad release is deprecated via notes/flags or deleted -- its tag name is never reusable -- not edited). diff --git a/tools/rulesets.sh b/tools/rulesets.sh index 4b0aad8..dd6c69e 100755 --- a/tools/rulesets.sh +++ b/tools/rulesets.sh @@ -35,14 +35,12 @@ TAG_RULESET_NAME=lockboot-release-tags REPOS=(stage0 stage1 stage2 vaportpm .github workspace) # GitHub repo name -> release-tag ref pattern (empty = the repo cuts no releases: no tag -# ruleset, no immutable-releases setting). Must match the tags each release workflow triggers on. +# ruleset, no immutable-releases setting). Every release repo uses plain `v*` (one product per +# repo); must match the tags each release workflow triggers on. release_tag_pattern() { case "$1" in - stage0) echo "refs/tags/stage0-v*" ;; - stage1) echo "refs/tags/uki-v*" ;; - stage2) echo "refs/tags/stage2-v*" ;; - vaportpm) echo "refs/tags/v*" ;; - .github|workspace) echo "" ;; + stage0|stage1|stage2|vaportpm) echo "refs/tags/v*" ;; + .github|workspace) echo "" ;; *) return 1 ;; esac } From cf3ac7de97303e005f37afac9c2b80480ff5cff1 Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Thu, 5 Nov 2026 13:24:06 +0000 Subject: [PATCH 06/15] workspace: lockboot:deploy image + deploy-shell / deploy-exec Cloud publish/launch tooling for stage0/tools/publish, in a local-only image (tools/deploy/): aws CLI 2.39.4, coldsnap 0.12.0 (built from crates.io, --locked), gcloud 592.0.0, gh 2.103.3, jq/curl/unzip -- every download sha256-pinned (aws zips GPG-verified, gh checksums + attestation verified, gcloud TOFU over HTTPS). - make deploy-shell LOGIN=aws|gcp|both: browser sign-in (aws login --remote, gcloud auth login --no-launch-browser) to only the named clouds at start; aws logout / gcloud auth revoke on exit. Tokens live only in a tmpfs $HOME -- never on disk, never under /src (readable by every lockboot:build container). No login without LOGIN. - AWS profile `default` wraps the login via credential_process, so aws, coldsnap and the publish scripts need no AWS_PROFILE. - Fixed container name lockboot-deploy (--rm; one session at a time); make deploy-exec CMD='...' runs inside the open shell with its login. - Defaults: AWS ap-southeast-1, GCP project lockboot, asia-southeast1-a (DEPLOY_* overrides). Lives in the workspace Makefile so using it never touches a stage0 target (which would re-mint the Secure Boot keys). Co-Authored-By: Claude Opus 5.5 --- Makefile | 54 ++++++++++++++++++++++++++++++ tools/deploy/Dockerfile | 74 +++++++++++++++++++++++++++++++++++++++++ tools/deploy/entry.sh | 68 +++++++++++++++++++++++++++++++++++++ 3 files changed, 196 insertions(+) create mode 100644 tools/deploy/Dockerfile create mode 100644 tools/deploy/entry.sh diff --git a/Makefile b/Makefile index 29c18af..1b64923 100644 --- a/Makefile +++ b/Makefile @@ -120,6 +120,60 @@ check-harness: ## Fail if any repo's build.mk / Dockerfile.build drifted from st echo ">> run 'make sync-harness' (or reconcile the canonical $(CANON) copy)"; exit 1; \ fi +# Cloud publish/launch tooling (aws + coldsnap + gcloud + gh) for stage0/tools/publish, in a local-only +# image (tools/deploy/). Lives here, not in stage0, so using it never risks a stage0 make target +# (which would re-mint the Secure Boot keys). +# +# Credentials: browser sign-in (passkey/MFA at the IdP) at shell start, to ONLY the clouds named by +# LOGIN; sign-out/revoke on exit (tools/deploy/entry.sh). Tokens live only in the container's tmpfs +# $HOME -- never on disk, never under /src (which every lockboot:build container can read). Don't run +# builds while a logged-in shell is open: the builders are --privileged. +# make deploy-shell LOGIN=aws|gcp|both # sign in, interactive shell, sign out on exit +# make deploy-shell # tools only, no login +# make deploy-shell LOGIN=gcp CMD='gcloud compute images list --no-standard-images' +# make deploy-exec CMD='aws sts get-caller-identity' # run inside the OPEN shell (its login) +DEPLOY_IMAGE := lockboot:deploy +# Fixed container name: one deploy session at a time, reachable by `make deploy-exec`. +DEPLOY_NAME := lockboot-deploy +# Defaults match stage0/tools/publish (ec2/*.sh ap-southeast-1, gcp/create.sh asia-southeast1). +DEPLOY_AWS_REGION ?= ap-southeast-1 +DEPLOY_GCP_REGION ?= asia-southeast1 +DEPLOY_GCP_ZONE ?= $(DEPLOY_GCP_REGION)-a +DEPLOY_GCP_PROJECT ?= lockboot +DEPLOY_ENV := -e AWS_REGION=$(DEPLOY_AWS_REGION) -e AWS_DEFAULT_REGION=$(DEPLOY_AWS_REGION) \ + -e CLOUDSDK_COMPUTE_REGION=$(DEPLOY_GCP_REGION) -e CLOUDSDK_COMPUTE_ZONE=$(DEPLOY_GCP_ZONE) \ + -e CLOUDSDK_CORE_PROJECT=$(DEPLOY_GCP_PROJECT) +# docker-in-devcontainer: the host daemon needs the HOST path of the /src bind (as build.mk does). +DEPLOY_HOST_WS := $(CURDIR) +ifneq ($(filter /src /src/%,$(CURDIR)),) + DEPLOY_SRC_BIND := $(shell findmnt -fnro SOURCE --target /src 2>/dev/null | sed -n 's/.*\[\(.*\)\]$$/\1/p') + ifneq ($(DEPLOY_SRC_BIND),) + DEPLOY_HOST_WS := $(DEPLOY_SRC_BIND)$(CURDIR:/src%=%) + endif +endif + +.PHONY: deploy-image +deploy-image: ## Build the local lockboot:deploy image (aws CLI, coldsnap, gcloud, gh; all pinned) + docker build -t $(DEPLOY_IMAGE) -f tools/deploy/Dockerfile tools/deploy + +.PHONY: deploy-shell +# CMD is handed over verbatim via the environment ($(value) = no make expansion), so `$VAR` in it +# expands inside the container, not in make. A TTY is used whenever there is a login or no CMD. +deploy-shell: export DEPLOY_CMD := $(value CMD) +deploy-shell: deploy-image ## Shell (or CMD='...') in lockboot:deploy; LOGIN=aws|gcp|both signs in at start, out at exit + docker run --rm --init --name $(DEPLOY_NAME) $(if $(or $(LOGIN),$(if $(CMD),,tty)),-it) -u $$(id -u):$$(id -g) \ + --tmpfs /home/deploy:rw,mode=0700,uid=$$(id -u),gid=$$(id -g) \ + -v $(DEPLOY_HOST_WS):/src $(DEPLOY_ENV) -e DEPLOY_LOGIN=$(LOGIN) -e DEPLOY_CMD -e GH_TOKEN \ + -w /src $(DEPLOY_IMAGE) + +.PHONY: deploy-exec +# Run CMD inside the RUNNING deploy-shell (same tmpfs $HOME, so the same live login). Fails if no +# shell is open; the session's lifetime stays with whoever holds the interactive deploy-shell. +deploy-exec: export DEPLOY_CMD := $(value CMD) +deploy-exec: ## Run CMD='...' inside the running deploy-shell container (uses its login) + @test -n "$$DEPLOY_CMD" || { echo "usage: make deploy-exec CMD='...'" >&2; exit 2; } + docker exec -e DEPLOY_CMD -w /src $(DEPLOY_NAME) bash -c 'eval "$$DEPLOY_CMD"' + # Whole-chain self-test across the CURRENT checkouts of the sibling repos (whatever branch each is # on), so a cross-repo changeset is tested together before any of it merges. Per arch, in chain # order (each stage boots the previous stage's artifacts): build stage0 + stage1, then each repo's diff --git a/tools/deploy/Dockerfile b/tools/deploy/Dockerfile new file mode 100644 index 0000000..0859016 --- /dev/null +++ b/tools/deploy/Dockerfile @@ -0,0 +1,74 @@ +# lockboot:deploy -- cloud publish/launch tooling for the stage0/tools/publish scripts. +# +# Dev-only (built locally, never published): aws CLI v2 + coldsnap (EBS direct-API snapshot +# upload, ec2/create.sh) + gcloud (gcp/*.sh) + gh (release-mode download/attestation) + jq/curl/ +# unzip/tar. Built and run via the workspace Makefile (`make deploy-shell`), which mounts the +# workspace at /src and bind-mounts individual credential files read-only -- credentials are never +# baked in here and should never live under /src (where every lockboot:build container, and every +# build.rs it runs, can read them). +# +# Every download is pinned by sha256. Pins were checked when set (2026-11-05): +# aws CLI -- GPG "Good signature" on both zips from key FB5D B77F D5C1 18B8 0511 ADA8 A631 +# 0ACC 4672 475C (the copy in AWS's install docs; the keyserver copy is stale/expired) +# gh -- matches upstream checksums.txt + `gh attestation verify --repo cli/cli` +# gcloud -- no upstream signature; trust-on-first-use over HTTPS from dl.google.com +# coldsnap -- crates.io, `cargo install --locked` (the crate's packaged Cargo.lock) + +# ---- coldsnap (Rust; built, not downloaded -- upstream ships no binaries) ---- +FROM rust:1.99.1-slim-bookworm@sha256:ed2c95ca377d6571b124b05e75e01207973ded639dce7d5542eb7bcd797e32aa AS coldsnap +ARG COLDSNAP_VERSION=0.12.0 +RUN cargo install --locked --root /out "coldsnap@${COLDSNAP_VERSION}" + +# ---- runtime ---- +FROM debian:bookworm-slim@sha256:99c0b25c46d0214d5a2091092e7908907dcaecd6a962cde0ac700acee222b6f3 +ARG TARGETARCH + +RUN apt-get update && \ + apt-get install -y --no-install-recommends ca-certificates curl unzip tar gzip jq less && \ + rm -rf /var/lib/apt/lists/* + +ARG AWSCLI_VERSION=2.39.4 +ARG AWSCLI_SHA256_amd64=5153610ddd5dff13d43b2965c92d58f16e9f3f54164eea76d3abb29f38787597 +ARG AWSCLI_SHA256_arm64=76e4ac0f82b5b1ec68dfc747705fa3298c05e22648e5503f1869f0d035ad57bb +RUN set -eu; \ + case "${TARGETARCH}" in amd64) a=x86_64 s="${AWSCLI_SHA256_amd64}" ;; arm64) a=aarch64 s="${AWSCLI_SHA256_arm64}" ;; *) exit 1 ;; esac; \ + curl -fsSLo /tmp/awscli.zip "https://awscli.amazonaws.com/awscli-exe-linux-${a}-${AWSCLI_VERSION}.zip"; \ + echo "${s} /tmp/awscli.zip" | sha256sum -c -; \ + unzip -q /tmp/awscli.zip -d /tmp; \ + /tmp/aws/install -i /opt/aws-cli -b /usr/local/bin; \ + rm -rf /tmp/awscli.zip /tmp/aws + +ARG GCLOUD_VERSION=592.0.0 +ARG GCLOUD_SHA256_amd64=2d841a23a681ab94486af6841e5f1cd123cd300fb8c4be6ba5b51350fca3d50b +ARG GCLOUD_SHA256_arm64=ba588759c4c42122a8c14536009738c0f0030989ca75788235f9956555e44f4d +RUN set -eu; \ + case "${TARGETARCH}" in amd64) a=x86_64 s="${GCLOUD_SHA256_amd64}" ;; arm64) a=arm s="${GCLOUD_SHA256_arm64}" ;; *) exit 1 ;; esac; \ + curl -fsSLo /tmp/gcloud.tgz "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${GCLOUD_VERSION}-linux-${a}.tar.gz"; \ + echo "${s} /tmp/gcloud.tgz" | sha256sum -c -; \ + tar -xzf /tmp/gcloud.tgz -C /opt; \ + ln -s /opt/google-cloud-sdk/bin/gcloud /opt/google-cloud-sdk/bin/gsutil /usr/local/bin/; \ + rm /tmp/gcloud.tgz + +ARG GH_VERSION=2.103.3 +ARG GH_SHA256_amd64=4c806978ffce1cec70853302a56d70ac6da4f19bae7adca4e1a8ab00633dd91d +ARG GH_SHA256_arm64=ee32df2323c8847f5fac6cb6b4b69ca75828e9329a8f22f677021f7b3306ce63 +RUN set -eu; \ + case "${TARGETARCH}" in amd64) s="${GH_SHA256_amd64}" ;; arm64) s="${GH_SHA256_arm64}" ;; *) exit 1 ;; esac; \ + curl -fsSLo /tmp/gh.tgz "https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_${TARGETARCH}.tar.gz"; \ + echo "${s} /tmp/gh.tgz" | sha256sum -c -; \ + tar -xzf /tmp/gh.tgz -C /tmp; \ + install -m 0755 "/tmp/gh_${GH_VERSION}_linux_${TARGETARCH}/bin/gh" /usr/local/bin/gh; \ + rm -rf /tmp/gh.tgz "/tmp/gh_${GH_VERSION}_linux_${TARGETARCH}" + +COPY --from=coldsnap /out/bin/coldsnap /usr/local/bin/coldsnap + +# $HOME is a per-run tmpfs (CLI caches only, gone on exit). Credentials are individual host files +# bind-mounted read-only under /creds by the Makefile; nothing persists in the container. +ENV HOME=/home/deploy \ + AWS_PAGER= \ + CLOUDSDK_CORE_DISABLE_USAGE_REPORTING=true \ + CLOUDSDK_COMPONENT_MANAGER_DISABLE_UPDATE_CHECK=true \ + GH_NO_UPDATE_NOTIFIER=1 +COPY --chmod=0755 entry.sh /usr/local/bin/deploy-entry +WORKDIR /src +ENTRYPOINT ["/usr/local/bin/deploy-entry"] diff --git a/tools/deploy/entry.sh b/tools/deploy/entry.sh new file mode 100644 index 0000000..f38e5b7 --- /dev/null +++ b/tools/deploy/entry.sh @@ -0,0 +1,68 @@ +#!/usr/bin/env bash +# lockboot:deploy entrypoint: browser login (passkey/MFA on the IdP side) to ONLY the clouds asked +# for, then a shell (or $DEPLOY_CMD), then sign-out on exit. All tokens live in the tmpfs $HOME, so +# they are gone when the container stops; the sign-out additionally revokes what can be revoked. +# +# DEPLOY_LOGIN = aws | gcp | both | (empty: no login, tools only) +# +# AWS: `aws login --remote` (console sign-in -> temporary creds, auto-refreshed, <= 12 h; needs the +# SignInLocalDevelopmentAccess policy). Profile `login` holds the session; `default` exposes it via +# credential_process so the CLI, coldsnap, and the publish scripts all pick it up with no +# AWS_PROFILE. Exit: `aws logout --all` (deletes the cache; issued STS creds just expire). +# GCP: `gcloud auth login --no-launch-browser`. Exit: `gcloud auth revoke --all` (revokes the +# refresh token server-side -- it does not expire on its own without Cloud Identity session control). +set -uo pipefail + +want_aws=0 want_gcp=0 +case "${DEPLOY_LOGIN:-}" in + "") ;; + aws) want_aws=1 ;; + gcp) want_gcp=1 ;; + both) want_aws=1 want_gcp=1 ;; + *) echo "deploy: LOGIN must be aws, gcp, or both (got '${DEPLOY_LOGIN}')" >&2; exit 2 ;; +esac + +logged_aws=0 logged_gcp=0 +signout() { + trap - EXIT INT TERM HUP + if [ "$logged_gcp" = 1 ]; then + echo ">> deploy: revoking gcloud credentials" + gcloud auth revoke --all --quiet || echo "!! gcloud auth revoke failed -- revoke at https://myaccount.google.com/permissions" >&2 + fi + if [ "$logged_aws" = 1 ]; then + echo ">> deploy: aws logout" + aws logout --all || echo "!! aws logout failed (creds still expire within the session limit)" >&2 + fi +} +trap signout EXIT +trap 'exit 130' INT TERM HUP + +if [ "$want_aws" = 1 ]; then + mkdir -p "$HOME/.aws" + cat > "$HOME/.aws/config" <> deploy: AWS sign-in (open the URL in a browser, paste the code back)" + aws login --remote --profile login || exit 1 + logged_aws=1 + aws sts get-caller-identity --output table || exit 1 +fi + +if [ "$want_gcp" = 1 ]; then + echo ">> deploy: GCP sign-in (open the URL in a browser, paste the code back)" + gcloud auth login --no-launch-browser --quiet || exit 1 + logged_gcp=1 + gcloud auth list + gcloud config list 2>/dev/null +fi + +if [ -n "${DEPLOY_CMD:-}" ]; then + bash -c 'eval "$DEPLOY_CMD"' +else + bash -l +fi From 201b61483c366876c5d04f16bbfe74054c73f930 Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Thu, 5 Nov 2026 17:35:22 +0000 Subject: [PATCH 07/15] workspace: deploy zone asia-southeast1-b; ignore cloudtest runs and .copilot - DEPLOY_GCP_ZONE defaults to asia-southeast1-b: t2a (aarch64) is not offered in asia-southeast1-a; n2d SEV-SNP and c3 TDX are available in -b. - .gitignore: /cloudtest/ (per-run bundles, manifests, console logs) and .copilot (state written into $HOME=/src by VS Code's bundled Copilot agent). Co-Authored-By: Claude Opus 5.5 --- .gitignore | 4 ++++ Makefile | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4f92d66..b87f2ea 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,7 @@ CLAUDE.local.md .config .docker .wget-hsts +.copilot + +# cloud test runs (tools/cloudtest): bundles, manifests, console logs +/cloudtest/ diff --git a/Makefile b/Makefile index 1b64923..b7ffbc6 100644 --- a/Makefile +++ b/Makefile @@ -138,7 +138,8 @@ DEPLOY_NAME := lockboot-deploy # Defaults match stage0/tools/publish (ec2/*.sh ap-southeast-1, gcp/create.sh asia-southeast1). DEPLOY_AWS_REGION ?= ap-southeast-1 DEPLOY_GCP_REGION ?= asia-southeast1 -DEPLOY_GCP_ZONE ?= $(DEPLOY_GCP_REGION)-a +# -b: t2a (aarch64) is not offered in asia-southeast1-a; n2d SEV-SNP is in a/b/c. +DEPLOY_GCP_ZONE ?= $(DEPLOY_GCP_REGION)-b DEPLOY_GCP_PROJECT ?= lockboot DEPLOY_ENV := -e AWS_REGION=$(DEPLOY_AWS_REGION) -e AWS_DEFAULT_REGION=$(DEPLOY_AWS_REGION) \ -e CLOUDSDK_COMPUTE_REGION=$(DEPLOY_GCP_REGION) -e CLOUDSDK_COMPUTE_ZONE=$(DEPLOY_GCP_ZONE) \ From 91902d6415b912a09e97a77b5dc50fb1169af624 Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Fri, 6 Nov 2026 16:19:07 +0000 Subject: [PATCH 08/15] deploy: AWS sign-in as IAM user lockboot, calls via the lockboot-deploy role tools/deploy/aws-iam.sh: idempotent setup of the AWS side, run by an account admin (root) from `make deploy-shell LOGIN=aws DEPLOY_AWS_ROLE=`. Converges: - IAM user `lockboot`: SignInLocalDevelopmentAccess (for `aws login`) and sts:AssumeRole on the deploy role, nothing else. Console password and passkey MFA are set by hand; the script warns if either is missing. - role `lockboot-deploy`: trusted only by that user with MFA present. EC2/EBS-direct actions the stage0 publish scripts use (any region); Start/Stop/Reboot only on instances tagged Project=lockboot; CreateTags only on images/snapshots or on instances at launch, so the role cannot tag its way onto an instance it did not launch; objects in the listed S3 buckets. - the EC2 Spot service-linked role. All names/account/buckets/tag are flags or LOCKBOOT_AWS_* env vars. entry.sh / Makefile: DEPLOY_AWS_ROLE (default the lockboot-deploy ARN) makes `default` that role, assumed from the `aws login` session; empty uses the signed-in identity directly (root cannot assume roles). Verified: passkey login as lockboot assumes the role; EC2/S3 calls work, IAM calls are denied; coldsnap upload + tag + register-image succeed. Launches are untested: the account is still blocked by AWS. Co-Authored-By: Claude Opus 5.5 --- Makefile | 6 +- tools/deploy/aws-iam.sh | 167 ++++++++++++++++++++++++++++++++++++++++ tools/deploy/entry.sh | 24 +++++- 3 files changed, 194 insertions(+), 3 deletions(-) create mode 100755 tools/deploy/aws-iam.sh diff --git a/Makefile b/Makefile index b7ffbc6..57f7f12 100644 --- a/Makefile +++ b/Makefile @@ -141,9 +141,13 @@ DEPLOY_GCP_REGION ?= asia-southeast1 # -b: t2a (aarch64) is not offered in asia-southeast1-a; n2d SEV-SNP is in a/b/c. DEPLOY_GCP_ZONE ?= $(DEPLOY_GCP_REGION)-b DEPLOY_GCP_PROJECT ?= lockboot +# AWS sign-in is as IAM user `lockboot` (tools/deploy/aws-iam.sh), which then assumes this role for +# all AWS calls. Set it empty to use the signed-in identity directly (root/admin, e.g. to run +# aws-iam.sh: root cannot assume roles): make deploy-shell LOGIN=aws DEPLOY_AWS_ROLE= +DEPLOY_AWS_ROLE ?= arn:aws:iam::182712153326:role/lockboot-deploy DEPLOY_ENV := -e AWS_REGION=$(DEPLOY_AWS_REGION) -e AWS_DEFAULT_REGION=$(DEPLOY_AWS_REGION) \ -e CLOUDSDK_COMPUTE_REGION=$(DEPLOY_GCP_REGION) -e CLOUDSDK_COMPUTE_ZONE=$(DEPLOY_GCP_ZONE) \ - -e CLOUDSDK_CORE_PROJECT=$(DEPLOY_GCP_PROJECT) + -e CLOUDSDK_CORE_PROJECT=$(DEPLOY_GCP_PROJECT) -e DEPLOY_AWS_ROLE=$(DEPLOY_AWS_ROLE) # docker-in-devcontainer: the host daemon needs the HOST path of the /src bind (as build.mk does). DEPLOY_HOST_WS := $(CURDIR) ifneq ($(filter /src /src/%,$(CURDIR)),) diff --git a/tools/deploy/aws-iam.sh b/tools/deploy/aws-iam.sh new file mode 100755 index 0000000..8c67d4f --- /dev/null +++ b/tools/deploy/aws-iam.sh @@ -0,0 +1,167 @@ +#!/usr/bin/env bash +# Idempotent AWS IAM setup for Lock.Boot deploys. Run once by an account admin (e.g. root inside +# `make deploy-shell LOGIN=aws`); re-run any time to converge the account back to this definition. +# +# Creates / converges: +# - IAM user (default `lockboot`): console sign-in + passkey MFA only. Its permissions are +# SignInLocalDevelopmentAccess (for `aws login`) and sts:AssumeRole on the deploy role, nothing else. +# - IAM role (default `lockboot-deploy`): trusted only by that user, with MFA required. Holds the +# least privilege the stage0 publish scripts need (tools/publish/{ec2,cleanup.sh}): EC2 + EBS +# direct API in any region, plus objects in a list of S3 buckets. +# - The EC2 Spot service-linked role (AWS normally creates it on first spot launch, but that needs +# iam:CreateServiceLinkedRole, which the deploy role deliberately does not have). +# +# Not done here (needs a browser, and keeps the password out of shell history): giving the user a +# console password and registering its passkey as MFA. IAM users cannot sign in passwordless -- +# the passkey is the second factor -- and `aws login` is console sign-in, so both are required. +# The script warns when either is missing. +# +# Every setting can be overridden by a flag or an environment variable (flag wins). +set -euo pipefail + +ACCOUNT="${LOCKBOOT_AWS_ACCOUNT:-182712153326}" +USER_NAME="${LOCKBOOT_AWS_USER:-lockboot}" +ROLE_NAME="${LOCKBOOT_AWS_ROLE:-lockboot-deploy}" +BUCKETS="${LOCKBOOT_AWS_BUCKETS:-lockboot-ap-southeast-1}" +# Tag stage0 tools/publish/ec2/launch.sh puts on every instance; Start/Stop/Reboot need it. +INSTANCE_TAG="${LOCKBOOT_AWS_INSTANCE_TAG:-Project=lockboot}" +USER_POLICY="${LOCKBOOT_AWS_USER_POLICY:-assume-${ROLE_NAME}}" +ROLE_POLICY="${LOCKBOOT_AWS_ROLE_POLICY:-deploy}" +DRY_RUN=0 + +usage() { + cat <&2; usage >&2; exit 2 ;; + esac +done + +log() { echo ">> $*" >&2; } +die() { echo "!! $*" >&2; exit 1; } +# Mutating calls go through `change`, so --dry-run shows them without making them. +change() { + if [ "$DRY_RUN" = 1 ]; then echo " would run: $*" >&2; else "$@" >/dev/null; fi +} + +command -v aws >/dev/null || die "aws CLI not found" +command -v jq >/dev/null || die "jq not found" + +caller=$(aws sts get-caller-identity --output json) || die "not signed in to AWS" +caller_acct=$(jq -r .Account <<<"$caller") +[ "$caller_acct" = "$ACCOUNT" ] \ + || die "signed in to account $caller_acct, expected $ACCOUNT (pass --account to change)" +log "signed in as $(jq -r .Arn <<<"$caller")" + +USER_ARN="arn:aws:iam::${ACCOUNT}:user/${USER_NAME}" +ROLE_ARN="arn:aws:iam::${ACCOUNT}:role/${ROLE_NAME}" + +user_doc=$(jq -nc --arg role "$ROLE_ARN" '{ + Version: "2012-10-17", + Statement: [{Effect: "Allow", Action: "sts:AssumeRole", Resource: $role}]}') + +trust_doc=$(jq -nc --arg user "$USER_ARN" '{ + Version: "2012-10-17", + Statement: [{Effect: "Allow", Principal: {AWS: $user}, Action: "sts:AssumeRole", + Condition: {Bool: {"aws:MultiFactorAuthPresent": "true"}}}]}') + +case "$INSTANCE_TAG" in ?*=?*) ;; *) die "--instance-tag must be KEY=VALUE (got '$INSTANCE_TAG')" ;; esac + +# The calls tools/publish/ec2/{create,launch}.sh and cleanup.sh make, plus Start/Stop/Reboot for +# hand-testing. Start/Stop/Reboot only reach instances carrying INSTANCE_TAG; that scoping holds +# because CreateTags can tag an instance only as part of RunInstances (so the role cannot tag an +# instance it did not launch), otherwise only images and snapshots (create.sh). Buckets are +# comma-separated. +perms_doc=$(jq -nc --arg buckets "$BUCKETS" --arg acct "$ACCOUNT" \ + --arg tagk "${INSTANCE_TAG%%=*}" --arg tagv "${INSTANCE_TAG#*=}" ' + ($buckets | split(",")) as $b | ("arn:aws:ec2:*:" + $acct + ":instance/*") as $inst | { + Version: "2012-10-17", + Statement: [ + {Sid: "Ec2Ebs", Effect: "Allow", Resource: "*", + Action: ["ec2:DescribeImages", "ec2:DescribeSnapshots", "ec2:DescribeInstances", + "ec2:DescribeRegions", "ec2:RegisterImage", "ec2:DeregisterImage", + "ec2:ModifyImageAttribute", "ec2:DeleteSnapshot", "ec2:ModifySnapshotAttribute", + "ec2:RunInstances", "ec2:TerminateInstances", "ec2:GetConsoleOutput", + "ebs:StartSnapshot", "ebs:PutSnapshotBlock", "ebs:CompleteSnapshot"]}, + {Sid: "TagImagesSnapshots", Effect: "Allow", Action: "ec2:CreateTags", + Resource: ["arn:aws:ec2:*::image/*", "arn:aws:ec2:*::snapshot/*"]}, # EC2 ARNs carry no account here + {Sid: "TagInstancesAtLaunch", Effect: "Allow", Action: "ec2:CreateTags", Resource: $inst, + Condition: {StringEquals: {"ec2:CreateAction": "RunInstances"}}}, + {Sid: "PowerTaggedInstances", Effect: "Allow", Resource: $inst, + Action: ["ec2:StartInstances", "ec2:StopInstances", "ec2:RebootInstances"], + Condition: {StringEquals: {("aws:ResourceTag/" + $tagk): $tagv}}}, + {Sid: "Bucket", Effect: "Allow", Action: "s3:ListBucket", + Resource: [$b[] | "arn:aws:s3:::" + .]}, + {Sid: "Objects", Effect: "Allow", + Action: ["s3:GetObject", "s3:PutObject", "s3:PutObjectAcl", "s3:DeleteObject"], + Resource: [$b[] | "arn:aws:s3:::" + . + "/*"]}]}') + +if [ "$DRY_RUN" = 1 ]; then + log "user policy ($USER_POLICY):"; jq . <<<"$user_doc" >&2 + log "role trust policy:"; jq . <<<"$trust_doc" >&2 + log "role policy ($ROLE_POLICY):"; jq . <<<"$perms_doc" >&2 +fi + +# --- user ---------------------------------------------------------------------------------------- +if aws iam get-user --user-name "$USER_NAME" >/dev/null 2>&1; then + log "user $USER_NAME exists" +else + log "creating user $USER_NAME" + change aws iam create-user --user-name "$USER_NAME" +fi +aws iam get-login-profile --user-name "$USER_NAME" >/dev/null 2>&1 \ + || log "WARNING: $USER_NAME has no console password (IAM > Users > $USER_NAME > Security credentials > Console access)" +[ "$(aws iam list-mfa-devices --user-name "$USER_NAME" --query 'length(MFADevices)' --output text 2>/dev/null)" -gt 0 ] 2>/dev/null \ + || log "WARNING: $USER_NAME has no MFA device; register a passkey (same page)" + +log "user $USER_NAME: attach SignInLocalDevelopmentAccess, put inline policy $USER_POLICY" +change aws iam attach-user-policy --user-name "$USER_NAME" \ + --policy-arn arn:aws:iam::aws:policy/SignInLocalDevelopmentAccess +change aws iam put-user-policy --user-name "$USER_NAME" --policy-name "$USER_POLICY" \ + --policy-document "$user_doc" + +# --- role ---------------------------------------------------------------------------------------- +if aws iam get-role --role-name "$ROLE_NAME" >/dev/null 2>&1; then + log "role $ROLE_NAME exists: updating trust policy" + change aws iam update-assume-role-policy --role-name "$ROLE_NAME" --policy-document "$trust_doc" +else + log "creating role $ROLE_NAME" + change aws iam create-role --role-name "$ROLE_NAME" --assume-role-policy-document "$trust_doc" \ + --description "Lock.Boot deploy (assumed by IAM user ${USER_NAME} with MFA)" +fi +log "role $ROLE_NAME: put inline policy $ROLE_POLICY" +change aws iam put-role-policy --role-name "$ROLE_NAME" --policy-name "$ROLE_POLICY" \ + --policy-document "$perms_doc" + +# --- spot service-linked role -------------------------------------------------------------------- +if aws iam get-role --role-name AWSServiceRoleForEC2Spot >/dev/null 2>&1; then + log "spot service-linked role exists" +else + log "creating spot service-linked role" + change aws iam create-service-linked-role --aws-service-name spot.amazonaws.com +fi + +if [ "$DRY_RUN" = 1 ]; then log "dry run: nothing changed"; else log "done: $ROLE_ARN"; fi diff --git a/tools/deploy/entry.sh b/tools/deploy/entry.sh index f38e5b7..17ce959 100644 --- a/tools/deploy/entry.sh +++ b/tools/deploy/entry.sh @@ -9,6 +9,7 @@ # SignInLocalDevelopmentAccess policy). Profile `login` holds the session; `default` exposes it via # credential_process so the CLI, coldsnap, and the publish scripts all pick it up with no # AWS_PROFILE. Exit: `aws logout --all` (deletes the cache; issued STS creds just expire). +# With DEPLOY_AWS_ROLE set (Makefile default), `default` is that role assumed from the session. # GCP: `gcloud auth login --no-launch-browser`. Exit: `gcloud auth revoke --all` (revokes the # refresh token server-side -- it does not expire on its own without Cloud Identity session control). set -uo pipefail @@ -39,13 +40,32 @@ trap 'exit 130' INT TERM HUP if [ "$want_aws" = 1 ]; then mkdir -p "$HOME/.aws" + # DEPLOY_AWS_ROLE set: `default` = that role, assumed from the login session (role creds are + # cached + refreshed by the CLI). Empty: `default` = the login session itself (root/admin use). + # The role hop goes via a credential_process profile so it does not depend on source_profile + # understanding `aws login` sessions directly. + if [ -n "${DEPLOY_AWS_ROLE:-}" ]; then + default_from=deploy + role_profiles=" +[profile login-creds] +credential_process = aws configure export-credentials --profile login --format process + +[profile deploy] +region = ${AWS_REGION} +role_arn = ${DEPLOY_AWS_ROLE} +role_session_name = lockboot-deploy +source_profile = login-creds +" + else + default_from=login role_profiles="" + fi cat > "$HOME/.aws/config" <> deploy: AWS sign-in (open the URL in a browser, paste the code back)" aws login --remote --profile login || exit 1 From ec63be6aeefeeaa5584ef3831cab10a39d713fda Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Fri, 6 Nov 2026 17:10:41 +0000 Subject: [PATCH 09/15] tools: predict-pcrs.py, end-to-end PCR reconstruction for a verifier Rebuilds a deployment's expected PCRs from release artifacts and hashes only -- never the user-data or stage2 config: stage0 pcrs.json, the stage1 sha256 stage0 ran, our stage1's measurements.json, the stage2 sha256 stage1 ran, our stage2's config digest, and per-instance-type golden readings for PCR0-2. Each step only appends its stage's events, so a deployment with its own stage1 or stage2 stops at that handoff. PCRs nothing touched are emitted at their reset values; PCR10 is left out once Linux has run (IMA). --check takes a serial log or any JSON with a vaportpm "pcrs" object. Verified against QEMU boots at all three stopping points (stage0, stage1, full chain on x86_64 and aarch64). Co-Authored-By: Claude Opus 5.5 --- tools/predict-pcrs.py | 147 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100755 tools/predict-pcrs.py diff --git a/tools/predict-pcrs.py b/tools/predict-pcrs.py new file mode 100755 index 0000000..2017693 --- /dev/null +++ b/tools/predict-pcrs.py @@ -0,0 +1,147 @@ +#!/usr/bin/env python3 +# End-to-end PCR reconstruction for a Lock.Boot deployment -- the verifier's view. +# +# Rebuilds the full expected PCR set from release artifacts and hashes only; it never needs the +# user-data or the stage2 config (which may hold secrets): +# +# --stage0 pcrs.json stage0 release: PCR3-7 from reset (stage0 tools/predict-pcrs.py) +# --stage1-sha256 HEX what stage0 ran (stage0 extends PCR14 with it). Stop here if the +# next stage is not ours. +# --stage1-measurements FILE our stage1 release's fixed extends (PCR5/9/11; stage1 +# tools/predict-pcrs.py --emit-measurements) -- the UKI whose +# sha256 is --stage1-sha256. +# --stage2-sha256 HEX what stage1 ran (stage1 extends PCR14 with it). Stop here if the +# next stage is not ours. +# --config-sha256 HEX our stage2's config digest (stage2 extends PCR15, sha256 bank), +# disclosed by the operator instead of the config itself. +# --golden FILE per-instance-type readings (vaportpm layout) for what no release +# can predict: PCR0-2 (provider firmware / boot entries / ROMs). +# +# Each step only appends that stage's events to the state the previous one left (the same +# contracts the per-stage tools implement), so a deployment that swaps in its own stage1 or stage2 +# stops at the handoff and continues with its own measurements. PCR10 (IMA) is never predicted. +# +# --check takes a serial log ("PCR " lines) or any JSON with a vaportpm-style +# "pcrs" object (e.g. an attestation), and compares every predicted PCR. +import argparse +import hashlib +import json +import re +import sys + + +def load(path): + with open(path) as f: + return json.load(f) + + +def reconstruct(a, banks): + stage0 = load(a.stage0)["pcrs"] + s1m = load(a.stage1_measurements)["extends"] if a.stage1_measurements else None + golden = load(a.golden)["pcrs"] if a.golden else {} + out, sources = {}, {} + for bank in banks: + H = getattr(hashlib, bank) + zero = "00" * H().digest_size + if bank not in stage0: + raise SystemExit(f"stage0 pcrs.json has no {bank} bank") + p = {int(k): v for k, v in stage0[bank].items()} + src = {k: "stage0" for k in p} + + def extend(pcr, digests, who): + v = bytes.fromhex(p.get(pcr, zero)) + for d in digests: + v = H(v + d).digest() + p[pcr] = v.hex() + src[pcr] = who + + if a.stage1_sha256: # stage0 measures the payload it runs: H_bank(sha256(payload)) + extend(14, [H(bytes.fromhex(a.stage1_sha256)).digest()], "stage0") + if s1m is not None: + if bank not in s1m: + raise SystemExit(f"stage1 measurements have no {bank} bank") + for pcr, ds in s1m[bank].items(): + extend(int(pcr), [bytes.fromhex(d) for d in ds], "stage1") + for k in (8, 12, 13): + if k not in p: + p[k], src[k] = zero, "stage1" + if a.stage2_sha256: # stage1 measures the stage2 binary the same way + extend(14, [H(bytes.fromhex(a.stage2_sha256)).digest()], "stage1") + if a.config_sha256: # our stage2: raw sha256(config) into PCR15, sha256 bank only + if bank == "sha256": + extend(15, [bytes.fromhex(a.config_sha256)], "stage2") + elif 15 not in p: + p[15], src[15] = zero, "stage2" + for k, v in golden.get(bank, {}).items(): + k = int(k) + if k not in p and k != 10: + p[k], src[k] = v, "golden" + # Everything no stage touched is still at its reset value at this handoff (17-22 reset to + # all-ones). PCR10 is IMA's once Linux has run (our stage1), so it is left out from there. + for k in range(3, 24): + if k not in p and not (k == 10 and s1m is not None): + p[k], src[k] = ("ff" if 17 <= k <= 22 else "00") * H().digest_size, "reset" + out[bank] = {str(k): v for k, v in sorted(p.items())} + sources[bank] = src + return {"pcrs": out}, sources + + +def observed(path): + with open(path, "rb") as f: + raw = f.read() + try: + doc = json.loads(raw) + return {(b, int(i)): v.lower() for b, pcrs in doc["pcrs"].items() for i, v in pcrs.items()} + except (ValueError, KeyError, AttributeError): + txt = raw.decode("latin1").replace("\r", "") + return {(b, int(i)): v for b, i, v in + re.findall(r"^(?:payload: )?PCR (\w+) (\d\d) ([0-9a-f]+)$", txt, re.M)} + + +def main(): + ap = argparse.ArgumentParser(description="Reconstruct a deployment's expected PCRs end to end") + ap.add_argument("--stage0", required=True, help="stage0 release pcrs.json") + ap.add_argument("--stage1-sha256", help="sha256 of the payload stage0 runs") + ap.add_argument("--stage1-measurements", help="our stage1 release's measurements.json") + ap.add_argument("--stage2-sha256", help="sha256 of the stage2 binary stage1 runs") + ap.add_argument("--config-sha256", help="our stage2's config digest (from the operator)") + ap.add_argument("--golden", help="golden readings for this instance type (PCR0-2)") + ap.add_argument("--banks", default="sha256,sha384", help="comma-separated (default sha256,sha384)") + ap.add_argument("--out", help="write JSON here (default stdout)") + ap.add_argument("--check", metavar="FILE", help="serial log or attestation JSON to compare") + a = ap.parse_args() + if a.stage1_measurements and not a.stage1_sha256: + ap.error("--stage1-measurements needs --stage1-sha256 (the UKI it describes)") + if a.stage2_sha256 and not a.stage1_measurements: + ap.error("--stage2-sha256 needs --stage1-measurements (it is our stage1 that measures it)") + if a.config_sha256 and not a.stage2_sha256: + ap.error("--config-sha256 needs --stage2-sha256 (it is our stage2 that measures it)") + + pred, sources = reconstruct(a, a.banks.split(",")) + for bank, src in sources.items(): + missing = [k for k in range(24) if k not in src] + if missing: + print(f"{bank}: not reconstructed: PCR {','.join(map(str, missing))}" + + ("" if a.golden else " (pass --golden for PCR0-2)"), file=sys.stderr) + if a.check: + seen = observed(a.check) + bad = 0 + for bank, pcrs in pred["pcrs"].items(): + for i, want in pcrs.items(): + got = seen.get((bank, int(i))) + st = "ok" if got == want else ("MISSING" if got is None else "MISMATCH") + bad += st != "ok" + print(f"{bank:7} PCR{int(i):<2} {st:8} [{sources[bank][int(i)]:6}] {want[:16]}" + + ("" if st == "ok" or got is None else f" read {got[:16]}")) + print("ALL RECONSTRUCTED PCRS MATCH" if not bad else f"{bad} PCR(S) DO NOT MATCH") + sys.exit(1 if bad else 0) + js = json.dumps(pred, indent=2) + "\n" + if a.out: + with open(a.out, "w") as f: + f.write(js) + else: + sys.stdout.write(js) + + +if __name__ == "__main__": + main() From e63e44024f6c734a96be3fa592a4171732434ea7 Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Mon, 9 Nov 2026 16:27:39 +0000 Subject: [PATCH 10/15] pcr-replay: generic PCR replay tool, GCP golden platform files, cloud test conventions tools/pcr-replay replaces tools/predict-pcrs.py. pcr-replay.py (Python >= 3.11, stdlib only) replays a chain of pcr-replay/v1 files, one per boot stage or platform, re-derives every event digest it can from the supplied artifacts, checks it against the digest the producer embedded, and compares the result with a quote (vaportpm attestation JSON or "PCR " console lines). A quote value that is not the bank's digest length of hex is a malformed input (exit 2), not a PCR mismatch. Format and semantics: README.md. platforms/gcp: golden PCR0-2 for four GCE configurations (n2d-standard-2 Shielded / SEV / SEV-SNP, c3-standard-4 Shielded), generated by from-capture.py from the raw serial console of one stage0 test-payload boot each (kept under captures/, with the failed t2a boot). Everything is re-derived from the logged bytes except the three ACPI DATA events per file, which are pinned. GCE's PCR0 does not measure the firmware binary. Verified on GCP: stage0 -> UKI -> stage2 pcr-dump on n2d-standard-2 SEV and SEV-SNP reproduce every PCR except IMA's PCR10, in sha256 and sha384, taking only the ACPI events on trust; each platform file reproduces its capture's PCR0-2 in every bank. EC2-NOTES.md parks the EC2 platform work until the AWS account is unblocked. AGENTS.md: "Cloud test runs" -- one VM at a time, 5 min cap, create and follow in one command, serial-port logging for fast-exiting guests, Confidential VMs for full chains, delete each VM as soon as it stops. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 25 + tools/pcr-replay/EC2-NOTES.md | 34 + tools/pcr-replay/README.md | 110 +++ tools/pcr-replay/pcr-replay.py | 643 ++++++++++++++++++ tools/pcr-replay/platforms/gcp/README.md | 89 +++ .../2026-11-09-c3-standard-4-shielded.log | 373 ++++++++++ .../2026-11-09-n2d-standard-2-sev-snp.log | 370 ++++++++++ .../2026-11-09-n2d-standard-2-sev.log | 369 ++++++++++ .../2026-11-09-n2d-standard-2-shielded.log | 371 ++++++++++ ...6-11-09-t2a-standard-1-shielded-FAILED.log | 92 +++ .../pcr-replay/platforms/gcp/from-capture.py | 164 +++++ .../gcp-c3-standard-4-shielded.replay.json | 189 +++++ .../gcp-n2d-standard-2-sev-snp.replay.json | 189 +++++ .../gcp/gcp-n2d-standard-2-sev.replay.json | 189 +++++ .../gcp-n2d-standard-2-shielded.replay.json | 189 +++++ tools/predict-pcrs.py | 147 ---- 16 files changed, 3396 insertions(+), 147 deletions(-) create mode 100644 tools/pcr-replay/EC2-NOTES.md create mode 100644 tools/pcr-replay/README.md create mode 100644 tools/pcr-replay/pcr-replay.py create mode 100644 tools/pcr-replay/platforms/gcp/README.md create mode 100644 tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-shielded.log create mode 100644 tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev-snp.log create mode 100644 tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev.log create mode 100644 tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-shielded.log create mode 100644 tools/pcr-replay/platforms/gcp/captures/2026-11-09-t2a-standard-1-shielded-FAILED.log create mode 100644 tools/pcr-replay/platforms/gcp/from-capture.py create mode 100644 tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json create mode 100644 tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json create mode 100644 tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json create mode 100644 tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json delete mode 100755 tools/predict-pcrs.py diff --git a/AGENTS.md b/AGENTS.md index f0223f5..09e0afe 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -103,3 +103,28 @@ Bump stage1's UKI kernel + systemd-boot stub with `make update-fedora-deps FCOS= path serves **unsigned** RPMs; the tooling uses `data/signed/` and GPG-verifies against the per-release key in `tools/build-uki/keys/` (the trust anchor -- commit and fingerprint-verify a new `fNN` key before bumping the Fedora major). + +## Cloud test runs + +- One VM at a time; ask before each launch, naming the config, the cap and the question it + answers. Never batch launches. A launch the auto-mode classifier blocks is not retried another + way: hand the user the command to run. +- Spot, `--max-run-duration=5m` (a stage0 probe boot takes ~2.5 min including the payload's + 60 s hold). +- Create and follow in ONE `make deploy-exec` command (`gcloud compute instances create ... && + get-console.sh --follow`): GCP serves no serial output once the instance stops, + and a guest power-off leaves it TERMINATED within seconds. +- Keep the test payload's 60 s flush hold in the cloud (no `--nosleep`); it is what gives the + follower time to attach. +- Anything that powers off quickly (the full chain: `pcr-dump` exits at once) also needs + instance metadata `serial-port-logging-enable=true`, read back after the stop with + `gcloud logging read 'resource.type=gce_instance AND logName=projects/

/logs/serialconsole.googleapis.com%2Fserial_port_1_output AND labels."compute.googleapis.com/resource_name"=' --order=asc --format='value(textPayload)'`. + Entries split long lines: concatenate them, then split on the literal `\r\n`. gcloud takes a + single `--metadata`, so add the key to the existing list. Filter by + `resource.labels.instance_id` (read the id before deleting), not the name: a reused VM name + pulls in earlier runs' logs. +- GCP full-chain runs (stage1 onward) need a Confidential VM (SEV / SEV-SNP): stage1 attests + before running stage2, and GCE provisions AK certificates only on Confidential VMs. Plain + Shielded VMs are for stage0 probes only. +- Delete the instance as soon as the follower reports it stopped, as its own announced step. + Record every created resource in the run's `cloudtest//teardown.txt`. diff --git a/tools/pcr-replay/EC2-NOTES.md b/tools/pcr-replay/EC2-NOTES.md new file mode 100644 index 0000000..a674cca --- /dev/null +++ b/tools/pcr-replay/EC2-NOTES.md @@ -0,0 +1,34 @@ +# EC2 platform notes (parked) + +Status: not started. The AWS account is restricted pending a support case, so no EC2 event log +has been captured. Pick up from here once launches work again. + +## What is known + +- **Firmware source: [aws/uefi](https://github.com/aws/uefi).** AWS's EDK2 patches (on + edk2-stable202211) for x86_64 Nitro guests, with a reproducible Nix build: + `nix-build --pure` -> `result/ovmf_img.fd`. Its stated purpose is the AMD **SEV-SNP launch + measurement** (`sev-snp-measure --mode snp --vcpus=N --vmm-type=ec2 --ovmf=ovmf_img.fd`; + [AWS SEV-SNP guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html)). + Constellation precomputes these in CI (its aws-snp-launchmeasurement workflow). +- The README says nothing about **NitroTPM PCR0**, and nothing about Graviton (aarch64). Whether + NitroTPM's PCR0 measures firmware volumes (derivable from that binary) or, like GCE, only + strings, is unknown. +- stage0 on EC2: the test payload says "some firmware (EC2) does not hand out its log" + (`stage0-test-payload` `print_event_log`, best effort). So the TCG2 event log may not be + available through `EFI_TCG2_PROTOCOL.GetEventLog`. Untested on the current payload. +- PCR7 is expected to equal GCP's/QEMU's `ee5f65dc...` now that PK/KEK/db use GCP's owner GUID + (`efi-vars.aws` comes from the same mkvarstore). Unverified. +- The AMI `ami-04abef7162f90706e` predates the GUID fix; recreate it. + +## To do, in order (one instance at a time) + +1. x86_64 (`c6i.large`), stage0 + test payload: PCR dump, and the event log if the firmware + hands it out. If not, the Linux side (`/sys/kernel/security/tpm0/binary_bios_measurements`) + from a chain boot, which needs a payload that prints it (pcr-dump does not yet). +2. From that log: what PCR0-2 contain. If PCR0 measures firmware volumes, check them against an + aws/uefi build, and decide on a derivation node for a byte range of an artifact. Don't add + the node before a log shows it's needed. +3. Write `ec2-x86_64.replay.json` (platform file: PCR0-2 from reset, derived where possible, + pinned otherwise), then the same for aarch64 (`c7g.medium`). +4. Full chain (stage0 -> UKI -> stage2 pcr-dump) on each arch, `pcr-replay.py --check`. diff --git a/tools/pcr-replay/README.md b/tools/pcr-replay/README.md new file mode 100644 index 0000000..9a5aff3 --- /dev/null +++ b/tools/pcr-replay/README.md @@ -0,0 +1,110 @@ +# pcr-replay + +Reproduce a machine's TPM PCRs from replay files: one file per boot stage or platform, each +listing the events that stage extends, how each event's digest follows from public artifacts, +and the digests its producer computed. `pcr-replay.py` replays a chain of them, re-derives every +digest it can, and compares the result with a quote. + +Python >= 3.11, standard library only. `pcr-replay.py --help` for usage. + +``` +pcr-replay.py gcp-n2d.replay.json stage0.replay.json stage1.replay.json stage2.replay.json \ + --artifacts stage0-x86_64/ --artifacts linux.efi \ + --input stage2= --input config= \ + --check attestation.json +``` + +## What a result means + +- **CHAIN VERIFIES**: every PCR the files reproduce equals the quote. The tool also lists what + that rests on: + - **verified**: the event's derivation was re-evaluated from the supplied artifacts and equals + the digest embedded in the file. + - **derived**: re-evaluated; the file embeds no digest for that bank. + - **unchecked**: derivable, but the artifact it needs was not supplied. The embedded digest + was used unverified. + - **pinned**: the file gives a digest or value without any derivation (platform firmware, + say). The replay is only as good as that file's provenance. +- A derivation that disagrees with its embedded digest is an error (exit 2), whatever the quote + says. A PCR that differs from the quote fails the check (exit 1). +- A PCR is reported **not reproduced** when no file models it from reset, when a later file does + not account for it, when a file declares it unpredictable (IMA's PCR10), or when it needs an + input that was not given. That last case is how a chain stops at a handoff: replay up to the + stage you know, and the stage you don't know starts from there. + +Artifacts are matched by sha256, never by name. Files are applied in the order given. Only the +order of events within one PCR matters, but list a platform file first. + +The tool compares PCR values. It does not verify the quote's signature, nonce or AK; that is the +attestation verifier's job (vaportpm-verify). Pass `--check` the PCRs of an already-verified +quote. + +## File format (`pcr-replay/v1`) + +```json +{ + "schema": "pcr-replay/v1", + "name": "stage1 x86_64", + "about": "free text", + "artifacts": { "linux.efi": { "sha256": "0a7e…" } }, + "entry": "linux.efi", + "inputs": { "stage2": { "about": "…", "next_entry": true } }, + "reset": [], + "unextended": [0, 1, 2, 3, 4, 6, 7, 8, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23], + "unpredictable": { "10": "IMA" }, + "events": [ … ] +} +``` + +| Field | Meaning | +|---|---| +| `name` | Label in reports; must be unique within a chain. | +| `artifacts` | Files the derivations read, by name, each pinned by sha256. | +| `entry` | The artifact the previous stage loads, and measures. | +| `inputs` | Deployment-specific 32-byte values (sha256 digests) that derivations use. `--input NAME=HEX` or `NAME=@FILE` (hashes FILE); qualify as `FILE:NAME` if two files declare NAME. An input with `next_entry` and no value takes the sha256 of the next file's `entry`. A value that contradicts the next file's `entry` is an error. | +| `reset` | PCRs this file models from their reset value: nothing extended them before it. Reset is all-zero, all-ones for PCR17-22. | +| `unextended` | PCRs this file does not extend. Every PCR must be accounted for (events, `unextended` or `unpredictable`) by every file after the one that modelled it from reset, or it stops being reproduced. | +| `unpredictable` | PCRs extended from here in ways no file can replay, with the reason. | +| `events` | In extend order. | + +An event: + +| Field | Meaning | +|---|---| +| `pcr` | PCR index. | +| `type`, `by`, `about` | Descriptive: the TCG event type (or `unlogged` for a direct `TPM2_PCR_Extend`), who extends it, and what it is. | +| `derive` | Derivation of the bytes the digest is computed over (below). Absent: the event is pinned. | +| `digest` | How the extended digest follows from those bytes: `hash` (the bank's hash, default), `authenticode` (Authenticode PE image hash with the bank's hash), `raw` (the bytes are the digest). | +| `banks` | Only extended in these banks; other banks are unaffected. | +| `digests` | `{bank: hex}` as the producer computed them. | +| `value` | Instead of an extend: `{bank: hex}`, the PCR's value at this point (pinned). Only before any event in that PCR. | + +Derivations are single-key objects, nested: + +| Node | Bytes | +|---|---| +| `{"utf8": s}` / `{"utf16le": s}` | The string encoded. `"nul": true` appends a NUL in that encoding. | +| `{"hex": h}` | Literal bytes. | +| `{"guid": g}` | A GUID in EFI byte order. | +| `{"artifact": name}` | A declared artifact's contents. | +| `{"input": name}` | A declared input's 32 bytes. | +| `{"concat": [d, …]}` | Concatenation. | +| `{"pad": n, "of": d}` | Zero-padded to a multiple of n. | +| `{"pe_section": ".name", "of": d}` | A PE section's contents: min(VirtualSize, SizeOfRawData) bytes. | +| `{"gpt": d}` | `UEFI_GPT_DATA` of a disk image: primary header, partition count, non-empty entries. | +| `{"uefi_variable": {"vendor", "name", "data"}}` | `UEFI_VARIABLE_DATA`. | +| `{"efi_signature_list": {"type", "owner", "data"}}` | One `EFI_SIGNATURE_LIST` with one entry. `type` is `x509`, `sha256` or a GUID. | +| `{"cpio_newc": [{"ino", "mode", "name", "data"?}, …]}` | newc entries, with uid/gid 0, nlink 1 and mtime 0. Each entry's mode is an octal string with the type bits. No trailer: writers differ, so spell it out with `utf8`/`hex`. | + +## Producers + +- **stage0** (`tools/predict-pcrs.py`, `stage0.replay.json` in each release, with its + reference `pcrs.json`): firmware and stage0 from reset for PCR3-23. Its input `payload` is + PCR14. +- **stage1** (`tools/predict-pcrs.py`, `stage1.replay.json` in each UKI release): systemd-stub + (PCR11), the kernel's EFI stub (PCR9), ExitBootServices (PCR5). Its input `stage2` is PCR14. +- **stage2** (`tools/stage2.replay.json`, static, in each release): input `config` into PCR15, + sha256 bank, raw. +- **platforms** (`platforms/`): provider firmware's PCR0-2, pinned where it cannot be re-derived. + GCE: `platforms/gcp/`, generated from probe captures kept alongside. EC2: not yet + (`EC2-NOTES.md`). diff --git a/tools/pcr-replay/pcr-replay.py b/tools/pcr-replay/pcr-replay.py new file mode 100644 index 0000000..99d96db --- /dev/null +++ b/tools/pcr-replay/pcr-replay.py @@ -0,0 +1,643 @@ +#!/usr/bin/env python3 +# pcr-replay: replay a chain of PCR replay files, re-derive every digest they embed, and check +# the result against a quote's PCR values. Format: README.md (schema "pcr-replay/v1"). +# Python >= 3.11, standard library only. +# +# pcr-replay.py FILE... [--artifacts PATH]... [--input NAME=HEX|@FILE]... [--banks B,B] +# [--out pcrs.json] [--check QUOTE] [-v] +# +# Files are applied in the order given (only the order of events within one PCR matters, so a +# platform file and the boot-chain files interleave freely). Every event whose derivation can be +# evaluated is recomputed and must equal the digests the file embeds; events that cannot be +# re-derived (pinned, or their artifact was not supplied) are carried at face value and reported +# as such. A PCR is only reproduced if some file models it from reset and every later file +# accounts for it. +# +# This compares PCR values; it does not verify the quote's signature or nonce (vaportpm-verify). +from __future__ import annotations + +import argparse +import hashlib +import json +import os +import re +import struct +import sys +import uuid +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Literal, NotRequired, TypedDict, Union, cast + +SCHEMA = "pcr-replay/v1" +BANKS = ("sha1", "sha256", "sha384", "sha512") +NPCR = 24 +EFI_CERT_X509 = uuid.UUID("a5c059a1-94e4-4aa7-87b5-ab155c2bf072") +EFI_CERT_SHA256 = uuid.UUID("c1c41626-504c-4092-aca9-41f936934328") + + +# --- the file format (README.md) -------------------------------------------------------------------- +# Derivations: each node is a single-key object (plus its own modifiers) evaluating to bytes. +class Utf8(TypedDict): + utf8: str + nul: NotRequired[bool] # append one NUL byte + + +class Utf16le(TypedDict): + utf16le: str + nul: NotRequired[bool] # append a UTF-16 NUL (two bytes) + + +class Hex(TypedDict): + hex: str + + +class Guid(TypedDict): + guid: str # the GUID's bytes in EFI (mixed-endian) order + + +class ArtifactRef(TypedDict): + artifact: str # a declared artifact's whole contents + + +class InputRef(TypedDict): + input: str # a declared input's 32 bytes + + +class Concat(TypedDict): + concat: list[Derivation] + + +class Pad(TypedDict): + pad: int # zero-pad to a multiple of this + of: Derivation + + +class PeSection(TypedDict): + pe_section: str # a PE section's contents (min(VirtualSize, SizeOfRawData)) + of: Derivation + + +class Gpt(TypedDict): + gpt: Derivation # UEFI_GPT_DATA of a disk image + + +class UefiVariableArgs(TypedDict): + vendor: str + name: str + data: Derivation + + +class UefiVariable(TypedDict): + uefi_variable: UefiVariableArgs # UEFI_VARIABLE_DATA + + +class EslArgs(TypedDict): + type: str # "x509", "sha256" or a signature-type GUID + owner: str + data: Derivation + + +class Esl(TypedDict): + efi_signature_list: EslArgs # one EFI_SIGNATURE_LIST with one entry + + +class CpioEntry(TypedDict): + ino: int + mode: str # octal, including the file-type bits + name: str + data: NotRequired[Derivation] + + +class Cpio(TypedDict): + cpio_newc: list[CpioEntry] # newc entries (no trailer: spell it out, writers differ) + + +Derivation = Union[Utf8, Utf16le, Hex, Guid, ArtifactRef, InputRef, Concat, Pad, PeSection, Gpt, + UefiVariable, Esl, Cpio] +DigestMode = Literal["hash", "authenticode", "raw"] + + +class Event(TypedDict): + pcr: int + type: NotRequired[str] # TCG event type, or "unlogged" for a direct TPM2_PCR_Extend + by: NotRequired[str] # who extends it + about: NotRequired[str] + derive: NotRequired[Derivation] + digest: NotRequired[DigestMode] # how the extended digest follows from the derived bytes + banks: NotRequired[list[str]] # only extended in these banks + digests: NotRequired[dict[str, str]] # bank -> hex, as the producer computed them + value: NotRequired[dict[str, str]] # instead of an extend: the PCR's pinned value here + + +class ArtifactDecl(TypedDict): + sha256: str + file: NotRequired[str] + about: NotRequired[str] + + +class InputDecl(TypedDict): + about: str + next_entry: NotRequired[bool] # defaults to the sha256 of the next file's entry artifact + + +class ReplayDoc(TypedDict): + schema: str + name: NotRequired[str] + about: NotRequired[str] + artifacts: NotRequired[dict[str, ArtifactDecl]] + entry: NotRequired[str] # the artifact the previous stage loads (and measures) + inputs: NotRequired[dict[str, InputDecl]] + reset: NotRequired[list[int]] # PCRs this file models from their reset value + unextended: NotRequired[list[int]] # PCRs this file does not extend + unpredictable: NotRequired[dict[str, str]] # PCRs extended in ways no file can replay -> why + events: list[Event] + + +class PcrsDoc(TypedDict): + pcrs: dict[str, dict[str, str]] # vaportpm layout: bank -> pcr -> hex + + +Hasher = Callable[..., "hashlib._Hash"] +InputKey = tuple[str, str] # (file label, input name) +Quote = dict[tuple[str, int], str] # (bank, pcr) -> hex + + +class Missing(Exception): + """A derivation needs an artifact or input that was not supplied.""" + + +class Bad(Exception): + """The replay files are malformed or inconsistent.""" + + +def hasher(bank: str) -> Hasher: + return cast(Hasher, getattr(hashlib, bank)) + + +def digest_size(bank: str) -> int: + return hasher(bank)().digest_size + + +def reset_value(pcr: int, size: int) -> bytes: + return (b"\xff" if 17 <= pcr <= 22 else b"\0") * size + + +# --- binary formats the derivations build ----------------------------------------------------------- +def u16(b: bytes, off: int) -> int: + return cast(int, struct.unpack_from(" int: + return cast(int, struct.unpack_from(" bytes: + coff = u32(pe, 0x3C) + 4 + nsec, opt_size = u16(pe, coff + 2), u16(pe, coff + 16) + for i in range(nsec): + s = coff + 20 + opt_size + 40 * i + if pe[s:s + 8].rstrip(b"\0").decode() == name: + vsize, rsize, rptr = u32(pe, s + 8), u32(pe, s + 16), u32(pe, s + 20) + return pe[rptr:rptr + min(vsize, rsize)] + raise Bad(f"PE has no section {name}") + + +def authenticode(pe: bytes, H: Hasher) -> bytes: + """Authenticode PE image hash (PE/COFF spec; what UEFI firmware logs for a loaded image).""" + coff = u32(pe, 0x3C) + 4 + nsec, opt_size = u16(pe, coff + 2), u16(pe, coff + 16) + opt = coff + 20 + checksum = opt + 64 + cert_dir = opt + (96 if u16(pe, opt) == 0x10B else 112) + 4 * 8 # DataDirectory[4] (security) + size_hdrs = u32(pe, opt + 60) + cert_off, cert_len = u32(pe, cert_dir), u32(pe, cert_dir + 4) + h = H() + h.update(pe[:checksum]) + h.update(pe[checksum + 4:cert_dir]) + h.update(pe[cert_dir + 8:size_hdrs]) + secs: list[tuple[int, int]] = [] + for i in range(nsec): + s = opt + opt_size + 40 * i + raw_size, raw_ptr = u32(pe, s + 16), u32(pe, s + 20) + if raw_size: + secs.append((raw_ptr, raw_size)) + done = size_hdrs + for ptr, size in sorted(secs): + h.update(pe[ptr:ptr + size]) + done = max(done, ptr + size) + end = len(pe) - (cert_len if cert_off else 0) + if end > done: + h.update(pe[done:end]) + return h.digest() + + +def gpt_data(disk: bytes, sector: int = 512) -> bytes: + """UEFI_GPT_DATA: the primary GPT header, NumberOfPartitions, the non-empty entries.""" + hdr = disk[sector:2 * sector] + if hdr[:8] != b"EFI PART": + raise Bad("no GPT header at LBA 1") + hsize = u32(hdr, 12) + ent_lba: int = struct.unpack_from(" bytes: + return b + b"\0" * ((-len(b)) % n) + + +def cpio_newc_entry(ino: int, mode: int, name: bytes, data: bytes) -> bytes: + """One newc entry: uid/gid 0, nlink 1, mtime 0, dev/rdev 0, header+name and data 4-aligned.""" + def w(v: int) -> bytes: + return b"%08x" % v + hdr = (b"070701" + w(ino) + w(mode) + w(0) + w(0) + w(1) + w(0) + w(len(data)) + + w(0) * 4 + w(len(name) + 1) + w(0) + name + b"\0") + return pad(hdr, 4) + pad(data, 4) + + +def guid(s: str) -> bytes: + return uuid.UUID(s).bytes_le + + +# --- replay files ----------------------------------------------------------------------------------- +@dataclass +class ReplayFile: + path: str + label: str + artifacts: dict[str, ArtifactDecl] + inputs: dict[str, InputDecl] + entry: str | None + events: list[Event] + reset: set[int] + unextended: set[int] + unpredictable: dict[int, str] + extends: set[int] = field(default_factory=set) + + @classmethod + def load(cls, path: str) -> ReplayFile: + with open(path) as f: + d = cast(ReplayDoc, json.load(f)) + if d.get("schema") != SCHEMA: + raise Bad(f"{path}: schema is {d.get('schema')!r}, expected {SCHEMA!r}") + rf = cls(path=path, label=d.get("name") or os.path.basename(path), + artifacts=d.get("artifacts", {}), inputs=d.get("inputs", {}), + entry=d.get("entry"), events=d["events"], + reset=set(d.get("reset", [])), unextended=set(d.get("unextended", [])), + unpredictable={int(k): v for k, v in d.get("unpredictable", {}).items()}) + rf.extends = {e["pcr"] for e in rf.events} + if rf.entry is not None and rf.entry not in rf.artifacts: + raise Bad(f"{path}: entry {rf.entry!r} is not a declared artifact") + clash = (rf.reset | rf.extends) & (rf.unextended | set(rf.unpredictable)) + if clash: + raise Bad(f"{path}: PCR(s) {sorted(clash)} both extended and declared unextended/unpredictable") + return rf + + +class Ctx: + """What a derivation may draw on: the supplied artifacts (by sha256) and bound inputs.""" + + def __init__(self, artifacts: dict[str, bytes], inputs: dict[InputKey, bytes], file: ReplayFile): + self.artifacts, self.inputs, self.file = artifacts, inputs, file + + def artifact(self, name: str) -> bytes: + decl = self.file.artifacts.get(name) + if decl is None: + raise Bad(f"{self.file.label}: artifact {name!r} is not declared") + data = self.artifacts.get(decl["sha256"]) + if data is None: + raise Missing(f"artifact {name} (sha256 {decl['sha256'][:16]}...)") + return data + + def input(self, name: str) -> bytes: + if name not in self.file.inputs: + raise Bad(f"{self.file.label}: input {name!r} is not declared") + v = self.inputs.get((self.file.label, name)) + if v is None: + raise Missing(f"input {name}") + return v + + +MODIFIERS = {"nul", "of"} + + +def derive(x: Derivation, c: Ctx) -> bytes: + """Evaluate a derivation expression to the bytes an event's digest is computed over.""" + if not isinstance(x, dict) or len(set(x) - MODIFIERS) != 1: + raise Bad(f"bad derivation {x!r}") + if "utf8" in x: + x = cast(Utf8, x) + return x["utf8"].encode() + (b"\0" if x.get("nul") else b"") + if "utf16le" in x: + x = cast(Utf16le, x) + return x["utf16le"].encode("utf-16-le") + (b"\0\0" if x.get("nul") else b"") + if "hex" in x: + return bytes.fromhex(cast(Hex, x)["hex"]) + if "guid" in x: + return guid(cast(Guid, x)["guid"]) + if "artifact" in x: + return c.artifact(cast(ArtifactRef, x)["artifact"]) + if "input" in x: + return c.input(cast(InputRef, x)["input"]) + if "concat" in x: + return b"".join(derive(e, c) for e in cast(Concat, x)["concat"]) + if "pad" in x: + p = cast(Pad, x) + return pad(derive(p["of"], c), p["pad"]) + if "pe_section" in x: + s = cast(PeSection, x) + return pe_section(derive(s["of"], c), s["pe_section"]) + if "gpt" in x: + return gpt_data(derive(cast(Gpt, x)["gpt"], c)) + if "uefi_variable" in x: + v = cast(UefiVariable, x)["uefi_variable"] + data = derive(v["data"], c) + return (guid(v["vendor"]) + struct.pack(" bytes: + H = hasher(bank) + how: DigestMode = ev.get("digest", "hash") + if how == "hash": + return H(data).digest() + if how == "authenticode": + return authenticode(data, H) + if how == "raw": + if len(data) != digest_size(bank): + raise Bad(f"raw extend of {len(data)} bytes into {bank}") + return data + raise Bad(f"unknown digest mode {how!r}") + + +def load_artifacts(paths: list[str]) -> dict[str, bytes]: + """Every file under the given paths, keyed by sha256 (declarations name artifacts by hash).""" + found: dict[str, bytes] = {} + for p in paths: + walk = [p] if os.path.isfile(p) else [os.path.join(r, n) for r, _, ns in os.walk(p) for n in ns] + for fp in walk: + with open(fp, "rb") as f: + b = f.read() + found[hashlib.sha256(b).hexdigest()] = b + return found + + +def bind_inputs(files: list[ReplayFile], given: dict[str, bytes]) -> tuple[dict[InputKey, bytes], list[str]]: + """Inputs are named per file; --input NAME applies to the one file declaring NAME (qualify as + FILE:NAME if several do). An undeclared name is an error. An input marked "next_entry" with no + value is bound to the next file's entry artifact; a given value must agree with it.""" + out: dict[InputKey, bytes] = {} + notes: list[str] = [] + for spec, v in given.items(): + lab, _, name = spec.rpartition(":") + owners = [f.label for f in files if name in f.inputs and lab in ("", f.label)] + if len(owners) != 1: + raise Bad(f"--input {spec}: declared by {owners or 'no file'}" + + (" (qualify as FILE:NAME)" if len(owners) > 1 else "")) + out[(owners[0], name)] = v + for f, nxt in zip(files, files[1:]): + if nxt.entry is None: + continue + for name, decl in f.inputs.items(): + if not decl.get("next_entry"): + continue + want = bytes.fromhex(nxt.artifacts[nxt.entry]["sha256"]) + k = (f.label, name) + if k in out and out[k] != want: + raise Bad(f"{f.label} input {name} = {out[k].hex()[:16]}... but the next file, " + f"{nxt.label}, describes {nxt.entry} = {want.hex()[:16]}...") + if k not in out: + notes.append(f"{f.label}: input {name} = sha256 of {nxt.label}'s {nxt.entry}") + out[k] = want + return out, notes + + +# --- replay ----------------------------------------------------------------------------------------- +EventStatus = Literal["verified", "derived", "pinned", "unchecked"] + + +@dataclass +class Trust: + verified: int = 0 # re-derived, equal to the embedded digest + derived: int = 0 # re-derived, nothing embedded to compare + pinned: list[str] = field(default_factory=list) # no derivation: taken on the file's word + unchecked: list[str] = field(default_factory=list) # derivable, but an artifact was not supplied + + +@dataclass +class Result: + pcrs: dict[str, dict[int, str]] # bank -> pcr -> hex, reproduced PCRs only + gaps: dict[str, dict[int, str]] # bank -> pcr -> why it is not reproduced + trust: Trust + + +def extend(bank: str, v: bytes, d: bytes) -> bytes: + return hasher(bank)(v + d).digest() + + +def replay(files: list[ReplayFile], banks: list[str], artifacts: dict[str, bytes], + inputs: dict[InputKey, bytes], verbose: bool) -> Result: + val = {b: {p: reset_value(p, digest_size(b)) for p in range(NPCR)} for b in banks} + lost: dict[str, dict[int, str]] = {b: {} for b in banks} # pcr -> why its value is unknown + cov: dict[int, str | None] = {p: "no file models it from reset" for p in range(NPCR)} # None: modelled + touched: set[int] = set() + trust = Trust() + errors: list[str] = [] + + for f in files: + for p in range(NPCR): + if p in f.reset: + if p in touched: + raise Bad(f"{f.label}: models PCR{p} from reset, but an earlier file extended it") + cov[p] = None + elif p in f.unpredictable: + cov[p] = f"unpredictable after {f.label}: {f.unpredictable[p]}" + elif cov[p] is None and p not in f.extends and p not in f.unextended: + cov[p] = f"{f.label} does not account for it" + c = Ctx(artifacts, inputs, f) + for n, ev in enumerate(f.events): + p = ev["pcr"] + what = f"{f.label} #{n} PCR{p} {ev.get('type', '')} {ev.get('about', '')}".rstrip() + if "value" in ev: # the PCR's value at this point, pinned: models it from here + if p in touched: + raise Bad(f"{what}: pins a value over earlier events") + touched.add(p) + cov[p] = None + for b in banks: + if b in ev["value"]: + val[b][p] = bytes.fromhex(ev["value"][b]) + else: + lost[b][p] = f"{f.label} pins no {b} value" + trust.pinned.append(what) + if verbose: + print(f" pinned {what}", file=sys.stderr) + continue + touched.add(p) + data: bytes | None = None + why: str | None = None + if "derive" in ev: + try: + data = derive(ev["derive"], c) + except Missing as e: + why = str(e) + st: EventStatus | None = None + for b in banks: + if "banks" in ev and b not in ev["banks"]: + continue + emb_hex = ev.get("digests", {}).get(b) + emb = bytes.fromhex(emb_hex) if emb_hex else None + if data is not None: + d = event_digest(ev, data, b) + if emb is not None and emb != d: + errors.append(f"{what}: {b} digest re-derives to {d.hex()[:16]}..., " + f"file says {emb.hex()[:16]}...") + st = "verified" if emb is not None else (st or "derived") + elif emb is not None: + d, st = emb, ("pinned" if "derive" not in ev else "unchecked") + else: + lost[b].setdefault(p, f"{what}: {why}" if why else f"{what}: no {b} digest") + continue + if p not in lost[b]: + val[b][p] = extend(b, val[b][p], d) + if st == "verified": + trust.verified += 1 + elif st == "derived": + trust.derived += 1 + elif st == "pinned": + trust.pinned.append(what) + elif st == "unchecked": + trust.unchecked.append(f"{what} ({why})") + if verbose: + print(f" {st or 'lost':9} {what}" + (f" [{why}]" if why else ""), file=sys.stderr) + if errors: + raise Bad("replay files do not match their own derivations:\n " + "\n ".join(errors)) + pcrs = {b: {p: val[b][p].hex() for p in range(NPCR) if cov[p] is None and p not in lost[b]} + for b in banks} + gaps = {b: {p: cov[p] or lost[b][p] for p in range(NPCR) if cov[p] is not None or p in lost[b]} + for b in banks} + return Result(pcrs, gaps, trust) + + +# --- quotes ----------------------------------------------------------------------------------------- +def read_quote(path: str) -> Quote: + """A vaportpm attestation / any JSON with a top-level "pcrs" {bank: {n: hex}}, or a serial log + with "PCR " lines.""" + with open(path, "rb") as f: + raw = f.read() + quote: Quote + try: + doc = cast(PcrsDoc, json.loads(raw)) + quote = {(b, int(i)): v.lower() for b, pcrs in doc["pcrs"].items() for i, v in pcrs.items()} + except (ValueError, KeyError, AttributeError, TypeError): + txt = raw.decode("latin1").replace("\r", "") + quote = {(b, int(i)): v for b, i, v in + re.findall(r"^(?:payload: )?PCR (\w+) (\d\d) ([0-9a-f]+)$", txt, re.M)} + # A truncated or garbled value (a console cut off mid-line) is a malformed quote, not a PCR + # that differs. + for (b, i), v in sorted(quote.items()): + if hasattr(hashlib, b) and not re.fullmatch(f"[0-9a-f]{{{2 * digest_size(b)}}}", v): + raise Bad(f"quote {path}: {b} PCR{i} is not {digest_size(b)} bytes of hex: {v!r}") + return quote + + +def parse_inputs(ap: argparse.ArgumentParser, specs: list[str]) -> dict[str, bytes]: + given: dict[str, bytes] = {} + for s in specs: + k, sep, v = s.partition("=") + if not sep: + ap.error(f"--input {s}: expected NAME=VALUE") + if v.startswith("@"): + with open(v[1:], "rb") as f: + given[k] = hashlib.sha256(f.read()).digest() + else: + given[k] = bytes.fromhex(v) + if len(given[k]) != 32: + ap.error(f"--input {k}: expected a 32-byte sha256") + return given + + +def check(result: Result, banks: list[str], seen: Quote) -> bool: + bad = absent = 0 + for b in banks: + for p, want in result.pcrs[b].items(): + got = seen.get((b, p)) + st = "ok" if got == want else ("absent" if got is None else "MISMATCH") + bad += st == "MISMATCH" + absent += st == "absent" + print(f"{b:7} PCR{p:<2} {st:8} {want[:16]}" + (f" quote {got[:16]}" if got and st == "MISMATCH" else "")) + extra = sorted(p for (qb, p) in seen if qb == b and p not in result.pcrs[b]) + if extra: + print(f"{b:7} in the quote but not reproduced: PCR {','.join(map(str, extra))}") + trusted = len(result.trust.pinned) + len(result.trust.unchecked) + if bad: + print(f"CHAIN DOES NOT VERIFY: {bad} PCR(s) differ") + return False + print("CHAIN VERIFIES" + (f" ({absent} reproduced PCR(s) not in the quote)" if absent else "") + + ("" if not trusted else f" -- taking {trusted} event(s) on trust, listed above")) + return True + + +def main() -> None: + ap = argparse.ArgumentParser(description="Replay PCR replay files and check them against a quote") + ap.add_argument("files", nargs="+", help="replay files, in boot order") + ap.add_argument("--artifacts", action="append", default=[], metavar="PATH", + help="file or directory of artifacts to re-derive from (matched by sha256)") + ap.add_argument("--input", action="append", default=[], metavar="NAME=HEX|@FILE", + help="value of a declared input (a sha256; @FILE hashes FILE)") + ap.add_argument("--banks", default="sha256,sha384", help="comma-separated (default sha256,sha384)") + ap.add_argument("--out", help="write the reproduced PCRs as JSON (vaportpm layout)") + ap.add_argument("--check", metavar="QUOTE", help="attestation JSON or serial log to compare") + ap.add_argument("-v", "--verbose", action="store_true", help="list every event") + a = ap.parse_args() + banks: list[str] = a.banks.split(",") + for b in banks: + if b not in BANKS: + ap.error(f"unknown bank {b}") + given = parse_inputs(ap, a.input) + try: + files = [ReplayFile.load(p) for p in a.files] + labels = [f.label for f in files] + if len(set(labels)) != len(labels): + raise Bad(f"replay files share a name: {labels}") + inputs, notes = bind_inputs(files, given) + for note in notes: + print(f"bound: {note}", file=sys.stderr) + result = replay(files, banks, load_artifacts(a.artifacts), inputs, a.verbose) + seen = read_quote(a.check) if a.check else None + except Bad as e: + print(f"error: {e}", file=sys.stderr) + sys.exit(2) + + for b in banks: + for p, why in sorted(result.gaps[b].items()): + print(f"{b:7} PCR{p:<2} not reproduced: {why}", file=sys.stderr) + t = result.trust + print(f"events: {t.verified} re-derived and verified, {t.derived} derived, " + f"{len(t.pinned)} pinned, {len(t.unchecked)} unchecked", file=sys.stderr) + for w in t.pinned: + print(f" pinned: {w}", file=sys.stderr) + for w in t.unchecked: + print(f" unchecked: {w}", file=sys.stderr) + + if a.out: + out: PcrsDoc = {"pcrs": {b: {str(p): v for p, v in r.items()} for b, r in result.pcrs.items()}} + with open(a.out, "w") as f: + json.dump(out, f, indent=2) + f.write("\n") + if seen is not None and not check(result, banks, seen): + sys.exit(1) + + +if __name__ == "__main__": + main() diff --git a/tools/pcr-replay/platforms/gcp/README.md b/tools/pcr-replay/platforms/gcp/README.md new file mode 100644 index 0000000..59bd283 --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/README.md @@ -0,0 +1,89 @@ +# GCP platform measurements + +Golden PCR0-2 for GCE: one platform replay file per instance configuration that measures +differently, each generated from a probe capture by `from-capture.py` (so it can be regenerated +from the evidence) and listed first in a chain: + +``` +pcr-replay.py platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json stage0.replay.json \ + stage1.replay.json stage2.replay.json ... --check +``` + +| File | PCR0 | PCR1 | Verified chains | +|---|---|---|---| +| `gcp-n2d-standard-2-shielded.replay.json` | `d0c70a93` | `09b32fdf` | stage0 only (no AK cert on Shielded VMs, so stage1 does not run) | +| `gcp-n2d-standard-2-sev.replay.json` | `a0b5ff33` | `2c4b6392` | full chain, 2026-11-09 | +| `gcp-n2d-standard-2-sev-snp.replay.json` | `50597a27` | `2c4b6392` | full chain, 2026-11-09 | +| `gcp-c3-standard-4-shielded.replay.json` | `d0c70a93` | `1e0e29fc` | stage0 only | + +Each file re-derives every PCR0-2 event from its logged bytes except the three ACPI DATA events, +which are pinned (their digests cover ACPI tables the log does not contain). Not covered: TDX +(c3 networking under TDX is broken), t2a / Arm (no network stack in the firmware, below), other +machine sizes (the ACPI tables may differ; unprobed). + +## Captures (`captures/`) + +Raw serial console of one stage0 boot each, kept as evidence: stage0 then the stage0 test payload, +which dumps every PCR in every bank and the full TCG event log (`EV` / `EVD` / `EVX` lines). +Recipe: AGENTS.md "Cloud test runs". Zone asia-southeast1-b, spot, Shielded VM (Secure Boot, +vTPM, integrity monitoring), gVNIC, our PK/KEK/db/dbx. + +| Capture | Machine | Confidential | stage0 BUILD_ID | PCR0 sha256 | PCR1 sha256 | PCR2 sha256 | Events | +|---|---|---|---|---|---|---|---| +| `2026-11-09-n2d-standard-2-shielded.log` | n2d-standard-2 | none | stage0-689e96b8b206 | `d0c70a93` | `09b32fdf` | `3d458cfe` | 27 | +| `2026-11-09-n2d-standard-2-sev.log` | n2d-standard-2 | SEV | stage0-689e96b8b206 | `a0b5ff33` | `2c4b6392` | `3d458cfe` | 27 | +| `2026-11-09-n2d-standard-2-sev-snp.log` | n2d-standard-2 | SEV-SNP (AMD Milan) | stage0-689e96b8b206 | `50597a27` | `2c4b6392` | `3d458cfe` | 27 | +| `2026-11-09-c3-standard-4-shielded.log` | c3-standard-4 | none | stage0-689e96b8b206 | `d0c70a93` | `1e0e29fc` | `3d458cfe` | 27 | +| `2026-11-09-t2a-standard-1-shielded-FAILED.log` | t2a-standard-1 | none | stage0-70b2df077e08 | - | - | - | - | + +t2a: stage0's gVNIC driver probes fine (link up, SNP installed), but GCP's Arm firmware ("built +at 09:00:00 on Jan 10 2025") ships no network stack above SNP: no MNP, ARP, IP4, IP4Config2, +DHCP4, UDP4 or TCP4 drivers. stage0 fails closed (`no EFI_IP4_CONFIG2 ... NOT_FOUND`) before +loading any payload, so there is no PCR dump or event log for Arm. Needs stage0 to embed the +EDK2 network stack (or its own) before GCP Arm can be probed. + +## What PCR0-2 contain (so far) + +From `2026-11-09-n2d-standard-2-shielded.log`: + +- **PCR0**: `EV_S_CRTM_VERSION` UTF-16LE "GCE Virtual Firmware v2" + NUL; `EV_NONHOST_INFO` + (0x11) "GCE NonHostInfo\0" + a confidential-technology byte (0 here) + 15 zero bytes; + separator. Derivable from strings. No firmware code is measured: firmware integrity on GCE + comes from the SEV-SNP/TDX launch measurement plus Google's endorsement, and plain Shielded VMs + have none. +- **PCR1**: three `EV_PLATFORM_CONFIG_FLAGS` "ACPI DATA" (digests of ACPI tables that are not in + the log -> must be pinned), then `EV_EFI_VARIABLE_BOOT` BootOrder, Boot0001, Boot0000 (digest = + hash of the variable data only, not UEFI_VARIABLE_DATA), separator. +- **What differs Shielded -> SEV (n2d)**: PCR0 only by the NonHostInfo technology byte (0 -> 1). + PCR1 only by Boot0001: Shielded boots "UEFI Google PersistentDisk " over SCSI + (`PciRoot(0)/Pci(3,0)/Scsi(1,0)`), SEV "UEFI nvme_card-pd" over NVMe (`PciRoot(0)/Pci(4,0)/ + NVMe(1,...)`). The three ACPI DATA digests, BootOrder and Boot0000 are identical. So PCR1 is + keyed by machine shape + boot-disk interface, not by the confidential type as such. +- **PCR2**: separator only. +- **n2d -> c3 (both Shielded)**: PCR0 identical (technology byte 0). PCR1: all three ACPI DATA + digests differ (different machine, different ACPI tables), and Boot0001 is NVMe like SEV but + at `Pci(5,0)` instead of `Pci(4,0)`; BootOrder and Boot0000 identical. +- **SEV -> SEV-SNP (n2d)**: PCR0 only by the technology byte (1 -> 4); PCR1 identical (same + NVMe Boot0001, same ACPI DATA digests). +- Two `EV_NO_ACTION` SP800-155 events (not extended, so not attested by the vTPM): platform + "Google Compute Engine", firmware version "2.7"; the second carries a reference-manifest URL + whose name is the SHA-384 of the firmware binary: + - Shielded and SEV: `gs://gce_tcb_integrity/ovmf_x64_csm/abd40f8b110602404abcf39cbf215fc0897587c92194f4d7b692754d5459ae112265df306e7f08b32657cdf5a28b96d8.fd.signed` + - SEV-SNP: `gs://gce_tcb_integrity/ovmf_x64_csm/3cf4e1feb18c4e7eca34e7e7c2fc15579cdb1c79cc3923214b6cbc3dc3c362b86d465386f33204794ed01aba3b34b3b3.fd.signed` + - c3 Shielded: `gs://gce_tcb_integrity/ovmf_x64_csm/624ac419f063f0d17a261e6ba512174cd174194ffd06e72531dce3514ec7e148aa876331b95dfa20cd4341004b280fb1.fd.signed` + + SNP boots a different firmware binary, yet PCR0 differs from SEV only by the technology byte: + the vTPM PCRs do not bind the firmware. These URLs identify it, but as unextended events they + are claims, not measurements. For SNP the binding is the launch measurement + Google's + endorsement (gce-tcb-verifier). + +## Expected (from the 2026-11-05 matrix, before captures were kept) + +| Config | PCR0 | PCR1 | +|---|---|---| +| n2d Shielded | `d0c70a93` | `09b32fdf` | +| n2d SEV | `a0b5ff33` | `2c4b6392` | +| n2d SEV-SNP | `50597a27` | `2c4b6392` | +| c3 Shielded | `d0c70a93` | `1e0e29fc` | +| c3 TDX | DHCP timeout, no reading | | +| t2a Shielded | never booted | | diff --git a/tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-shielded.log b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-shielded.log new file mode 100644 index 0000000..35050ab --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-shielded.log @@ -0,0 +1,373 @@ +Following console output for lb-p-c3 (Ctrl+C to stop)... +--- +[=3h[=3hBdsDxe: loading Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x5,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +BdsDxe: starting Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x5,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) + +UEFI: Attempting to start image. +Description: UEFI nvme_card-pd +FilePath: PciRoot(0x0)/Pci(0x5,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +OptionNumber: 1. + +[ 0.050] stage0: version: 0.1.0 +[ 0.051] stage0: Secure Boot enforcing (User Mode) +[ 0.053] stage0: loading embedded ena driver (36864 bytes) +ena: DriverBinding installed (idle until an ENA device binds) +[ 0.060] stage0: ena driver started +[ 0.061] stage0: loading embedded gvnic driver (37888 bytes) +gvnic: DriverBinding installed (idle until a gVNIC device binds) +[ 0.068] stage0: gvnic driver started +gvnic: start(): probing gVNIC device... +gvnic: PCI 1ae0:0042 revision 0 +gvnic: memory+bus-master enable: SUCCESS +gvnic: msix=9 ntfy_blks=8 max_tx=4 max_rx=4 device_status=0x4 +gvnic: verify-driver-compatibility: PASSED +gvnic: AQ opcode 0x1: PASSED +gvnic: describe: max_reg_pages=16384 tx_entries=1024 rx_entries=1024 default_queues=4 mtu=1460 counters=8 tx_pages_per_qpl=64 rx_pages_per_qpl=1024 options=7 total_len=152 +gvnic: option 0x3 len=4 required_features=0x0 mask=0x5 +gvnic: option 0x4 len=8 required_features=0x0 mask=0xbd +gvnic: option 0x6 len=12 required_features=0x0 mask=0x0 +gvnic: option 0x9 len=4 required_features=0x4 mask=0x0 +gvnic: option 0xa len=8 required_features=0x0 mask=0x0 +gvnic: option 0xb len=12 required_features=0x0 mask=0x0 +gvnic: option 0xe len=8 required_features=0x0 mask=0x0 +gvnic: describe: also offered [4]; using GQI_QPL +gvnic: AQ opcode 0x2: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x5: PASSED +gvnic: AQ opcode 0x6: PASSED +gvnic: queues: tx db=12288 counter=7 rx db=4096 +gvnic: link up +gvnic: ExitBootServices reset hook armed +gvnic: probe OK mac=42:01:0a:94:00:29 mtu=1460 +gvnic: SNP installed on controller; networking should come up +gvnic: SNP initialized (rx posted, link up) +[ 4.526] stage0: network: OK 10.148.0.41 (DHCP 3933 ms) +[ 4.532] stage0: metadata: GCP 1031 bytes sha256:719647a83bb6232c86e61ce55d497cece9c75f060986da8ad4cc6817f4af0608 +[ 6.028] stage0: payload: 53760 bytes from http://storage.googleapis.com/lockboot-test/test/6d07ed8a8f9e/probe/x86_64/linux.efi +[ 6.033] stage0: verified: sha256:50693844dc6b21892782a6fd8e807fa5a070a065e697c1738c09ab5b1b6425c3 (sha256 pin) +[ 6.047] stage0: PCR14 extended +[ 6.050] stage0: starting payload +payload: hello from the chain-loaded UEFI payload +payload: mode SecureBoot=1 attrs=0x06 +payload: mode SetupMode=0 attrs=0x06 +payload: mode AuditMode=absent +payload: mode DeployedMode=absent +payload: active PCR banks: sha1 sha256 sha384 +payload: ===PCR-DUMP-BEGIN=== +payload: PCR sha1 00 d0a51b47f9a0dfef1bc16d318d0b5bc5687fd602 +payload: PCR sha256 00 d0c70a9310cd0b55767084333022ce53f42befbb69c059ee6c0a32766f160783 +payload: PCR sha384 00 3db0db543323f57b97895f55053129b87c083ef11559eede3a1a4c33a79c0e54ed1c14f2a767a38a51fdbacbefc7014f +payload: PCR sha1 01 ec94effe6e5a2f8154e8450eb032245e49b2fba6 +payload: PCR sha256 01 1e0e29fce90c8659a71cf9256945badb5155544fd677b44687ef9fd451d6a1b0 +payload: PCR sha384 01 4d32b6bb562f0a389a159ecc05bbad4cae23b987a5edde3929b2720ba019fec6938ea4b66b85749ca7cf5e318bd26893 +payload: PCR sha1 02 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 02 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 02 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 03 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 03 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 03 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 04 b127c3ca0ff7145f084f5650e24ac02effc2a5a2 +payload: PCR sha256 04 4fd748b2e9a00ba87584cf2784fa713314fed2cf1d47914cbcb2594ec58113ed +payload: PCR sha384 04 f3dbcb1f503115ce4ec260e920ec13293987ad9df065e7cea4ee74afd7ea41d8c2111f95f32222c7a1d217062a16c1ce +payload: PCR sha1 05 5d4dbd79a85eaa98d853cca7f55bd6c73e811fe2 +payload: PCR sha256 05 170cbfef80de67b2cffebb54b21783e9677e54e06583da578d43feaf713edec2 +payload: PCR sha384 05 3a45453ededdc7575bea28f05b06a632fcff308c485c7f31aed3d1ab6635ce08224b0aae69034fc5023ef00ce8cd221b +payload: PCR sha1 06 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 06 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 06 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 07 34b9ca1f5762851ff8c1960805c7c5d9e684ea37 +payload: PCR sha256 07 ee5f65dcdc5f2fc2935854fe9eff263ddbb48a010dae39ba6b7ce4ae42f9f299 +payload: PCR sha384 07 12b7f936f5371d09741f1eca3de6867a84c0d4a5e5b5bfc88af1af9c6b7fef1422253abb852837d888b3f2863febf362 +payload: PCR sha1 08 0000000000000000000000000000000000000000 +payload: PCR sha256 08 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 08 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 09 0000000000000000000000000000000000000000 +payload: PCR sha256 09 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 09 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 10 0000000000000000000000000000000000000000 +payload: PCR sha256 10 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 10 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 11 0000000000000000000000000000000000000000 +payload: PCR sha256 11 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 11 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 12 0000000000000000000000000000000000000000 +payload: PCR sha256 12 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 12 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 13 0000000000000000000000000000000000000000 +payload: PCR sha256 13 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 13 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 14 bb92a71720866bdd79f646a15937d1cf8b7d59f7 +payload: PCR sha256 14 05f0a0d51a0815c787fce015608b7bfd0735b8b4fe7d67d1e8cfb5ad7937177b +payload: PCR sha384 14 20b60a460fe8746f5ea5de26d3e05eb9f3130f25638a3b282d84c7137010d04e3c7a7a06408e7b0cd87bd6129eac2d70 +payload: PCR sha1 15 0000000000000000000000000000000000000000 +payload: PCR sha256 15 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 15 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 16 0000000000000000000000000000000000000000 +payload: PCR sha256 16 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 16 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 17 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 18 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 19 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 20 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 21 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 22 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 23 0000000000000000000000000000000000000000 +payload: PCR sha256 23 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 23 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: ===PCR-DUMP-END=== +payload: ===EVENTLOG-BEGIN=== +payload: EV 0 0 00000003 +payload: EVD 0 0004 0000000000000000000000000000000000000000 +payload: EVD 0 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 0 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 0 53503830302d313535204576656e7433792b0000c6b6de260bac0d4f9157b5df5f53cddd0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 0 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e37000300000028000000468e85a27fa36a458c790c1fe48b65ff460069007200 +payload: EVX 0 6d007700610072006500520049004d0000000000000000000000000000000000 +payload: EV 1 0 00000003 +payload: EVD 1 0004 0000000000000000000000000000000000000000 +payload: EVD 1 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 1 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 1 53503830302d313535204576656e7433792b0000c6b6de260bac0d4f9157b5df5f53cddd0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 1 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e370001000000a800000068747470733a2f2f73746f726167652e676f6f676c65 +payload: EVX 1 617069732e636f6d2f6763655f7463625f696e746567726974792f6f766d665f7836345f63736d2f363234616334313966303633663064313761323631653662 +payload: EVX 1 61353132313734636431373431393466666430366537323533316463653335313465633765313438616138373633333162393564666132306364343334313030 +payload: EVX 1 34623238306662312e66642e7369676e65640000000000000000000000000000 +payload: EV 2 0 00000008 +payload: EVD 2 0004 4031fe1129fb826f12dcad169992cca9f4f56aa3 +payload: EVD 2 000b fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d +payload: EVD 2 000c 21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6 +payload: EVX 2 47004300450020005600690072007400750061006c0020004600690072006d0077006100720065002000760032000000 +payload: EV 3 0 00000011 +payload: EVD 3 0004 9e8af742718df04092551f27c117723769acfe7e +payload: EVD 3 000b 7b74dea34ce9b49755ab1babe8bac9ad528d3d5addec4e2fa298e3ae68fd276f +payload: EVD 3 000c a74de6271fa4ad2b7b1846f1d40c28eb103f5ee055abc9883f2ca7d9bedf8ec8c848fce5aa0ad22f1750ce78f5bbf15e +payload: EVX 3 474345204e6f6e486f7374496e666f0000000000000000000000000000000000 +payload: EV 4 7 80000001 +payload: EVD 4 0004 d4fdd1f14d4041494deb8fc990c45343d2277d08 +payload: EVD 4 000b ccfc4bb32888a345bc8aeadaba552b627d99348c767681ab3141f5b01e40a40e +payload: EVD 4 000c 2cded0c6f453d4c6f59c5e14ec61abc6b018314540a2367cba326a52aa2b315ccc08ce68a816ce09c6ef2ac7e514ae1f +payload: EVX 4 61dfe48bca93d211aa0d00e098032b8c0a00000000000000010000000000000053006500630075007200650042006f006f00740001 +payload: EV 5 7 80000001 +payload: EVD 5 0004 2a1c2af26638c0bd0ca8c77b23fe5957e2d8d9cb +payload: EVD 5 000b 8d9ae3c06688bb660a249396b43b3ecf88cf60087ffa4208de39b7b29456c476 +payload: EVD 5 000c a575ab2e3c72e29ca2ce67d3dbc8e0b9f18f8164155f62809dee1d4ec26afcf4da5faec8a6753b530e5a92daedb6be9d +payload: EVX 5 61dfe48bca93d211aa0d00e098032b8c0200000000000000390500000000000050004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 5 d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202142e67f90eed0214e922486266d2e13aecf724859d300d06092a864886f70d01010b +payload: EVX 5 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231385a170d3336313130323136353231385a3014311230100603 +payload: EVX 5 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100937c195fef10074e14d3578699870b5f88 +payload: EVX 5 3218707f8037d8408ae66fe7905e39a55f85454d2734e652f3db17ce055b265d500e8a6c02a0651d123c6a83729b4d19095ddf68a1084c4abc867c5d90ee06ea +payload: EVX 5 95cab0a23bf624b5e5da14608ff497e5dbf4acd73b3e1670171b02952f9426d748b373fadbed5662954f558bd336195dafc7367e138ae7573d1248aa5022a69f +payload: EVX 5 14fb67225e496553cc03ae2522dac33e14db1d2b1909b2af9c8673e19a3860d51d93ed0ed39125c466575ee0e3df0fa810046e3b89a3011c5fc5e8b57fd6e7e9 +payload: EVX 5 2e62922bc66dacd7023a29db65a22e9a81201ce5f8d51a67703408f5d57ac14fb8b9a97fbfeec8f40a065068a0998a22ead31e6cdedaba8660055dfa31817a30 +payload: EVX 5 dcf4719e2d1be07b4e1d3470244a493e15ba057f896d9daa24a402ca62d004f659d8898b7bec13f3371087cd711729771bed686bfb57db0e3f6c82bc5c9687fa +payload: EVX 5 1a8ba8fdee46ff9e851e63f512cfc1b166746e80a29a2192c689776f38ce690148cb828fc61e359a79b909f744f1cdf3fecb3a258b731bed975de2a8e9675bca +payload: EVX 5 c2b8e85843effba0a966c047efeceaede92486aa05a28787b20866f60cb9221a2a5fbf944a085347d7e15b4cacae2a15d73619830ff902c098081c9b9f67c291 +payload: EVX 5 293ac39442958c91934fe99bb777fe8af20ed5f665dc1d985c4d8ad2a786140024775481922a6fde667fbd509d02590203010001a3533051301d0603551d0e04 +payload: EVX 5 16041445952196b988d05de28bc89ccf3980cda0293db5301f0603551d2304183016801445952196b988d05de28bc89ccf3980cda0293db5300f0603551d1301 +payload: EVX 5 01ff040530030101ff300d06092a864886f70d01010b0500038202010010bcdf3477f835b7ac2ba98a573720d2111b5f2a139fa49c5b80f93d0f8bc6245efef6 +payload: EVX 5 87c777abc78aaa333be4e8ad67f9ddbc6710d5b078a216523a50a81f5cfab13fa9f81d3c0e67c4c89afd4dd84d640f3b0d5b70b9efaa334dfa9e526ee4391c81 +payload: EVX 5 68a1e5d5b0f101f59ca283a6a5067b49ed379efaa43be74d9238c4a23157bdeb2383ae781d55ca41fa00c63e48092f8c573f12a4e547cf84952b96f1715321a2 +payload: EVX 5 6846e97f9ac9c7bd630b29c8f332bc1ccf8f9c9073e4fc5ad4eb8cdb18049ed89a6880867e0dfacd964b87a03f146ee015c86e71bc305eff85496c1cee90bbbb +payload: EVX 5 3c4da52f1ac79ab55b2bd23aafc3237897537befae2d16721a37874aa72ccfae7927ff7b42a47674f9722f9c4e7e1dab07c96083126e8e109014b4573144b213 +payload: EVX 5 4f46387e5e8062b5721ee78374d30f12dd3513febc4132bab33671ec9b82ddc07f9e80b9e971868b89a2763e2da59b013644dd23c22493b06a4827d785433b35 +payload: EVX 5 5fc02b55159e8ebd14c6ec24fa1d6a5c0419d62085a8af97a9bc1a517c198df4b7bdda2ecc38c029eb30d03622993fcacacdff5af9692ec1f59a1dc86bb59945 +payload: EVX 5 f4bbd53f065d5b60604825b747e358e7cd4b079aba1ae6a07f4e47478716cd8ec4ae626c89d3bfabacef49cb7f232c6dcd58fb1865166e11a66db202385ffd1a +payload: EVX 5 514871ea946bd8ca43ccc0c8820754374cbebe47667b5f16320915c069 +payload: EV 6 7 80000001 +payload: EVD 6 0004 436802ee458c6f6444fb015e6bb8a6b8bbb6fac6 +payload: EVD 6 000b 8244c4379c9ec4ef010996e722850aca795b70603252ca746852f0fc10133754 +payload: EVD 6 000c 1594b6f4d7227bb8460f7913570cabfaaff47f6e8cd601343629d20c46f90c811ffcddfff72b0bffdcc13aa4c6bfa288 +payload: EVX 6 61dfe48bca93d211aa0d00e098032b8c030000000000000039050000000000004b0045004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d05 +payload: EVX 6 0000d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202147482b291dbb9f8035ba25640c46dd05e365f5206300d06092a864886f70d01 +payload: EVX 6 010b050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a301431123010 +payload: EVX 6 06035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100b082f3dfde4fd6cb90d21d52f4d827 +payload: EVX 6 1d0749aca2862bcef6350f1831759ac78e97e34c31950fae3a84b59fa4d32722d6eac1e073edc54e37f3c0dc39425c73c6cba9ee3e0419217158712c2fea85b1 +payload: EVX 6 cbe2eac487c4cdca79d4cefd288e6d94cc76d2d41d73e9514c6e62d3d16afdd877edcfc28911016a0bb1991ac898fdb3cac2f000ecaa9088dd97169b68b01e79 +payload: EVX 6 8f25b48dbf93908c903765375324b629aaa4be4367b2eea9fb590d1917b1653a05d1f8b06a6b4cba25a02c4e4e3853bcfeca80fb38412b723164fccc77c06c91 +payload: EVX 6 b087f2a46afe7474234982d31020e0d11b7251e4f1a5086a6d9543a2a539090901fcc7ddbda05298cb88f4edd4c49cf027867c567ba46e72c6f07aed58bc64f7 +payload: EVX 6 f00f5b7f4340c4a571511fd159191b213c52ac569e41c97780fe53c1f150cb8735badc9538a22801f61bee999e8e6f3345461790846fb9717ccc8406c4092d8b +payload: EVX 6 5548372c7ef930801a3e3b038a2494aa63a7c70c98f99fbb4ee159e9b9617d35b853cea35b214e7ee1aea1939d5c805b1f07b760aa901a3d834a260a9c76b7a3 +payload: EVX 6 da5eb8d5c4681950ad57bb89cb1dbb9ab600e481dfc678c373b5e772b682b97116b5828a247e43a7a050474ad8a64fed74c3652ff0755c718a6f8f309d32ee6e +payload: EVX 6 84478613aadb417d3d5f7a82b9f899d680505c6d5e902e7162535b27c38d76034165d592af22ffb3ae2538a507d24378410203010001a3533051301d0603551d +payload: EVX 6 0e04160414fafa70188a45b6c798385f07394d7f71727ce1c9301f0603551d23041830168014fafa70188a45b6c798385f07394d7f71727ce1c9300f0603551d +payload: EVX 6 130101ff040530030101ff300d06092a864886f70d01010b050003820201003feaabb2456875a3489dd3ce8dbc2cd7b2405c4a216011fcd5ad9e414574c90da9 +payload: EVX 6 9f10f60c9d6ba09b0e54b1bc654b33e3f2ab01f24fcef65d60db35a71681d695120c3aede9f05ffeb08524abe5f29f53b63ae99f7db2dfd25551764a88f775b5 +payload: EVX 6 1912c2b269caa6e7a6da4f48e7776887421242d6a47daa9310fa789e7a3a47afce65f721db9c1e41989d4aa36aeffe21a081150305807c50fb203a14a60dd18f +payload: EVX 6 4298a429e11dc814c8b502e82b71e9d17dbf8976fdcf1676873e1b10face239303927f9d67f59150224abbfdee78ad0e344abf42f997d9373fb96b4a74a280fd +payload: EVX 6 acbd6b8af3f3a662e78129b01d2fcedda4af580965dabbf29ed820f60aa425fbc290c6c67d83ece14be207daf56d3def0792f8ad37c838b07c8d1c69865562bc +payload: EVX 6 6a0c0556ea469a1c04e442a8342cac2e2f2c2d29dcb7f675fa883339b0a1e1122f67f1f1f43b4b705b86c77a8fb563911e05c87339df765f09f0e3510cb697c5 +payload: EVX 6 5201a808953be4d1faeb6b923953cb5e94058c0f74ca463de691f7a0be0a9f53260538273712d6a0672599becb402553c010e3f2384b5c6633da72f94e565bc5 +payload: EVX 6 91ec1dbc0ce3384971eb0ae51505a81470a7707137cf9b0764c32321003fe1e7df74ec16f2b972bbb46d45159266be94494528b00d78d81afddcaa7751dfb6d5 +payload: EVX 6 d84f59e5a5943da2f92b1ee634bcc046a0bbbc3e5ee38135a298e541b20a5d +payload: EV 7 7 80000001 +payload: EVD 7 0004 2667670b97b13aad582d8cb03740b2465aa4fc5f +payload: EVD 7 000b 9d441b749b0a78ad5ab401681c7330802e20bea2dbe166041c7180e4e162666b +payload: EVD 7 000c 93eb38a9463dff82194e7489b63c7f8f52e0637f1ad481debee2beedcb3a05bd498de4a41228248a614cab7e61bbcfd5 +payload: EVX 7 cbb219d73a3d9645a3bcdad00e67656f0200000000000000390500000000000064006200a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 7 d2fa81d2888da44797925baa47bb1b8930820509308202f1a003020102021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b +payload: EVX 7 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a3014311230100603 +payload: EVX 7 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d7 +payload: EVX 7 5dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff119420633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7 +payload: EVX 7 a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b +payload: EVX 7 88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a7 +payload: EVX 7 0dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b85309f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb +payload: EVX 7 7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b3113472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c549 +payload: EVX 7 9f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c +payload: EVX 7 4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064 +payload: EVX 7 a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04 +payload: EVX 7 160414759668b154bc35b65dfd0fb26390544d2b010aef301f0603551d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d1301 +payload: EVX 7 01ff040530030101ff300d06092a864886f70d01010b05000382020100690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be +payload: EVX 7 72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045 +payload: EVX 7 e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee424e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf31312 +payload: EVX 7 7e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd0059fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b +payload: EVX 7 2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba19577893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d +payload: EVX 7 7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1da +payload: EVX 7 aec7289a34f4273c580030d395de84b94dee09e282440352568accad2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67d +payload: EVX 7 ce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f485913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc3586 +payload: EVX 7 0eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b537 +payload: EV 8 7 80000001 +payload: EVD 8 0004 0aedaad2554e295446e5e92c3b900e01f028f2dc +payload: EVD 8 000b 1963d580fcc0cede165e23837b55335eebe18750c0b795883386026ea071e3c6 +payload: EVD 8 000c 5f95c5051ade2e2314961e4011150fbe3315c0b78c93b27be3ac8e4df73930e6ad82aa50ac3591d292ce364b04c850c7 +payload: EVX 8 cbb219d73a3d9645a3bcdad00e67656f03000000000000004c000000000000006400620078002616c4c14c509240aca941f9369343284c000000000000003000 +payload: EVX 8 0000a3a8baa01d04a848bc87c36d121b5e3de3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +payload: EV 9 7 00000004 +payload: EVD 9 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 9 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 9 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 9 00000000 +payload: EV 10 1 0000000a +payload: EVD 10 0004 674a9eea150263c202339c9b2abb9354798d879f +payload: EVD 10 000b 75619b356a78227e9559d5b20e2f78163a5e1205535de10d67040ae1a7c725d6 +payload: EVD 10 000c ee0cc4f8fa34d548c7bad109ad5da7a7469c6a84967b919120b63bdfd9a50def29f37e0b7f0d40110304c70f1615998f +payload: EVX 10 414350492044415441 +payload: EV 11 1 0000000a +payload: EVD 11 0004 a5752d92b8852b5f5af19744273664768e49cd37 +payload: EVD 11 000b 133e420e3be71ea7bb15848d019e3660d8bfff8be3638db9b642694e6111e67f +payload: EVD 11 000c 957129f88ef987bf483b2fd0b8b7fab43b5477e394a683f74fbf662217e8fa2279c2fed9b877ccea0c9b9be916b55cca +payload: EVX 11 414350492044415441 +payload: EV 12 1 0000000a +payload: EVD 12 0004 8d11e616364a6857df5b1841f9a91b494c5b2372 +payload: EVD 12 000b 30447db057b43452a3e76d79f1da2c41b4559af0cb1373c93c4f4cde866657ea +payload: EVD 12 000c 70cb7693cd1bee8a9870f8ab7b049e06960196c7f3c1a486b771d8205446ede22d45b7bcc3bbc0e9ec44b5eb7df3b84d +payload: EVX 12 414350492044415441 +payload: EV 13 1 80000002 +payload: EVD 13 0004 3c585604e87f855973731fea83e21fab9392d2fc +payload: EVD 13 000b 67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450 +payload: EVD 13 000c 7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc +payload: EVX 13 61dfe48bca93d211aa0d00e098032b8c0900000000000000040000000000000042006f006f0074004f00720064006500720001000000 +payload: EV 14 1 80000002 +payload: EVD 14 0004 c9606f480a56f2e47a0a2f3646560e865a278f16 +payload: EVD 14 000b 81f8a397ab4accd4a3f4d72f7460833101565bef35ad16f3f471ae59de372394 +payload: EVD 14 000c ad073f06c3e96a1fd95ad8ff602b913155384775c6d258b6290f3d995cd3882f243e2d1a38182eb102857ca417cea960 +payload: EVX 14 61dfe48bca93d211aa0d00e098032b8c0800000000000000600000000000000042006f006f007400300030003000310001000000260055004500460049002000 +payload: EVX 14 6e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000005031710000100000000000000000000007fff0400 +payload: EVX 14 4eac0881119f594d850ee21a522c59b2 +payload: EV 15 1 80000002 +payload: EVD 15 0004 22a4f6ee9af6dba01d3528deb64b74b582fc182b +payload: EVD 15 000b 3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93 +payload: EVD 15 000c 23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298 +payload: EVX 15 61dfe48bca93d211aa0d00e098032b8c08000000000000003e0000000000000042006f006f0074003000300030003000090100002c0055006900410070007000 +payload: EVX 15 000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400 +payload: EV 16 4 80000007 +payload: EVD 16 0004 cd0fdb4531a6ec41be2753ba042637d6e5f7f256 +payload: EVD 16 000b 3d6772b4f84ed47595d72a2c4c5ffd15f5bb72c7507fe26f2aaee2c69d5633ba +payload: EVD 16 000c 77a0dab2312b4e1e57a84d865a21e5b2ee8d677a21012ada819d0a98988078d3d740f6346bfe0abaa938ca20439a8d71 +payload: EVX 16 43616c6c696e6720454649204170706c69636174696f6e2066726f6d20426f6f74204f7074696f6e +payload: EV 17 0 00000004 +payload: EVD 17 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 17 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 17 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 17 00000000 +payload: EV 18 1 00000004 +payload: EVD 18 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 18 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 18 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 18 00000000 +payload: EV 19 2 00000004 +payload: EVD 19 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 19 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 19 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 19 00000000 +payload: EV 20 3 00000004 +payload: EVD 20 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 20 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 20 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 20 00000000 +payload: EV 21 4 00000004 +payload: EVD 21 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 21 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 21 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 21 00000000 +payload: EV 22 5 00000004 +payload: EVD 22 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 22 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 22 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 22 00000000 +payload: EV 23 6 00000004 +payload: EVD 23 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 23 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 23 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 23 00000000 +payload: EV 24 7 800000e0 +payload: EVD 24 0004 3743bef3e27c83b55fab8e581edb0babd0e5aa1f +payload: EVD 24 000b d6aefec825a1261a16814f516f36b5a17fd390d90e55382d67eb98c7ebd100a0 +payload: EVD 24 000c 9b3fae4f33529ee5eee8f939f5731ef8154844625549c14d66d4ab599d412b654ff9f89b97fc866a1a8c5e8e1cbc411a +payload: EVX 24 cbb219d73a3d9645a3bcdad00e67656f02000000000000001d0500000000000064006200d2fa81d2888da44797925baa47bb1b8930820509308202f1a0030201 +payload: EVX 24 02021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b050030143112301006035504030c094c6f636b2e426f6f74301e170d +payload: EVX 24 3236313130353136353231395a170d3336313130323136353231395a30143112301006035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d +payload: EVX 24 01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d75dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff1194 +payload: EVX 24 20633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12 +payload: EVX 24 e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7 +payload: EVX 24 b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a70dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b8530 +payload: EVX 24 9f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b311 +payload: EVX 24 3472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c5499f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744 +payload: EVX 24 f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210 +payload: EVX 24 b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40 +payload: EVX 24 187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04160414759668b154bc35b65dfd0fb26390544d2b010aef301f060355 +payload: EVX 24 1d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d130101ff040530030101ff300d06092a864886f70d01010b050003820201 +payload: EVX 24 00690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f +payload: EVX 24 6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee4 +payload: EVX 24 24e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf313127e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd00 +payload: EVX 24 59fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba1957 +payload: EVX 24 7893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186 +payload: EVX 24 a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1daaec7289a34f4273c580030d395de84b94dee09e282440352568accad +payload: EVX 24 2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67dce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f48 +payload: EVX 24 5913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc35860eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b5 +payload: EVX 24 37 +payload: EV 25 5 80000006 +payload: EVD 25 0004 a118b29d69d0b21618fe2901d50ac89d3857184b +payload: EVD 25 000b 385ca0076e15cd7839928d4df75c639e921a773d8db41526e708d835bb37c304 +payload: EVD 25 000c 55315fb7c6acf66ec636d0182b70d632c49ec969c106dd308d5f9923d8886b32096bef147637e1857489c0b1d13ee371 +payload: EVX 25 4546492050415254000001005c000000e1cf75b8000000000100000000000000ff0f0200000000000008000000000000de0f0200000000004b434f4c4f42544f +payload: EVX 25 000000000000000002000000000000008000000080000000e3db00c2010000000000000028732ac11ff8d211ba4b00a0c93ec93b4b434f4c4f42544f00000000 +payload: EVX 25 000000010008000000000000ff0702000000000000000000000000004500460049002000530079007300740065006d0020005000610072007400690074006900 +payload: EVX 25 6f006e000000000000000000000000000000000000000000000000000000000000000000 +payload: EV 26 4 80000003 +payload: EVD 26 0004 f5a0bcd3674d8dee04f195c51e91d892685cf32c +payload: EVD 26 000b d5db6ffe3264fbacd3d8bd6dd7ae069417bd1ee807fbb1325c368145061d448b +payload: EVD 26 000c 1a7c91ad075a1f717764e9821fef8202e7dfe8a60a0556e7fe518aa694d277076bafe4c773eec3c954779579cd39fbda +payload: EVX 26 18e038be0000000008270500000000000000004001000000800000000000000002010c00d041030a000000000101060000050317100001000000000000000000 +payload: EVX 26 000004012a0001000000000800000000000000000200000000004b434f4c4f42544f00000000000000010202040430005c004500460049005c0042004f004f00 +payload: EVX 26 54005c0042004f004f0054005800360034002e0045004600490000007fff0400 +payload: ===EVENTLOG-END=== events=27 truncated=false +payload: holding ~60s so the serial console flushes... +payload: flush 1/6 (~10s) +payload: flush 2/6 (~20s) +payload: flush 3/6 (~30s) +payload: flush 4/6 (~40s) + +--- lb-p-c3 is STOPPING; stopped following --- diff --git a/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev-snp.log b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev-snp.log new file mode 100644 index 0000000..3932dc4 --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev-snp.log @@ -0,0 +1,370 @@ +Following console output for lb-p-snp (Ctrl+C to stop)... +--- +[=3h[=3hBdsDxe: loading Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +BdsDxe: starting Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) + +UEFI: Attempting to start image. +Description: UEFI nvme_card-pd +FilePath: PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +OptionNumber: 1. + +[ 0.050] stage0: version: 0.1.0 +[ 0.059] stage0: Secure Boot enforcing (User Mode) +[ 0.073] stage0: loading embedded ena driver (36864 bytes) +ena: DriverBinding installed (idle until an ENA device binds) +[ 0.107] stage0: ena driver started +[ 0.116] stage0: loading embedded gvnic driver (37888 bytes) +gvnic: DriverBinding installed (idle until a gVNIC device binds) +[ 0.149] stage0: gvnic driver started +gvnic: start(): probing gVNIC device... +gvnic: PCI 1ae0:0042 revision 0 +gvnic: memory+bus-master enable: SUCCESS +gvnic: msix=5 ntfy_blks=4 max_tx=2 max_rx=2 device_status=0x4 +gvnic: verify-driver-compatibility: PASSED +gvnic: AQ opcode 0x1: PASSED +gvnic: describe: max_reg_pages=8192 tx_entries=1024 rx_entries=1024 default_queues=2 mtu=1460 counters=4 tx_pages_per_qpl=64 rx_pages_per_qpl=1024 options=4 total_len=108 +gvnic: option 0x3 len=4 required_features=0x0 mask=0x5 +gvnic: option 0x6 len=12 required_features=0x0 mask=0x0 +gvnic: option 0xa len=8 required_features=0x0 mask=0x0 +gvnic: option 0xb len=12 required_features=0x0 mask=0x0 +gvnic: AQ opcode 0x2: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x5: PASSED +gvnic: AQ opcode 0x6: PASSED +gvnic: queues: tx db=12288 counter=3 rx db=4096 +gvnic: link up +gvnic: ExitBootServices reset hook armed +gvnic: probe OK mac=42:01:0a:94:00:28 mtu=1460 +gvnic: SNP installed on controller; networking should come up +gvnic: SNP initialized (rx posted, link up) +[ 4.540] stage0: network: OK 10.148.0.40 (DHCP 3761 ms) +[ 4.563] stage0: metadata: GCP 1031 bytes sha256:719647a83bb6232c86e61ce55d497cece9c75f060986da8ad4cc6817f4af0608 +[ 6.051] stage0: payload: 53760 bytes from http://storage.googleapis.com/lockboot-test/test/6d07ed8a8f9e/probe/x86_64/linux.efi +[ 6.082] stage0: verified: sha256:50693844dc6b21892782a6fd8e807fa5a070a065e697c1738c09ab5b1b6425c3 (sha256 pin) +[ 6.145] stage0: PCR14 extended +[ 6.153] stage0: starting payload +payload: hello from the chain-loaded UEFI payload +payload: mode SecureBoot=1 attrs=0x06 +payload: mode SetupMode=0 attrs=0x06 +payload: mode AuditMode=absent +payload: mode DeployedMode=absent +payload: active PCR banks: sha1 sha256 sha384 +payload: ===PCR-DUMP-BEGIN=== +payload: PCR sha1 00 8124f09f069c7d2d9acf5ce4eab928a7103a0bb2 +payload: PCR sha256 00 50597a27846e91d025eef597abbc89f72bff9af849094db97b0684d8bc4c515e +payload: PCR sha384 00 99df1a2dd3bb13aeb3eb4067e3081d58ec884ff31f15cd1e1998ec192abf43acb3406bd0a9a8c26f3e930ed6da80de66 +payload: PCR sha1 01 c9e1b2c972a72b288650c969f308d4f778988fa1 +payload: PCR sha256 01 2c4b6392e7382d5ae02afb6d3618d8fccfcc7298ba5e59d6c1a38ac671bc5e4d +payload: PCR sha384 01 7078e69c4ed83c58ee53c560f652134a96f24cdb3e25c94b54f62c1a1bf20c1b074695459484391a7517ba80c5b3a1e4 +payload: PCR sha1 02 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 02 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 02 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 03 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 03 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 03 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 04 b127c3ca0ff7145f084f5650e24ac02effc2a5a2 +payload: PCR sha256 04 4fd748b2e9a00ba87584cf2784fa713314fed2cf1d47914cbcb2594ec58113ed +payload: PCR sha384 04 f3dbcb1f503115ce4ec260e920ec13293987ad9df065e7cea4ee74afd7ea41d8c2111f95f32222c7a1d217062a16c1ce +payload: PCR sha1 05 5d4dbd79a85eaa98d853cca7f55bd6c73e811fe2 +payload: PCR sha256 05 170cbfef80de67b2cffebb54b21783e9677e54e06583da578d43feaf713edec2 +payload: PCR sha384 05 3a45453ededdc7575bea28f05b06a632fcff308c485c7f31aed3d1ab6635ce08224b0aae69034fc5023ef00ce8cd221b +payload: PCR sha1 06 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 06 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 06 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 07 34b9ca1f5762851ff8c1960805c7c5d9e684ea37 +payload: PCR sha256 07 ee5f65dcdc5f2fc2935854fe9eff263ddbb48a010dae39ba6b7ce4ae42f9f299 +payload: PCR sha384 07 12b7f936f5371d09741f1eca3de6867a84c0d4a5e5b5bfc88af1af9c6b7fef1422253abb852837d888b3f2863febf362 +payload: PCR sha1 08 0000000000000000000000000000000000000000 +payload: PCR sha256 08 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 08 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 09 0000000000000000000000000000000000000000 +payload: PCR sha256 09 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 09 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 10 0000000000000000000000000000000000000000 +payload: PCR sha256 10 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 10 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 11 0000000000000000000000000000000000000000 +payload: PCR sha256 11 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 11 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 12 0000000000000000000000000000000000000000 +payload: PCR sha256 12 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 12 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 13 0000000000000000000000000000000000000000 +payload: PCR sha256 13 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 13 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 14 bb92a71720866bdd79f646a15937d1cf8b7d59f7 +payload: PCR sha256 14 05f0a0d51a0815c787fce015608b7bfd0735b8b4fe7d67d1e8cfb5ad7937177b +payload: PCR sha384 14 20b60a460fe8746f5ea5de26d3e05eb9f3130f25638a3b282d84c7137010d04e3c7a7a06408e7b0cd87bd6129eac2d70 +payload: PCR sha1 15 0000000000000000000000000000000000000000 +payload: PCR sha256 15 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 15 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 16 0000000000000000000000000000000000000000 +payload: PCR sha256 16 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 16 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 17 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 18 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 19 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 20 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 21 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 22 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 23 0000000000000000000000000000000000000000 +payload: PCR sha256 23 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 23 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: ===PCR-DUMP-END=== +payload: ===EVENTLOG-BEGIN=== +payload: EV 0 0 00000003 +payload: EVD 0 0004 0000000000000000000000000000000000000000 +payload: EVD 0 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 0 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 0 53503830302d313535204576656e7433792b00008080fe03847c9f4f92986573699207c30d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 0 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e37000300000028000000468e85a27fa36a458c790c1fe48b65ff460069007200 +payload: EVX 0 6d007700610072006500520049004d0000000000000000000000000000000000 +payload: EV 1 0 00000003 +payload: EVD 1 0004 0000000000000000000000000000000000000000 +payload: EVD 1 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 1 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 1 53503830302d313535204576656e7433792b00008080fe03847c9f4f92986573699207c30d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 1 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e370001000000a800000068747470733a2f2f73746f726167652e676f6f676c65 +payload: EVX 1 617069732e636f6d2f6763655f7463625f696e746567726974792f6f766d665f7836345f63736d2f336366346531666562313863346537656361333465376537 +payload: EVX 1 63326663313535373963646231633739636333393233323134623663626333646333633336326238366434363533383666333332303437393465643031616261 +payload: EVX 1 33623334623362332e66642e7369676e65640000000000000000000000000000 +payload: EV 2 0 00000008 +payload: EVD 2 0004 4031fe1129fb826f12dcad169992cca9f4f56aa3 +payload: EVD 2 000b fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d +payload: EVD 2 000c 21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6 +payload: EVX 2 47004300450020005600690072007400750061006c0020004600690072006d0077006100720065002000760032000000 +payload: EV 3 0 00000011 +payload: EVD 3 0004 4999530d61b969b472c7ffd94526a5617d03e791 +payload: EVD 3 000b aa1cac024175dd47779c57e51248340b9629bb26138ce02b8b86c5ecc357d91b +payload: EVD 3 000c 5247b75d59aac0b9450bcf130af050bf95b480bb5f37833f1e0e4f36b761b83a3b02773f7f8b3b155d8af295a3476dcf +payload: EVX 3 474345204e6f6e486f7374496e666f0004000000000000000000000000000000 +payload: EV 4 7 80000001 +payload: EVD 4 0004 d4fdd1f14d4041494deb8fc990c45343d2277d08 +payload: EVD 4 000b ccfc4bb32888a345bc8aeadaba552b627d99348c767681ab3141f5b01e40a40e +payload: EVD 4 000c 2cded0c6f453d4c6f59c5e14ec61abc6b018314540a2367cba326a52aa2b315ccc08ce68a816ce09c6ef2ac7e514ae1f +payload: EVX 4 61dfe48bca93d211aa0d00e098032b8c0a00000000000000010000000000000053006500630075007200650042006f006f00740001 +payload: EV 5 7 80000001 +payload: EVD 5 0004 2a1c2af26638c0bd0ca8c77b23fe5957e2d8d9cb +payload: EVD 5 000b 8d9ae3c06688bb660a249396b43b3ecf88cf60087ffa4208de39b7b29456c476 +payload: EVD 5 000c a575ab2e3c72e29ca2ce67d3dbc8e0b9f18f8164155f62809dee1d4ec26afcf4da5faec8a6753b530e5a92daedb6be9d +payload: EVX 5 61dfe48bca93d211aa0d00e098032b8c0200000000000000390500000000000050004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 5 d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202142e67f90eed0214e922486266d2e13aecf724859d300d06092a864886f70d01010b +payload: EVX 5 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231385a170d3336313130323136353231385a3014311230100603 +payload: EVX 5 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100937c195fef10074e14d3578699870b5f88 +payload: EVX 5 3218707f8037d8408ae66fe7905e39a55f85454d2734e652f3db17ce055b265d500e8a6c02a0651d123c6a83729b4d19095ddf68a1084c4abc867c5d90ee06ea +payload: EVX 5 95cab0a23bf624b5e5da14608ff497e5dbf4acd73b3e1670171b02952f9426d748b373fadbed5662954f558bd336195dafc7367e138ae7573d1248aa5022a69f +payload: EVX 5 14fb67225e496553cc03ae2522dac33e14db1d2b1909b2af9c8673e19a3860d51d93ed0ed39125c466575ee0e3df0fa810046e3b89a3011c5fc5e8b57fd6e7e9 +payload: EVX 5 2e62922bc66dacd7023a29db65a22e9a81201ce5f8d51a67703408f5d57ac14fb8b9a97fbfeec8f40a065068a0998a22ead31e6cdedaba8660055dfa31817a30 +payload: EVX 5 dcf4719e2d1be07b4e1d3470244a493e15ba057f896d9daa24a402ca62d004f659d8898b7bec13f3371087cd711729771bed686bfb57db0e3f6c82bc5c9687fa +payload: EVX 5 1a8ba8fdee46ff9e851e63f512cfc1b166746e80a29a2192c689776f38ce690148cb828fc61e359a79b909f744f1cdf3fecb3a258b731bed975de2a8e9675bca +payload: EVX 5 c2b8e85843effba0a966c047efeceaede92486aa05a28787b20866f60cb9221a2a5fbf944a085347d7e15b4cacae2a15d73619830ff902c098081c9b9f67c291 +payload: EVX 5 293ac39442958c91934fe99bb777fe8af20ed5f665dc1d985c4d8ad2a786140024775481922a6fde667fbd509d02590203010001a3533051301d0603551d0e04 +payload: EVX 5 16041445952196b988d05de28bc89ccf3980cda0293db5301f0603551d2304183016801445952196b988d05de28bc89ccf3980cda0293db5300f0603551d1301 +payload: EVX 5 01ff040530030101ff300d06092a864886f70d01010b0500038202010010bcdf3477f835b7ac2ba98a573720d2111b5f2a139fa49c5b80f93d0f8bc6245efef6 +payload: EVX 5 87c777abc78aaa333be4e8ad67f9ddbc6710d5b078a216523a50a81f5cfab13fa9f81d3c0e67c4c89afd4dd84d640f3b0d5b70b9efaa334dfa9e526ee4391c81 +payload: EVX 5 68a1e5d5b0f101f59ca283a6a5067b49ed379efaa43be74d9238c4a23157bdeb2383ae781d55ca41fa00c63e48092f8c573f12a4e547cf84952b96f1715321a2 +payload: EVX 5 6846e97f9ac9c7bd630b29c8f332bc1ccf8f9c9073e4fc5ad4eb8cdb18049ed89a6880867e0dfacd964b87a03f146ee015c86e71bc305eff85496c1cee90bbbb +payload: EVX 5 3c4da52f1ac79ab55b2bd23aafc3237897537befae2d16721a37874aa72ccfae7927ff7b42a47674f9722f9c4e7e1dab07c96083126e8e109014b4573144b213 +payload: EVX 5 4f46387e5e8062b5721ee78374d30f12dd3513febc4132bab33671ec9b82ddc07f9e80b9e971868b89a2763e2da59b013644dd23c22493b06a4827d785433b35 +payload: EVX 5 5fc02b55159e8ebd14c6ec24fa1d6a5c0419d62085a8af97a9bc1a517c198df4b7bdda2ecc38c029eb30d03622993fcacacdff5af9692ec1f59a1dc86bb59945 +payload: EVX 5 f4bbd53f065d5b60604825b747e358e7cd4b079aba1ae6a07f4e47478716cd8ec4ae626c89d3bfabacef49cb7f232c6dcd58fb1865166e11a66db202385ffd1a +payload: EVX 5 514871ea946bd8ca43ccc0c8820754374cbebe47667b5f16320915c069 +payload: EV 6 7 80000001 +payload: EVD 6 0004 436802ee458c6f6444fb015e6bb8a6b8bbb6fac6 +payload: EVD 6 000b 8244c4379c9ec4ef010996e722850aca795b70603252ca746852f0fc10133754 +payload: EVD 6 000c 1594b6f4d7227bb8460f7913570cabfaaff47f6e8cd601343629d20c46f90c811ffcddfff72b0bffdcc13aa4c6bfa288 +payload: EVX 6 61dfe48bca93d211aa0d00e098032b8c030000000000000039050000000000004b0045004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d05 +payload: EVX 6 0000d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202147482b291dbb9f8035ba25640c46dd05e365f5206300d06092a864886f70d01 +payload: EVX 6 010b050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a301431123010 +payload: EVX 6 06035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100b082f3dfde4fd6cb90d21d52f4d827 +payload: EVX 6 1d0749aca2862bcef6350f1831759ac78e97e34c31950fae3a84b59fa4d32722d6eac1e073edc54e37f3c0dc39425c73c6cba9ee3e0419217158712c2fea85b1 +payload: EVX 6 cbe2eac487c4cdca79d4cefd288e6d94cc76d2d41d73e9514c6e62d3d16afdd877edcfc28911016a0bb1991ac898fdb3cac2f000ecaa9088dd97169b68b01e79 +payload: EVX 6 8f25b48dbf93908c903765375324b629aaa4be4367b2eea9fb590d1917b1653a05d1f8b06a6b4cba25a02c4e4e3853bcfeca80fb38412b723164fccc77c06c91 +payload: EVX 6 b087f2a46afe7474234982d31020e0d11b7251e4f1a5086a6d9543a2a539090901fcc7ddbda05298cb88f4edd4c49cf027867c567ba46e72c6f07aed58bc64f7 +payload: EVX 6 f00f5b7f4340c4a571511fd159191b213c52ac569e41c97780fe53c1f150cb8735badc9538a22801f61bee999e8e6f3345461790846fb9717ccc8406c4092d8b +payload: EVX 6 5548372c7ef930801a3e3b038a2494aa63a7c70c98f99fbb4ee159e9b9617d35b853cea35b214e7ee1aea1939d5c805b1f07b760aa901a3d834a260a9c76b7a3 +payload: EVX 6 da5eb8d5c4681950ad57bb89cb1dbb9ab600e481dfc678c373b5e772b682b97116b5828a247e43a7a050474ad8a64fed74c3652ff0755c718a6f8f309d32ee6e +payload: EVX 6 84478613aadb417d3d5f7a82b9f899d680505c6d5e902e7162535b27c38d76034165d592af22ffb3ae2538a507d24378410203010001a3533051301d0603551d +payload: EVX 6 0e04160414fafa70188a45b6c798385f07394d7f71727ce1c9301f0603551d23041830168014fafa70188a45b6c798385f07394d7f71727ce1c9300f0603551d +payload: EVX 6 130101ff040530030101ff300d06092a864886f70d01010b050003820201003feaabb2456875a3489dd3ce8dbc2cd7b2405c4a216011fcd5ad9e414574c90da9 +payload: EVX 6 9f10f60c9d6ba09b0e54b1bc654b33e3f2ab01f24fcef65d60db35a71681d695120c3aede9f05ffeb08524abe5f29f53b63ae99f7db2dfd25551764a88f775b5 +payload: EVX 6 1912c2b269caa6e7a6da4f48e7776887421242d6a47daa9310fa789e7a3a47afce65f721db9c1e41989d4aa36aeffe21a081150305807c50fb203a14a60dd18f +payload: EVX 6 4298a429e11dc814c8b502e82b71e9d17dbf8976fdcf1676873e1b10face239303927f9d67f59150224abbfdee78ad0e344abf42f997d9373fb96b4a74a280fd +payload: EVX 6 acbd6b8af3f3a662e78129b01d2fcedda4af580965dabbf29ed820f60aa425fbc290c6c67d83ece14be207daf56d3def0792f8ad37c838b07c8d1c69865562bc +payload: EVX 6 6a0c0556ea469a1c04e442a8342cac2e2f2c2d29dcb7f675fa883339b0a1e1122f67f1f1f43b4b705b86c77a8fb563911e05c87339df765f09f0e3510cb697c5 +payload: EVX 6 5201a808953be4d1faeb6b923953cb5e94058c0f74ca463de691f7a0be0a9f53260538273712d6a0672599becb402553c010e3f2384b5c6633da72f94e565bc5 +payload: EVX 6 91ec1dbc0ce3384971eb0ae51505a81470a7707137cf9b0764c32321003fe1e7df74ec16f2b972bbb46d45159266be94494528b00d78d81afddcaa7751dfb6d5 +payload: EVX 6 d84f59e5a5943da2f92b1ee634bcc046a0bbbc3e5ee38135a298e541b20a5d +payload: EV 7 7 80000001 +payload: EVD 7 0004 2667670b97b13aad582d8cb03740b2465aa4fc5f +payload: EVD 7 000b 9d441b749b0a78ad5ab401681c7330802e20bea2dbe166041c7180e4e162666b +payload: EVD 7 000c 93eb38a9463dff82194e7489b63c7f8f52e0637f1ad481debee2beedcb3a05bd498de4a41228248a614cab7e61bbcfd5 +payload: EVX 7 cbb219d73a3d9645a3bcdad00e67656f0200000000000000390500000000000064006200a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 7 d2fa81d2888da44797925baa47bb1b8930820509308202f1a003020102021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b +payload: EVX 7 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a3014311230100603 +payload: EVX 7 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d7 +payload: EVX 7 5dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff119420633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7 +payload: EVX 7 a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b +payload: EVX 7 88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a7 +payload: EVX 7 0dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b85309f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb +payload: EVX 7 7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b3113472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c549 +payload: EVX 7 9f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c +payload: EVX 7 4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064 +payload: EVX 7 a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04 +payload: EVX 7 160414759668b154bc35b65dfd0fb26390544d2b010aef301f0603551d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d1301 +payload: EVX 7 01ff040530030101ff300d06092a864886f70d01010b05000382020100690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be +payload: EVX 7 72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045 +payload: EVX 7 e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee424e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf31312 +payload: EVX 7 7e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd0059fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b +payload: EVX 7 2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba19577893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d +payload: EVX 7 7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1da +payload: EVX 7 aec7289a34f4273c580030d395de84b94dee09e282440352568accad2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67d +payload: EVX 7 ce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f485913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc3586 +payload: EVX 7 0eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b537 +payload: EV 8 7 80000001 +payload: EVD 8 0004 0aedaad2554e295446e5e92c3b900e01f028f2dc +payload: EVD 8 000b 1963d580fcc0cede165e23837b55335eebe18750c0b795883386026ea071e3c6 +payload: EVD 8 000c 5f95c5051ade2e2314961e4011150fbe3315c0b78c93b27be3ac8e4df73930e6ad82aa50ac3591d292ce364b04c850c7 +payload: EVX 8 cbb219d73a3d9645a3bcdad00e67656f03000000000000004c000000000000006400620078002616c4c14c509240aca941f9369343284c000000000000003000 +payload: EVX 8 0000a3a8baa01d04a848bc87c36d121b5e3de3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +payload: EV 9 7 00000004 +payload: EVD 9 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 9 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 9 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 9 00000000 +payload: EV 10 1 0000000a +payload: EVD 10 0004 c1ac6c23239ba9a474ef5c7faaf9b261e7685234 +payload: EVD 10 000b 548e071a742cc2c40760cd7ea4502d4651a73c9e8cdb50a4006fd4bfe7a8e1aa +payload: EVD 10 000c 656f76061588b9a8ef36fcfd68b327df8afc463bb3f1f73872d8fd3b2bff68fa87573b4d695b49036cc4b79c527099f4 +payload: EVX 10 414350492044415441 +payload: EV 11 1 0000000a +payload: EVD 11 0004 b333f729f4c6d09431aac15dda8ff5d42cdf2421 +payload: EVD 11 000b 803a0eab7ba1e37d1e553738d2d7f088eb98831b3b9c1f392f6aa35768b7d15c +payload: EVD 11 000c f231be23c57aec52f017f7854b075f32ad0e1d0912df6b276dace1907a066b8d4dad3356ab4d7f3f506fd64609ba1f02 +payload: EVX 11 414350492044415441 +payload: EV 12 1 0000000a +payload: EVD 12 0004 663725c393703a7a3b8020e0d636137e12dc6a22 +payload: EVD 12 000b 2c5245a32a7d96ad757615885992fc9441cc167f4bcf4dd9d19a02165c9efda2 +payload: EVD 12 000c 06bd3ca0355aa348c48637abef1d7ed7795be39cef15ad55614597f46b6bf3861e55cdc2a5f2df77ceee2f97e9b1b78b +payload: EVX 12 414350492044415441 +payload: EV 13 1 80000002 +payload: EVD 13 0004 3c585604e87f855973731fea83e21fab9392d2fc +payload: EVD 13 000b 67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450 +payload: EVD 13 000c 7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc +payload: EVX 13 61dfe48bca93d211aa0d00e098032b8c0900000000000000040000000000000042006f006f0074004f00720064006500720001000000 +payload: EV 14 1 80000002 +payload: EVD 14 0004 35c1797b66ce1f30fd5e9f510950cdbda9c99387 +payload: EVD 14 000b 2be7a459e309c7bb7888fb58283987fe1c0bd1d3c1be276bc9e97693e65c8d49 +payload: EVD 14 000c a25333c7aec2e0993034938c7f11893b3c2bcaf67e88c342a3d586f6f7fae2c6a1247a9ed86988080a6d4be497d4fbb6 +payload: EVX 14 61dfe48bca93d211aa0d00e098032b8c0800000000000000600000000000000042006f006f007400300030003000310001000000260055004500460049002000 +payload: EVX 14 6e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000004031710000100000000000000000000007fff0400 +payload: EVX 14 4eac0881119f594d850ee21a522c59b2 +payload: EV 15 1 80000002 +payload: EVD 15 0004 22a4f6ee9af6dba01d3528deb64b74b582fc182b +payload: EVD 15 000b 3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93 +payload: EVD 15 000c 23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298 +payload: EVX 15 61dfe48bca93d211aa0d00e098032b8c08000000000000003e0000000000000042006f006f0074003000300030003000090100002c0055006900410070007000 +payload: EVX 15 000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400 +payload: EV 16 4 80000007 +payload: EVD 16 0004 cd0fdb4531a6ec41be2753ba042637d6e5f7f256 +payload: EVD 16 000b 3d6772b4f84ed47595d72a2c4c5ffd15f5bb72c7507fe26f2aaee2c69d5633ba +payload: EVD 16 000c 77a0dab2312b4e1e57a84d865a21e5b2ee8d677a21012ada819d0a98988078d3d740f6346bfe0abaa938ca20439a8d71 +payload: EVX 16 43616c6c696e6720454649204170706c69636174696f6e2066726f6d20426f6f74204f7074696f6e +payload: EV 17 0 00000004 +payload: EVD 17 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 17 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 17 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 17 00000000 +payload: EV 18 1 00000004 +payload: EVD 18 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 18 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 18 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 18 00000000 +payload: EV 19 2 00000004 +payload: EVD 19 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 19 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 19 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 19 00000000 +payload: EV 20 3 00000004 +payload: EVD 20 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 20 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 20 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 20 00000000 +payload: EV 21 4 00000004 +payload: EVD 21 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 21 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 21 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 21 00000000 +payload: EV 22 5 00000004 +payload: EVD 22 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 22 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 22 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 22 00000000 +payload: EV 23 6 00000004 +payload: EVD 23 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 23 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 23 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 23 00000000 +payload: EV 24 7 800000e0 +payload: EVD 24 0004 3743bef3e27c83b55fab8e581edb0babd0e5aa1f +payload: EVD 24 000b d6aefec825a1261a16814f516f36b5a17fd390d90e55382d67eb98c7ebd100a0 +payload: EVD 24 000c 9b3fae4f33529ee5eee8f939f5731ef8154844625549c14d66d4ab599d412b654ff9f89b97fc866a1a8c5e8e1cbc411a +payload: EVX 24 cbb219d73a3d9645a3bcdad00e67656f02000000000000001d0500000000000064006200d2fa81d2888da44797925baa47bb1b8930820509308202f1a0030201 +payload: EVX 24 02021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b050030143112301006035504030c094c6f636b2e426f6f74301e170d +payload: EVX 24 3236313130353136353231395a170d3336313130323136353231395a30143112301006035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d +payload: EVX 24 01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d75dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff1194 +payload: EVX 24 20633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12 +payload: EVX 24 e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7 +payload: EVX 24 b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a70dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b8530 +payload: EVX 24 9f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b311 +payload: EVX 24 3472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c5499f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744 +payload: EVX 24 f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210 +payload: EVX 24 b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40 +payload: EVX 24 187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04160414759668b154bc35b65dfd0fb26390544d2b010aef301f060355 +payload: EVX 24 1d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d130101ff040530030101ff300d06092a864886f70d01010b050003820201 +payload: EVX 24 00690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f +payload: EVX 24 6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee4 +payload: EVX 24 24e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf313127e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd00 +payload: EVX 24 59fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba1957 +payload: EVX 24 7893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186 +payload: EVX 24 a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1daaec7289a34f4273c580030d395de84b94dee09e282440352568accad +payload: EVX 24 2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67dce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f48 +payload: EVX 24 5913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc35860eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b5 +payload: EVX 24 37 +payload: EV 25 5 80000006 +payload: EVD 25 0004 a118b29d69d0b21618fe2901d50ac89d3857184b +payload: EVD 25 000b 385ca0076e15cd7839928d4df75c639e921a773d8db41526e708d835bb37c304 +payload: EVD 25 000c 55315fb7c6acf66ec636d0182b70d632c49ec969c106dd308d5f9923d8886b32096bef147637e1857489c0b1d13ee371 +payload: EVX 25 4546492050415254000001005c000000e1cf75b8000000000100000000000000ff0f0200000000000008000000000000de0f0200000000004b434f4c4f42544f +payload: EVX 25 000000000000000002000000000000008000000080000000e3db00c2010000000000000028732ac11ff8d211ba4b00a0c93ec93b4b434f4c4f42544f00000000 +payload: EVX 25 000000010008000000000000ff0702000000000000000000000000004500460049002000530079007300740065006d0020005000610072007400690074006900 +payload: EVX 25 6f006e000000000000000000000000000000000000000000000000000000000000000000 +payload: EV 26 4 80000003 +payload: EVD 26 0004 f5a0bcd3674d8dee04f195c51e91d892685cf32c +payload: EVD 26 000b d5db6ffe3264fbacd3d8bd6dd7ae069417bd1ee807fbb1325c368145061d448b +payload: EVD 26 000c 1a7c91ad075a1f717764e9821fef8202e7dfe8a60a0556e7fe518aa694d277076bafe4c773eec3c954779579cd39fbda +payload: EVX 26 18e01dbd0000000008270500000000000000004001000000800000000000000002010c00d041030a000000000101060000040317100001000000000000000000 +payload: EVX 26 000004012a0001000000000800000000000000000200000000004b434f4c4f42544f00000000000000010202040430005c004500460049005c0042004f004f00 +payload: EVX 26 54005c0042004f004f0054005800360034002e0045004600490000007fff0400 +payload: ===EVENTLOG-END=== events=27 truncated=false +payload: holding ~60s so the serial console flushes... +payload: flush 1/6 (~10s) +payload: flush 2/6 (~20s) +payload: flush 3/6 (~30s) +payload: flush 4/6 (~40s) +payload: flush 5/6 (~50s) + +--- lb-p-snp is STOPPING; stopped following --- diff --git a/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev.log b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev.log new file mode 100644 index 0000000..a2f552b --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-sev.log @@ -0,0 +1,369 @@ +Following console output for lb-p-sev (Ctrl+C to stop)... +--- +[=3h[=3hBdsDxe: loading Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +BdsDxe: starting Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) + +UEFI: Attempting to start image. +Description: UEFI nvme_card-pd +FilePath: PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +OptionNumber: 1. + +[ 0.050] stage0: version: 0.1.0 +[ 0.052] stage0: Secure Boot enforcing (User Mode) +[ 0.055] stage0: loading embedded ena driver (36864 bytes) +ena: DriverBinding installed (idle until an ENA device binds) +[ 0.063] stage0: ena driver started +[ 0.065] stage0: loading embedded gvnic driver (37888 bytes) +gvnic: DriverBinding installed (idle until a gVNIC device binds) +[ 0.073] stage0: gvnic driver started +gvnic: start(): probing gVNIC device... +gvnic: PCI 1ae0:0042 revision 0 +gvnic: memory+bus-master enable: SUCCESS +gvnic: msix=5 ntfy_blks=4 max_tx=2 max_rx=2 device_status=0x4 +gvnic: verify-driver-compatibility: PASSED +gvnic: AQ opcode 0x1: PASSED +gvnic: describe: max_reg_pages=8192 tx_entries=1024 rx_entries=1024 default_queues=2 mtu=1460 counters=4 tx_pages_per_qpl=64 rx_pages_per_qpl=1024 options=4 total_len=108 +gvnic: option 0x3 len=4 required_features=0x0 mask=0x5 +gvnic: option 0x6 len=12 required_features=0x0 mask=0x0 +gvnic: option 0xa len=8 required_features=0x0 mask=0x0 +gvnic: option 0xb len=12 required_features=0x0 mask=0x0 +gvnic: AQ opcode 0x2: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x5: PASSED +gvnic: AQ opcode 0x6: PASSED +gvnic: queues: tx db=12288 counter=2 rx db=4096 +gvnic: link up +gvnic: ExitBootServices reset hook armed +gvnic: probe OK mac=42:01:0a:94:00:27 mtu=1460 +gvnic: SNP installed on controller; networking should come up +gvnic: SNP initialized (rx posted, link up) +[ 4.191] stage0: network: OK 10.148.0.39 (DHCP 3927 ms) +[ 4.203] stage0: metadata: GCP 1031 bytes sha256:719647a83bb6232c86e61ce55d497cece9c75f060986da8ad4cc6817f4af0608 +[ 5.704] stage0: payload: 53760 bytes from http://storage.googleapis.com/lockboot-test/test/6d07ed8a8f9e/probe/x86_64/linux.efi +[ 5.712] stage0: verified: sha256:50693844dc6b21892782a6fd8e807fa5a070a065e697c1738c09ab5b1b6425c3 (sha256 pin) +[ 5.730] stage0: PCR14 extended +[ 5.734] stage0: starting payload +payload: hello from the chain-loaded UEFI payload +payload: mode SecureBoot=1 attrs=0x06 +payload: mode SetupMode=0 attrs=0x06 +payload: mode AuditMode=absent +payload: mode DeployedMode=absent +payload: active PCR banks: sha1 sha256 sha384 +payload: ===PCR-DUMP-BEGIN=== +payload: PCR sha1 00 2aab58e23ea5120d70a3ebce56bd0e6d5e3035b7 +payload: PCR sha256 00 a0b5ff3383a1116bd7dc6df177c0c2d433b9ee1813ea958fa5d166a202cb2a85 +payload: PCR sha384 00 46384721a6cbbb845096ccf31553e49e0ee2f5f7a488e0d98ca676aaab6ebbb30888a5424d90d9eccbf59f461db8da35 +payload: PCR sha1 01 c9e1b2c972a72b288650c969f308d4f778988fa1 +payload: PCR sha256 01 2c4b6392e7382d5ae02afb6d3618d8fccfcc7298ba5e59d6c1a38ac671bc5e4d +payload: PCR sha384 01 7078e69c4ed83c58ee53c560f652134a96f24cdb3e25c94b54f62c1a1bf20c1b074695459484391a7517ba80c5b3a1e4 +payload: PCR sha1 02 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 02 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 02 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 03 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 03 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 03 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 04 b127c3ca0ff7145f084f5650e24ac02effc2a5a2 +payload: PCR sha256 04 4fd748b2e9a00ba87584cf2784fa713314fed2cf1d47914cbcb2594ec58113ed +payload: PCR sha384 04 f3dbcb1f503115ce4ec260e920ec13293987ad9df065e7cea4ee74afd7ea41d8c2111f95f32222c7a1d217062a16c1ce +payload: PCR sha1 05 5d4dbd79a85eaa98d853cca7f55bd6c73e811fe2 +payload: PCR sha256 05 170cbfef80de67b2cffebb54b21783e9677e54e06583da578d43feaf713edec2 +payload: PCR sha384 05 3a45453ededdc7575bea28f05b06a632fcff308c485c7f31aed3d1ab6635ce08224b0aae69034fc5023ef00ce8cd221b +payload: PCR sha1 06 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 06 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 06 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 07 34b9ca1f5762851ff8c1960805c7c5d9e684ea37 +payload: PCR sha256 07 ee5f65dcdc5f2fc2935854fe9eff263ddbb48a010dae39ba6b7ce4ae42f9f299 +payload: PCR sha384 07 12b7f936f5371d09741f1eca3de6867a84c0d4a5e5b5bfc88af1af9c6b7fef1422253abb852837d888b3f2863febf362 +payload: PCR sha1 08 0000000000000000000000000000000000000000 +payload: PCR sha256 08 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 08 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 09 0000000000000000000000000000000000000000 +payload: PCR sha256 09 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 09 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 10 0000000000000000000000000000000000000000 +payload: PCR sha256 10 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 10 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 11 0000000000000000000000000000000000000000 +payload: PCR sha256 11 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 11 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 12 0000000000000000000000000000000000000000 +payload: PCR sha256 12 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 12 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 13 0000000000000000000000000000000000000000 +payload: PCR sha256 13 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 13 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 14 bb92a71720866bdd79f646a15937d1cf8b7d59f7 +payload: PCR sha256 14 05f0a0d51a0815c787fce015608b7bfd0735b8b4fe7d67d1e8cfb5ad7937177b +payload: PCR sha384 14 20b60a460fe8746f5ea5de26d3e05eb9f3130f25638a3b282d84c7137010d04e3c7a7a06408e7b0cd87bd6129eac2d70 +payload: PCR sha1 15 0000000000000000000000000000000000000000 +payload: PCR sha256 15 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 15 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 16 0000000000000000000000000000000000000000 +payload: PCR sha256 16 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 16 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 17 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 18 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 19 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 20 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 21 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 22 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 23 0000000000000000000000000000000000000000 +payload: PCR sha256 23 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 23 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: ===PCR-DUMP-END=== +payload: ===EVENTLOG-BEGIN=== +payload: EV 0 0 00000003 +payload: EVD 0 0004 0000000000000000000000000000000000000000 +payload: EVD 0 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 0 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 0 53503830302d313535204576656e7433792b00005ab00b4224e4e84287cb4c442b29474f0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 0 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e37000300000028000000468e85a27fa36a458c790c1fe48b65ff460069007200 +payload: EVX 0 6d007700610072006500520049004d0000000000000000000000000000000000 +payload: EV 1 0 00000003 +payload: EVD 1 0004 0000000000000000000000000000000000000000 +payload: EVD 1 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 1 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 1 53503830302d313535204576656e7433792b00005ab00b4224e4e84287cb4c442b29474f0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 1 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e370001000000a800000068747470733a2f2f73746f726167652e676f6f676c65 +payload: EVX 1 617069732e636f6d2f6763655f7463625f696e746567726974792f6f766d665f7836345f63736d2f616264343066386231313036303234303461626366333963 +payload: EVX 1 62663231356663303839373538376339323139346634643762363932373534643534353961653131323236356466333036653766303862333236353763646635 +payload: EVX 1 61323862393664382e66642e7369676e65640000000000000000000000000000 +payload: EV 2 0 00000008 +payload: EVD 2 0004 4031fe1129fb826f12dcad169992cca9f4f56aa3 +payload: EVD 2 000b fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d +payload: EVD 2 000c 21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6 +payload: EVX 2 47004300450020005600690072007400750061006c0020004600690072006d0077006100720065002000760032000000 +payload: EV 3 0 00000011 +payload: EVD 3 0004 2b106cedd1631981619790bbc1afaa80cc6ecd3e +payload: EVD 3 000b 6ac9241348a80c5755a63bcd1865b9f6d5720f6e925dc869bb4694281c1510c5 +payload: EVD 3 000c 1167e32c3814259ea4809234cccfbd2785c32bde882833bb199d6df6bd989a49f45663e63ce11699fcd01250050f042c +payload: EVX 3 474345204e6f6e486f7374496e666f0001000000000000000000000000000000 +payload: EV 4 7 80000001 +payload: EVD 4 0004 d4fdd1f14d4041494deb8fc990c45343d2277d08 +payload: EVD 4 000b ccfc4bb32888a345bc8aeadaba552b627d99348c767681ab3141f5b01e40a40e +payload: EVD 4 000c 2cded0c6f453d4c6f59c5e14ec61abc6b018314540a2367cba326a52aa2b315ccc08ce68a816ce09c6ef2ac7e514ae1f +payload: EVX 4 61dfe48bca93d211aa0d00e098032b8c0a00000000000000010000000000000053006500630075007200650042006f006f00740001 +payload: EV 5 7 80000001 +payload: EVD 5 0004 2a1c2af26638c0bd0ca8c77b23fe5957e2d8d9cb +payload: EVD 5 000b 8d9ae3c06688bb660a249396b43b3ecf88cf60087ffa4208de39b7b29456c476 +payload: EVD 5 000c a575ab2e3c72e29ca2ce67d3dbc8e0b9f18f8164155f62809dee1d4ec26afcf4da5faec8a6753b530e5a92daedb6be9d +payload: EVX 5 61dfe48bca93d211aa0d00e098032b8c0200000000000000390500000000000050004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 5 d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202142e67f90eed0214e922486266d2e13aecf724859d300d06092a864886f70d01010b +payload: EVX 5 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231385a170d3336313130323136353231385a3014311230100603 +payload: EVX 5 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100937c195fef10074e14d3578699870b5f88 +payload: EVX 5 3218707f8037d8408ae66fe7905e39a55f85454d2734e652f3db17ce055b265d500e8a6c02a0651d123c6a83729b4d19095ddf68a1084c4abc867c5d90ee06ea +payload: EVX 5 95cab0a23bf624b5e5da14608ff497e5dbf4acd73b3e1670171b02952f9426d748b373fadbed5662954f558bd336195dafc7367e138ae7573d1248aa5022a69f +payload: EVX 5 14fb67225e496553cc03ae2522dac33e14db1d2b1909b2af9c8673e19a3860d51d93ed0ed39125c466575ee0e3df0fa810046e3b89a3011c5fc5e8b57fd6e7e9 +payload: EVX 5 2e62922bc66dacd7023a29db65a22e9a81201ce5f8d51a67703408f5d57ac14fb8b9a97fbfeec8f40a065068a0998a22ead31e6cdedaba8660055dfa31817a30 +payload: EVX 5 dcf4719e2d1be07b4e1d3470244a493e15ba057f896d9daa24a402ca62d004f659d8898b7bec13f3371087cd711729771bed686bfb57db0e3f6c82bc5c9687fa +payload: EVX 5 1a8ba8fdee46ff9e851e63f512cfc1b166746e80a29a2192c689776f38ce690148cb828fc61e359a79b909f744f1cdf3fecb3a258b731bed975de2a8e9675bca +payload: EVX 5 c2b8e85843effba0a966c047efeceaede92486aa05a28787b20866f60cb9221a2a5fbf944a085347d7e15b4cacae2a15d73619830ff902c098081c9b9f67c291 +payload: EVX 5 293ac39442958c91934fe99bb777fe8af20ed5f665dc1d985c4d8ad2a786140024775481922a6fde667fbd509d02590203010001a3533051301d0603551d0e04 +payload: EVX 5 16041445952196b988d05de28bc89ccf3980cda0293db5301f0603551d2304183016801445952196b988d05de28bc89ccf3980cda0293db5300f0603551d1301 +payload: EVX 5 01ff040530030101ff300d06092a864886f70d01010b0500038202010010bcdf3477f835b7ac2ba98a573720d2111b5f2a139fa49c5b80f93d0f8bc6245efef6 +payload: EVX 5 87c777abc78aaa333be4e8ad67f9ddbc6710d5b078a216523a50a81f5cfab13fa9f81d3c0e67c4c89afd4dd84d640f3b0d5b70b9efaa334dfa9e526ee4391c81 +payload: EVX 5 68a1e5d5b0f101f59ca283a6a5067b49ed379efaa43be74d9238c4a23157bdeb2383ae781d55ca41fa00c63e48092f8c573f12a4e547cf84952b96f1715321a2 +payload: EVX 5 6846e97f9ac9c7bd630b29c8f332bc1ccf8f9c9073e4fc5ad4eb8cdb18049ed89a6880867e0dfacd964b87a03f146ee015c86e71bc305eff85496c1cee90bbbb +payload: EVX 5 3c4da52f1ac79ab55b2bd23aafc3237897537befae2d16721a37874aa72ccfae7927ff7b42a47674f9722f9c4e7e1dab07c96083126e8e109014b4573144b213 +payload: EVX 5 4f46387e5e8062b5721ee78374d30f12dd3513febc4132bab33671ec9b82ddc07f9e80b9e971868b89a2763e2da59b013644dd23c22493b06a4827d785433b35 +payload: EVX 5 5fc02b55159e8ebd14c6ec24fa1d6a5c0419d62085a8af97a9bc1a517c198df4b7bdda2ecc38c029eb30d03622993fcacacdff5af9692ec1f59a1dc86bb59945 +payload: EVX 5 f4bbd53f065d5b60604825b747e358e7cd4b079aba1ae6a07f4e47478716cd8ec4ae626c89d3bfabacef49cb7f232c6dcd58fb1865166e11a66db202385ffd1a +payload: EVX 5 514871ea946bd8ca43ccc0c8820754374cbebe47667b5f16320915c069 +payload: EV 6 7 80000001 +payload: EVD 6 0004 436802ee458c6f6444fb015e6bb8a6b8bbb6fac6 +payload: EVD 6 000b 8244c4379c9ec4ef010996e722850aca795b70603252ca746852f0fc10133754 +payload: EVD 6 000c 1594b6f4d7227bb8460f7913570cabfaaff47f6e8cd601343629d20c46f90c811ffcddfff72b0bffdcc13aa4c6bfa288 +payload: EVX 6 61dfe48bca93d211aa0d00e098032b8c030000000000000039050000000000004b0045004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d05 +payload: EVX 6 0000d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202147482b291dbb9f8035ba25640c46dd05e365f5206300d06092a864886f70d01 +payload: EVX 6 010b050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a301431123010 +payload: EVX 6 06035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100b082f3dfde4fd6cb90d21d52f4d827 +payload: EVX 6 1d0749aca2862bcef6350f1831759ac78e97e34c31950fae3a84b59fa4d32722d6eac1e073edc54e37f3c0dc39425c73c6cba9ee3e0419217158712c2fea85b1 +payload: EVX 6 cbe2eac487c4cdca79d4cefd288e6d94cc76d2d41d73e9514c6e62d3d16afdd877edcfc28911016a0bb1991ac898fdb3cac2f000ecaa9088dd97169b68b01e79 +payload: EVX 6 8f25b48dbf93908c903765375324b629aaa4be4367b2eea9fb590d1917b1653a05d1f8b06a6b4cba25a02c4e4e3853bcfeca80fb38412b723164fccc77c06c91 +payload: EVX 6 b087f2a46afe7474234982d31020e0d11b7251e4f1a5086a6d9543a2a539090901fcc7ddbda05298cb88f4edd4c49cf027867c567ba46e72c6f07aed58bc64f7 +payload: EVX 6 f00f5b7f4340c4a571511fd159191b213c52ac569e41c97780fe53c1f150cb8735badc9538a22801f61bee999e8e6f3345461790846fb9717ccc8406c4092d8b +payload: EVX 6 5548372c7ef930801a3e3b038a2494aa63a7c70c98f99fbb4ee159e9b9617d35b853cea35b214e7ee1aea1939d5c805b1f07b760aa901a3d834a260a9c76b7a3 +payload: EVX 6 da5eb8d5c4681950ad57bb89cb1dbb9ab600e481dfc678c373b5e772b682b97116b5828a247e43a7a050474ad8a64fed74c3652ff0755c718a6f8f309d32ee6e +payload: EVX 6 84478613aadb417d3d5f7a82b9f899d680505c6d5e902e7162535b27c38d76034165d592af22ffb3ae2538a507d24378410203010001a3533051301d0603551d +payload: EVX 6 0e04160414fafa70188a45b6c798385f07394d7f71727ce1c9301f0603551d23041830168014fafa70188a45b6c798385f07394d7f71727ce1c9300f0603551d +payload: EVX 6 130101ff040530030101ff300d06092a864886f70d01010b050003820201003feaabb2456875a3489dd3ce8dbc2cd7b2405c4a216011fcd5ad9e414574c90da9 +payload: EVX 6 9f10f60c9d6ba09b0e54b1bc654b33e3f2ab01f24fcef65d60db35a71681d695120c3aede9f05ffeb08524abe5f29f53b63ae99f7db2dfd25551764a88f775b5 +payload: EVX 6 1912c2b269caa6e7a6da4f48e7776887421242d6a47daa9310fa789e7a3a47afce65f721db9c1e41989d4aa36aeffe21a081150305807c50fb203a14a60dd18f +payload: EVX 6 4298a429e11dc814c8b502e82b71e9d17dbf8976fdcf1676873e1b10face239303927f9d67f59150224abbfdee78ad0e344abf42f997d9373fb96b4a74a280fd +payload: EVX 6 acbd6b8af3f3a662e78129b01d2fcedda4af580965dabbf29ed820f60aa425fbc290c6c67d83ece14be207daf56d3def0792f8ad37c838b07c8d1c69865562bc +payload: EVX 6 6a0c0556ea469a1c04e442a8342cac2e2f2c2d29dcb7f675fa883339b0a1e1122f67f1f1f43b4b705b86c77a8fb563911e05c87339df765f09f0e3510cb697c5 +payload: EVX 6 5201a808953be4d1faeb6b923953cb5e94058c0f74ca463de691f7a0be0a9f53260538273712d6a0672599becb402553c010e3f2384b5c6633da72f94e565bc5 +payload: EVX 6 91ec1dbc0ce3384971eb0ae51505a81470a7707137cf9b0764c32321003fe1e7df74ec16f2b972bbb46d45159266be94494528b00d78d81afddcaa7751dfb6d5 +payload: EVX 6 d84f59e5a5943da2f92b1ee634bcc046a0bbbc3e5ee38135a298e541b20a5d +payload: EV 7 7 80000001 +payload: EVD 7 0004 2667670b97b13aad582d8cb03740b2465aa4fc5f +payload: EVD 7 000b 9d441b749b0a78ad5ab401681c7330802e20bea2dbe166041c7180e4e162666b +payload: EVD 7 000c 93eb38a9463dff82194e7489b63c7f8f52e0637f1ad481debee2beedcb3a05bd498de4a41228248a614cab7e61bbcfd5 +payload: EVX 7 cbb219d73a3d9645a3bcdad00e67656f0200000000000000390500000000000064006200a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 7 d2fa81d2888da44797925baa47bb1b8930820509308202f1a003020102021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b +payload: EVX 7 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a3014311230100603 +payload: EVX 7 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d7 +payload: EVX 7 5dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff119420633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7 +payload: EVX 7 a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b +payload: EVX 7 88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a7 +payload: EVX 7 0dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b85309f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb +payload: EVX 7 7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b3113472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c549 +payload: EVX 7 9f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c +payload: EVX 7 4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064 +payload: EVX 7 a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04 +payload: EVX 7 160414759668b154bc35b65dfd0fb26390544d2b010aef301f0603551d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d1301 +payload: EVX 7 01ff040530030101ff300d06092a864886f70d01010b05000382020100690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be +payload: EVX 7 72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045 +payload: EVX 7 e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee424e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf31312 +payload: EVX 7 7e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd0059fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b +payload: EVX 7 2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba19577893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d +payload: EVX 7 7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1da +payload: EVX 7 aec7289a34f4273c580030d395de84b94dee09e282440352568accad2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67d +payload: EVX 7 ce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f485913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc3586 +payload: EVX 7 0eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b537 +payload: EV 8 7 80000001 +payload: EVD 8 0004 0aedaad2554e295446e5e92c3b900e01f028f2dc +payload: EVD 8 000b 1963d580fcc0cede165e23837b55335eebe18750c0b795883386026ea071e3c6 +payload: EVD 8 000c 5f95c5051ade2e2314961e4011150fbe3315c0b78c93b27be3ac8e4df73930e6ad82aa50ac3591d292ce364b04c850c7 +payload: EVX 8 cbb219d73a3d9645a3bcdad00e67656f03000000000000004c000000000000006400620078002616c4c14c509240aca941f9369343284c000000000000003000 +payload: EVX 8 0000a3a8baa01d04a848bc87c36d121b5e3de3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +payload: EV 9 7 00000004 +payload: EVD 9 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 9 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 9 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 9 00000000 +payload: EV 10 1 0000000a +payload: EVD 10 0004 c1ac6c23239ba9a474ef5c7faaf9b261e7685234 +payload: EVD 10 000b 548e071a742cc2c40760cd7ea4502d4651a73c9e8cdb50a4006fd4bfe7a8e1aa +payload: EVD 10 000c 656f76061588b9a8ef36fcfd68b327df8afc463bb3f1f73872d8fd3b2bff68fa87573b4d695b49036cc4b79c527099f4 +payload: EVX 10 414350492044415441 +payload: EV 11 1 0000000a +payload: EVD 11 0004 b333f729f4c6d09431aac15dda8ff5d42cdf2421 +payload: EVD 11 000b 803a0eab7ba1e37d1e553738d2d7f088eb98831b3b9c1f392f6aa35768b7d15c +payload: EVD 11 000c f231be23c57aec52f017f7854b075f32ad0e1d0912df6b276dace1907a066b8d4dad3356ab4d7f3f506fd64609ba1f02 +payload: EVX 11 414350492044415441 +payload: EV 12 1 0000000a +payload: EVD 12 0004 663725c393703a7a3b8020e0d636137e12dc6a22 +payload: EVD 12 000b 2c5245a32a7d96ad757615885992fc9441cc167f4bcf4dd9d19a02165c9efda2 +payload: EVD 12 000c 06bd3ca0355aa348c48637abef1d7ed7795be39cef15ad55614597f46b6bf3861e55cdc2a5f2df77ceee2f97e9b1b78b +payload: EVX 12 414350492044415441 +payload: EV 13 1 80000002 +payload: EVD 13 0004 3c585604e87f855973731fea83e21fab9392d2fc +payload: EVD 13 000b 67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450 +payload: EVD 13 000c 7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc +payload: EVX 13 61dfe48bca93d211aa0d00e098032b8c0900000000000000040000000000000042006f006f0074004f00720064006500720001000000 +payload: EV 14 1 80000002 +payload: EVD 14 0004 35c1797b66ce1f30fd5e9f510950cdbda9c99387 +payload: EVD 14 000b 2be7a459e309c7bb7888fb58283987fe1c0bd1d3c1be276bc9e97693e65c8d49 +payload: EVD 14 000c a25333c7aec2e0993034938c7f11893b3c2bcaf67e88c342a3d586f6f7fae2c6a1247a9ed86988080a6d4be497d4fbb6 +payload: EVX 14 61dfe48bca93d211aa0d00e098032b8c0800000000000000600000000000000042006f006f007400300030003000310001000000260055004500460049002000 +payload: EVX 14 6e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000004031710000100000000000000000000007fff0400 +payload: EVX 14 4eac0881119f594d850ee21a522c59b2 +payload: EV 15 1 80000002 +payload: EVD 15 0004 22a4f6ee9af6dba01d3528deb64b74b582fc182b +payload: EVD 15 000b 3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93 +payload: EVD 15 000c 23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298 +payload: EVX 15 61dfe48bca93d211aa0d00e098032b8c08000000000000003e0000000000000042006f006f0074003000300030003000090100002c0055006900410070007000 +payload: EVX 15 000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400 +payload: EV 16 4 80000007 +payload: EVD 16 0004 cd0fdb4531a6ec41be2753ba042637d6e5f7f256 +payload: EVD 16 000b 3d6772b4f84ed47595d72a2c4c5ffd15f5bb72c7507fe26f2aaee2c69d5633ba +payload: EVD 16 000c 77a0dab2312b4e1e57a84d865a21e5b2ee8d677a21012ada819d0a98988078d3d740f6346bfe0abaa938ca20439a8d71 +payload: EVX 16 43616c6c696e6720454649204170706c69636174696f6e2066726f6d20426f6f74204f7074696f6e +payload: EV 17 0 00000004 +payload: EVD 17 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 17 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 17 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 17 00000000 +payload: EV 18 1 00000004 +payload: EVD 18 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 18 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 18 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 18 00000000 +payload: EV 19 2 00000004 +payload: EVD 19 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 19 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 19 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 19 00000000 +payload: EV 20 3 00000004 +payload: EVD 20 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 20 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 20 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 20 00000000 +payload: EV 21 4 00000004 +payload: EVD 21 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 21 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 21 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 21 00000000 +payload: EV 22 5 00000004 +payload: EVD 22 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 22 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 22 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 22 00000000 +payload: EV 23 6 00000004 +payload: EVD 23 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 23 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 23 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 23 00000000 +payload: EV 24 7 800000e0 +payload: EVD 24 0004 3743bef3e27c83b55fab8e581edb0babd0e5aa1f +payload: EVD 24 000b d6aefec825a1261a16814f516f36b5a17fd390d90e55382d67eb98c7ebd100a0 +payload: EVD 24 000c 9b3fae4f33529ee5eee8f939f5731ef8154844625549c14d66d4ab599d412b654ff9f89b97fc866a1a8c5e8e1cbc411a +payload: EVX 24 cbb219d73a3d9645a3bcdad00e67656f02000000000000001d0500000000000064006200d2fa81d2888da44797925baa47bb1b8930820509308202f1a0030201 +payload: EVX 24 02021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b050030143112301006035504030c094c6f636b2e426f6f74301e170d +payload: EVX 24 3236313130353136353231395a170d3336313130323136353231395a30143112301006035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d +payload: EVX 24 01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d75dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff1194 +payload: EVX 24 20633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12 +payload: EVX 24 e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7 +payload: EVX 24 b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a70dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b8530 +payload: EVX 24 9f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b311 +payload: EVX 24 3472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c5499f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744 +payload: EVX 24 f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210 +payload: EVX 24 b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40 +payload: EVX 24 187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04160414759668b154bc35b65dfd0fb26390544d2b010aef301f060355 +payload: EVX 24 1d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d130101ff040530030101ff300d06092a864886f70d01010b050003820201 +payload: EVX 24 00690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f +payload: EVX 24 6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee4 +payload: EVX 24 24e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf313127e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd00 +payload: EVX 24 59fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba1957 +payload: EVX 24 7893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186 +payload: EVX 24 a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1daaec7289a34f4273c580030d395de84b94dee09e282440352568accad +payload: EVX 24 2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67dce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f48 +payload: EVX 24 5913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc35860eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b5 +payload: EVX 24 37 +payload: EV 25 5 80000006 +payload: EVD 25 0004 a118b29d69d0b21618fe2901d50ac89d3857184b +payload: EVD 25 000b 385ca0076e15cd7839928d4df75c639e921a773d8db41526e708d835bb37c304 +payload: EVD 25 000c 55315fb7c6acf66ec636d0182b70d632c49ec969c106dd308d5f9923d8886b32096bef147637e1857489c0b1d13ee371 +payload: EVX 25 4546492050415254000001005c000000e1cf75b8000000000100000000000000ff0f0200000000000008000000000000de0f0200000000004b434f4c4f42544f +payload: EVX 25 000000000000000002000000000000008000000080000000e3db00c2010000000000000028732ac11ff8d211ba4b00a0c93ec93b4b434f4c4f42544f00000000 +payload: EVX 25 000000010008000000000000ff0702000000000000000000000000004500460049002000530079007300740065006d0020005000610072007400690074006900 +payload: EVX 25 6f006e000000000000000000000000000000000000000000000000000000000000000000 +payload: EV 26 4 80000003 +payload: EVD 26 0004 f5a0bcd3674d8dee04f195c51e91d892685cf32c +payload: EVD 26 000b d5db6ffe3264fbacd3d8bd6dd7ae069417bd1ee807fbb1325c368145061d448b +payload: EVD 26 000c 1a7c91ad075a1f717764e9821fef8202e7dfe8a60a0556e7fe518aa694d277076bafe4c773eec3c954779579cd39fbda +payload: EVX 26 18e05ebd0000000008270500000000000000004001000000800000000000000002010c00d041030a000000000101060000040317100001000000000000000000 +payload: EVX 26 000004012a0001000000000800000000000000000200000000004b434f4c4f42544f00000000000000010202040430005c004500460049005c0042004f004f00 +payload: EVX 26 54005c0042004f004f0054005800360034002e0045004600490000007fff0400 +payload: ===EVENTLOG-END=== events=27 truncated=false +payload: holding ~60s so the serial console flushes... +payload: flush 1/6 (~10s) +payload: flush 2/6 (~20s) +payload: flush 3/6 (~30s) +payload: flush 4/6 (~40s) + +--- lb-p-sev is TERMINATED; stopped following --- diff --git a/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-shielded.log b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-shielded.log new file mode 100644 index 0000000..572c30b --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-n2d-standard-2-shielded.log @@ -0,0 +1,371 @@ +CREATED +Following console output for lb-p-shd (Ctrl+C to stop)... +--- +[=3h[=3hBdsDxe: loading Boot0001 "UEFI Google PersistentDisk " from PciRoot(0x0)/Pci(0x3,0x0)/Scsi(0x1,0x0) +BdsDxe: starting Boot0001 "UEFI Google PersistentDisk " from PciRoot(0x0)/Pci(0x3,0x0)/Scsi(0x1,0x0) + +UEFI: Attempting to start image. +Description: UEFI Google PersistentDisk +FilePath: PciRoot(0x0)/Pci(0x3,0x0)/Scsi(0x1,0x0) +OptionNumber: 1. + +[ 0.050] stage0: version: 0.1.0 +[ 0.052] stage0: Secure Boot enforcing (User Mode) +[ 0.054] stage0: loading embedded ena driver (36864 bytes) +ena: DriverBinding installed (idle until an ENA device binds) +[ 0.062] stage0: ena driver started +[ 0.065] stage0: loading embedded gvnic driver (37888 bytes) +gvnic: DriverBinding installed (idle until a gVNIC device binds) +[ 0.075] stage0: gvnic driver started +gvnic: start(): probing gVNIC device... +gvnic: PCI 1ae0:0042 revision 0 +gvnic: memory+bus-master enable: SUCCESS +gvnic: msix=3 ntfy_blks=2 max_tx=1 max_rx=1 device_status=0x4 +gvnic: verify-driver-compatibility: PASSED +gvnic: AQ opcode 0x1: PASSED +gvnic: describe: max_reg_pages=4096 tx_entries=1024 rx_entries=1024 default_queues=1 mtu=1460 counters=2 tx_pages_per_qpl=64 rx_pages_per_qpl=1024 options=4 total_len=108 +gvnic: option 0x3 len=4 required_features=0x0 mask=0x5 +gvnic: option 0x6 len=12 required_features=0x0 mask=0x0 +gvnic: option 0xa len=8 required_features=0x0 mask=0x0 +gvnic: option 0xb len=12 required_features=0x0 mask=0x0 +gvnic: AQ opcode 0x2: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x5: PASSED +gvnic: AQ opcode 0x6: PASSED +gvnic: queues: tx db=12288 counter=1 rx db=4096 +gvnic: link up +gvnic: ExitBootServices reset hook armed +gvnic: probe OK mac=42:01:0a:94:00:26 mtu=1460 +gvnic: SNP installed on controller; networking should come up +gvnic: SNP initialized (rx posted, link up) +[ 4.212] stage0: network: OK 10.148.0.38 (DHCP 3947 ms) +[ 4.221] stage0: metadata: GCP 1031 bytes sha256:719647a83bb6232c86e61ce55d497cece9c75f060986da8ad4cc6817f4af0608 +[ 5.714] stage0: payload: 53760 bytes from http://storage.googleapis.com/lockboot-test/test/6d07ed8a8f9e/probe/x86_64/linux.efi +[ 5.723] stage0: verified: sha256:50693844dc6b21892782a6fd8e807fa5a070a065e697c1738c09ab5b1b6425c3 (sha256 pin) +[ 5.740] stage0: PCR14 extended +[ 5.743] stage0: starting payload +payload: hello from the chain-loaded UEFI payload +payload: mode SecureBoot=1 attrs=0x06 +payload: mode SetupMode=0 attrs=0x06 +payload: mode AuditMode=absent +payload: mode DeployedMode=absent +payload: active PCR banks: sha1 sha256 sha384 +payload: ===PCR-DUMP-BEGIN=== +payload: PCR sha1 00 d0a51b47f9a0dfef1bc16d318d0b5bc5687fd602 +payload: PCR sha256 00 d0c70a9310cd0b55767084333022ce53f42befbb69c059ee6c0a32766f160783 +payload: PCR sha384 00 3db0db543323f57b97895f55053129b87c083ef11559eede3a1a4c33a79c0e54ed1c14f2a767a38a51fdbacbefc7014f +payload: PCR sha1 01 63fea0603f7e5677ac69fcb8bfcdf040e0650441 +payload: PCR sha256 01 09b32fdfdbc88daba26307bbb54838dfa1ffdcd76da05e74ecdf17f2f650a593 +payload: PCR sha384 01 2ab006db6d1d522d75d3207b23f8c7196161c6cdf9071e0714a65f63d451804d74abd730dcf48e9d13daa1943ff3f0b6 +payload: PCR sha1 02 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 02 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 02 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 03 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 03 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 03 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 04 b127c3ca0ff7145f084f5650e24ac02effc2a5a2 +payload: PCR sha256 04 4fd748b2e9a00ba87584cf2784fa713314fed2cf1d47914cbcb2594ec58113ed +payload: PCR sha384 04 f3dbcb1f503115ce4ec260e920ec13293987ad9df065e7cea4ee74afd7ea41d8c2111f95f32222c7a1d217062a16c1ce +payload: PCR sha1 05 5d4dbd79a85eaa98d853cca7f55bd6c73e811fe2 +payload: PCR sha256 05 170cbfef80de67b2cffebb54b21783e9677e54e06583da578d43feaf713edec2 +payload: PCR sha384 05 3a45453ededdc7575bea28f05b06a632fcff308c485c7f31aed3d1ab6635ce08224b0aae69034fc5023ef00ce8cd221b +payload: PCR sha1 06 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 06 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 06 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 07 34b9ca1f5762851ff8c1960805c7c5d9e684ea37 +payload: PCR sha256 07 ee5f65dcdc5f2fc2935854fe9eff263ddbb48a010dae39ba6b7ce4ae42f9f299 +payload: PCR sha384 07 12b7f936f5371d09741f1eca3de6867a84c0d4a5e5b5bfc88af1af9c6b7fef1422253abb852837d888b3f2863febf362 +payload: PCR sha1 08 0000000000000000000000000000000000000000 +payload: PCR sha256 08 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 08 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 09 0000000000000000000000000000000000000000 +payload: PCR sha256 09 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 09 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 10 0000000000000000000000000000000000000000 +payload: PCR sha256 10 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 10 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 11 0000000000000000000000000000000000000000 +payload: PCR sha256 11 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 11 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 12 0000000000000000000000000000000000000000 +payload: PCR sha256 12 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 12 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 13 0000000000000000000000000000000000000000 +payload: PCR sha256 13 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 13 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 14 bb92a71720866bdd79f646a15937d1cf8b7d59f7 +payload: PCR sha256 14 05f0a0d51a0815c787fce015608b7bfd0735b8b4fe7d67d1e8cfb5ad7937177b +payload: PCR sha384 14 20b60a460fe8746f5ea5de26d3e05eb9f3130f25638a3b282d84c7137010d04e3c7a7a06408e7b0cd87bd6129eac2d70 +payload: PCR sha1 15 0000000000000000000000000000000000000000 +payload: PCR sha256 15 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 15 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 16 0000000000000000000000000000000000000000 +payload: PCR sha256 16 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 16 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 17 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 18 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 19 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 20 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 21 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 22 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 23 0000000000000000000000000000000000000000 +payload: PCR sha256 23 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 23 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: ===PCR-DUMP-END=== +payload: ===EVENTLOG-BEGIN=== +payload: EV 0 0 00000003 +payload: EVD 0 0004 0000000000000000000000000000000000000000 +payload: EVD 0 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 0 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 0 53503830302d313535204576656e7433792b00005ab00b4224e4e84287cb4c442b29474f0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 0 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e37000300000028000000468e85a27fa36a458c790c1fe48b65ff460069007200 +payload: EVX 0 6d007700610072006500520049004d0000000000000000000000000000000000 +payload: EV 1 0 00000003 +payload: EVD 1 0004 0000000000000000000000000000000000000000 +payload: EVD 1 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 1 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 1 53503830302d313535204576656e7433792b00005ab00b4224e4e84287cb4c442b29474f0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 1 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e370001000000a800000068747470733a2f2f73746f726167652e676f6f676c65 +payload: EVX 1 617069732e636f6d2f6763655f7463625f696e746567726974792f6f766d665f7836345f63736d2f616264343066386231313036303234303461626366333963 +payload: EVX 1 62663231356663303839373538376339323139346634643762363932373534643534353961653131323236356466333036653766303862333236353763646635 +payload: EVX 1 61323862393664382e66642e7369676e65640000000000000000000000000000 +payload: EV 2 0 00000008 +payload: EVD 2 0004 4031fe1129fb826f12dcad169992cca9f4f56aa3 +payload: EVD 2 000b fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d +payload: EVD 2 000c 21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6 +payload: EVX 2 47004300450020005600690072007400750061006c0020004600690072006d0077006100720065002000760032000000 +payload: EV 3 0 00000011 +payload: EVD 3 0004 9e8af742718df04092551f27c117723769acfe7e +payload: EVD 3 000b 7b74dea34ce9b49755ab1babe8bac9ad528d3d5addec4e2fa298e3ae68fd276f +payload: EVD 3 000c a74de6271fa4ad2b7b1846f1d40c28eb103f5ee055abc9883f2ca7d9bedf8ec8c848fce5aa0ad22f1750ce78f5bbf15e +payload: EVX 3 474345204e6f6e486f7374496e666f0000000000000000000000000000000000 +payload: EV 4 7 80000001 +payload: EVD 4 0004 d4fdd1f14d4041494deb8fc990c45343d2277d08 +payload: EVD 4 000b ccfc4bb32888a345bc8aeadaba552b627d99348c767681ab3141f5b01e40a40e +payload: EVD 4 000c 2cded0c6f453d4c6f59c5e14ec61abc6b018314540a2367cba326a52aa2b315ccc08ce68a816ce09c6ef2ac7e514ae1f +payload: EVX 4 61dfe48bca93d211aa0d00e098032b8c0a00000000000000010000000000000053006500630075007200650042006f006f00740001 +payload: EV 5 7 80000001 +payload: EVD 5 0004 2a1c2af26638c0bd0ca8c77b23fe5957e2d8d9cb +payload: EVD 5 000b 8d9ae3c06688bb660a249396b43b3ecf88cf60087ffa4208de39b7b29456c476 +payload: EVD 5 000c a575ab2e3c72e29ca2ce67d3dbc8e0b9f18f8164155f62809dee1d4ec26afcf4da5faec8a6753b530e5a92daedb6be9d +payload: EVX 5 61dfe48bca93d211aa0d00e098032b8c0200000000000000390500000000000050004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 5 d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202142e67f90eed0214e922486266d2e13aecf724859d300d06092a864886f70d01010b +payload: EVX 5 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231385a170d3336313130323136353231385a3014311230100603 +payload: EVX 5 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100937c195fef10074e14d3578699870b5f88 +payload: EVX 5 3218707f8037d8408ae66fe7905e39a55f85454d2734e652f3db17ce055b265d500e8a6c02a0651d123c6a83729b4d19095ddf68a1084c4abc867c5d90ee06ea +payload: EVX 5 95cab0a23bf624b5e5da14608ff497e5dbf4acd73b3e1670171b02952f9426d748b373fadbed5662954f558bd336195dafc7367e138ae7573d1248aa5022a69f +payload: EVX 5 14fb67225e496553cc03ae2522dac33e14db1d2b1909b2af9c8673e19a3860d51d93ed0ed39125c466575ee0e3df0fa810046e3b89a3011c5fc5e8b57fd6e7e9 +payload: EVX 5 2e62922bc66dacd7023a29db65a22e9a81201ce5f8d51a67703408f5d57ac14fb8b9a97fbfeec8f40a065068a0998a22ead31e6cdedaba8660055dfa31817a30 +payload: EVX 5 dcf4719e2d1be07b4e1d3470244a493e15ba057f896d9daa24a402ca62d004f659d8898b7bec13f3371087cd711729771bed686bfb57db0e3f6c82bc5c9687fa +payload: EVX 5 1a8ba8fdee46ff9e851e63f512cfc1b166746e80a29a2192c689776f38ce690148cb828fc61e359a79b909f744f1cdf3fecb3a258b731bed975de2a8e9675bca +payload: EVX 5 c2b8e85843effba0a966c047efeceaede92486aa05a28787b20866f60cb9221a2a5fbf944a085347d7e15b4cacae2a15d73619830ff902c098081c9b9f67c291 +payload: EVX 5 293ac39442958c91934fe99bb777fe8af20ed5f665dc1d985c4d8ad2a786140024775481922a6fde667fbd509d02590203010001a3533051301d0603551d0e04 +payload: EVX 5 16041445952196b988d05de28bc89ccf3980cda0293db5301f0603551d2304183016801445952196b988d05de28bc89ccf3980cda0293db5300f0603551d1301 +payload: EVX 5 01ff040530030101ff300d06092a864886f70d01010b0500038202010010bcdf3477f835b7ac2ba98a573720d2111b5f2a139fa49c5b80f93d0f8bc6245efef6 +payload: EVX 5 87c777abc78aaa333be4e8ad67f9ddbc6710d5b078a216523a50a81f5cfab13fa9f81d3c0e67c4c89afd4dd84d640f3b0d5b70b9efaa334dfa9e526ee4391c81 +payload: EVX 5 68a1e5d5b0f101f59ca283a6a5067b49ed379efaa43be74d9238c4a23157bdeb2383ae781d55ca41fa00c63e48092f8c573f12a4e547cf84952b96f1715321a2 +payload: EVX 5 6846e97f9ac9c7bd630b29c8f332bc1ccf8f9c9073e4fc5ad4eb8cdb18049ed89a6880867e0dfacd964b87a03f146ee015c86e71bc305eff85496c1cee90bbbb +payload: EVX 5 3c4da52f1ac79ab55b2bd23aafc3237897537befae2d16721a37874aa72ccfae7927ff7b42a47674f9722f9c4e7e1dab07c96083126e8e109014b4573144b213 +payload: EVX 5 4f46387e5e8062b5721ee78374d30f12dd3513febc4132bab33671ec9b82ddc07f9e80b9e971868b89a2763e2da59b013644dd23c22493b06a4827d785433b35 +payload: EVX 5 5fc02b55159e8ebd14c6ec24fa1d6a5c0419d62085a8af97a9bc1a517c198df4b7bdda2ecc38c029eb30d03622993fcacacdff5af9692ec1f59a1dc86bb59945 +payload: EVX 5 f4bbd53f065d5b60604825b747e358e7cd4b079aba1ae6a07f4e47478716cd8ec4ae626c89d3bfabacef49cb7f232c6dcd58fb1865166e11a66db202385ffd1a +payload: EVX 5 514871ea946bd8ca43ccc0c8820754374cbebe47667b5f16320915c069 +payload: EV 6 7 80000001 +payload: EVD 6 0004 436802ee458c6f6444fb015e6bb8a6b8bbb6fac6 +payload: EVD 6 000b 8244c4379c9ec4ef010996e722850aca795b70603252ca746852f0fc10133754 +payload: EVD 6 000c 1594b6f4d7227bb8460f7913570cabfaaff47f6e8cd601343629d20c46f90c811ffcddfff72b0bffdcc13aa4c6bfa288 +payload: EVX 6 61dfe48bca93d211aa0d00e098032b8c030000000000000039050000000000004b0045004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d05 +payload: EVX 6 0000d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202147482b291dbb9f8035ba25640c46dd05e365f5206300d06092a864886f70d01 +payload: EVX 6 010b050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a301431123010 +payload: EVX 6 06035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100b082f3dfde4fd6cb90d21d52f4d827 +payload: EVX 6 1d0749aca2862bcef6350f1831759ac78e97e34c31950fae3a84b59fa4d32722d6eac1e073edc54e37f3c0dc39425c73c6cba9ee3e0419217158712c2fea85b1 +payload: EVX 6 cbe2eac487c4cdca79d4cefd288e6d94cc76d2d41d73e9514c6e62d3d16afdd877edcfc28911016a0bb1991ac898fdb3cac2f000ecaa9088dd97169b68b01e79 +payload: EVX 6 8f25b48dbf93908c903765375324b629aaa4be4367b2eea9fb590d1917b1653a05d1f8b06a6b4cba25a02c4e4e3853bcfeca80fb38412b723164fccc77c06c91 +payload: EVX 6 b087f2a46afe7474234982d31020e0d11b7251e4f1a5086a6d9543a2a539090901fcc7ddbda05298cb88f4edd4c49cf027867c567ba46e72c6f07aed58bc64f7 +payload: EVX 6 f00f5b7f4340c4a571511fd159191b213c52ac569e41c97780fe53c1f150cb8735badc9538a22801f61bee999e8e6f3345461790846fb9717ccc8406c4092d8b +payload: EVX 6 5548372c7ef930801a3e3b038a2494aa63a7c70c98f99fbb4ee159e9b9617d35b853cea35b214e7ee1aea1939d5c805b1f07b760aa901a3d834a260a9c76b7a3 +payload: EVX 6 da5eb8d5c4681950ad57bb89cb1dbb9ab600e481dfc678c373b5e772b682b97116b5828a247e43a7a050474ad8a64fed74c3652ff0755c718a6f8f309d32ee6e +payload: EVX 6 84478613aadb417d3d5f7a82b9f899d680505c6d5e902e7162535b27c38d76034165d592af22ffb3ae2538a507d24378410203010001a3533051301d0603551d +payload: EVX 6 0e04160414fafa70188a45b6c798385f07394d7f71727ce1c9301f0603551d23041830168014fafa70188a45b6c798385f07394d7f71727ce1c9300f0603551d +payload: EVX 6 130101ff040530030101ff300d06092a864886f70d01010b050003820201003feaabb2456875a3489dd3ce8dbc2cd7b2405c4a216011fcd5ad9e414574c90da9 +payload: EVX 6 9f10f60c9d6ba09b0e54b1bc654b33e3f2ab01f24fcef65d60db35a71681d695120c3aede9f05ffeb08524abe5f29f53b63ae99f7db2dfd25551764a88f775b5 +payload: EVX 6 1912c2b269caa6e7a6da4f48e7776887421242d6a47daa9310fa789e7a3a47afce65f721db9c1e41989d4aa36aeffe21a081150305807c50fb203a14a60dd18f +payload: EVX 6 4298a429e11dc814c8b502e82b71e9d17dbf8976fdcf1676873e1b10face239303927f9d67f59150224abbfdee78ad0e344abf42f997d9373fb96b4a74a280fd +payload: EVX 6 acbd6b8af3f3a662e78129b01d2fcedda4af580965dabbf29ed820f60aa425fbc290c6c67d83ece14be207daf56d3def0792f8ad37c838b07c8d1c69865562bc +payload: EVX 6 6a0c0556ea469a1c04e442a8342cac2e2f2c2d29dcb7f675fa883339b0a1e1122f67f1f1f43b4b705b86c77a8fb563911e05c87339df765f09f0e3510cb697c5 +payload: EVX 6 5201a808953be4d1faeb6b923953cb5e94058c0f74ca463de691f7a0be0a9f53260538273712d6a0672599becb402553c010e3f2384b5c6633da72f94e565bc5 +payload: EVX 6 91ec1dbc0ce3384971eb0ae51505a81470a7707137cf9b0764c32321003fe1e7df74ec16f2b972bbb46d45159266be94494528b00d78d81afddcaa7751dfb6d5 +payload: EVX 6 d84f59e5a5943da2f92b1ee634bcc046a0bbbc3e5ee38135a298e541b20a5d +payload: EV 7 7 80000001 +payload: EVD 7 0004 2667670b97b13aad582d8cb03740b2465aa4fc5f +payload: EVD 7 000b 9d441b749b0a78ad5ab401681c7330802e20bea2dbe166041c7180e4e162666b +payload: EVD 7 000c 93eb38a9463dff82194e7489b63c7f8f52e0637f1ad481debee2beedcb3a05bd498de4a41228248a614cab7e61bbcfd5 +payload: EVX 7 cbb219d73a3d9645a3bcdad00e67656f0200000000000000390500000000000064006200a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 7 d2fa81d2888da44797925baa47bb1b8930820509308202f1a003020102021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b +payload: EVX 7 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130353136353231395a170d3336313130323136353231395a3014311230100603 +payload: EVX 7 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d7 +payload: EVX 7 5dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff119420633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7 +payload: EVX 7 a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b +payload: EVX 7 88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a7 +payload: EVX 7 0dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b85309f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb +payload: EVX 7 7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b3113472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c549 +payload: EVX 7 9f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c +payload: EVX 7 4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064 +payload: EVX 7 a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04 +payload: EVX 7 160414759668b154bc35b65dfd0fb26390544d2b010aef301f0603551d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d1301 +payload: EVX 7 01ff040530030101ff300d06092a864886f70d01010b05000382020100690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be +payload: EVX 7 72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045 +payload: EVX 7 e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee424e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf31312 +payload: EVX 7 7e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd0059fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b +payload: EVX 7 2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba19577893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d +payload: EVX 7 7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1da +payload: EVX 7 aec7289a34f4273c580030d395de84b94dee09e282440352568accad2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67d +payload: EVX 7 ce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f485913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc3586 +payload: EVX 7 0eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b537 +payload: EV 8 7 80000001 +payload: EVD 8 0004 0aedaad2554e295446e5e92c3b900e01f028f2dc +payload: EVD 8 000b 1963d580fcc0cede165e23837b55335eebe18750c0b795883386026ea071e3c6 +payload: EVD 8 000c 5f95c5051ade2e2314961e4011150fbe3315c0b78c93b27be3ac8e4df73930e6ad82aa50ac3591d292ce364b04c850c7 +payload: EVX 8 cbb219d73a3d9645a3bcdad00e67656f03000000000000004c000000000000006400620078002616c4c14c509240aca941f9369343284c000000000000003000 +payload: EVX 8 0000a3a8baa01d04a848bc87c36d121b5e3de3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +payload: EV 9 7 00000004 +payload: EVD 9 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 9 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 9 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 9 00000000 +payload: EV 10 1 0000000a +payload: EVD 10 0004 c1ac6c23239ba9a474ef5c7faaf9b261e7685234 +payload: EVD 10 000b 548e071a742cc2c40760cd7ea4502d4651a73c9e8cdb50a4006fd4bfe7a8e1aa +payload: EVD 10 000c 656f76061588b9a8ef36fcfd68b327df8afc463bb3f1f73872d8fd3b2bff68fa87573b4d695b49036cc4b79c527099f4 +payload: EVX 10 414350492044415441 +payload: EV 11 1 0000000a +payload: EVD 11 0004 b333f729f4c6d09431aac15dda8ff5d42cdf2421 +payload: EVD 11 000b 803a0eab7ba1e37d1e553738d2d7f088eb98831b3b9c1f392f6aa35768b7d15c +payload: EVD 11 000c f231be23c57aec52f017f7854b075f32ad0e1d0912df6b276dace1907a066b8d4dad3356ab4d7f3f506fd64609ba1f02 +payload: EVX 11 414350492044415441 +payload: EV 12 1 0000000a +payload: EVD 12 0004 663725c393703a7a3b8020e0d636137e12dc6a22 +payload: EVD 12 000b 2c5245a32a7d96ad757615885992fc9441cc167f4bcf4dd9d19a02165c9efda2 +payload: EVD 12 000c 06bd3ca0355aa348c48637abef1d7ed7795be39cef15ad55614597f46b6bf3861e55cdc2a5f2df77ceee2f97e9b1b78b +payload: EVX 12 414350492044415441 +payload: EV 13 1 80000002 +payload: EVD 13 0004 3c585604e87f855973731fea83e21fab9392d2fc +payload: EVD 13 000b 67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450 +payload: EVD 13 000c 7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc +payload: EVX 13 61dfe48bca93d211aa0d00e098032b8c0900000000000000040000000000000042006f006f0074004f00720064006500720001000000 +payload: EV 14 1 80000002 +payload: EVD 14 0004 1deddbe8c4412b10f998870099d4067be3da37f4 +payload: EVD 14 000b a8b06578022cffbeffdd688cf545207c1a039630ab6665d72aa98d257cf2db36 +payload: EVD 14 000c 9ca06fa06fbd36593f57c008963ad83985714d9674964e447247285bc60b43286e1ce06da50a1dab88f507bb132f4b9e +payload: EVX 14 61dfe48bca93d211aa0d00e098032b8c08000000000000006c0000000000000042006f006f0074003000300030003100010000001e0055004500460049002000 +payload: EVX 14 47006f006f0067006c0065002000500065007200730069007300740065006e0074004400690073006b002000000002010c00d041030a00000000010106000003 +payload: EVX 14 03020800010000007fff04004eac0881119f594d850ee21a522c59b2 +payload: EV 15 1 80000002 +payload: EVD 15 0004 22a4f6ee9af6dba01d3528deb64b74b582fc182b +payload: EVD 15 000b 3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93 +payload: EVD 15 000c 23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298 +payload: EVX 15 61dfe48bca93d211aa0d00e098032b8c08000000000000003e0000000000000042006f006f0074003000300030003000090100002c0055006900410070007000 +payload: EVX 15 000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400 +payload: EV 16 4 80000007 +payload: EVD 16 0004 cd0fdb4531a6ec41be2753ba042637d6e5f7f256 +payload: EVD 16 000b 3d6772b4f84ed47595d72a2c4c5ffd15f5bb72c7507fe26f2aaee2c69d5633ba +payload: EVD 16 000c 77a0dab2312b4e1e57a84d865a21e5b2ee8d677a21012ada819d0a98988078d3d740f6346bfe0abaa938ca20439a8d71 +payload: EVX 16 43616c6c696e6720454649204170706c69636174696f6e2066726f6d20426f6f74204f7074696f6e +payload: EV 17 0 00000004 +payload: EVD 17 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 17 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 17 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 17 00000000 +payload: EV 18 1 00000004 +payload: EVD 18 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 18 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 18 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 18 00000000 +payload: EV 19 2 00000004 +payload: EVD 19 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 19 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 19 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 19 00000000 +payload: EV 20 3 00000004 +payload: EVD 20 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 20 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 20 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 20 00000000 +payload: EV 21 4 00000004 +payload: EVD 21 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 21 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 21 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 21 00000000 +payload: EV 22 5 00000004 +payload: EVD 22 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 22 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 22 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 22 00000000 +payload: EV 23 6 00000004 +payload: EVD 23 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 23 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 23 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 23 00000000 +payload: EV 24 7 800000e0 +payload: EVD 24 0004 3743bef3e27c83b55fab8e581edb0babd0e5aa1f +payload: EVD 24 000b d6aefec825a1261a16814f516f36b5a17fd390d90e55382d67eb98c7ebd100a0 +payload: EVD 24 000c 9b3fae4f33529ee5eee8f939f5731ef8154844625549c14d66d4ab599d412b654ff9f89b97fc866a1a8c5e8e1cbc411a +payload: EVX 24 cbb219d73a3d9645a3bcdad00e67656f02000000000000001d0500000000000064006200d2fa81d2888da44797925baa47bb1b8930820509308202f1a0030201 +payload: EVX 24 02021427247f304790ee991fedca9a0df84096211f5fff300d06092a864886f70d01010b050030143112301006035504030c094c6f636b2e426f6f74301e170d +payload: EVX 24 3236313130353136353231395a170d3336313130323136353231395a30143112301006035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d +payload: EVX 24 01010105000382020f003082020a0282020100a04ca93c2d9f34edf0add7ceedf63970d75dbbad53ffb0091a036fb850f1f38e428d6ca72d0518555ca2ff1194 +payload: EVX 24 20633be34e4b63e96bff61e243203a188ba3a3b35fa88546d939c9b2fd3d171c126a9fc7a1de51e28ca22213e6785a301429f59afc68fea3907cf038a1dfbd12 +payload: EVX 24 e3b48864684e0c3ba8867012d7560a4d235608bc9ca185d0856398fbb78f98570b1b306b88798f13508ceb320fb069e9e62bccbdf436cb83e57b872c0a36bbe7 +payload: EVX 24 b955261c67ec1d926cf049c8d078eae556446d0c7cb8a32046b24d9985ed6f00ec9cc8a70dad5ae836d15a4ff98ac1cb990a527b8607e790b2c0d82b6b5b8530 +payload: EVX 24 9f0dcb0c828af9365c5c8b92c5f1190dd77d687a236d3201ebf5b0c5df9eb3da8a1babdb7fd0c8f5336d7e6d3246ecb20a5842bcd2e3638395422021cac5b311 +payload: EVX 24 3472d62e012e0560693dcdf7b53b216e429fcfb8b2765de1da53815a6f223dced0b5c5499f8b5a21fa475387bcb16aa8a3819f981abb51ec13bc208d5cfb5744 +payload: EVX 24 f6489e1182e020a4ce66f4300f19d15e886c887bd171af6fdcb49b21c33ff4ef86117c1c4f91f8602081b42746c6008eb2b8650ccbfb24e8ae74a5a117918210 +payload: EVX 24 b50cb16bc7450370dac44cd7184d01d6d14467cae58bc0fe8f268d813b596fdde680a064a25c165bbbfc0bf5c137578fd610c23ae1eecb4659a8d9b8cd4cbc40 +payload: EVX 24 187759ed1fab57282d6cdd121ab07718f5f8190203010001a3533051301d0603551d0e04160414759668b154bc35b65dfd0fb26390544d2b010aef301f060355 +payload: EVX 24 1d23041830168014759668b154bc35b65dfd0fb26390544d2b010aef300f0603551d130101ff040530030101ff300d06092a864886f70d01010b050003820201 +payload: EVX 24 00690cb09d610dc9bc50632c55f4549a5fda09165ad762cc4b98a2f5b01b36c9e3fb22be72a0bb35fa59d54b06c561ee203067b3c06375c947b711135804ab9f +payload: EVX 24 6e6f54096c55e62942ac3b3bb9f8643534bfb6146591ff8198d93fa6eecdacf5a2a7c045e5a0b39c5ecbdcac25ddbcef5ac27db6c9063244d95451871032fee4 +payload: EVX 24 24e0647aa0641c317a925efdcec39d2eb6869dd2836e0ff68b23b668ac2d65874cf313127e54420bfd23aacaadecb45eee5c3ada0acb502e8e3da72c52c1cd00 +payload: EVX 24 59fc488ff649950976def3d79a4c024f1698d6b5da9b983e85bf54993fc664ad16a1520b2c4d9cb41e9705ad502d9e3ba4d170560158fde5d91412cf03ba1957 +payload: EVX 24 7893af8598bd4f9a5e85739ce398b30f7b6ddb3939cd15c0264ac1a191cbeb5ec5ffbe6d7dacd8edca38b84f71b9ea79c5df9a06c122af732a5f0eab85767186 +payload: EVX 24 a13a63f778bc1339e4ecde4491ef5f83bc4a553bf0f933ab122a5495b22135b8688ea1daaec7289a34f4273c580030d395de84b94dee09e282440352568accad +payload: EVX 24 2ec909f0dfd1a92b5465599839c0c35ce0011065887766910807777f3bff7fe31dbdb67dce36c7c04c3bf93e1f6b3942999ba402aeed947b5c579a6942a57f48 +payload: EVX 24 5913cdebac29f5c72ce833f0f21bedbd58c2dabe97b6b31a85f27440ec3de20115bc35860eabb4ae896a72b0749b8b2a8eb1826796517a942ab477db5154b2b5 +payload: EVX 24 37 +payload: EV 25 5 80000006 +payload: EVD 25 0004 a118b29d69d0b21618fe2901d50ac89d3857184b +payload: EVD 25 000b 385ca0076e15cd7839928d4df75c639e921a773d8db41526e708d835bb37c304 +payload: EVD 25 000c 55315fb7c6acf66ec636d0182b70d632c49ec969c106dd308d5f9923d8886b32096bef147637e1857489c0b1d13ee371 +payload: EVX 25 4546492050415254000001005c000000e1cf75b8000000000100000000000000ff0f0200000000000008000000000000de0f0200000000004b434f4c4f42544f +payload: EVX 25 000000000000000002000000000000008000000080000000e3db00c2010000000000000028732ac11ff8d211ba4b00a0c93ec93b4b434f4c4f42544f00000000 +payload: EVX 25 000000010008000000000000ff0702000000000000000000000000004500460049002000530079007300740065006d0020005000610072007400690074006900 +payload: EVX 25 6f006e000000000000000000000000000000000000000000000000000000000000000000 +payload: EV 26 4 80000003 +payload: EVD 26 0004 f5a0bcd3674d8dee04f195c51e91d892685cf32c +payload: EVD 26 000b d5db6ffe3264fbacd3d8bd6dd7ae069417bd1ee807fbb1325c368145061d448b +payload: EVD 26 000c 1a7c91ad075a1f717764e9821fef8202e7dfe8a60a0556e7fe518aa694d277076bafe4c773eec3c954779579cd39fbda +payload: EVX 26 180034be0000000008270500000000000000004001000000780000000000000002010c00d041030a00000000010106000003030208000100000004012a000100 +payload: EVX 26 0000000800000000000000000200000000004b434f4c4f42544f00000000000000010202040430005c004500460049005c0042004f004f0054005c0042004f00 +payload: EVX 26 4f0054005800360034002e0045004600490000007fff0400 +payload: ===EVENTLOG-END=== events=27 truncated=false +payload: holding ~60s so the serial console flushes... +payload: flush 1/6 (~10s) +payload: flush 2/6 (~20s) +payload: flush 3/6 (~30s) +payload: flush 4/6 (~40s) +payload: flush 5/6 (~50s) + +--- lb-p-shd is TERMINATED; stopped following --- diff --git a/tools/pcr-replay/platforms/gcp/captures/2026-11-09-t2a-standard-1-shielded-FAILED.log b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-t2a-standard-1-shielded-FAILED.log new file mode 100644 index 0000000..68e272b --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-t2a-standard-1-shielded-FAILED.log @@ -0,0 +1,92 @@ +Following console output for lb-p-arm (Ctrl+C to stop)... +--- +UEFI firmware (version built at 09:00:00 on Jan 10 2025) +EMU Variable FVB Started +EMU Variable invalid PCD sizes +Found PL031 RTC @ 0x9010000 +InitializeRealTimeClock: using default timezone/daylight settings +[=3h[=3hBdsDxe: loading Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +BdsDxe: starting Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) + +UEFI: Attempting to start image. +Description: UEFI Misc Device +FilePath: PciRoot(0x0)/Pci(0x2,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +OptionNumber: 1. + +[ 0.050] stage0: version: 0.1.0 +[ 0.050] stage0: Secure Boot enforcing (User Mode) +[ 0.051] stage0: loading embedded ena driver (32256 bytes) +ena: DriverBinding installed (idle until an ENA device binds) +[ 0.055] stage0: ena driver started +[ 0.056] stage0: loading embedded gvnic driver (33280 bytes) +gvnic: DriverBinding installed (idle until a gVNIC device binds) +[ 0.060] stage0: gvnic driver started +gvnic: start(): probing gVNIC device... +gvnic: PCI 1ae0:0042 revision 1 +gvnic: memory+bus-master enable: SUCCESS +gvnic: msix=3 ntfy_blks=2 max_tx=1 max_rx=1 device_status=0x14 +gvnic: verify-driver-compatibility: PASSED +gvnic: AQ opcode 0x1: PASSED +gvnic: describe: max_reg_pages=4096 tx_entries=1024 rx_entries=1024 default_queues=1 mtu=1460 counters=2 tx_pages_per_qpl=64 rx_pages_per_qpl=1024 options=5 total_len=120 +gvnic: option 0x5 len=4 required_features=0x0 mask=0x0 +gvnic: option 0x3 len=4 required_features=0x0 mask=0x7 +gvnic: option 0x6 len=12 required_features=0x0 mask=0x0 +gvnic: option 0xa len=8 required_features=0x0 mask=0x0 +gvnic: option 0xb len=12 required_features=0x0 mask=0x0 +gvnic: AQ opcode 0x2: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x3: PASSED +gvnic: AQ opcode 0x5: PASSED +gvnic: AQ opcode 0x6: PASSED +gvnic: queues: tx db=12288 counter=0 rx db=4096 +gvnic: link up +gvnic: ExitBootServices reset hook armed +gvnic: probe OK mac=42:01:0a:94:00:2a mtu=1460 +gvnic: SNP installed on controller; networking should come up +[ 0.110] stage0: no EFI_IP4_CONFIG2 (firmware lacks the IPv4 stack?): NOT_FOUND +[ 0.111] stage0: net inventory: PciIo=3 +[ 0.111] stage0: net inventory: SNP=1 +[ 0.112] stage0: net inventory: MNP-SB=0 +[ 0.112] stage0: net inventory: ARP-SB=0 +[ 0.113] stage0: net inventory: IP4-SB=0 +[ 0.113] stage0: net inventory: IP4Config2=0 +[ 0.113] stage0: net inventory: DHCP4-SB=0 +[ 0.114] stage0: net inventory: UDP4-SB=0 +[ 0.114] stage0: net inventory: TCP4-SB=0 +[ 0.115] stage0: net inventory: 32 drivers loaded: +[ 0.115] stage0: net inventory: driver NVM Express Driver +[ 0.116] stage0: net inventory: driver Platform Console Management Driver +[ 0.117] stage0: net inventory: driver Platform Console Management Driver +[ 0.117] stage0: net inventory: driver Console Splitter Driver +[ 0.118] stage0: net inventory: driver Console Splitter Driver +[ 0.119] stage0: net inventory: driver Console Splitter Driver +[ 0.119] stage0: net inventory: driver Console Splitter Driver +[ 0.120] stage0: net inventory: driver Console Splitter Driver +[ 0.121] stage0: net inventory: driver Graphics Console Driver +[ 0.121] stage0: net inventory: driver Serial Terminal Driver +[ 0.122] stage0: net inventory: driver Generic Disk I/O Driver +[ 0.122] stage0: net inventory: driver Partition Driver(MBR/GPT/El Torito) +[ 0.123] stage0: net inventory: driver FAT File System Driver +[ 0.124] stage0: net inventory: driver UDF File System Driver +[ 0.124] stage0: net inventory: driver Virtio Block Driver +[ 0.125] stage0: net inventory: driver Virtio SCSI Host Driver +[ 0.126] stage0: net inventory: driver Virtio Random Number Generator Driver +[ 0.126] stage0: net inventory: driver SCSI Bus Driver +[ 0.127] stage0: net inventory: driver Scsi Disk Driver +[ 0.128] stage0: net inventory: driver NVM Express Driver +[ 0.128] stage0: net inventory: driver PCI Bus Driver +[ 0.129] stage0: net inventory: driver Virtio PCI Driver +[ 0.129] stage0: net inventory: driver Virtio 1.0 PCI Driver +[ 0.130] stage0: net inventory: driver Virtio GPU Driver +[ 0.131] stage0: net inventory: driver Usb Uhci Driver +[ 0.131] stage0: net inventory: driver Usb Ehci Driver +[ 0.132] stage0: net inventory: driver Usb Xhci Driver +[ 0.132] stage0: net inventory: driver Usb Bus Driver +[ 0.133] stage0: net inventory: driver Usb Keyboard Driver +[ 0.133] stage0: net inventory: driver Usb Mass Storage Driver +[ 0.134] stage0: net inventory: driver (unnamed) +[ 0.135] stage0: net inventory: driver (unnamed) +[ 0.135] stage0: ERROR NOT_FOUND +[ 0.135] stage0: powering off in 90s (fail-closed) + +--- lb-p-arm is TERMINATED; stopped following --- diff --git a/tools/pcr-replay/platforms/gcp/from-capture.py b/tools/pcr-replay/platforms/gcp/from-capture.py new file mode 100644 index 0000000..44aeaae --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/from-capture.py @@ -0,0 +1,164 @@ +#!/usr/bin/env python3 +"""Write a GCE platform replay file (PCR0-2 from reset) from a probe capture. + +A capture is the serial console of one boot of the stage0 test payload, which prints the TCG event +log as `payload: EV n pcr type` / `EVD n alg digest` / `EVX n hexdata` lines (see README.md). +Every PCR0-2 event becomes a derivation from its logged bytes, so pcr-replay re-checks it, except +the ACPI DATA events, whose digests cover ACPI tables that are not in the log: those are pinned. +An event type not handled below is refused, not guessed at. + +usage: from-capture.py CAPTURE --name NAME --out FILE.replay.json +""" +from __future__ import annotations + +import argparse +import json +import re +import struct +import uuid +from typing import Any + +PLATFORM_PCRS = (0, 1, 2) +ALG = {0x4: "sha1", 0xB: "sha256", 0xC: "sha384", 0xD: "sha512"} +EV_NO_ACTION = 0x3 +EV_SEPARATOR = 0x4 +EV_S_CRTM_VERSION = 0x8 +EV_PLATFORM_CONFIG_FLAGS = 0xA +EV_NONHOST_INFO = 0x11 +EV_EFI_VARIABLE_BOOT = 0x80000002 +NONHOST_PREFIX = b"GCE NonHostInfo\0" + + +def parse(txt: str) -> tuple[list[dict[str, Any]], dict[tuple[str, int], str]]: + evs: dict[int, dict[str, Any]] = {} + for kind, n, rest in re.findall(r"payload: (EV|EVD|EVX) (\d+) ?([^\n]*)", txt): + f = rest.split() + if kind == "EV": + evs[int(n)] = {"pcr": int(f[0]), "type": int(f[1], 16), "dg": {}, "data": b""} + elif kind == "EVD": + evs[int(n)]["dg"][ALG[int(f[0], 16)]] = f[1] + else: + evs[int(n)]["data"] += bytes.fromhex(f[0]) + if "EVENTLOG-END" not in txt or "truncated=false" not in txt: + raise SystemExit("capture has no complete event log (no 'EVENTLOG-END ... truncated=false')") + pcrs = {(b, int(i)): v for b, i, v in re.findall(r"payload: PCR (\w+) (\d\d) ([0-9a-f]+)", txt)} + return [evs[n] for n in sorted(evs)], pcrs + + +def device_path(dp: bytes) -> str: + """The device-path nodes GCE's boot options use, in UEFI text form; anything else as hex.""" + out, i = [], 0 + while i + 4 <= len(dp): + t, s, ln = dp[i], dp[i + 1], struct.unpack_from(" tuple[str, bytes]: + for i in range(0, len(b) - 1, 2): + if b[i:i + 2] == b"\0\0": + return b[:i].decode("utf-16-le"), b[i + 2:] + raise ValueError("unterminated UTF-16 string") + + +def boot_variable(data: bytes) -> tuple[str, bytes]: + """(description, VariableData) of an EV_EFI_VARIABLE_BOOT event's UEFI_VARIABLE_DATA.""" + nlen, dlen = struct.unpack_from(" dict[str, Any]: + t, d, p = e["type"], e["data"], e["pcr"] + ev: dict[str, Any] = {"pcr": p, "by": "GCE firmware"} + if t == EV_S_CRTM_VERSION: + s = d.decode("utf-16-le").rstrip("\0") + ev |= {"type": "EV_S_CRTM_VERSION", "about": "firmware version string (no firmware code is measured)", + "derive": {"utf16le": s, "nul": True}} + elif t == EV_NONHOST_INFO: + if not d.startswith(NONHOST_PREFIX) or len(d) != len(NONHOST_PREFIX) + 16: + raise SystemExit(f"unexpected EV_NONHOST_INFO {d.hex()}") + tech = d[len(NONHOST_PREFIX):] + ev |= {"type": "EV_NONHOST_INFO", + "about": f"confidential-computing technology byte {tech[0]} (0 none, 1 SEV, 4 SEV-SNP observed)", + "derive": {"concat": [{"utf8": "GCE NonHostInfo", "nul": True}, {"hex": tech.hex()}]}} + elif t == EV_PLATFORM_CONFIG_FLAGS and d == b"ACPI DATA": + ev |= {"type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape"} + elif t == EV_EFI_VARIABLE_BOOT: + about, var = boot_variable(d) + ev |= {"type": "EV_EFI_VARIABLE_BOOT", "about": f"{about} (digest covers VariableData only)", + "derive": {"hex": var.hex()}} + elif t == EV_SEPARATOR and d == b"\0\0\0\0": + ev |= {"type": "EV_SEPARATOR", "about": "separator", "derive": {"hex": "00000000"}} + else: + raise SystemExit(f"unhandled PCR{p} event type {t:#x} ({d[:32].hex()})") + ev["digests"] = dict(sorted(e["dg"].items())) + return ev + + +def firmware_rim(evs: list[dict[str, Any]]) -> str | None: + for e in evs: + if e["type"] == EV_NO_ACTION and e["data"].startswith(b"SP800-155 Event3"): + m = re.search(rb"https://[!-~]+", e["data"]) + if m: + return m.group().decode() + return None + + +def main() -> None: + ap = argparse.ArgumentParser(description="Write a GCE platform replay file from a probe capture") + ap.add_argument("capture") + ap.add_argument("--name", required=True, help="the file's name, e.g. 'gcp n2d-standard-2 SEV'") + ap.add_argument("--out", required=True) + a = ap.parse_args() + with open(a.capture, "rb") as f: + evs, pcrs = parse(f.read().decode("latin1").replace("\r", "")) + events = [platform_event(e) for e in evs if e["pcr"] in PLATFORM_PCRS and e["type"] != EV_NO_ACTION] + rim = firmware_rim(evs) + doc = { + "schema": "pcr-replay/v1", + "name": a.name, + "about": "GCE firmware, from reset to the separators in PCR0-2 (written by from-capture.py from " + f"captures/{a.capture.rsplit('/', 1)[-1]}). PCR0 does not measure the firmware binary: " + "firmware integrity comes from the SEV-SNP/TDX launch measurement plus Google's " + "endorsement, not from these PCRs. The log names the firmware it ran (an unextended " + f"SP800-155 event, a claim rather than a measurement): {rim or 'none'}.", + "reset": list(PLATFORM_PCRS), + "unextended": [p for p in range(24) if p not in PLATFORM_PCRS], + "events": events, + } + with open(a.out, "w") as f: + json.dump(doc, f, indent=2) + f.write("\n") + print(f"{a.out}: {len(events)} events, " + + ", ".join(f"PCR{p} sha256 {pcrs.get(('sha256', p), '?')[:8]}" for p in PLATFORM_PCRS)) + + +if __name__ == "__main__": + main() diff --git a/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json b/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json new file mode 100644 index 0000000..cfd17c5 --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json @@ -0,0 +1,189 @@ +{ + "schema": "pcr-replay/v1", + "name": "gcp c3-standard-4 Shielded", + "about": "GCE firmware, from reset to the separators in PCR0-2 (written by from-capture.py from captures/2026-11-09-c3-standard-4-shielded.log). PCR0 does not measure the firmware binary: firmware integrity comes from the SEV-SNP/TDX launch measurement plus Google's endorsement, not from these PCRs. The log names the firmware it ran (an unextended SP800-155 event, a claim rather than a measurement): https://storage.googleapis.com/gce_tcb_integrity/ovmf_x64_csm/624ac419f063f0d17a261e6ba512174cd174194ffd06e72531dce3514ec7e148aa876331b95dfa20cd4341004b280fb1.fd.signed.", + "reset": [ + 0, + 1, + 2 + ], + "unextended": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + "events": [ + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_S_CRTM_VERSION", + "about": "firmware version string (no firmware code is measured)", + "derive": { + "utf16le": "GCE Virtual Firmware v2", + "nul": true + }, + "digests": { + "sha1": "4031fe1129fb826f12dcad169992cca9f4f56aa3", + "sha256": "fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d", + "sha384": "21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_NONHOST_INFO", + "about": "confidential-computing technology byte 0 (0 none, 1 SEV, 4 SEV-SNP observed)", + "derive": { + "concat": [ + { + "utf8": "GCE NonHostInfo", + "nul": true + }, + { + "hex": "00000000000000000000000000000000" + } + ] + }, + "digests": { + "sha1": "9e8af742718df04092551f27c117723769acfe7e", + "sha256": "7b74dea34ce9b49755ab1babe8bac9ad528d3d5addec4e2fa298e3ae68fd276f", + "sha384": "a74de6271fa4ad2b7b1846f1d40c28eb103f5ee055abc9883f2ca7d9bedf8ec8c848fce5aa0ad22f1750ce78f5bbf15e" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "674a9eea150263c202339c9b2abb9354798d879f", + "sha256": "75619b356a78227e9559d5b20e2f78163a5e1205535de10d67040ae1a7c725d6", + "sha384": "ee0cc4f8fa34d548c7bad109ad5da7a7469c6a84967b919120b63bdfd9a50def29f37e0b7f0d40110304c70f1615998f" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "a5752d92b8852b5f5af19744273664768e49cd37", + "sha256": "133e420e3be71ea7bb15848d019e3660d8bfff8be3638db9b642694e6111e67f", + "sha384": "957129f88ef987bf483b2fd0b8b7fab43b5477e394a683f74fbf662217e8fa2279c2fed9b877ccea0c9b9be916b55cca" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "8d11e616364a6857df5b1841f9a91b494c5b2372", + "sha256": "30447db057b43452a3e76d79f1da2c41b4559af0cb1373c93c4f4cde866657ea", + "sha384": "70cb7693cd1bee8a9870f8ab7b049e06960196c7f3c1a486b771d8205446ede22d45b7bcc3bbc0e9ec44b5eb7df3b84d" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "BootOrder = Boot0001, Boot0000 (digest covers VariableData only)", + "derive": { + "hex": "01000000" + }, + "digests": { + "sha1": "3c585604e87f855973731fea83e21fab9392d2fc", + "sha256": "67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450", + "sha384": "7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0001 \"UEFI nvme_card-pd\" PciRoot(0x0)/Pci(0x5,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) (digest covers VariableData only)", + "derive": { + "hex": "010000002600550045004600490020006e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000005031710000100000000000000000000007fff04004eac0881119f594d850ee21a522c59b2" + }, + "digests": { + "sha1": "c9606f480a56f2e47a0a2f3646560e865a278f16", + "sha256": "81f8a397ab4accd4a3f4d72f7460833101565bef35ad16f3f471ae59de372394", + "sha384": "ad073f06c3e96a1fd95ad8ff602b913155384775c6d258b6290f3d995cd3882f243e2d1a38182eb102857ca417cea960" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0000 \"UiApp\" Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) (digest covers VariableData only)", + "derive": { + "hex": "090100002c0055006900410070007000000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400" + }, + "digests": { + "sha1": "22a4f6ee9af6dba01d3528deb64b74b582fc182b", + "sha256": "3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93", + "sha384": "23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 2, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + } + ] +} diff --git a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json new file mode 100644 index 0000000..47f37b0 --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json @@ -0,0 +1,189 @@ +{ + "schema": "pcr-replay/v1", + "name": "gcp n2d-standard-2 SEV-SNP", + "about": "GCE firmware, from reset to the separators in PCR0-2 (written by from-capture.py from captures/2026-11-09-n2d-standard-2-sev-snp.log). PCR0 does not measure the firmware binary: firmware integrity comes from the SEV-SNP/TDX launch measurement plus Google's endorsement, not from these PCRs. The log names the firmware it ran (an unextended SP800-155 event, a claim rather than a measurement): https://storage.googleapis.com/gce_tcb_integrity/ovmf_x64_csm/3cf4e1feb18c4e7eca34e7e7c2fc15579cdb1c79cc3923214b6cbc3dc3c362b86d465386f33204794ed01aba3b34b3b3.fd.signed.", + "reset": [ + 0, + 1, + 2 + ], + "unextended": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + "events": [ + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_S_CRTM_VERSION", + "about": "firmware version string (no firmware code is measured)", + "derive": { + "utf16le": "GCE Virtual Firmware v2", + "nul": true + }, + "digests": { + "sha1": "4031fe1129fb826f12dcad169992cca9f4f56aa3", + "sha256": "fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d", + "sha384": "21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_NONHOST_INFO", + "about": "confidential-computing technology byte 4 (0 none, 1 SEV, 4 SEV-SNP observed)", + "derive": { + "concat": [ + { + "utf8": "GCE NonHostInfo", + "nul": true + }, + { + "hex": "04000000000000000000000000000000" + } + ] + }, + "digests": { + "sha1": "4999530d61b969b472c7ffd94526a5617d03e791", + "sha256": "aa1cac024175dd47779c57e51248340b9629bb26138ce02b8b86c5ecc357d91b", + "sha384": "5247b75d59aac0b9450bcf130af050bf95b480bb5f37833f1e0e4f36b761b83a3b02773f7f8b3b155d8af295a3476dcf" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "c1ac6c23239ba9a474ef5c7faaf9b261e7685234", + "sha256": "548e071a742cc2c40760cd7ea4502d4651a73c9e8cdb50a4006fd4bfe7a8e1aa", + "sha384": "656f76061588b9a8ef36fcfd68b327df8afc463bb3f1f73872d8fd3b2bff68fa87573b4d695b49036cc4b79c527099f4" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "b333f729f4c6d09431aac15dda8ff5d42cdf2421", + "sha256": "803a0eab7ba1e37d1e553738d2d7f088eb98831b3b9c1f392f6aa35768b7d15c", + "sha384": "f231be23c57aec52f017f7854b075f32ad0e1d0912df6b276dace1907a066b8d4dad3356ab4d7f3f506fd64609ba1f02" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "663725c393703a7a3b8020e0d636137e12dc6a22", + "sha256": "2c5245a32a7d96ad757615885992fc9441cc167f4bcf4dd9d19a02165c9efda2", + "sha384": "06bd3ca0355aa348c48637abef1d7ed7795be39cef15ad55614597f46b6bf3861e55cdc2a5f2df77ceee2f97e9b1b78b" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "BootOrder = Boot0001, Boot0000 (digest covers VariableData only)", + "derive": { + "hex": "01000000" + }, + "digests": { + "sha1": "3c585604e87f855973731fea83e21fab9392d2fc", + "sha256": "67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450", + "sha384": "7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0001 \"UEFI nvme_card-pd\" PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) (digest covers VariableData only)", + "derive": { + "hex": "010000002600550045004600490020006e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000004031710000100000000000000000000007fff04004eac0881119f594d850ee21a522c59b2" + }, + "digests": { + "sha1": "35c1797b66ce1f30fd5e9f510950cdbda9c99387", + "sha256": "2be7a459e309c7bb7888fb58283987fe1c0bd1d3c1be276bc9e97693e65c8d49", + "sha384": "a25333c7aec2e0993034938c7f11893b3c2bcaf67e88c342a3d586f6f7fae2c6a1247a9ed86988080a6d4be497d4fbb6" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0000 \"UiApp\" Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) (digest covers VariableData only)", + "derive": { + "hex": "090100002c0055006900410070007000000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400" + }, + "digests": { + "sha1": "22a4f6ee9af6dba01d3528deb64b74b582fc182b", + "sha256": "3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93", + "sha384": "23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 2, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + } + ] +} diff --git a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json new file mode 100644 index 0000000..b43cbaa --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json @@ -0,0 +1,189 @@ +{ + "schema": "pcr-replay/v1", + "name": "gcp n2d-standard-2 SEV", + "about": "GCE firmware, from reset to the separators in PCR0-2 (written by from-capture.py from captures/2026-11-09-n2d-standard-2-sev.log). PCR0 does not measure the firmware binary: firmware integrity comes from the SEV-SNP/TDX launch measurement plus Google's endorsement, not from these PCRs. The log names the firmware it ran (an unextended SP800-155 event, a claim rather than a measurement): https://storage.googleapis.com/gce_tcb_integrity/ovmf_x64_csm/abd40f8b110602404abcf39cbf215fc0897587c92194f4d7b692754d5459ae112265df306e7f08b32657cdf5a28b96d8.fd.signed.", + "reset": [ + 0, + 1, + 2 + ], + "unextended": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + "events": [ + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_S_CRTM_VERSION", + "about": "firmware version string (no firmware code is measured)", + "derive": { + "utf16le": "GCE Virtual Firmware v2", + "nul": true + }, + "digests": { + "sha1": "4031fe1129fb826f12dcad169992cca9f4f56aa3", + "sha256": "fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d", + "sha384": "21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_NONHOST_INFO", + "about": "confidential-computing technology byte 1 (0 none, 1 SEV, 4 SEV-SNP observed)", + "derive": { + "concat": [ + { + "utf8": "GCE NonHostInfo", + "nul": true + }, + { + "hex": "01000000000000000000000000000000" + } + ] + }, + "digests": { + "sha1": "2b106cedd1631981619790bbc1afaa80cc6ecd3e", + "sha256": "6ac9241348a80c5755a63bcd1865b9f6d5720f6e925dc869bb4694281c1510c5", + "sha384": "1167e32c3814259ea4809234cccfbd2785c32bde882833bb199d6df6bd989a49f45663e63ce11699fcd01250050f042c" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "c1ac6c23239ba9a474ef5c7faaf9b261e7685234", + "sha256": "548e071a742cc2c40760cd7ea4502d4651a73c9e8cdb50a4006fd4bfe7a8e1aa", + "sha384": "656f76061588b9a8ef36fcfd68b327df8afc463bb3f1f73872d8fd3b2bff68fa87573b4d695b49036cc4b79c527099f4" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "b333f729f4c6d09431aac15dda8ff5d42cdf2421", + "sha256": "803a0eab7ba1e37d1e553738d2d7f088eb98831b3b9c1f392f6aa35768b7d15c", + "sha384": "f231be23c57aec52f017f7854b075f32ad0e1d0912df6b276dace1907a066b8d4dad3356ab4d7f3f506fd64609ba1f02" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "663725c393703a7a3b8020e0d636137e12dc6a22", + "sha256": "2c5245a32a7d96ad757615885992fc9441cc167f4bcf4dd9d19a02165c9efda2", + "sha384": "06bd3ca0355aa348c48637abef1d7ed7795be39cef15ad55614597f46b6bf3861e55cdc2a5f2df77ceee2f97e9b1b78b" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "BootOrder = Boot0001, Boot0000 (digest covers VariableData only)", + "derive": { + "hex": "01000000" + }, + "digests": { + "sha1": "3c585604e87f855973731fea83e21fab9392d2fc", + "sha256": "67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450", + "sha384": "7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0001 \"UEFI nvme_card-pd\" PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) (digest covers VariableData only)", + "derive": { + "hex": "010000002600550045004600490020006e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000004031710000100000000000000000000007fff04004eac0881119f594d850ee21a522c59b2" + }, + "digests": { + "sha1": "35c1797b66ce1f30fd5e9f510950cdbda9c99387", + "sha256": "2be7a459e309c7bb7888fb58283987fe1c0bd1d3c1be276bc9e97693e65c8d49", + "sha384": "a25333c7aec2e0993034938c7f11893b3c2bcaf67e88c342a3d586f6f7fae2c6a1247a9ed86988080a6d4be497d4fbb6" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0000 \"UiApp\" Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) (digest covers VariableData only)", + "derive": { + "hex": "090100002c0055006900410070007000000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400" + }, + "digests": { + "sha1": "22a4f6ee9af6dba01d3528deb64b74b582fc182b", + "sha256": "3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93", + "sha384": "23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 2, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + } + ] +} diff --git a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json new file mode 100644 index 0000000..e3d3ada --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json @@ -0,0 +1,189 @@ +{ + "schema": "pcr-replay/v1", + "name": "gcp n2d-standard-2 Shielded", + "about": "GCE firmware, from reset to the separators in PCR0-2 (written by from-capture.py from captures/2026-11-09-n2d-standard-2-shielded.log). PCR0 does not measure the firmware binary: firmware integrity comes from the SEV-SNP/TDX launch measurement plus Google's endorsement, not from these PCRs. The log names the firmware it ran (an unextended SP800-155 event, a claim rather than a measurement): https://storage.googleapis.com/gce_tcb_integrity/ovmf_x64_csm/abd40f8b110602404abcf39cbf215fc0897587c92194f4d7b692754d5459ae112265df306e7f08b32657cdf5a28b96d8.fd.signed.", + "reset": [ + 0, + 1, + 2 + ], + "unextended": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + "events": [ + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_S_CRTM_VERSION", + "about": "firmware version string (no firmware code is measured)", + "derive": { + "utf16le": "GCE Virtual Firmware v2", + "nul": true + }, + "digests": { + "sha1": "4031fe1129fb826f12dcad169992cca9f4f56aa3", + "sha256": "fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d", + "sha384": "21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_NONHOST_INFO", + "about": "confidential-computing technology byte 0 (0 none, 1 SEV, 4 SEV-SNP observed)", + "derive": { + "concat": [ + { + "utf8": "GCE NonHostInfo", + "nul": true + }, + { + "hex": "00000000000000000000000000000000" + } + ] + }, + "digests": { + "sha1": "9e8af742718df04092551f27c117723769acfe7e", + "sha256": "7b74dea34ce9b49755ab1babe8bac9ad528d3d5addec4e2fa298e3ae68fd276f", + "sha384": "a74de6271fa4ad2b7b1846f1d40c28eb103f5ee055abc9883f2ca7d9bedf8ec8c848fce5aa0ad22f1750ce78f5bbf15e" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "c1ac6c23239ba9a474ef5c7faaf9b261e7685234", + "sha256": "548e071a742cc2c40760cd7ea4502d4651a73c9e8cdb50a4006fd4bfe7a8e1aa", + "sha384": "656f76061588b9a8ef36fcfd68b327df8afc463bb3f1f73872d8fd3b2bff68fa87573b4d695b49036cc4b79c527099f4" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "b333f729f4c6d09431aac15dda8ff5d42cdf2421", + "sha256": "803a0eab7ba1e37d1e553738d2d7f088eb98831b3b9c1f392f6aa35768b7d15c", + "sha384": "f231be23c57aec52f017f7854b075f32ad0e1d0912df6b276dace1907a066b8d4dad3356ab4d7f3f506fd64609ba1f02" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "663725c393703a7a3b8020e0d636137e12dc6a22", + "sha256": "2c5245a32a7d96ad757615885992fc9441cc167f4bcf4dd9d19a02165c9efda2", + "sha384": "06bd3ca0355aa348c48637abef1d7ed7795be39cef15ad55614597f46b6bf3861e55cdc2a5f2df77ceee2f97e9b1b78b" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "BootOrder = Boot0001, Boot0000 (digest covers VariableData only)", + "derive": { + "hex": "01000000" + }, + "digests": { + "sha1": "3c585604e87f855973731fea83e21fab9392d2fc", + "sha256": "67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450", + "sha384": "7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0001 \"UEFI Google PersistentDisk \" PciRoot(0x0)/Pci(0x3,0x0)/Scsi(0x1,0x0) (digest covers VariableData only)", + "derive": { + "hex": "010000001e005500450046004900200047006f006f0067006c0065002000500065007200730069007300740065006e0074004400690073006b002000000002010c00d041030a0000000001010600000303020800010000007fff04004eac0881119f594d850ee21a522c59b2" + }, + "digests": { + "sha1": "1deddbe8c4412b10f998870099d4067be3da37f4", + "sha256": "a8b06578022cffbeffdd688cf545207c1a039630ab6665d72aa98d257cf2db36", + "sha384": "9ca06fa06fbd36593f57c008963ad83985714d9674964e447247285bc60b43286e1ce06da50a1dab88f507bb132f4b9e" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0000 \"UiApp\" Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) (digest covers VariableData only)", + "derive": { + "hex": "090100002c0055006900410070007000000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400" + }, + "digests": { + "sha1": "22a4f6ee9af6dba01d3528deb64b74b582fc182b", + "sha256": "3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93", + "sha384": "23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 2, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + } + ] +} diff --git a/tools/predict-pcrs.py b/tools/predict-pcrs.py deleted file mode 100755 index 2017693..0000000 --- a/tools/predict-pcrs.py +++ /dev/null @@ -1,147 +0,0 @@ -#!/usr/bin/env python3 -# End-to-end PCR reconstruction for a Lock.Boot deployment -- the verifier's view. -# -# Rebuilds the full expected PCR set from release artifacts and hashes only; it never needs the -# user-data or the stage2 config (which may hold secrets): -# -# --stage0 pcrs.json stage0 release: PCR3-7 from reset (stage0 tools/predict-pcrs.py) -# --stage1-sha256 HEX what stage0 ran (stage0 extends PCR14 with it). Stop here if the -# next stage is not ours. -# --stage1-measurements FILE our stage1 release's fixed extends (PCR5/9/11; stage1 -# tools/predict-pcrs.py --emit-measurements) -- the UKI whose -# sha256 is --stage1-sha256. -# --stage2-sha256 HEX what stage1 ran (stage1 extends PCR14 with it). Stop here if the -# next stage is not ours. -# --config-sha256 HEX our stage2's config digest (stage2 extends PCR15, sha256 bank), -# disclosed by the operator instead of the config itself. -# --golden FILE per-instance-type readings (vaportpm layout) for what no release -# can predict: PCR0-2 (provider firmware / boot entries / ROMs). -# -# Each step only appends that stage's events to the state the previous one left (the same -# contracts the per-stage tools implement), so a deployment that swaps in its own stage1 or stage2 -# stops at the handoff and continues with its own measurements. PCR10 (IMA) is never predicted. -# -# --check takes a serial log ("PCR " lines) or any JSON with a vaportpm-style -# "pcrs" object (e.g. an attestation), and compares every predicted PCR. -import argparse -import hashlib -import json -import re -import sys - - -def load(path): - with open(path) as f: - return json.load(f) - - -def reconstruct(a, banks): - stage0 = load(a.stage0)["pcrs"] - s1m = load(a.stage1_measurements)["extends"] if a.stage1_measurements else None - golden = load(a.golden)["pcrs"] if a.golden else {} - out, sources = {}, {} - for bank in banks: - H = getattr(hashlib, bank) - zero = "00" * H().digest_size - if bank not in stage0: - raise SystemExit(f"stage0 pcrs.json has no {bank} bank") - p = {int(k): v for k, v in stage0[bank].items()} - src = {k: "stage0" for k in p} - - def extend(pcr, digests, who): - v = bytes.fromhex(p.get(pcr, zero)) - for d in digests: - v = H(v + d).digest() - p[pcr] = v.hex() - src[pcr] = who - - if a.stage1_sha256: # stage0 measures the payload it runs: H_bank(sha256(payload)) - extend(14, [H(bytes.fromhex(a.stage1_sha256)).digest()], "stage0") - if s1m is not None: - if bank not in s1m: - raise SystemExit(f"stage1 measurements have no {bank} bank") - for pcr, ds in s1m[bank].items(): - extend(int(pcr), [bytes.fromhex(d) for d in ds], "stage1") - for k in (8, 12, 13): - if k not in p: - p[k], src[k] = zero, "stage1" - if a.stage2_sha256: # stage1 measures the stage2 binary the same way - extend(14, [H(bytes.fromhex(a.stage2_sha256)).digest()], "stage1") - if a.config_sha256: # our stage2: raw sha256(config) into PCR15, sha256 bank only - if bank == "sha256": - extend(15, [bytes.fromhex(a.config_sha256)], "stage2") - elif 15 not in p: - p[15], src[15] = zero, "stage2" - for k, v in golden.get(bank, {}).items(): - k = int(k) - if k not in p and k != 10: - p[k], src[k] = v, "golden" - # Everything no stage touched is still at its reset value at this handoff (17-22 reset to - # all-ones). PCR10 is IMA's once Linux has run (our stage1), so it is left out from there. - for k in range(3, 24): - if k not in p and not (k == 10 and s1m is not None): - p[k], src[k] = ("ff" if 17 <= k <= 22 else "00") * H().digest_size, "reset" - out[bank] = {str(k): v for k, v in sorted(p.items())} - sources[bank] = src - return {"pcrs": out}, sources - - -def observed(path): - with open(path, "rb") as f: - raw = f.read() - try: - doc = json.loads(raw) - return {(b, int(i)): v.lower() for b, pcrs in doc["pcrs"].items() for i, v in pcrs.items()} - except (ValueError, KeyError, AttributeError): - txt = raw.decode("latin1").replace("\r", "") - return {(b, int(i)): v for b, i, v in - re.findall(r"^(?:payload: )?PCR (\w+) (\d\d) ([0-9a-f]+)$", txt, re.M)} - - -def main(): - ap = argparse.ArgumentParser(description="Reconstruct a deployment's expected PCRs end to end") - ap.add_argument("--stage0", required=True, help="stage0 release pcrs.json") - ap.add_argument("--stage1-sha256", help="sha256 of the payload stage0 runs") - ap.add_argument("--stage1-measurements", help="our stage1 release's measurements.json") - ap.add_argument("--stage2-sha256", help="sha256 of the stage2 binary stage1 runs") - ap.add_argument("--config-sha256", help="our stage2's config digest (from the operator)") - ap.add_argument("--golden", help="golden readings for this instance type (PCR0-2)") - ap.add_argument("--banks", default="sha256,sha384", help="comma-separated (default sha256,sha384)") - ap.add_argument("--out", help="write JSON here (default stdout)") - ap.add_argument("--check", metavar="FILE", help="serial log or attestation JSON to compare") - a = ap.parse_args() - if a.stage1_measurements and not a.stage1_sha256: - ap.error("--stage1-measurements needs --stage1-sha256 (the UKI it describes)") - if a.stage2_sha256 and not a.stage1_measurements: - ap.error("--stage2-sha256 needs --stage1-measurements (it is our stage1 that measures it)") - if a.config_sha256 and not a.stage2_sha256: - ap.error("--config-sha256 needs --stage2-sha256 (it is our stage2 that measures it)") - - pred, sources = reconstruct(a, a.banks.split(",")) - for bank, src in sources.items(): - missing = [k for k in range(24) if k not in src] - if missing: - print(f"{bank}: not reconstructed: PCR {','.join(map(str, missing))}" - + ("" if a.golden else " (pass --golden for PCR0-2)"), file=sys.stderr) - if a.check: - seen = observed(a.check) - bad = 0 - for bank, pcrs in pred["pcrs"].items(): - for i, want in pcrs.items(): - got = seen.get((bank, int(i))) - st = "ok" if got == want else ("MISSING" if got is None else "MISMATCH") - bad += st != "ok" - print(f"{bank:7} PCR{int(i):<2} {st:8} [{sources[bank][int(i)]:6}] {want[:16]}" - + ("" if st == "ok" or got is None else f" read {got[:16]}")) - print("ALL RECONSTRUCTED PCRS MATCH" if not bad else f"{bad} PCR(S) DO NOT MATCH") - sys.exit(1 if bad else 0) - js = json.dumps(pred, indent=2) + "\n" - if a.out: - with open(a.out, "w") as f: - f.write(js) - else: - sys.stdout.write(js) - - -if __name__ == "__main__": - main() From 2a708f52caa1e74dd2e043c3cd251ee6e4f486db Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Tue, 10 Nov 2026 03:24:08 +0000 Subject: [PATCH 11/15] pcr-replay: GCE TDX capture and its measurement layout; cloud test cap 3 min platforms/gcp: the first c3-standard-4 TDX boot that reached a payload (stage0 with the LAPIC tick and direct gVNIC doorbells), kept as evidence. Same firmware binary as c3 Shielded, but under TDX it logs the GPT event and stage0's BOOTX64.EFI Authenticode measurement into PCR2 instead of PCR5 / PCR4 (consistent with logging by CC measurement register: PCR2-6 all map to RTMR1), and the NonHostInfo technology byte is 3. README records the layout as a verifier work item: stage0.replay.json does not compose with a TDX platform file until the format can express the remap, and from-capture.py deliberately refuses the capture. AGENTS.md: cloud test VMs default to a 3 minute cap. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 4 +- tools/pcr-replay/platforms/gcp/README.md | 28 ++ .../captures/2026-11-09-c3-standard-4-tdx.log | 349 ++++++++++++++++++ 3 files changed, 379 insertions(+), 2 deletions(-) create mode 100644 tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-tdx.log diff --git a/AGENTS.md b/AGENTS.md index 09e0afe..9f60089 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -109,8 +109,8 @@ before bumping the Fedora major). - One VM at a time; ask before each launch, naming the config, the cap and the question it answers. Never batch launches. A launch the auto-mode classifier blocks is not retried another way: hand the user the command to run. -- Spot, `--max-run-duration=5m` (a stage0 probe boot takes ~2.5 min including the payload's - 60 s hold). +- Spot, `--max-run-duration=3m` (a stage0 probe boot takes ~2.5 min including the payload's + 60 s hold; a full chain about 30 s; 3 min still shows ~8 boots of a reset loop). 5m at most. - Create and follow in ONE `make deploy-exec` command (`gcloud compute instances create ... && get-console.sh --follow`): GCP serves no serial output once the instance stops, and a guest power-off leaves it TERMINATED within seconds. diff --git a/tools/pcr-replay/platforms/gcp/README.md b/tools/pcr-replay/platforms/gcp/README.md index 59bd283..ce4560c 100644 --- a/tools/pcr-replay/platforms/gcp/README.md +++ b/tools/pcr-replay/platforms/gcp/README.md @@ -34,6 +34,7 @@ vTPM, integrity monitoring), gVNIC, our PK/KEK/db/dbx. | `2026-11-09-n2d-standard-2-sev.log` | n2d-standard-2 | SEV | stage0-689e96b8b206 | `a0b5ff33` | `2c4b6392` | `3d458cfe` | 27 | | `2026-11-09-n2d-standard-2-sev-snp.log` | n2d-standard-2 | SEV-SNP (AMD Milan) | stage0-689e96b8b206 | `50597a27` | `2c4b6392` | `3d458cfe` | 27 | | `2026-11-09-c3-standard-4-shielded.log` | c3-standard-4 | none | stage0-689e96b8b206 | `d0c70a93` | `1e0e29fc` | `3d458cfe` | 27 | +| `2026-11-09-c3-standard-4-tdx.log` | c3-standard-4 | TDX | stage0-9437a5b63f47 (LAPIC tick + direct doorbells) | `0cca9ec1` | `baef2b3d` | `9d50b267` | 27 | | `2026-11-09-t2a-standard-1-shielded-FAILED.log` | t2a-standard-1 | none | stage0-70b2df077e08 | - | - | - | - | t2a: stage0's gVNIC driver probes fine (link up, SNP installed), but GCP's Arm firmware ("built @@ -77,6 +78,33 @@ From `2026-11-09-n2d-standard-2-shielded.log`: are claims, not measurements. For SNP the binding is the launch measurement + Google's endorsement (gce-tcb-verifier). +## TDX measures differently (verifier work item, high priority) + +`2026-11-09-c3-standard-4-tdx.log` is the first TDX boot that reached a payload (it needed stage0's +LAPIC tick and direct gVNIC doorbells; see stage0 `lapic_tick.rs`, `crates/gvnic`). Its firmware +is the same binary as c3 Shielded (SP800-155 locator `624ac419...`), yet it places boot-phase +measurements in different PCRs: + +| Event | c3 / n2d Shielded, SEV, SNP | c3 TDX | +|---|---|---| +| NonHostInfo technology byte (PCR0) | 0 none, 1 SEV, 4 SEV-SNP | **3** | +| `EV_EFI_GPT_EVENT` (boot disk GPT) | PCR5 | **PCR2** | +| `EV_EFI_BOOT_SERVICES_APPLICATION` (stage0's BOOTX64.EFI, Authenticode) | PCR4 | **PCR2** | +| "Calling EFI Application from Boot Option", separators | PCR4, PCR0-7 | PCR4, PCR0-7 (unchanged) | +| PCR7 (SecureBoot, PK, KEK, db, dbx, separator, db authority) | PCR7 | PCR7 (unchanged) | + +So on TDX, PCR4 is only the BDS action + separator and PCR5 only its separator; stage0's identity +and the GPT land in PCR2, after its separator. This looks like the TDX measurement path logging by +CC measurement register rather than by PCR (TCG CC mapping: PCR2-6 all map to RTMR1, "MR index +2"), reflected into the vTPM as PCR2. Consequences, to encode in the verifier / replay format: + +- stage0.replay.json (PCR4 Authenticode, PCR5 GPT) does not compose with a TDX platform file as is: + the same events must be replayable into PCR2 (after the firmware's PCR2 separator) on TDX. +- Anything binding stage0's identity via PCR4 (sealing policy, attestation policy) needs a TDX + case: there it is PCR2, which also carries the GPT. +- from-capture.py refuses this capture (GPT / BS_APPLICATION events in PCR2), deliberately: no + TDX platform file until the format can express the remap. + ## Expected (from the 2026-11-05 matrix, before captures were kept) | Config | PCR0 | PCR1 | diff --git a/tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-tdx.log b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-tdx.log new file mode 100644 index 0000000..663546c --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/captures/2026-11-09-c3-standard-4-tdx.log @@ -0,0 +1,349 @@ +Following console output for lb-f-tdx (Ctrl+C to stop)... +--- +[=3h[=3hBdsDxe: loading Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +BdsDxe: starting Boot0001 "UEFI nvme_card-pd" from PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) + +UEFI: Attempting to start image. +Description: UEFI nvme_card-pd +FilePath: PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) +OptionNumber: 1. + +[ 0.050] stage0: version: 0.1.0 +[ 0.163] stage0: timer: firmware tick dead; LAPIC tick on vector 0x40 (x2APIC, 250764 counts per 10000 us): 4 ticks in 50 ms +[ 0.177] stage0: Secure Boot enforcing (User Mode) +[ 0.182] stage0: loading embedded ena driver (36864 bytes) +ena: DriverBinding installed (idle until an ENA device binds) +[ 0.201] stage0: ena driver started +[ 0.204] stage0: loading embedded gvnic driver (37376 bytes) +[ 0.216] stage0: gvnic driver started +[ 0.681] gvnic: 1ae0:0042 rev 0, GQI_QPL, 1 tx/1 rx, mtu 1460, mac 42:01:0a:94:00:3b, link up +[ 4.729] stage0: network: OK 10.148.0.59 (DHCP 3862 ms) +[ 4.741] stage0: metadata: GCP 514 bytes sha256:4304d0303ed73f2373e8410f04a955265e3717be16851c36181992740ae6dcca +[ 6.243] stage0: payload: 53760 bytes from http://storage.googleapis.com/lockboot-test/test/7cf12890de5f/probe/x86_64/linux.efi +[ 6.257] stage0: verified: sha256:50693844dc6b21892782a6fd8e807fa5a070a065e697c1738c09ab5b1b6425c3 (sha256 pin) +[ 6.282] stage0: PCR14 extended +[ 6.290] stage0: starting payload +payload: hello from the chain-loaded UEFI payload +payload: mode SecureBoot=1 attrs=0x06 +payload: mode SetupMode=0 attrs=0x06 +payload: mode AuditMode=absent +payload: mode DeployedMode=absent +payload: active PCR banks: sha1 sha256 sha384 +payload: ===PCR-DUMP-BEGIN=== +payload: PCR sha1 00 2a7e881993a21304c473423e5d63a5368c99bd2d +payload: PCR sha256 00 0cca9ec161b09288802e5a112255d21340ed5b797f5fe29cecccfd8f67b9f802 +payload: PCR sha384 00 592b3f42ec556a9c093f201124cc7313fdaa4ce40ae1602e14d51f18fbfc480d6a1e196d1c52ad919328410272dc7222 +payload: PCR sha1 01 0ec87536da95c5c4d0ee9ed17d94883552c355e1 +payload: PCR sha256 01 baef2b3d70d05276c7e99ae676ebb005316a8229505cbb86a6965504990566aa +payload: PCR sha384 01 af431626e207edfed3aa5d0da6ca232c1faa4093d609037ed2fe805abeff906c66d02fbd0b960a6d2867827d22b9e9af +payload: PCR sha1 02 a83e896e5d5ffbaf34ff99acf4052dfe1409a334 +payload: PCR sha256 02 9d50b2677f004dac7a7ca103116a3e7936fd585dad221afbc82051e9df5cca6c +payload: PCR sha384 02 c27bb2b3e0d5a5170648c105ffe4e750beca844645cb2862914dd9b4b620e44525280b54f68316bfb00c823689cf042b +payload: PCR sha1 03 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 03 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 03 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 04 45a323382bd933f08e7f0e256bc8249e4095b1ec +payload: PCR sha256 04 7a94ffe8a7729a566d3d3c577fcb4b6b1e671f31540375f80eae6382ab785e35 +payload: PCR sha384 04 70bc457e087464760a8927d6312248dc117663410914ff8b1e42fd5dc91e16f5fe3f15ca64372d3e47af8b4c53b01df9 +payload: PCR sha1 05 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 05 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 05 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 06 b2a83b0ebf2f8374299a5b2bdfc31ea955ad7236 +payload: PCR sha256 06 3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969 +payload: PCR sha384 06 518923b0f955d08da077c96aaba522b9decede61c599cea6c41889cfbea4ae4d50529d96fe4d1afdafb65e7f95bf23c4 +payload: PCR sha1 07 ffda9bc0f6b6e7b1786af0a0c1361c0440709ab6 +payload: PCR sha256 07 07a1741f01e61ba5e12da1f16ee8bb27fb9bcc6e5f92a2fa629da0dc1dc34667 +payload: PCR sha384 07 82ee970b67f3f7c66df60d7e9f0258826eb17d63cafed029e7a0a24cb3d4644c219eb7150fe59ee015ba51087ba93a69 +payload: PCR sha1 08 0000000000000000000000000000000000000000 +payload: PCR sha256 08 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 08 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 09 0000000000000000000000000000000000000000 +payload: PCR sha256 09 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 09 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 10 0000000000000000000000000000000000000000 +payload: PCR sha256 10 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 10 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 11 0000000000000000000000000000000000000000 +payload: PCR sha256 11 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 11 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 12 0000000000000000000000000000000000000000 +payload: PCR sha256 12 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 12 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 13 0000000000000000000000000000000000000000 +payload: PCR sha256 13 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 13 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 14 bb92a71720866bdd79f646a15937d1cf8b7d59f7 +payload: PCR sha256 14 05f0a0d51a0815c787fce015608b7bfd0735b8b4fe7d67d1e8cfb5ad7937177b +payload: PCR sha384 14 20b60a460fe8746f5ea5de26d3e05eb9f3130f25638a3b282d84c7137010d04e3c7a7a06408e7b0cd87bd6129eac2d70 +payload: PCR sha1 15 0000000000000000000000000000000000000000 +payload: PCR sha256 15 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 15 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 16 0000000000000000000000000000000000000000 +payload: PCR sha256 16 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 16 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha1 17 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 17 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 18 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 18 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 19 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 19 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 20 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 20 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 21 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 21 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 22 ffffffffffffffffffffffffffffffffffffffff +payload: PCR sha256 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha384 22 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +payload: PCR sha1 23 0000000000000000000000000000000000000000 +payload: PCR sha256 23 0000000000000000000000000000000000000000000000000000000000000000 +payload: PCR sha384 23 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: ===PCR-DUMP-END=== +payload: ===EVENTLOG-BEGIN=== +payload: EV 0 0 00000003 +payload: EVD 0 0004 0000000000000000000000000000000000000000 +payload: EVD 0 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 0 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 0 53503830302d313535204576656e7433792b0000c6b6de260bac0d4f9157b5df5f53cddd0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 0 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e37000300000028000000468e85a27fa36a458c790c1fe48b65ff460069007200 +payload: EVX 0 6d007700610072006500520049004d0000000000000000000000000000000000 +payload: EV 1 0 00000003 +payload: EVD 1 0004 0000000000000000000000000000000000000000 +payload: EVD 1 000b 0000000000000000000000000000000000000000000000000000000000000000 +payload: EVD 1 000c 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +payload: EVX 1 53503830302d313535204576656e7433792b0000c6b6de260bac0d4f9157b5df5f53cddd0d476f6f676c652c20496e632e0016476f6f676c6520436f6d707574 +payload: EVX 1 6520456e67696e650001000d476f6f676c652c20496e632e00792b000004322e370001000000a800000068747470733a2f2f73746f726167652e676f6f676c65 +payload: EVX 1 617069732e636f6d2f6763655f7463625f696e746567726974792f6f766d665f7836345f63736d2f363234616334313966303633663064313761323631653662 +payload: EVX 1 61353132313734636431373431393466666430366537323533316463653335313465633765313438616138373633333162393564666132306364343334313030 +payload: EVX 1 34623238306662312e66642e7369676e65640000000000000000000000000000 +payload: EV 2 0 00000008 +payload: EVD 2 0004 4031fe1129fb826f12dcad169992cca9f4f56aa3 +payload: EVD 2 000b fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d +payload: EVD 2 000c 21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6 +payload: EVX 2 47004300450020005600690072007400750061006c0020004600690072006d0077006100720065002000760032000000 +payload: EV 3 0 00000011 +payload: EVD 3 0004 5eac85d04e2370eba627fdac60e12774e027d245 +payload: EVD 3 000b b20ec425e0cea851df1ae32f426cff2e4b8e50e77883b8e9890dcf5369f90e1f +payload: EVD 3 000c c241bdf93bc98c5819defa574597566cc8b4d9e80fc1b644778ab46d26f8398d5f05a926ca2988d7a45e7754ac71cffe +payload: EVX 3 474345204e6f6e486f7374496e666f0003000000000000000000000000000000 +payload: EV 4 7 80000001 +payload: EVD 4 0004 d4fdd1f14d4041494deb8fc990c45343d2277d08 +payload: EVD 4 000b ccfc4bb32888a345bc8aeadaba552b627d99348c767681ab3141f5b01e40a40e +payload: EVD 4 000c 2cded0c6f453d4c6f59c5e14ec61abc6b018314540a2367cba326a52aa2b315ccc08ce68a816ce09c6ef2ac7e514ae1f +payload: EVX 4 61dfe48bca93d211aa0d00e098032b8c0a00000000000000010000000000000053006500630075007200650042006f006f00740001 +payload: EV 5 7 80000001 +payload: EVD 5 0004 3fdcec003b12a9fa8608cf6baeaf9ae3394952d6 +payload: EVD 5 000b 3546d96c08c0aa319c0ff0ab58b8f5588ea386d365738a4e272e0c04a83e8a91 +payload: EVD 5 000c b339bc191d6e8d6044c0c302044e4048f3839289745be2caa36b1cd7509a36541b6a72aa85addcc4cac0699e0f5e1f9d +payload: EVX 5 61dfe48bca93d211aa0d00e098032b8c0200000000000000390500000000000050004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 5 d2fa81d2888da44797925baa47bb1b8930820509308202f1a003020102021438f7fa7f34c365d363f3287595ddd64693f750bc300d06092a864886f70d01010b +payload: EVX 5 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130393138313435395a170d3336313130363138313435395a3014311230100603 +payload: EVX 5 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100a96686a05962f8142c69a3bb57ea863ed5 +payload: EVX 5 68305b70b570dbe57606445d9d4e40cc77bd56ff9ebf434efb89b3f0a1a50c31ad47904936d350e984fd3eed4adc15c97e4ff7c2e6fc044c9659017173811ff0 +payload: EVX 5 ec7a4cb77f598d6dc8c7a838ba85a7cdb0e7d999107a130f426a6cc0acd2651da83db3402e4b54657fea41c1332a7a8ef62c1966317726314e1c9914fb78836c +payload: EVX 5 19fd3183edeed489dcf82ec30f2960b1f2ab660161e616980454e1c40b951162c1d0515b9422619c4b3e867be2b1a7b2e85ed610348ca9bf0ad5f01bebe19069 +payload: EVX 5 2412c636a4f5ca740d57b3c3aefdf5f1d3dccd222822f3ff7a83de1e4fb6900571f84551cf810ed7c52a815de137a221810b6da7621ea6417fa8799a7ff3a4c9 +payload: EVX 5 dfdae21a958bb8c9e365c2e225483a6a3b65ef57f67cd03510d31cbcf163a0e5c823173f7c7b9e995442a114492ed5b0be1572c245883cceb901dc9801e42618 +payload: EVX 5 5cbc7bb369324b8444f08e7adbfaf5ef8faf203751a317e11837dacd440ead7b3be833c329a5c514703a57405373aaf59e00ecb56f4041553f8e096fe447ec7f +payload: EVX 5 f971e0fd727a12b7f16dc00cd8f40de0088fe6f13d6e153d7e1d3b754836634c0fbbc39a2e55f6c586c20866dad05996a85ba108fcbf96457e0aa7bc3a4233f7 +payload: EVX 5 ee24f52dd692685f881abe98c6586cb10a3eae8fdd8e39d11382d1b79175528ea0de20ac7bf7a28233627a935c1ddb0203010001a3533051301d0603551d0e04 +payload: EVX 5 1604144f922cae547adaebdeb48bc32539908f1595e82a301f0603551d230418301680144f922cae547adaebdeb48bc32539908f1595e82a300f0603551d1301 +payload: EVX 5 01ff040530030101ff300d06092a864886f70d01010b0500038202010061c92136e8b6567dc9312d0b18e2f3c6ff6312ee484bb1d777a1f8682b8949b808878b +payload: EVX 5 15dacb6e107f1443833d41bdc038d331db65fbf83685ae570b532a7cfee9cde84e43a427ad205e66e4ade1d6817fd9e81fc40ac5c768aa4afe0d1cd8e96ece45 +payload: EVX 5 d399b9df225a4b6b2e9f992b8fa2891be1044d45a8b7c67ee810eb932b73e2a89f099c72c2c3432fec2be7ce6bfa139e46b4d64df9b2e664829dee98425ee8f9 +payload: EVX 5 3c94d622869b18fb101941551a369c66054d51fd02fc31bfe7ceb27e4c36e761469ba7e340497a5ac3bcc3ace065d2c217a9e18b461a2ab1181cb5bbd3115126 +payload: EVX 5 b5eb309667a6d3bb859860adbf8b8a6e5d444e867a47957233fe714e86113ad5e1a30d2e425305eba7c8529769f61b64fa3f83a6cdc6cac2bba6c64d8c4f1ce5 +payload: EVX 5 d52bd39b170063a0c9571ada531ca0c8cab6e27cf0733206bb8d394478247a3615a6347da01b63466380e0a6af8a2459b2eeb041e0698ab567580722ab50f08c +payload: EVX 5 be43e143657195c928330af41c1b6fb75676713b94cdbd6c88990cbaa5f1934819cad2a6668912be638aace9bb649c267663e8637104b40a2e36429f4e56de9e +payload: EVX 5 951b405cb287ab99ca7a2bdda073171a0c47d85d6732f9c4aa731b51798bfcfb6895fdd26d4695069b9f8e1bb62a333549ea4b0e28aa126eccdf63d98d16affc +payload: EVX 5 3e95281aa02726936f4ad3fb46c29a5f49d6deb86e284e06351129b42d +payload: EV 6 7 80000001 +payload: EVD 6 0004 87a12c8fc35295aabc9402e62eab8ef654f63a94 +payload: EVD 6 000b d6606216e9c47d9d40467cc312c4eeccf6b229dd83625958dbbedb18a89bbb60 +payload: EVD 6 000c 35605ce9db93b768b981549b0a876f78fc63ea608f66fdfdf9594dece16349736e7f93555742adfe60faf8ffe16b5aa0 +payload: EVX 6 61dfe48bca93d211aa0d00e098032b8c030000000000000039050000000000004b0045004b00a159c0a5e494a74a87b5ab155c2bf07239050000000000001d05 +payload: EVX 6 0000d2fa81d2888da44797925baa47bb1b8930820509308202f1a00302010202141cf746f74ee1e2e4ff6a48a1974def02504283e5300d06092a864886f70d01 +payload: EVX 6 010b050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130393138313530315a170d3336313130363138313530315a301431123010 +payload: EVX 6 06035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100cf102b9037a792dbd1dc5cdabfaaff +payload: EVX 6 928a9c377c6f951abba517a0f0848967c58aa4d5ad814d1fb50c44fa95d82d485a020f2591bf567436e9b0f38373267e180c8344762a2d5b740e23c53e75f59f +payload: EVX 6 64b6fd62f47850c7490dd202718253b9b8f41d57a052fca64d0f3e513a6b4341f60161e1e565d18e332edf3e64a22ff7fe8250895e6de30d817c042d65cd6e86 +payload: EVX 6 f85e0c24e6e9a987ab1ab296970f55ad06b0ec6dd3223bdd3ff6dc47405f85d02c4b62f34653b59610b0d27c4b30f9ae24f5b2f1bc0420e662447ea13d925dee +payload: EVX 6 ecdaedd3482e52711e0226d8f17c315ae3b08937ada34e0cf6728748075a0540275ef39aa5e50c65246067a070d37b407283cbab24c4d1d052860149112606d1 +payload: EVX 6 375a44f869a309f17e3ba68b55a598ec385fe9cbb7bf0bedf2beb7f2ab1bebad3f856c4025f46303d81cef50f3d24689e3242b2ba93b4f9b51be1e7a1391d38f +payload: EVX 6 232e66ba1568cdef452c272391d369949ca35cebf6e38f39b796740a4556d52976ab0520d8b7a132afb7695e23b8b2ad5a7cd005a636e02c0ca2ed812f72efa0 +payload: EVX 6 e1fb6598f83dfbd226a29d88277c3086126ea770522e4ef8b5045f500e9d9a64cf7aa9a102c337137d6ed76ef028b0f4c02bac0dd6ae53a98e1230c2d6ddaac9 +payload: EVX 6 4fbfa7dee28d0cbae2cdd01938d616403afd3591fcf4d1384fa68e758240c7233329c46d748789ddf48f05213fb0d1aa3d0203010001a3533051301d0603551d +payload: EVX 6 0e04160414243c5b74030e0f3ad8081eaec8e30c87bf742284301f0603551d23041830168014243c5b74030e0f3ad8081eaec8e30c87bf742284300f0603551d +payload: EVX 6 130101ff040530030101ff300d06092a864886f70d01010b050003820201003f2de935d8b78b18a7cb31f524a62f7c34fbde2b2a4bb7a61dfadfb6b4eb5aaf6d +payload: EVX 6 bb19a68112b2a9cac15a7cb85607dce5badb9c7ad0613423132e19b25f731f72acbe92d6be7d743a3555bd8dd88554552419bcc78219ad3e5550fccb5e6cabf9 +payload: EVX 6 96d7d9c9cdd2dd2c94bf5f13407ee434ec5e75bd19b71804f0d2ef235593d413f38f9004680708e8c417f3c89a0236898134cf05bbbe674b35ad4a0c3e9bd37b +payload: EVX 6 ca8e89691320c1d38fe9b0c50a40b856853c6555ea4e174661336cf06a52bc4319031d2d27c416411e268bb415ea56b5dc654e1150efe0a7c47e0d47814dff36 +payload: EVX 6 5d04b5b063c07b56b918a5e960fa646f8e6c513bc37d7089f3a698c0e1e9c6dcdbd25f72b7ca6954e9cd593cd73ca58c1fc7d7c450416f81216f57c9c00e2cb1 +payload: EVX 6 89798943f53411b36f2f78a72e2d1565daa497f02b5fe68ebd4a2dab36289ad68ae535dc5873f91b87c32f25a901e728feee699fbd4c41f6c10063079c2614ae +payload: EVX 6 cbdf346d00e6b78ee5835b2192df76d3f0bd3c480c76d4778f74607d0be8ad4391bfc5e5775940ac4356e2615087e88f9aac24478c22ffce083b804e417a95a5 +payload: EVX 6 db3be15cc1c582ad393f1dd12df6ab5eb8ce5e7a3adb6eb1432f1f3994d6f23e5635fd348e5312c13d6a6b043fe439a0fb90ddfe59c2327e66f85ce56d352a41 +payload: EVX 6 b4e82dbe6310f2e065071589952a09c750dc65f841141bd014b62c0a86d794 +payload: EV 7 7 80000001 +payload: EVD 7 0004 24f00bdc43f6541a03a56b4e4244bf284f37918c +payload: EVD 7 000b c40ff654d6370ef80318807926d3b4d70556943ade7e9f9a9618ca89f49fe715 +payload: EVD 7 000c bd48005cc381fd95d9ab6030d5f60bd86f2ce8c122a60ac6f9c60686c74fc1fbc438c9ac18d4f041ff7ca256c101ef80 +payload: EVX 7 cbb219d73a3d9645a3bcdad00e67656f0200000000000000390500000000000064006200a159c0a5e494a74a87b5ab155c2bf07239050000000000001d050000 +payload: EVX 7 d2fa81d2888da44797925baa47bb1b8930820509308202f1a003020102021461fa1439f8ba9ef2c1b3397cbd798a1a00506200300d06092a864886f70d01010b +payload: EVX 7 050030143112301006035504030c094c6f636b2e426f6f74301e170d3236313130393138313530325a170d3336313130363138313530325a3014311230100603 +payload: EVX 7 5504030c094c6f636b2e426f6f7430820222300d06092a864886f70d01010105000382020f003082020a0282020100a8eed2d3094a52687d61e88063fe549357 +payload: EVX 7 fa206d82f29d5ecc6f23357f621eb559b979106d23504f781b1e66808a409e2ebe0963e74341f08b55943cefb9caa1f8779a74a47b89343998eff003576c4ea6 +payload: EVX 7 2e625a242e2abd7ca8749dd9e8f8c7572ebe6332e285505b852e38b617782ac8f494e996a8c912d051664721ee7c4eca551ffc3f438621f63d8e53eb4d312350 +payload: EVX 7 b2f3a41dd8fe6563c3ee85e8fb72f1d49515b3da665c1d67680c81eefe62209291d14faf35fc1a46e830b273817442c753e264d9ab06ea0ff65e27e91554e976 +payload: EVX 7 ea6ef732d8775affd758a61eaac8ea9061128dd8687ebfc47ecc19d75710052851ff9f72ababb79b6458e4856aef3ac72e816d4c8cbf23a3e44c073452615640 +payload: EVX 7 f08cb9d9b5c4cc1813034a0b8c3901ca0c0199c3ff947cc0f2f17230a4103cd5394bb0c57e534ffa3ecd76dca6729a65ce3a98b8a49189a4d65ae57629caf40b +payload: EVX 7 75e967aabe7dfa3163045cd439c9b19d02e311337c9c723c337719a7f54fbb0a644b24a8dd5bd6dacb8255dfe5874400fe7d700111fc82ed9136e06599e6f661 +payload: EVX 7 f55ef3dbf440be95eaa50c516b8b64d5a2356b7ffb2a19692e7c78e7ff38fa3105446a7e0703e9a64b506943c21c01eb791a96821aece75ee51df1965bbf5f63 +payload: EVX 7 3516f15e917d67b416b98c1552647e5a8721d9430c57a2737187a6f351aa4047779f614c4822d28d3b257e12202b730203010001a3533051301d0603551d0e04 +payload: EVX 7 160414110344bac7b7ac2786f48fc8d503abaebd322752301f0603551d23041830168014110344bac7b7ac2786f48fc8d503abaebd322752300f0603551d1301 +payload: EVX 7 01ff040530030101ff300d06092a864886f70d01010b050003820201006848754a5f5166622913bf05248f5e932188fe88c28c3acc1ff712849994e505d581fe +payload: EVX 7 da62db8c713941b0d0dc58e9ceff92b667a4537dccc16bb7fa00a206a25d80323d3153b1ffd8547d2b0b20cd08ae2b7c1d635c906f058a96c188c93af0a5f4e6 +payload: EVX 7 56ee36da012c43ee1731bc937a3325d4fa83c2712d1a5236994ec1ae6e1345e4f05d73e90511738548c09b0564d7aa272cad4326b075fdb91ffc7dacae6ef863 +payload: EVX 7 069daca5c07dea23dced7712725894ad5c11db0271b9c3a70fca05fb5cf2b035a4ef187c4bd9a9f83c3caa252a05a63ecf918bbedeeeaea96beb03f602736dd8 +payload: EVX 7 000a74f048fe276154bb2b44077dc3aca75d1d42552ef11bd70a731ee8a18ccfe8ba71d35ef63ab11035816d06f2ebabcaff49a447a93b6431d42952a3efa5ce +payload: EVX 7 0cf6baf3d8d3f0cb5fc46f55608277cfe6f81c8a947e6a6e5f60077ba0da8b100148829f7fa00db69b8b171b3926692cdd50e87039473e0078658ef6224d357b +payload: EVX 7 ff550274726d0e56d549083454d48a7021686e8540d05904e4727a01352af0a2551cee1e2eb11fade48143508f273dd983475510b10fa31af9d6c7b32abceb15 +payload: EVX 7 1ef6ec45242ff5b3a91660f137e40e37905bce6f14ccc3eaf9dd409fc1a618c8359db81899875a9f432d40fc16078554a10e05af89f7915f9fc5fdf55eedff76 +payload: EVX 7 671eb339453a0c5ffbc0d403553eb680f9ee4956ba8389fa96749a6317 +payload: EV 8 7 80000001 +payload: EVD 8 0004 0aedaad2554e295446e5e92c3b900e01f028f2dc +payload: EVD 8 000b 1963d580fcc0cede165e23837b55335eebe18750c0b795883386026ea071e3c6 +payload: EVD 8 000c 5f95c5051ade2e2314961e4011150fbe3315c0b78c93b27be3ac8e4df73930e6ad82aa50ac3591d292ce364b04c850c7 +payload: EVX 8 cbb219d73a3d9645a3bcdad00e67656f03000000000000004c000000000000006400620078002616c4c14c509240aca941f9369343284c000000000000003000 +payload: EVX 8 0000a3a8baa01d04a848bc87c36d121b5e3de3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +payload: EV 9 7 00000004 +payload: EVD 9 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 9 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 9 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 9 00000000 +payload: EV 10 1 0000000a +payload: EVD 10 0004 674a9eea150263c202339c9b2abb9354798d879f +payload: EVD 10 000b 75619b356a78227e9559d5b20e2f78163a5e1205535de10d67040ae1a7c725d6 +payload: EVD 10 000c ee0cc4f8fa34d548c7bad109ad5da7a7469c6a84967b919120b63bdfd9a50def29f37e0b7f0d40110304c70f1615998f +payload: EVX 10 414350492044415441 +payload: EV 11 1 0000000a +payload: EVD 11 0004 a5752d92b8852b5f5af19744273664768e49cd37 +payload: EVD 11 000b 133e420e3be71ea7bb15848d019e3660d8bfff8be3638db9b642694e6111e67f +payload: EVD 11 000c 957129f88ef987bf483b2fd0b8b7fab43b5477e394a683f74fbf662217e8fa2279c2fed9b877ccea0c9b9be916b55cca +payload: EVX 11 414350492044415441 +payload: EV 12 1 0000000a +payload: EVD 12 0004 8d11e616364a6857df5b1841f9a91b494c5b2372 +payload: EVD 12 000b 30447db057b43452a3e76d79f1da2c41b4559af0cb1373c93c4f4cde866657ea +payload: EVD 12 000c 70cb7693cd1bee8a9870f8ab7b049e06960196c7f3c1a486b771d8205446ede22d45b7bcc3bbc0e9ec44b5eb7df3b84d +payload: EVX 12 414350492044415441 +payload: EV 13 1 80000002 +payload: EVD 13 0004 3c585604e87f855973731fea83e21fab9392d2fc +payload: EVD 13 000b 67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450 +payload: EVD 13 000c 7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc +payload: EVX 13 61dfe48bca93d211aa0d00e098032b8c0900000000000000040000000000000042006f006f0074004f00720064006500720001000000 +payload: EV 14 1 80000002 +payload: EVD 14 0004 35c1797b66ce1f30fd5e9f510950cdbda9c99387 +payload: EVD 14 000b 2be7a459e309c7bb7888fb58283987fe1c0bd1d3c1be276bc9e97693e65c8d49 +payload: EVD 14 000c a25333c7aec2e0993034938c7f11893b3c2bcaf67e88c342a3d586f6f7fae2c6a1247a9ed86988080a6d4be497d4fbb6 +payload: EVX 14 61dfe48bca93d211aa0d00e098032b8c0800000000000000600000000000000042006f006f007400300030003000310001000000260055004500460049002000 +payload: EVX 14 6e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000004031710000100000000000000000000007fff0400 +payload: EVX 14 4eac0881119f594d850ee21a522c59b2 +payload: EV 15 1 80000002 +payload: EVD 15 0004 22a4f6ee9af6dba01d3528deb64b74b582fc182b +payload: EVD 15 000b 3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93 +payload: EVD 15 000c 23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298 +payload: EVX 15 61dfe48bca93d211aa0d00e098032b8c08000000000000003e0000000000000042006f006f0074003000300030003000090100002c0055006900410070007000 +payload: EVX 15 000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400 +payload: EV 16 4 80000007 +payload: EVD 16 0004 cd0fdb4531a6ec41be2753ba042637d6e5f7f256 +payload: EVD 16 000b 3d6772b4f84ed47595d72a2c4c5ffd15f5bb72c7507fe26f2aaee2c69d5633ba +payload: EVD 16 000c 77a0dab2312b4e1e57a84d865a21e5b2ee8d677a21012ada819d0a98988078d3d740f6346bfe0abaa938ca20439a8d71 +payload: EVX 16 43616c6c696e6720454649204170706c69636174696f6e2066726f6d20426f6f74204f7074696f6e +payload: EV 17 0 00000004 +payload: EVD 17 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 17 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 17 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 17 00000000 +payload: EV 18 1 00000004 +payload: EVD 18 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 18 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 18 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 18 00000000 +payload: EV 19 2 00000004 +payload: EVD 19 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 19 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 19 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 19 00000000 +payload: EV 20 3 00000004 +payload: EVD 20 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 20 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 20 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 20 00000000 +payload: EV 21 4 00000004 +payload: EVD 21 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 21 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 21 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 21 00000000 +payload: EV 22 5 00000004 +payload: EVD 22 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 22 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 22 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 22 00000000 +payload: EV 23 6 00000004 +payload: EVD 23 0004 9069ca78e7450a285173431b3e52c5c25299e473 +payload: EVD 23 000b df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 +payload: EVD 23 000c 394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0 +payload: EVX 23 00000000 +payload: EV 24 7 800000e0 +payload: EVD 24 0004 ce45b33a8ef20fd217f0041916a0f449e40d3dcd +payload: EVD 24 000b f41d0310c2b19bc737acaf09e6b90f9c2e9e2c69c67b85fcb9ca7688a1a6dc28 +payload: EVD 24 000c 75dae9582edaaf29fef7a80eec75931ff17d43ff152c8165194b2fd8f957c9adf566bfa7e36670c1d7e15d71d67a34f3 +payload: EVX 24 cbb219d73a3d9645a3bcdad00e67656f02000000000000001d0500000000000064006200d2fa81d2888da44797925baa47bb1b8930820509308202f1a0030201 +payload: EVX 24 02021461fa1439f8ba9ef2c1b3397cbd798a1a00506200300d06092a864886f70d01010b050030143112301006035504030c094c6f636b2e426f6f74301e170d +payload: EVX 24 3236313130393138313530325a170d3336313130363138313530325a30143112301006035504030c094c6f636b2e426f6f7430820222300d06092a864886f70d +payload: EVX 24 01010105000382020f003082020a0282020100a8eed2d3094a52687d61e88063fe549357fa206d82f29d5ecc6f23357f621eb559b979106d23504f781b1e6680 +payload: EVX 24 8a409e2ebe0963e74341f08b55943cefb9caa1f8779a74a47b89343998eff003576c4ea62e625a242e2abd7ca8749dd9e8f8c7572ebe6332e285505b852e38b6 +payload: EVX 24 17782ac8f494e996a8c912d051664721ee7c4eca551ffc3f438621f63d8e53eb4d312350b2f3a41dd8fe6563c3ee85e8fb72f1d49515b3da665c1d67680c81ee +payload: EVX 24 fe62209291d14faf35fc1a46e830b273817442c753e264d9ab06ea0ff65e27e91554e976ea6ef732d8775affd758a61eaac8ea9061128dd8687ebfc47ecc19d7 +payload: EVX 24 5710052851ff9f72ababb79b6458e4856aef3ac72e816d4c8cbf23a3e44c073452615640f08cb9d9b5c4cc1813034a0b8c3901ca0c0199c3ff947cc0f2f17230 +payload: EVX 24 a4103cd5394bb0c57e534ffa3ecd76dca6729a65ce3a98b8a49189a4d65ae57629caf40b75e967aabe7dfa3163045cd439c9b19d02e311337c9c723c337719a7 +payload: EVX 24 f54fbb0a644b24a8dd5bd6dacb8255dfe5874400fe7d700111fc82ed9136e06599e6f661f55ef3dbf440be95eaa50c516b8b64d5a2356b7ffb2a19692e7c78e7 +payload: EVX 24 ff38fa3105446a7e0703e9a64b506943c21c01eb791a96821aece75ee51df1965bbf5f633516f15e917d67b416b98c1552647e5a8721d9430c57a2737187a6f3 +payload: EVX 24 51aa4047779f614c4822d28d3b257e12202b730203010001a3533051301d0603551d0e04160414110344bac7b7ac2786f48fc8d503abaebd322752301f060355 +payload: EVX 24 1d23041830168014110344bac7b7ac2786f48fc8d503abaebd322752300f0603551d130101ff040530030101ff300d06092a864886f70d01010b050003820201 +payload: EVX 24 006848754a5f5166622913bf05248f5e932188fe88c28c3acc1ff712849994e505d581feda62db8c713941b0d0dc58e9ceff92b667a4537dccc16bb7fa00a206 +payload: EVX 24 a25d80323d3153b1ffd8547d2b0b20cd08ae2b7c1d635c906f058a96c188c93af0a5f4e656ee36da012c43ee1731bc937a3325d4fa83c2712d1a5236994ec1ae +payload: EVX 24 6e1345e4f05d73e90511738548c09b0564d7aa272cad4326b075fdb91ffc7dacae6ef863069daca5c07dea23dced7712725894ad5c11db0271b9c3a70fca05fb +payload: EVX 24 5cf2b035a4ef187c4bd9a9f83c3caa252a05a63ecf918bbedeeeaea96beb03f602736dd8000a74f048fe276154bb2b44077dc3aca75d1d42552ef11bd70a731e +payload: EVX 24 e8a18ccfe8ba71d35ef63ab11035816d06f2ebabcaff49a447a93b6431d42952a3efa5ce0cf6baf3d8d3f0cb5fc46f55608277cfe6f81c8a947e6a6e5f60077b +payload: EVX 24 a0da8b100148829f7fa00db69b8b171b3926692cdd50e87039473e0078658ef6224d357bff550274726d0e56d549083454d48a7021686e8540d05904e4727a01 +payload: EVX 24 352af0a2551cee1e2eb11fade48143508f273dd983475510b10fa31af9d6c7b32abceb151ef6ec45242ff5b3a91660f137e40e37905bce6f14ccc3eaf9dd409f +payload: EVX 24 c1a618c8359db81899875a9f432d40fc16078554a10e05af89f7915f9fc5fdf55eedff76671eb339453a0c5ffbc0d403553eb680f9ee4956ba8389fa96749a63 +payload: EVX 24 17 +payload: EV 25 2 80000006 +payload: EVD 25 0004 a118b29d69d0b21618fe2901d50ac89d3857184b +payload: EVD 25 000b 385ca0076e15cd7839928d4df75c639e921a773d8db41526e708d835bb37c304 +payload: EVD 25 000c 55315fb7c6acf66ec636d0182b70d632c49ec969c106dd308d5f9923d8886b32096bef147637e1857489c0b1d13ee371 +payload: EVX 25 4546492050415254000001005c000000e1cf75b8000000000100000000000000ff0f0200000000000008000000000000de0f0200000000004b434f4c4f42544f +payload: EVX 25 000000000000000002000000000000008000000080000000e3db00c2010000000000000028732ac11ff8d211ba4b00a0c93ec93b4b434f4c4f42544f00000000 +payload: EVX 25 000000010008000000000000ff0702000000000000000000000000004500460049002000530079007300740065006d0020005000610072007400690074006900 +payload: EVX 25 6f006e000000000000000000000000000000000000000000000000000000000000000000 +payload: EV 26 2 80000003 +payload: EVD 26 0004 bbf93d6eb458862b937375104f63c7dfdd0fd97a +payload: EVD 26 000b e9872e115750218192a45f496fab17ed803f66fde247c990b8a2ef201c8ccb5e +payload: EVD 26 000c 6599536d65b2f745219a4c5d44931a3bc06e96f021bfedacc5d35331a451fd0176f9f9e087dd1215c86fe45742589155 +payload: EVX 26 183042bd0000000008350500000000000000004001000000800000000000000002010c00d041030a000000000101060000040317100001000000000000000000 +payload: EVX 26 000004012a0001000000000800000000000000000200000000004b434f4c4f42544f00000000000000010202040430005c004500460049005c0042004f004f00 +payload: EVX 26 54005c0042004f004f0054005800360034002e0045004600490000007fff0400 +payload: ===EVENTLOG-END=== events=27 truncated=false +payload: holding ~60s so the serial console flushes... +payload: flush 1/6 (~10s) +payload: flush 2/6 (~20s) +payload: flush 3/6 (~30s) +payload: flush 4/6 (~40s) +payload: flush 5/6 (~50s) + +--- lb-f-tdx is TERMINATED; stopped following --- From a56e3036cfaad23fc02791166a7bb2ee21b36ad7 Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Tue, 10 Nov 2026 08:11:46 +0000 Subject: [PATCH 12/15] pcr-replay: route rules for platforms that log events into other PCRs; GCE TDX golden file A platform file's "route" ([{type, from, to}]) replays matching events of every later file into another PCR, each move reported. GCE TDX logs EV_EFI_GPT_EVENT (PCR5) and EV_EFI_BOOT_SERVICES_APPLICATION (PCR4) into PCR2; from-capture.py writes the rules when a capture shows a boot-chain event type after a PCR0-2 separator and never in its usual PCR. No platform detection: the caller picks the platform file, a wrong one fails closed. gcp-c3-standard-4-tdx.replay.json verifies the 2026-11-10 TDX full-chain boot (sha256, sha384, every PCR but IMA's PCR10) with stage0's log-ordered replay file; SNP and c3 Shielded unchanged; a PCR-grouped stage0 file or the wrong platform file mismatches. README: on TDX the GPT's free variable is PCR2, which also carries stage0's Authenticode. Co-Authored-By: Claude Opus 5.5 --- tools/pcr-replay/README.md | 14 +- .../__pycache__/pcr-replay.cpython-313.pyc | Bin 0 -> 45586 bytes tools/pcr-replay/pcr-replay.py | 60 +++++- tools/pcr-replay/platforms/gcp/README.md | 23 +- .../pcr-replay/platforms/gcp/from-capture.py | 50 ++++- .../gcp-c3-standard-4-shielded.replay.json | 2 +- .../gcp/gcp-c3-standard-4-tdx.replay.json | 203 ++++++++++++++++++ .../gcp-n2d-standard-2-sev-snp.replay.json | 2 +- .../gcp/gcp-n2d-standard-2-sev.replay.json | 2 +- .../gcp-n2d-standard-2-shielded.replay.json | 2 +- 10 files changed, 331 insertions(+), 27 deletions(-) create mode 100644 tools/pcr-replay/__pycache__/pcr-replay.cpython-313.pyc create mode 100644 tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-tdx.replay.json diff --git a/tools/pcr-replay/README.md b/tools/pcr-replay/README.md index 9a5aff3..7e4dba0 100644 --- a/tools/pcr-replay/README.md +++ b/tools/pcr-replay/README.md @@ -33,7 +33,12 @@ pcr-replay.py gcp-n2d.replay.json stage0.replay.json stage1.replay.json stage2.r stage you know, and the stage you don't know starts from there. Artifacts are matched by sha256, never by name. Files are applied in the order given. Only the -order of events within one PCR matters, but list a platform file first. +order of events within one PCR matters, but list a platform file first: its `route` rules apply +to the files after it. Producers list events in the order the firmware logs them, so a routed +event lands in its new PCR in the right place. + +There is no platform detection. Which platform file heads the chain is the caller's choice, and +a wrong choice fails closed (the PCRs differ). The tool compares PCR values. It does not verify the quote's signature, nonce or AK; that is the attestation verifier's job (vaportpm-verify). Pass `--check` the PCRs of an already-verified @@ -65,6 +70,7 @@ quote. | `reset` | PCRs this file models from their reset value: nothing extended them before it. Reset is all-zero, all-ones for PCR17-22. | | `unextended` | PCRs this file does not extend. Every PCR must be accounted for (events, `unextended` or `unpredictable`) by every file after the one that modelled it from reset, or it stops being reproduced. | | `unpredictable` | PCRs extended from here in ways no file can replay, with the reason. | +| `route` | `[{"type", "from", "to", "about"?}]`: this platform's firmware logs events of TCG type `type` into PCR `to` where the boot chain's files say `from`. Every later file's matching events are replayed into `to`; each move is reported. A PCR an event is routed into counts as extended by that file, and one left with no events as unextended. | | `events` | In extend order. | An event: @@ -99,12 +105,12 @@ Derivations are single-key objects, nested: ## Producers - **stage0** (`tools/predict-pcrs.py`, `stage0.replay.json` in each release, with its - reference `pcrs.json`): firmware and stage0 from reset for PCR3-23. Its input `payload` is - PCR14. + reference `pcrs.json`): firmware and stage0 from reset for PCR3-23, in the firmware's log + order. Its input `payload` is PCR14. - **stage1** (`tools/predict-pcrs.py`, `stage1.replay.json` in each UKI release): systemd-stub (PCR11), the kernel's EFI stub (PCR9), ExitBootServices (PCR5). Its input `stage2` is PCR14. - **stage2** (`tools/stage2.replay.json`, static, in each release): input `config` into PCR15, sha256 bank, raw. - **platforms** (`platforms/`): provider firmware's PCR0-2, pinned where it cannot be re-derived. - GCE: `platforms/gcp/`, generated from probe captures kept alongside. EC2: not yet + GCE: `platforms/gcp/`, generated from probe captures kept alongside (TDX with `route`). EC2: not yet (`EC2-NOTES.md`). diff --git a/tools/pcr-replay/__pycache__/pcr-replay.cpython-313.pyc b/tools/pcr-replay/__pycache__/pcr-replay.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f8b80ca9ec9839710798bb4ca256a5ab8cd2657d GIT binary patch literal 45586 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 literal 0 HcmV?d00001 diff --git a/tools/pcr-replay/pcr-replay.py b/tools/pcr-replay/pcr-replay.py index 99d96db..35252d1 100644 --- a/tools/pcr-replay/pcr-replay.py +++ b/tools/pcr-replay/pcr-replay.py @@ -11,7 +11,8 @@ # evaluated is recomputed and must equal the digests the file embeds; events that cannot be # re-derived (pinned, or their artifact was not supplied) are carried at face value and reported # as such. A PCR is only reproduced if some file models it from reset and every later file -# accounts for it. +# accounts for it. A file's "route" rules move matching events of the files after it into another +# PCR (a platform whose firmware logs an event type elsewhere, e.g. GCE TDX); each move is reported. # # This compares PCR values; it does not verify the quote's signature or nonce (vaportpm-verify). from __future__ import annotations @@ -129,6 +130,11 @@ class Event(TypedDict): value: NotRequired[dict[str, str]] # instead of an extend: the PCR's pinned value here +# A platform's firmware logging an event type into a different PCR than the boot chain's files +# describe: matching events of every later file are replayed into "to" instead. +Route = TypedDict("Route", {"type": str, "from": int, "to": int, "about": NotRequired[str]}) + + class ArtifactDecl(TypedDict): sha256: str file: NotRequired[str] @@ -150,6 +156,7 @@ class ReplayDoc(TypedDict): reset: NotRequired[list[int]] # PCRs this file models from their reset value unextended: NotRequired[list[int]] # PCRs this file does not extend unpredictable: NotRequired[dict[str, str]] # PCRs extended in ways no file can replay -> why + route: NotRequired[list[Route]] # moves later files' events of a type from one PCR to another events: list[Event] @@ -273,6 +280,7 @@ class ReplayFile: reset: set[int] unextended: set[int] unpredictable: dict[int, str] + routes: list[Route] extends: set[int] = field(default_factory=set) @classmethod @@ -285,15 +293,55 @@ def load(cls, path: str) -> ReplayFile: artifacts=d.get("artifacts", {}), inputs=d.get("inputs", {}), entry=d.get("entry"), events=d["events"], reset=set(d.get("reset", [])), unextended=set(d.get("unextended", [])), - unpredictable={int(k): v for k, v in d.get("unpredictable", {}).items()}) + unpredictable={int(k): v for k, v in d.get("unpredictable", {}).items()}, + routes=d.get("route", [])) rf.extends = {e["pcr"] for e in rf.events} if rf.entry is not None and rf.entry not in rf.artifacts: raise Bad(f"{path}: entry {rf.entry!r} is not a declared artifact") - clash = (rf.reset | rf.extends) & (rf.unextended | set(rf.unpredictable)) - if clash: - raise Bad(f"{path}: PCR(s) {sorted(clash)} both extended and declared unextended/unpredictable") + for r in rf.routes: + if not (isinstance(r.get("type"), str) and all(isinstance(r.get(k), int) and 0 <= r[k] < NPCR + for k in ("from", "to")) and r["from"] != r["to"]): + raise Bad(f"{path}: bad route {r!r}") + rf.check_accounting() return rf + def check_accounting(self) -> None: + clash = (self.reset | self.extends) & (self.unextended | set(self.unpredictable)) + if clash: + raise Bad(f"{self.path}: PCR(s) {sorted(clash)} both extended and declared unextended/unpredictable") + + +def apply_routes(files: list[ReplayFile]) -> list[str]: + """Move each later file's events that a route matches (same type, same PCR) to the route's PCR, + in place. Firmware that logs an event type elsewhere does so for the rest of the boot, so a + route covers every file after the one declaring it. A PCR an event is routed into counts as + extended by that file; one left with no events counts as unextended.""" + active: dict[tuple[str, int], tuple[int, str]] = {} # (type, from) -> (to, declaring file) + used: set[tuple[str, int]] = set() + notes: list[str] = [] + for f in files: + before = set(f.extends) + for n, ev in enumerate(f.events): + k = (ev.get("type", ""), ev["pcr"]) + if k not in active or "value" in ev: + continue + to, by = active[k] + notes.append(f"{f.label} #{n} {k[0]} PCR{k[1]} -> PCR{to} (route of {by})") + f.events[n] = {**ev, "pcr": to} + used.add(k) + f.extends = {e["pcr"] for e in f.events} + if f.extends != before: + f.unextended = (f.unextended - f.extends) | (before - f.extends) + f.check_accounting() + for r in f.routes: + k = (r["type"], r["from"]) + if k in active: + raise Bad(f"{f.label}: route {k[0]} PCR{k[1]} already declared by {active[k][1]}") + active[k] = (r["to"], f.label) + notes += [f"{by}: route {t} PCR{p} -> PCR{to} matched no event" + for (t, p), (to, by) in active.items() if (t, p) not in used] + return notes + class Ctx: """What a derivation may draw on: the supplied artifacts (by sha256) and bound inputs.""" @@ -610,6 +658,8 @@ def main() -> None: labels = [f.label for f in files] if len(set(labels)) != len(labels): raise Bad(f"replay files share a name: {labels}") + for note in apply_routes(files): + print(f"routed: {note}", file=sys.stderr) inputs, notes = bind_inputs(files, given) for note in notes: print(f"bound: {note}", file=sys.stderr) diff --git a/tools/pcr-replay/platforms/gcp/README.md b/tools/pcr-replay/platforms/gcp/README.md index ce4560c..ef2d9ae 100644 --- a/tools/pcr-replay/platforms/gcp/README.md +++ b/tools/pcr-replay/platforms/gcp/README.md @@ -15,10 +15,10 @@ pcr-replay.py platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json stage0.replay | `gcp-n2d-standard-2-sev.replay.json` | `a0b5ff33` | `2c4b6392` | full chain, 2026-11-09 | | `gcp-n2d-standard-2-sev-snp.replay.json` | `50597a27` | `2c4b6392` | full chain, 2026-11-09 | | `gcp-c3-standard-4-shielded.replay.json` | `d0c70a93` | `1e0e29fc` | stage0 only | +| `gcp-c3-standard-4-tdx.replay.json` | `0cca9ec1` | `baef2b3d` | full chain, 2026-11-10 (with `route`, below) | Each file re-derives every PCR0-2 event from its logged bytes except the three ACPI DATA events, -which are pinned (their digests cover ACPI tables the log does not contain). Not covered: TDX -(c3 networking under TDX is broken), t2a / Arm (no network stack in the firmware, below), other +which are pinned (their digests cover ACPI tables the log does not contain). Not covered: t2a / Arm (no network stack in the firmware, below), other machine sizes (the ACPI tables may differ; unprobed). ## Captures (`captures/`) @@ -78,7 +78,7 @@ From `2026-11-09-n2d-standard-2-shielded.log`: are claims, not measurements. For SNP the binding is the launch measurement + Google's endorsement (gce-tcb-verifier). -## TDX measures differently (verifier work item, high priority) +## TDX measures differently `2026-11-09-c3-standard-4-tdx.log` is the first TDX boot that reached a payload (it needed stage0's LAPIC tick and direct gVNIC doorbells; see stage0 `lapic_tick.rs`, `crates/gvnic`). Its firmware @@ -96,14 +96,21 @@ measurements in different PCRs: So on TDX, PCR4 is only the BDS action + separator and PCR5 only its separator; stage0's identity and the GPT land in PCR2, after its separator. This looks like the TDX measurement path logging by CC measurement register rather than by PCR (TCG CC mapping: PCR2-6 all map to RTMR1, "MR index -2"), reflected into the vTPM as PCR2. Consequences, to encode in the verifier / replay format: +2"), reflected into the vTPM as PCR2. + +`gcp-c3-standard-4-tdx.replay.json` expresses this as two `route` rules (`EV_EFI_GPT_EVENT` 5 -> 2, +`EV_EFI_BOOT_SERVICES_APPLICATION` 4 -> 2), which from-capture.py writes when a capture shows a +boot-chain event type in PCR0-2 after the separator and never in its usual PCR. stage0's replay +file is unchanged apart from listing its events in log order (GPT before BOOTX64.EFI), which is +the order they reach PCR2. Verified against the TDX full-chain regression boot (2026-11-10: +stage0, stage1, stage2, every PCR but IMA's PCR10, sha256 and sha384). -- stage0.replay.json (PCR4 Authenticode, PCR5 GPT) does not compose with a TDX platform file as is: - the same events must be replayable into PCR2 (after the firmware's PCR2 separator) on TDX. - Anything binding stage0's identity via PCR4 (sealing policy, attestation policy) needs a TDX case: there it is PCR2, which also carries the GPT. -- from-capture.py refuses this capture (GPT / BS_APPLICATION events in PCR2), deliberately: no - TDX platform file until the format can express the remap. +- The GPT is a free variable after the first boot (stage2 adds its partitions), so elsewhere PCR5 + is left unpinned. On TDX that free variable is PCR2, and stage0's Authenticode goes with it: + past the first boot, PCR2 pins neither, and stage0 is bound only by PCR7 (signed by our db). + The replay reproduces first boots only (the GPT of `boot.disk`). ## Expected (from the 2026-11-05 matrix, before captures were kept) diff --git a/tools/pcr-replay/platforms/gcp/from-capture.py b/tools/pcr-replay/platforms/gcp/from-capture.py index 44aeaae..0ac85b1 100644 --- a/tools/pcr-replay/platforms/gcp/from-capture.py +++ b/tools/pcr-replay/platforms/gcp/from-capture.py @@ -7,6 +7,10 @@ the ACPI DATA events, whose digests cover ACPI tables that are not in the log: those are pinned. An event type not handled below is refused, not guessed at. +Events in PCR0-2 after that PCR's separator are the boot chain's, not the platform's. Where the +firmware logged one of the boot chain's event types (ROUTABLE) there instead of its usual PCR, as +GCE TDX does, the file gets a route rule for it, provided the capture shows that type only there. + usage: from-capture.py CAPTURE --name NAME --out FILE.replay.json """ from __future__ import annotations @@ -26,7 +30,12 @@ EV_PLATFORM_CONFIG_FLAGS = 0xA EV_NONHOST_INFO = 0x11 EV_EFI_VARIABLE_BOOT = 0x80000002 +EV_EFI_BOOT_SERVICES_APPLICATION = 0x80000003 +EV_EFI_GPT_EVENT = 0x80000006 NONHOST_PREFIX = b"GCE NonHostInfo\0" +# Boot-chain event types a platform may log elsewhere: type -> (name, the PCR stage0's file uses). +ROUTABLE = {EV_EFI_GPT_EVENT: ("EV_EFI_GPT_EVENT", 5), + EV_EFI_BOOT_SERVICES_APPLICATION: ("EV_EFI_BOOT_SERVICES_APPLICATION", 4)} def parse(txt: str) -> tuple[list[dict[str, Any]], dict[tuple[str, int], str]]: @@ -105,7 +114,7 @@ def platform_event(e: dict[str, Any]) -> dict[str, Any]: raise SystemExit(f"unexpected EV_NONHOST_INFO {d.hex()}") tech = d[len(NONHOST_PREFIX):] ev |= {"type": "EV_NONHOST_INFO", - "about": f"confidential-computing technology byte {tech[0]} (0 none, 1 SEV, 4 SEV-SNP observed)", + "about": f"confidential-computing technology byte {tech[0]} (0 none, 1 SEV, 3 TDX, 4 SEV-SNP observed)", "derive": {"concat": [{"utf8": "GCE NonHostInfo", "nul": True}, {"hex": tech.hex()}]}} elif t == EV_PLATFORM_CONFIG_FLAGS and d == b"ACPI DATA": ev |= {"type": "EV_PLATFORM_CONFIG_FLAGS", @@ -131,6 +140,31 @@ def firmware_rim(evs: list[dict[str, Any]]) -> str | None: return None +def split(evs: list[dict[str, Any]], capture: str) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]: + """The platform's PCR0-2 events (up to each one's separator), and route rules for the boot + chain's events the firmware logged into PCR0-2 after it.""" + platform: list[dict[str, Any]] = [] + routes: dict[tuple[int, int], dict[str, Any]] = {} + sealed: set[int] = set() + for e in evs: + p, t = e["pcr"], e["type"] + if p not in PLATFORM_PCRS or t == EV_NO_ACTION: + continue + if p not in sealed: + platform.append(e) + sealed |= {p} if t == EV_SEPARATOR else set() + continue + if t not in ROUTABLE: + raise SystemExit(f"unhandled PCR{p} event type {t:#x} after its separator") + name, usual = ROUTABLE[t] + if any(x["type"] == t and x["pcr"] == usual for x in evs): + raise SystemExit(f"{name} logged into both PCR{usual} and PCR{p}: not a route") + routes[(t, p)] = {"type": name, "from": usual, "to": p, + "about": f"this firmware logs {name} into PCR{p}, not PCR{usual} " + f"(captures/{capture})"} + return platform, list(routes.values()) + + def main() -> None: ap = argparse.ArgumentParser(description="Write a GCE platform replay file from a probe capture") ap.add_argument("capture") @@ -139,24 +173,28 @@ def main() -> None: a = ap.parse_args() with open(a.capture, "rb") as f: evs, pcrs = parse(f.read().decode("latin1").replace("\r", "")) - events = [platform_event(e) for e in evs if e["pcr"] in PLATFORM_PCRS and e["type"] != EV_NO_ACTION] + capture = a.capture.rsplit("/", 1)[-1] + platform, routes = split(evs, capture) + events = [platform_event(e) for e in platform] rim = firmware_rim(evs) - doc = { + doc: dict[str, Any] = { "schema": "pcr-replay/v1", "name": a.name, "about": "GCE firmware, from reset to the separators in PCR0-2 (written by from-capture.py from " - f"captures/{a.capture.rsplit('/', 1)[-1]}). PCR0 does not measure the firmware binary: " + f"captures/{capture}). PCR0 does not measure the firmware binary: " "firmware integrity comes from the SEV-SNP/TDX launch measurement plus Google's " "endorsement, not from these PCRs. The log names the firmware it ran (an unextended " f"SP800-155 event, a claim rather than a measurement): {rim or 'none'}.", "reset": list(PLATFORM_PCRS), "unextended": [p for p in range(24) if p not in PLATFORM_PCRS], - "events": events, } + if routes: + doc["route"] = routes + doc["events"] = events with open(a.out, "w") as f: json.dump(doc, f, indent=2) f.write("\n") - print(f"{a.out}: {len(events)} events, " + print(f"{a.out}: {len(events)} events, {len(routes)} routes, " + ", ".join(f"PCR{p} sha256 {pcrs.get(('sha256', p), '?')[:8]}" for p in PLATFORM_PCRS)) diff --git a/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json b/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json index cfd17c5..cba59bd 100644 --- a/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json +++ b/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-shielded.replay.json @@ -50,7 +50,7 @@ "pcr": 0, "by": "GCE firmware", "type": "EV_NONHOST_INFO", - "about": "confidential-computing technology byte 0 (0 none, 1 SEV, 4 SEV-SNP observed)", + "about": "confidential-computing technology byte 0 (0 none, 1 SEV, 3 TDX, 4 SEV-SNP observed)", "derive": { "concat": [ { diff --git a/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-tdx.replay.json b/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-tdx.replay.json new file mode 100644 index 0000000..dc52572 --- /dev/null +++ b/tools/pcr-replay/platforms/gcp/gcp-c3-standard-4-tdx.replay.json @@ -0,0 +1,203 @@ +{ + "schema": "pcr-replay/v1", + "name": "gcp c3-standard-4 TDX", + "about": "GCE firmware, from reset to the separators in PCR0-2 (written by from-capture.py from captures/2026-11-09-c3-standard-4-tdx.log). PCR0 does not measure the firmware binary: firmware integrity comes from the SEV-SNP/TDX launch measurement plus Google's endorsement, not from these PCRs. The log names the firmware it ran (an unextended SP800-155 event, a claim rather than a measurement): https://storage.googleapis.com/gce_tcb_integrity/ovmf_x64_csm/624ac419f063f0d17a261e6ba512174cd174194ffd06e72531dce3514ec7e148aa876331b95dfa20cd4341004b280fb1.fd.signed.", + "reset": [ + 0, + 1, + 2 + ], + "unextended": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + "route": [ + { + "type": "EV_EFI_GPT_EVENT", + "from": 5, + "to": 2, + "about": "this firmware logs EV_EFI_GPT_EVENT into PCR2, not PCR5 (captures/2026-11-09-c3-standard-4-tdx.log)" + }, + { + "type": "EV_EFI_BOOT_SERVICES_APPLICATION", + "from": 4, + "to": 2, + "about": "this firmware logs EV_EFI_BOOT_SERVICES_APPLICATION into PCR2, not PCR4 (captures/2026-11-09-c3-standard-4-tdx.log)" + } + ], + "events": [ + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_S_CRTM_VERSION", + "about": "firmware version string (no firmware code is measured)", + "derive": { + "utf16le": "GCE Virtual Firmware v2", + "nul": true + }, + "digests": { + "sha1": "4031fe1129fb826f12dcad169992cca9f4f56aa3", + "sha256": "fa129a8f82b65bcbce8f9e8e5f6de509beff9b1df33714116bf918c5a3bba45d", + "sha384": "21d340a4a30bb8865486d150cd9ceb46100662b92f336d38b87d70b373ca15c4c60878336924baa818dc2aceaeb40ea6" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_NONHOST_INFO", + "about": "confidential-computing technology byte 3 (0 none, 1 SEV, 3 TDX, 4 SEV-SNP observed)", + "derive": { + "concat": [ + { + "utf8": "GCE NonHostInfo", + "nul": true + }, + { + "hex": "03000000000000000000000000000000" + } + ] + }, + "digests": { + "sha1": "5eac85d04e2370eba627fdac60e12774e027d245", + "sha256": "b20ec425e0cea851df1ae32f426cff2e4b8e50e77883b8e9890dcf5369f90e1f", + "sha384": "c241bdf93bc98c5819defa574597566cc8b4d9e80fc1b644778ab46d26f8398d5f05a926ca2988d7a45e7754ac71cffe" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "674a9eea150263c202339c9b2abb9354798d879f", + "sha256": "75619b356a78227e9559d5b20e2f78163a5e1205535de10d67040ae1a7c725d6", + "sha384": "ee0cc4f8fa34d548c7bad109ad5da7a7469c6a84967b919120b63bdfd9a50def29f37e0b7f0d40110304c70f1615998f" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "a5752d92b8852b5f5af19744273664768e49cd37", + "sha256": "133e420e3be71ea7bb15848d019e3660d8bfff8be3638db9b642694e6111e67f", + "sha384": "957129f88ef987bf483b2fd0b8b7fab43b5477e394a683f74fbf662217e8fa2279c2fed9b877ccea0c9b9be916b55cca" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_PLATFORM_CONFIG_FLAGS", + "about": "ACPI DATA: digest of ACPI tables not in the log; pinned per machine shape", + "digests": { + "sha1": "8d11e616364a6857df5b1841f9a91b494c5b2372", + "sha256": "30447db057b43452a3e76d79f1da2c41b4559af0cb1373c93c4f4cde866657ea", + "sha384": "70cb7693cd1bee8a9870f8ab7b049e06960196c7f3c1a486b771d8205446ede22d45b7bcc3bbc0e9ec44b5eb7df3b84d" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "BootOrder = Boot0001, Boot0000 (digest covers VariableData only)", + "derive": { + "hex": "01000000" + }, + "digests": { + "sha1": "3c585604e87f855973731fea83e21fab9392d2fc", + "sha256": "67abdd721024f0ff4e0b3f4c2fc13bc5bad42d0b7851d456d88d203d15aaa450", + "sha384": "7210af19145ec2a8e250a7fe8e9eeeac1301e524daab82366c36be614dc35402a289101e48cad61c45337f2f32c14fdc" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0001 \"UEFI nvme_card-pd\" PciRoot(0x0)/Pci(0x4,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00) (digest covers VariableData only)", + "derive": { + "hex": "010000002600550045004600490020006e0076006d0065005f0063006100720064002d0070006400000002010c00d041030a00000000010106000004031710000100000000000000000000007fff04004eac0881119f594d850ee21a522c59b2" + }, + "digests": { + "sha1": "35c1797b66ce1f30fd5e9f510950cdbda9c99387", + "sha256": "2be7a459e309c7bb7888fb58283987fe1c0bd1d3c1be276bc9e97693e65c8d49", + "sha384": "a25333c7aec2e0993034938c7f11893b3c2bcaf67e88c342a3d586f6f7fae2c6a1247a9ed86988080a6d4be497d4fbb6" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_EFI_VARIABLE_BOOT", + "about": "Boot0000 \"UiApp\" Fv(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) (digest covers VariableData only)", + "derive": { + "hex": "090100002c0055006900410070007000000004071400c9bdb87cebf8344faaea3ee4af6516a10406140021aa2c4614760345836e8ab6f46623317fff0400" + }, + "digests": { + "sha1": "22a4f6ee9af6dba01d3528deb64b74b582fc182b", + "sha256": "3197be1e300fa1600d1884c3a4bd4a90a15405bfb546cf2e6cf6095f8c362a93", + "sha384": "23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298" + } + }, + { + "pcr": 0, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 1, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + }, + { + "pcr": 2, + "by": "GCE firmware", + "type": "EV_SEPARATOR", + "about": "separator", + "derive": { + "hex": "00000000" + }, + "digests": { + "sha1": "9069ca78e7450a285173431b3e52c5c25299e473", + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "sha384": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0" + } + } + ] +} diff --git a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json index 47f37b0..dedf9d5 100644 --- a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json +++ b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev-snp.replay.json @@ -50,7 +50,7 @@ "pcr": 0, "by": "GCE firmware", "type": "EV_NONHOST_INFO", - "about": "confidential-computing technology byte 4 (0 none, 1 SEV, 4 SEV-SNP observed)", + "about": "confidential-computing technology byte 4 (0 none, 1 SEV, 3 TDX, 4 SEV-SNP observed)", "derive": { "concat": [ { diff --git a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json index b43cbaa..e97e129 100644 --- a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json +++ b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-sev.replay.json @@ -50,7 +50,7 @@ "pcr": 0, "by": "GCE firmware", "type": "EV_NONHOST_INFO", - "about": "confidential-computing technology byte 1 (0 none, 1 SEV, 4 SEV-SNP observed)", + "about": "confidential-computing technology byte 1 (0 none, 1 SEV, 3 TDX, 4 SEV-SNP observed)", "derive": { "concat": [ { diff --git a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json index e3d3ada..49a70ba 100644 --- a/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json +++ b/tools/pcr-replay/platforms/gcp/gcp-n2d-standard-2-shielded.replay.json @@ -50,7 +50,7 @@ "pcr": 0, "by": "GCE firmware", "type": "EV_NONHOST_INFO", - "about": "confidential-computing technology byte 0 (0 none, 1 SEV, 4 SEV-SNP observed)", + "about": "confidential-computing technology byte 0 (0 none, 1 SEV, 3 TDX, 4 SEV-SNP observed)", "derive": { "concat": [ { From 454744c562650b2581951c2dee4e5423883dbd2d Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Tue, 10 Nov 2026 08:16:58 +0000 Subject: [PATCH 13/15] pcr-replay: note the planned GPT digest from the attestation (vaportpm#12) stage0's GPT event derives from boot.disk, which holds only on a first boot: stage2 rewrites the GPT. The attestation will carry the GPT event digest as auxiliary data, pinning PCR5 (non-TDX) and PCR2 (TDX) on every boot; how a replay event takes its digest from it is open. Corrects the previous commit's GCP README, which treated TDX PCR2 as a free variable: it must stay pinned, it carries stage0's Authenticode. Co-Authored-By: Claude Opus 5.5 --- tools/pcr-replay/README.md | 15 +++++++++++++++ tools/pcr-replay/platforms/gcp/README.md | 9 +++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/tools/pcr-replay/README.md b/tools/pcr-replay/README.md index 7e4dba0..66862a7 100644 --- a/tools/pcr-replay/README.md +++ b/tools/pcr-replay/README.md @@ -102,6 +102,21 @@ Derivations are single-key objects, nested: | `{"efi_signature_list": {"type", "owner", "data"}}` | One `EFI_SIGNATURE_LIST` with one entry. `type` is `x509`, `sha256` or a GUID. | | `{"cpio_newc": [{"ino", "mode", "name", "data"?}, …]}` | newc entries, with uid/gid 0, nlink 1 and mtime 0. Each entry's mode is an octal string with the type bits. No trailer: writers differ, so spell it out with `utf8`/`hex`. | +## Open: GPT digest from the attestation + +stage0's `EV_EFI_GPT_EVENT` derives from `boot.disk`, which only holds on a first boot: stage2 +rewrites the GPT (adds its partitions), so later boots measure a GPT no release artifact +describes. Reconstructing it is brittle and not planned. Instead the attestation will carry that +event's digest as auxiliary data (lockboot/vaportpm#12, with a matching change in vaportpm-zk), +and the replay takes it from there, which pins PCR5 (non-TDX) and PCR2 (TDX) on every boot. The +quote binds the supplied digest: a wrong one fails the PCR comparison. + +Undecided: how a replay file says "this event's digest comes from the attestation's aux data". +Something like `"supplied": "gpt"` on the event (a new status besides verified / derived / +pinned / unchecked, reported as such), with the value read from `--check`'s attestation JSON or +given per bank on the command line, falling back to the `boot.disk` derivation when absent. +Inputs today are 32-byte sha256 values only, so an aux digest needs a per-bank value. + ## Producers - **stage0** (`tools/predict-pcrs.py`, `stage0.replay.json` in each release, with its diff --git a/tools/pcr-replay/platforms/gcp/README.md b/tools/pcr-replay/platforms/gcp/README.md index ef2d9ae..de52358 100644 --- a/tools/pcr-replay/platforms/gcp/README.md +++ b/tools/pcr-replay/platforms/gcp/README.md @@ -107,10 +107,11 @@ stage0, stage1, stage2, every PCR but IMA's PCR10, sha256 and sha384). - Anything binding stage0's identity via PCR4 (sealing policy, attestation policy) needs a TDX case: there it is PCR2, which also carries the GPT. -- The GPT is a free variable after the first boot (stage2 adds its partitions), so elsewhere PCR5 - is left unpinned. On TDX that free variable is PCR2, and stage0's Authenticode goes with it: - past the first boot, PCR2 pins neither, and stage0 is bound only by PCR7 (signed by our db). - The replay reproduces first boots only (the GPT of `boot.disk`). +- The GPT changes after the first boot (stage2 adds its partitions, and again on a disk grow), so + the replay, which derives it from `boot.disk`, reproduces PCR5 (non-TDX) and PCR2 (TDX) on first + boots only. PCR2 must stay pinned on TDX: it carries stage0's Authenticode. Planned: the + attestation carries the GPT event digest as auxiliary data, which pins PCR2 and PCR5 on every + boot on both (lockboot/vaportpm#12; `../../README.md`, "Open: GPT digest from the attestation"). ## Expected (from the 2026-11-05 matrix, before captures were kept) From db572764c1c4d18cff2a3b8a77970adbd5b0ebfa Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Sat, 14 Nov 2026 05:53:08 +0000 Subject: [PATCH 14/15] workspace: clone DudeFS; release tracker, GPT measurement plan, console notes - Makefile REPOS and .gitignore: add DudeFS as a sibling clone. - WIP-RELEASE-TODO.md: the release tracker (status and open items as of 2026-11-10). - PLAN-GPT-MEASUREMENT.md: the parked plan for the GPT measurement and the TDX data key (grow, then reboot before deriving the key; vaportpm#12 for the verifier side). - CONSOLE-OUTPUT.md: where each stage's console output lands, per platform. Co-Authored-By: Claude Opus 5.5 --- .gitignore | 1 + CONSOLE-OUTPUT.md | 192 +++++++++++++++ Makefile | 3 +- PLAN-GPT-MEASUREMENT.md | 187 +++++++++++++++ WIP-RELEASE-TODO.md | 503 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 885 insertions(+), 1 deletion(-) create mode 100644 CONSOLE-OUTPUT.md create mode 100644 PLAN-GPT-MEASUREMENT.md create mode 100644 WIP-RELEASE-TODO.md diff --git a/.gitignore b/.gitignore index b87f2ea..774d833 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ /vaportpm/ /vaportpm-zk/ /wavebend.org/ +/DudeFS/ /stage2/ /notes/ diff --git a/CONSOLE-OUTPUT.md b/CONSOLE-OUTPUT.md new file mode 100644 index 0000000..b2da717 --- /dev/null +++ b/CONSOLE-OUTPUT.md @@ -0,0 +1,192 @@ +# Console output matrix — where each stage's output lands, per platform + +Working notes for capturing **full console output** (UEFI stages + Linux kernel + userspace) across +**local QEMU, AWS EC2, GCP**, on **x86_64 and aarch64**. This is an *observation* record: we run each +cell, capture whatever the platform actually emits **without modifying the QEMU device profile or the +kernel command line**, and write down what we see. Remedies (if any) come *after* the matrix is filled +with real data — not from derivation. + +Status legend: `captured` / `absent` / **`TODO`** (not yet observed). + +## The three output paths (mechanism, from source — to be confirmed by observation) + +1. **UEFI ConOut** — stage0 and any UEFI code print via `uefi::println!` → firmware ConOut + (`stage0/crates/stage0/src/timing.rs:94`, `main.rs:64`). No direct UART; the firmware decides which + serial device ConOut maps to. Reaches a captured log only if the firmware's ConOut device is the one + the platform captures. +2. **Kernel printk + initramfs script** — kernel command line is baked per-arch into the signed UKI + (`stage1/tools/build-uki/build.sh:232-243`): x86 `console=ttyS0 console=ttyS1 vsyscall=none`, + aarch64 `console=ttyAMA0 console=ttyS0`. printk fans to **all** `console=` devices; the initramfs + `/init` logs to `/dev/kmsg` (`stage1/tools/build-uki/init:6`) → also all consoles. +3. **Userspace PID-1** — stage1 and stage2 (Rust) log to **stderr → `/dev/console`**, which binds to the + **last** `console=` entry only (`stage1/crates/stage1/src/main.rs:131`; + `stage2/crates/bootstrap/src/main.rs:101,116`). stage2 inherits stage1's fds. + +## Retrieval per platform + +| Platform | How to boot | How to read the console | +|---|---|---| +| Local QEMU | `make smoke-boot-` / `make test-chain-` (stage0 harness image) | harness **stdout** (the make target's captured log) | +| AWS EC2 | `tools/publish/ec2/create.sh ` → `ec2/launch.sh --tail ` | `aws ec2 get-console-output --region --instance-id --latest --output text` (system log; **~minute lag**, ~2-min post-mortem drain) | +| GCP | `tools/publish/gcp/create.sh ` → `gcp/launch-instance.sh ` | `gcp/get-console.sh [--follow]` = `gcloud compute instances get-serial-port-output --zone ` (port 1) | + +Known fail-closed drains that exist *because* of cloud lag: stage0 `FAIL_CLOSED_DRAIN_US` 90 s +(`stage0/crates/stage0/src/main.rs:53-60`); stage2 `fatal_halt` 60 s grace +(`stage2/crates/bootstrap/src/main.rs:114-128`). + +## The matrix (fill with OBSERVED results) + +Per cell, record whether each path's output was **captured** in the retrieved console log. + +| Cell | UEFI ConOut | Kernel printk | Userspace PID-1 | Notes | +|---|---|---|---|---| +| Local QEMU x86_64 | **captured** | **captured** | **captured** | stage0 smoke-boot: full `stage0:`/`BdsDxe`. stage1 smoke-args chain: `Linux version`, `console [ttyS0] enabled`, `stage1:` userspace lines, and payload `arg[1]/arg[2]` — all on stdout via isa-serial=ttyS1 (the last `console=`). Fully observable. | +| Local QEMU aarch64 | **absent** (isolated; see below) | **captured** | **captured** | After the init fix: full chain PASSES (`smoke-args-aarch64`). stage1 runs (2 IMDS cycles + `GET /stage2`, matching x86), `stage1:` lines on ttyS0, payload `arg[1]/arg[2]` echoed. Only stage0/UEFI ConOut (→PL011) is uncaptured locally. | +| EC2 x86_64 | TODO | TODO | TODO | | +| EC2 aarch64 (Graviton) | TODO | TODO | TODO | | +| GCP x86_64 | TODO | TODO | TODO | | +| GCP aarch64 (t2a) | TODO | TODO | TODO | | + +## Phase 1 — local observation (in progress) + +Run the existing harness targets for both arches and record the captured stdout. **No** changes to +`qemu-test.sh` or the UKI cmdline. Targets that exercise the paths: +- `stage0`: `make smoke-boot-` — pure UEFI (stage0 → UEFI `payload.efi`, no kernel); exercises + **UEFI ConOut only**. +- `stage1`: `make test-chain-` / `make smoke-args-` — full chain (stage0 → kernel → stage1 + PID-1 → stage2 → payload); exercises **kernel + userspace** too. + +(Results filled in below as runs complete.) + +## Phase 2 — cloud observation (outline; user runs with cloud creds) + +Goal: boot the **current** build on each cloud cell and capture the console verbatim — no image or +guest changes. For each of {EC2, GCP} × {x86_64, aarch64}. + +**Priority / expected effort (per project context):** this is the important dry-run phase toward a +coherent deployable point. **GCP is the focus** — it has not been exercised in a while, so Phase 2 for +GCP is as much about shaking out (and likely *refining*) the deployment scripts as observing the +console. **EC2 is believed complete**; treat it as a confirmation pass. So Phase 2 has two intertwined +outcomes per cloud: (a) does it deploy+boot at all, and (b) what console output is captured. Expect GCP +to surface deployment-script fixes; capture those as follow-ups. + +### Scope: console debugging needs stage0 (and optionally stage1), NOT stage2 + +Console debugging asks one thing: **does each stage's console output get captured on this platform?** +The only path we can't see locally is **stage0's UEFI ConOut on aarch64** (→ PL011, nulled by the +harness). So the core cloud test is: **boot the stage0 image and read its serial console** — do +stage0's `stage0:` lines appear? stage0 prints these *before* it fetches any payload, so this is +answerable from the stage0 image alone. +- Kernel + stage1 userspace already work locally (via ttyS0); to reconfirm them on cloud, host a real + **stage1 UKI** so stage0 chainloads it. +- **stage2 is out of scope.** Its job is measuring config into PCR15 — a separate security function, + unrelated to console capture. A console-observation boot doesn't need it (PCR15 just won't be + measured). (The local serve-dir / `SERVE_HOST` machinery is likewise test-only.) + +### 1. Build +```bash +(cd stage0 && make build-) # -> stage0/build//{boot.disk, efi-vars.aws} (the image inputs) +(cd stage1 && make build-) # optional: the stage1 UKI (tools/build-uki//linux.efi), for kernel+stage1 +``` +`build-` = `build-x86_64` / `build-aarch64` (also `build-amd64` / `build-arm64`) — same shape in +all three repos now. + +### 2. EC2 — boot stage0, capture the console +```bash +cd stage0 +AMI=$(tools/publish/ec2/create.sh ) # from build//{boot.disk, efi-vars.aws} +tools/publish/ec2/launch.sh --tail "$AMI" +# full log anytime: aws ec2 get-console-output --region ap-southeast-1 --instance-id --latest --output text +``` +- Instance types auto: `c6i.large` (x86_64) / `c7g.medium` (arm64). +- **terminate (default) — do NOT pass `--stop`** (it leaves stopped instances to reap). `--tail` drains + the serial buffer ~2 min after the instance is gone, and stage0's 90 s fail-closed hold flushes before + poweroff, so termination still yields the full log. +- **Do NOT set `--nosleep`** in stage0's args — it disables that 90 s drain, whose whole purpose is to + flush EC2's lagged serial buffer (fine locally, loses the log on EC2). +- Any valid `_stage1` user-data works for the stage0-UEFI check; stage0 prints regardless of payload + reachability. To also chainload/observe the kernel + stage1, host a signed UKI (next). +- Optional housekeeping: `create.sh --manifest ` + `tools/publish/cleanup.sh ` deregisters the + AMI/snapshot afterward. + +### 3. Hosting a stage1 UKI (only to also capture kernel + stage1) +`lockboot-deploy` signs/pins the UKI and emits `user-data.json` + an upload-ready dir: +```bash +lockboot-deploy keygen --out release.pem --pub release.pub.b64 +lockboot-deploy create --arch --uki --stage2 --key release.pem \ + --base-url http://.s3..amazonaws.com --out deploy/ # http only; integrity is the ed25519 pin +# upload deploy//* to S3, then launch with deploy/user-data.json exactly as in step 2 +``` +(`create` still requires a `--stage2` even though it's not what we're watching — point it at any stage2 +build; it doesn't affect the stage0/stage1 console.) + +### 4. GCP — same image + user-data +```bash +IMG=$(tools/publish/gcp/create.sh ) +tools/publish/gcp/launch-instance.sh lb- asia-southeast1-a "$IMG" +tools/publish/gcp/get-console.sh lb- asia-southeast1-a --follow # gcloud get-serial-port-output (port 1) +``` +Machine types `n2d-standard-2` (x86_64 SEV) / `t2a-standard-1` (aarch64). GCP manages SB vars + vTPM +itself (no `efi-vars.aws` / `--uefi-data`). + +### 5. What to observe (fill the matrix) +Grep each captured console for the three paths: +- **UEFI ConOut (stage0):** `stage0: version`, `stage0: network`, `stage0: metadata` — *the key aarch64 + question*: does stage0's pre-kernel output land on the platform's serial? +- **Kernel:** `Linux version`, `console [tty…] enabled`. +- **Userspace:** `stage1:` lines, then the stage2/workload output. + +## Findings / remedies + +(Filled in only after the matrix has real data. No changes to console wiring are proposed here until an +observation shows a specific stage's output is actually missing on a specific cell.) + +### Local aarch64 findings (observed 2026-07-15; no changes made) + +Two separate things surfaced in `make smoke-args-aarch64` (full 593-line log in +`stage1/build/aarch64/smoke-args.log`); recorded as observations, not diagnoses: + +1. **UEFI ConOut is not captured.** stage0 + AAVMF write ConOut → PL011, and the harness nulls PL011 + (`-serial none`); the captured device is the pci-serial (ttyS0). x86 differs only because OVMF ConOut + lands on the captured isa-serial. (This is *only* an observability gap — the boot clearly proceeds + into Linux.) +2. **Kernel + init ARE captured; the chain then dies in `/init` at ~2.1s — ROOT-CAUSED.** The kernel + registers **only** `ttyS0` as a console (`console [ttyS0] enabled`; PL011 bootconsole `pl11` + disabled; `ttyAMA0` never registers, no backend). So `/dev/console` = ttyS0 = captured, and 33 + `init:` lines appear — i.e. **console capture on aarch64 is working for the kernel/init path** (it is + how we saw the failure). Then `reboot: Power down` at 2.1s. + + **Root cause (log + code): the initramfs `/init` dies before `exec /bin/stage1`.** + - The captured die line is `init: sysctl: kernel.nmi_watchdog=0 failed`, immediately followed by + `reboot: Power down`. + - `stage1/tools/build-uki/init:113` runs `sysctl kernel/nmi_watchdog 0` **without `-f`**. The + `sysctl()` helper (`init:12-23`) `die`s on a **write failure** (`:19-20`) unconditionally; `-f` + only skips a **missing** file (`:15-17`). On aarch64 `/proc/sys/kernel/nmi_watchdog` *exists* but + writing `0` fails (no NMI/hardlockup watchdog to toggle) → `die` → `poweroff -f`. + - The sibling NMI sysctls at `init:117-120` are `-f`-guarded as "x86-only... not present on + aarch64" — but `nmi_watchdog` is *present-but-unwritable*, a case `-f` does not cover, so it was + missed. + + **Confirmed independently by the metadata-mock witness:** x86 shows **two** IMDS token+user-data + cycles (stage0's, then stage1's) plus stage1's `GET /stage2`; aarch64 shows **only stage0's single + cycle and no `GET /stage2`** — i.e. stage1 never runs its network phase. So stage1 does not run on + aarch64, because `/init` powers off first. + + This is a **real init-script bug, not a console problem**. It is orthogonal to the UEFI-capture gap + (item 1). + + **FIXED + verified (2026-07-15).** Applied option (a): `sysctl()` now honors `-f` on a *write + failure* too (skip-with-warning, `stage1/tools/build-uki/init:19-21`), and `:113` is marked + `sysctl -f kernel/nmi_watchdog 0`. Re-ran `make smoke-args-aarch64`: + - `init: sysctl: kernel.nmi_watchdog=0 skipped (write failed)` — `/init` continues instead of dying. + - stage1 now runs: **2** IMDS token+user-data cycles and **1** `GET /stage2` (matching x86), and + `stage1:` userspace lines are captured on ttyS0 (`... exec stage2 ... ["--smoke", "hello world"]`). + - Payload completes: `arg[1]: --smoke` / `arg[2]: hello world`; assertion **PASS**; normal 60 s-drain + poweroff. + + So on aarch64 the entire kernel→init→stage1→stage2→payload path now works **and is captured** + (via ttyS0). The **only** remaining aarch64 gap is item 1 (UEFI ConOut → PL011, uncaptured locally), + which is isolated and best confirmed on EC2 (whose firmware ConOut = ttyS0 = the captured serial). + + Impact note: because `nmi_watchdog` unwritability is an aarch64 *kernel* property, this bug would have + killed stage1 on **EC2/GCP aarch64 too** — the fix unblocks aarch64 on every platform. diff --git a/Makefile b/Makefile index 57f7f12..563a4a6 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,8 @@ REPOS := \ stage1=$(GITHUB_BASEURL)/stage1.git \ vaportpm=$(GITHUB_BASEURL)/vaportpm.git \ stage2=$(GITHUB_BASEURL)/stage2.git \ - vaportpm-zk=$(GITHUB_BASEURL)/vaportpm-zk.git + vaportpm-zk=$(GITHUB_BASEURL)/vaportpm-zk.git \ + DudeFS=$(GITHUB_BASEURL)/DudeFS.git # The canonical build Dockerfiles live in stage0 (the reference project; the copy # in stage1 is kept byte-identical). Build the shared "lockboot family" images diff --git a/PLAN-GPT-MEASUREMENT.md b/PLAN-GPT-MEASUREMENT.md new file mode 100644 index 0000000..87411a7 --- /dev/null +++ b/PLAN-GPT-MEASUREMENT.md @@ -0,0 +1,187 @@ +# Plan: the GPT measurement, the /data key, and the verifier + +Status: **draft for decision, parked 2026-11-10** (pondering; EC2 still blocked). Written so it +survives a context compaction: every fact, rejected option and open question from the +2026-11-10 discussion is here. Tracker item: `WIP-RELEASE-TODO.md`, "TDX stage2 data key binds +PCR2". Companion verifier issue: lockboot/vaportpm#12. + +## 1. Facts + +### What the firmware measures + +- `EV_EFI_GPT_EVENT` = `H_bank(UEFI_GPT_DATA)`: the **primary** GPT header (92 bytes: disk + GUID, MyLBA, AlternateLBA, First/LastUsableLBA, entry-array LBA/count/size, entry-array + CRC32, header CRC32) + a UINT64 partition count + every used 128-byte entry (type GUID, + unique GUID, start/end LBA, attributes, name). The whole table, not just the disk GUID. + Built in `stage0/tools/predict-pcrs.py` `gpt_data()` and `tools/pcr-replay/pcr-replay.py` + `gpt_data()`. EDK2: `Tcg2MeasureGptTable` (DxeTpm2MeasureBootLib), measured once per boot. +- The image's GPT (`boot.disk`) is 228 bytes of measured data: 92 + 8 + 128 (ESP only). +- The firmware does **not** measure ESP filesystem contents; only `BOOT*.EFI` (Authenticode). + stage0 does not read the ESP filesystem (no SimpleFileSystem use in stage0's crates). + +### Where it lands + +| Platform | GPT event | stage0 Authenticode | Evidence | +|---|---|---|---| +| QEMU/OVMF, GCE Shielded / SEV / SEV-SNP | PCR5 (after its separator; PCR5 holds nothing else) | PCR4 | captures in `tools/pcr-replay/platforms/gcp/captures/` | +| **GCE TDX** (c3) | **PCR2** (after PCR2's separator, before the Authenticode) | **PCR2** | `captures/2026-11-09-c3-standard-4-tdx.log` | +| EC2 Nitro | PCR5 expected; Nitro's profile defines PCR5 as "Boot Manager Code Configuration and Data **and** GPT" -- may hold more | PCR4 expected | unverified (AWS blocked) | + +GCE TDX looks like logging by CC measurement register (TCG CC mapping: PCR2-6 -> RTMR1, "MR +index 2") reflected into the vTPM as PCR2. Same firmware binary as c3 Shielded. + +### stage2's GPT rewrite and the data key (today) + +- `stage2/crates/blockdev/src/lib.rs` `ensure_partitions()` (line ~158): idempotent, + grow-only. Rebuilds the GPT whenever p3 (data) is missing or ends before `last_usable`; + returns without writing when p3 already fills the device. Preserves the ESP entry verbatim + and the disk GUID; p2 = runtime (fixed size, fixed GUID `4c4f434b-424f-4f54-...-02`), p3 = + data (fills the rest, fixed GUID `...-03`). Refuses to shrink. So the rebuilt GPT is + deterministic for a given disk size. +- `stage2/crates/bootstrap/src/main.rs`: `derive_data_key()` at line ~54, **before** + `ensure_partitions()` at line ~59; `crypt_mount_or_mkfs()` at line ~103. +- `stage2/crates/tpm-derive/src/lib.rs`: `DATA_KEY_PCRS` = every PCR except 5 (GPT) and 10 + (IMA). Rationale in `stage2/PCR-BINDING.md` (PCR5: runtime GPT rewrite; PCR10: IMA boot + aggregate = hash(PCR0-9), redundant, includes PCR5). +- `vaportpm/crates/vaportpm-attest/src/derive.rs` `derive_pcr_bound()`: keyedhash HMAC primary + in the owner hierarchy, `authPolicy` = `PolicyPCR` over the **live** values of the chosen + PCRs (sha256 bank), `userWithAuth` clear; every HMAC block re-satisfies `PolicyPCR` in a + policy session. Key material = f(owner seed, template incl. authPolicy). Stateless. +- `crypt_mount_or_mkfs()`: plain dm-crypt `aes-xts-plain64` (no LUKS header); a wrong key + decrypts the ext4 superblock to garbage -> no magic -> reinit (fail closed). + +### Observed 2026-11-10 (pivot-init reboot test, cloudtest `7cf12890de5f`, `lb-rb-*.console.log`) + +- **n2d SEV-SNP: PASS.** Boot 2 `data_reinit=false`, sentinel present, overlay root ephemeral. +- **c3 TDX: key moves once.** Boot 1 writes GPT-B; boot 2 measures GPT-B into PCR2 -> different + key -> `data_reinit=true` (/data lost; pivot-init re-ran boot 1); boot 3 PASS. Data written + on a TDX VM's first boot is lost at its first reboot; stable after, until a grow. + +## 2. Requirements (from the discussion) + +- PCR2 on TDX must stay bound and pinned: it carries stage0's Authenticode. Excluding it, or + treating it as a free variable (data key or verifier), is not acceptable. +- No reconstruction of the post-rewrite GPT in the verifier from GUIDs / disk size: brittle. +- Every carrier that persists across boots (ESP, any disk region, TPM NV with empty owner auth) + is **adversarial input**: an operator may run another author's stage1/stage2 on the same + machine. The attack to defend is **substitution** (plant a key we then use), not disclosure. +- Unattested claims (in-guest CPUID etc.) are meaningless; no platform auto-detection in the + verifier -- the caller names the platform file. + +## 3. Leading candidate: grow, then reboot; bind PCR5 again + +### Rule + +In bootstrap: **if `ensure_partitions()` wrote the GPT this boot, sync and reboot before +touching `/data`.** No first-boot detection, no stored state: "free space -> grow into it" is +the existing logic, and its own outcome is the trigger. The next boot finds p3 filling the +device, writes nothing, measures the final GPT, and derives the key from it. + +### Consequences + +- First boot (64 MiB image -> full volume): grow, reboot, key from the final GPT. Nothing lost. +- **Volume grown later (EBS / PD resize): grow, reboot, key changes -> `/data` reinit (wiped)** + through the existing fail-closed path. Accepted: you cannot grow the volume without wiping + `/data` (until a key carrier exists, section 5). +- The GPT is final before any key is derived on every platform, so **PCR5 can be bound again** + (`DATA_KEY_PCRS` = all but PCR10). Same behaviour on every platform, TDX included. +- Cost: one extra boot (~30 s) on first boot and after each grow. +- A volume resize by itself changes nothing measured (the primary GPT is untouched until stage2 + rewrites it) -- but see open question O2. + +### Changes + +1. `blockdev::ensure_partitions()` returns whether it wrote (today: only the two paths). +2. `bootstrap/src/main.rs`: on a write, sync + reboot; never reach `crypt_mount_or_mkfs()`. + Move `derive_data_key()` after `ensure_partitions()` (deriving before a reboot is harmless + but wasted; the new order states the dependency). +3. Reboot-loop guard (O1): before rebooting, re-read the table from the device and check that + p3 now ends at `last_usable`; if not, fail closed instead of rebooting. +4. `tpm-derive`: `DATA_KEY_PCRS` gains PCR5; doc comment updated. +5. `stage2/PCR-BINDING.md`: PCR5 now bound (GPT final before derivation); grow = reinit; the + TDX placement (PCR2); PCR10 still excluded (IMA boot aggregate). +6. pivot-init / grow-probe expectations: boot 1 now reboots once before the sentinel boot; a + grow test expects reinit after a grow. + +### Verification + +- QEMU x86_64 + aarch64: `make -C stage2 selftest-` / `test-pivot-` (pivot-init, + grow-probe with `PERSIST_GROW`), adjusted for the extra reboot and grow-wipes semantics. +- GCP, one VM at a time (AGENTS.md "Cloud test runs"), bundle like `chain-reboot` + (`scratchpad/setup-reboot.sh`, `reboot-run.sh`, `test-lb-rb-{snp,tdx}.sh`): n2d SEV-SNP and + c3 TDX must both PASS with no reinit after the provisioning reboot. +- A resized-volume test on GCP (O2): stop, grow the PD, start; confirm PCR5/PCR2 unchanged + before stage2 acts, then the grow + reboot + reinit. +- EC2 when unblocked: same, plus O3. + +### Open questions + +- **O1 reboot loop.** If the GPT write does not persist (read-only/misbehaving device, firmware + that "repairs" the table), every boot sees free space -> rewrite -> reboot, forever. The + read-back guard (change 3) catches a write that didn't stick; it does not catch a firmware + that rewrites the GPT on its next boot. Stronger bound wanted? +- **O2 firmware on a grown volume.** After a resize the backup GPT is no longer at the disk's + end. Expect EDK2 to validate and measure the primary unchanged; if a firmware repairs or + relocates the backup header, PCR5/PCR2 would move without stage2 rewriting anything. Check + on a real resized disk (GCP, EC2). +- **O3 Nitro PCR5.** If NitroTPM's PCR5 holds more than the GPT, binding it on EC2 needs that + content understood first. Needs an EC2 event-log capture (`tools/pcr-replay/EC2-NOTES.md`). + +## 4. Verifier side (independent of the data-key choice) + +- `pcr-replay` derives stage0's GPT event from `boot.disk`, which only holds on a boot before + stage2's rewrite. With the provisioning reboot, **every workload boot** measures the + rewritten GPT, so replaying PCR5 (non-TDX) / PCR2 (TDX) needs the GPT event digest from the + attestation: **lockboot/vaportpm#12** (aux data: one digest in the attested bank, from the + event log; the quote binds it via the PCR comparison). Needs: vaportpm-attest, + vaportpm-verify (+ flat zkVM format), **vaportpm-zk** (commit it in `ZkPublicInputs`), and a + pcr-replay "supplied digest" mechanism (open design; `tools/pcr-replay/README.md`, "Open: + GPT digest from the attestation"). Inputs today are 32-byte sha256 only -> per-bank values. +- Already done (workspace a56e303, 454744c; stage0 8322629): `route` rules in platform files + (GCE TDX: `EV_EFI_GPT_EVENT` 5 -> 2, `EV_EFI_BOOT_SERVICES_APPLICATION` 4 -> 2), stage0's + replay file in firmware log order, `gcp-c3-standard-4-tdx.replay.json`; TDX full chain + verified (first boot). +- Policy note: anything binding stage0's identity via PCR4 needs a TDX case (PCR2). + +## 5. Options considered + +### Rejected + +- **Exclude PCR2 on TDX** (from the data key or the verifier): loses stage0's identity. +- **Accept the one-time loss** (document "reboot once before relying on /data"): no. +- **Final layout at image build:** the GPT header's LastUsableLBA/AlternateLBA depend on the + disk size; would need a fixed disk size. +- **MAC under a GPT-independent PCR-derived key** (authenticating a blob): a foreign stage0 + runs first and can mimic every PCR except PCR2, then derive the MAC key -- "DOA". +- **Platform auto-detection / PCR0-based platform selection** in the verifier: the caller + names the platform file; a wrong one fails closed. + +### Key carriers (only needed if a grow must keep `/data`) + +Predict the post-rewrite PCRs on the setup boot (replay the verified live event log with +`H(UEFI_GPT_DATA(GPT-after))`; PolicyPCR digest = `H(0^32 || TPM_CC_PolicyPCR || selection || +H(PCR values))`) and carry the key K across the state change. Any carrier is adversarial. + +- **a) Sealed blob + TPM creation record.** Seal K to `PolicyPCR(after)`; before use, + `TPM2_CertifyCreation` (unsigned, `TPM_RH_NULL`) verifies the creation ticket, and the + recorded creation-PCR digest must equal our chain's state at sealing: non-GPT PCRs = live; + the GPT-holding PCR rebuilt from the verified live log with the stored pre-rewrite GPT + digest (untrusted but harmless: in PCR2 the Authenticode follows the GPT, so a foreign + stage0 would need a collision). Needs on-disk state (~200-byte blob); the ESP was considered + (placeholder file written raw, A/B slots) and is adversarial like any location. +- **b) TPM NV index holding K.** `authPolicy` = `PolicyOR(NV_Read + PolicyPCR(after), + NV_Write + PolicyPCR(before))`; attributes exactly `POLICYREAD | POLICYWRITE` (+ NO_DA; no + OWNER*/AUTH*); handle in the owner range, not `0x01c0xxxx` (TCG / GCP AK). Reader checks + `NV_ReadPublic` (attrs + authPolicy) against its own computation, so only a TPM in our full + chain's before state can have written K. Grow carries K over (read old, define new), no + re-encryption. Open: where the pre-setup GPT digest lives (second NV index or file; + untrusted, same argument as a), A/B indices for crash-safe grows, NV persistence on GCE / + NitroTPM / swtpm. Undefine via empty owner auth = DoS -> reinit. +- **Option 1 (last place): never rewrite the GPT.** Data region after the ESP found by its own + header. Stateless, handles grows; a disk region with no partition entry. + +## 6. Order of work (when un-parked) + +1. Decide section 3 (and O1's bound). 2. stage2 changes 1-6 + QEMU selftest both arches. +3. GCP SNP + TDX reboot tests, resized-volume test (O2). 4. EC2: capture, O3, same tests. +5. vaportpm#12 (verifier aux digest) in parallel; it is needed either way. diff --git a/WIP-RELEASE-TODO.md b/WIP-RELEASE-TODO.md new file mode 100644 index 0000000..ac19ad1 --- /dev/null +++ b/WIP-RELEASE-TODO.md @@ -0,0 +1,503 @@ +# WIP release TODO + +Working tracker for the current cross-repo release changeset, so nothing is lost from context. +Status legend: `[ ]` open, `[x]` done, `[?]` claim not yet verified against docs/behaviour. +Every cloud-platform claim must cite the doc (or observed behaviour) it was verified against. + +## The changeset (one PR per repo; merge only when all pass together) + +| Repo | PR | Branch | +|---|---|---| +| stage0 | lockboot/stage0#12 | `mkvarstore-port-forward` | +| stage1 | lockboot/stage1#21 | `aarch64-sysctl-arch-aliases` | +| stage2 | lockboot/stage2#2 | `resolv-conf-arch-aliases` | +| vaportpm | lockboot/vaportpm#11 | `attest-derive-subcommand` | +| workspace | lockboot/workspace#5 | `harness-sync-stage2` | + +## Status 2026-11-10 + +- All five PRs draft, mergeable, CI green on their heads (stage0 8322629, stage1 b86bc5a, stage2 + bb96d47, vaportpm e956e5f, workspace 454744c). PR descriptions current. +- GCP x86_64 done: n2d Shielded / SEV / SEV-SNP, c3 Shielded / **TDX**. Full chain verified by + `pcr-replay` against golden platform files on SEV, SEV-SNP and TDX (2026-11-10 regression); + stage0 probes on Shielded n2d and c3. TDX needed direct gVNIC doorbells + the LAPIC tick + (stage0 615b810, 34dbc69) and dropping `init_on_free=1` (stage1 b86bc5a). +- GCP project `lockboot` clean (no instances / images / objects). +- Merge gate unchanged: EC2 (AWS account still blocked) + the full suite on both arches. + +## Open items 2026-11-10 + +Needs a decision / quick check: +- [x] **Reboot stability on GCP** (check E), 2026-11-10, pivot-init, cloudtest 7cf12890de5f + `lb-rb-*.console.log`. **n2d SEV-SNP: PASS** (boot 2 `data_reinit=false`, sentinel present, + overlay root ephemeral). **c3 TDX: key moves once** -- boot 2 `data_reinit=true` (/data + wiped, pivot-init redid boot 1), boot 3 PASS (next item). +- [ ] **TDX stage2 data key binds PCR2, which now carries the GPT.** GCE TDX logs the GPT into + PCR2 (not PCR5), and PCR2 is in `DATA_KEY_PCRS` (stage2 tpm-derive). stage2 rewrites the GPT + on first boot, so the first reboot derives a different key and reinits `/data`; stable + after, until a disk grow. CONFIRMED 2026-11-10 (lb-rb-tdx: boots 1-2 reinit, boot 3 PASS): + data written on a TDX VM's first boot is lost at its first reboot. **Full plan: + `PLAN-GPT-MEASUREMENT.md`** (leading candidate: grow -> reboot before deriving the key, + bind PCR5 again, a volume grow wipes /data). **PARKED 2026-11-10** + until EC2 works (NitroTPM NV behaviour is an input). Options discussed, none ideal: + - Rejected: exclude PCR2 on TDX; accept the one-time loss; final layout at image build + (GPT header depends on disk size); a MAC under a GPT-independent PCR-derived key (a + foreign stage0 can mimic every PCR but PCR2). + - Option 3, predict the post-rewrite PCRs on the setup boot and bind the key to them. + Needs a carrier for the key across the state change; any carrier (ESP, disk, NV) is + adversarial input -- the attack is substitution (plant a key we then use), not reading. + a) Sealed blob + TPM creation record (CertifyCreation; creation PCRs checked against + our chain, GPT-holding PCR rebuilt from the verified live log). Needs on-disk state. + b) NV index holding K: authPolicy = OR(NV_Read + PolicyPCR(after), NV_Write + + PolicyPCR(before)), attrs exactly POLICYREAD|POLICYWRITE; reader checks + NV_ReadPublic attrs + authPolicy against its own computation, so only our full chain + (before state) can have written K. Grow carries K over (no re-encryption). Open: + where the pre-setup GPT digest lives, A/B indices for crash-safe grows, NV + persistence on GCE / NitroTPM. Undefine by empty owner auth = DoS -> reinit. + - Option 1 (last place): stage2 never rewrites the GPT (data region found by its own + header) -- stateless, handles grows. PCR2 cannot simply be excluded on TDX: it also carries + stage0's Authenticode. +- [ ] **PCR4 policy needs a TDX case:** anything binding stage0's identity via PCR4 (sealing, + attestation policy) must use PCR2 on TDX. +- [x] **stage1 `stage0-snippet.json`**: DROPPED (stage1 46d2bd0); `lockboot-deploy create` + + docs produce the `_stage1` document. + +Follow-ups (filed / tracked): +- [ ] **GPT event digest as attestation aux data** -- lockboot/vaportpm#12: vaportpm-attest reads + it from the event log, vaportpm-verify carries it (incl. the flat zkVM format), **matching + vaportpm-zk change** (commit it in `ZkPublicInputs`), pcr-replay takes an event's digest from + it (open design, workspace `tools/pcr-replay/README.md`). Then PCR2 and PCR5 pin on every + boot, TDX and non-TDX; until then replay reproduces them on first boots only. +- [ ] **`init_on_free=1` kills the TD on GCE TDX** (silent reset; dropped, `init_on_alloc=1` kept). + Root cause parked. A triple fault and a TD kill look the same from inside; a #DF handler + that dumps state before the triple fault would tell them apart. +- [ ] **GCP Arm (t2a):** firmware has no network stack above SNP (no MNP/IP4/DHCP4/TCP4); stage0 + would need to embed one. No t2a PCRs until then. +- [ ] **EC2** (blocked on the AWS case): platform golden files (`tools/pcr-replay/EC2-NOTES.md`), + recreate the AMI (predates the PCR7 owner-GUID fix), ENA logging / `[S.mmm]` timestamps, + ENA ExitBootServices quiesce (below). +- [ ] stage0 `REPRODUCIBLE-BUILDS.md`: varstore notes. +- [ ] No Makefile target for the verbose gvnic build (`--features verbose`). +- [ ] Blog: the gvnic post gains the TDX story (BAR2 doorbells, PIT-less TD, LAPIC tick). + +After the release: +- [ ] **TDX quote / SNP report as supplementary attestation** (like Nitro's NSM document): bind the + vTPM attestation to hardware evidence. Unattested in-guest claims (CPUID etc.) are not used. + +## Status 2026-11-05 (end of GCP day) + +- Merge gate: AWS account restriction (support case) -> then the full suite across EC2 + GCP, + both arches where supported, before any PR merges. All PRs stay open/draft until then. +- GCP x86 done for Shielded / SEV / SEV-SNP (stage0 PR #12: 34bd6fa db8caab b3df2b0 aeecd8d); + TDX + t2a open (below). GCP project `lockboot` cleaned: no instances/images/objects; buckets + `lockboot` + `lockboot-test` kept empty (test keeps its allUsers grant). +- Blog draft (uncommitted, outside the build): `wavebend.org/drafts/2026-11-05-gcp-gvnic.md`. + After merge: decide extra sections (UDP4 RecycleSignal, dbx), and add a correction note to the + ENA post (it says GCP's OVMF brings up virtio-net -- no longer true). + +## Up next (queued) + +- [x] **stage0 gVNIC UEFI driver** -- DONE (stage0 #12; TDX too: 615b810 doorbells, 34dbc69 LAPIC + tick). Original note: (embedded + measured like `ena.efi`). GCP enforces gVNIC for + Confidential VMs AND Arm (t2a) -- API, observed 2026-11-05: "Confidential Compute VMs + cannot use VIRTIO_NET. They must use GVNIC." / t2a: "Only [[GVNIC, UNSPECIFIED_NIC_TYPE]] + nic types are allowed". GCP's UEFI firmware has no gVNIC driver (only virtio-net), so + with gVNIC stage0 dies at `no EFI_IP4_CONFIG2 ... NOT_FOUND`. Blocks GCP SNP + GCP aarch64. + Spec references: Linux `gve`, DPDK gve PMD. Until then GCP x86 = Shielded VM on virtio-net + (test only); `launch-instance.sh` hard-codes GVNIC (introduced 7f1bc44 with the ENA + driver, never booted on GCP since). +- [ ] **ENA ExitBootServices quiesce** (gvnic half DONE: full teardown -- DESTROY_TX/RX, + UNREGISTER_PAGE_LIST, DECONFIGURE -- then reset, from an EBS event). ENA: later issue. `ena.efi` never resets the device + at ExitBootServices, so RX DMA stays posted into boot-services memory the OS reuses. Linux + evidently copes on EC2 (its driver resets at probe), but the window between EBS and the ENA + probe is a real DMA-into-freed-memory hazard. gvnic registers an EBS event -> reset + handshake from the start; port the same to ena. +- [x] **dbx A/B** -- DONE (resolved below: `dbx.auth.bin`). Original note: (after the DeployedMode question): `mkvarstore.py` emits `dbx.esl` (same + placeholder already in efi-vars.{ovmf,aws}); `gcp/create.sh --forbidden-database-file`; + confirm GCP's "BIN" = full EFI_SIGNATURE_LIST by comparing PCR 7 / the dbx event. + +## GCP x86 matrix 2026-11-05 (gvnic driver, image A = GCP default dbx) + +Spot, asia-southeast1-b, probe payload, sha256 PCRs (first 16 hex). All stable across reboots. +**Superseded** by workspace `tools/pcr-replay/platforms/gcp/` (captures + golden replay files, +2026-11-09/10), which also covers TDX. Kept as the 11-05 record. + +| Config | Machine | Net/payload | PCR0 | PCR1 | PCR2,3,6 | PCR4 | PCR5 | PCR7 | PCR14 | +|---|---|---|---|---|---|---|---|---|---| +| Shielded | n2d-standard-2 | OK (6 boots) | d0c70a93 | 09b32fdf | 3d458cfe | 4fd748b2 | 170cbfef | c05a3c37 | 090f86bc | +| SEV | n2d-standard-2 | OK | a0b5ff33 | 2c4b6392 | 3d458cfe | 4fd748b2 | 170cbfef | c05a3c37 | 090f86bc | +| SEV-SNP | n2d-standard-2 (Milan) | OK | 50597a27 | 2c4b6392 | 3d458cfe | 4fd748b2 | 170cbfef | c05a3c37 | 090f86bc | +| Shielded | c3-standard-4 | OK | d0c70a93 | 1e0e29fc | 3d458cfe | 4fd748b2 | 170cbfef | c05a3c37 | 090f86bc | +| TDX | c3-standard-4 | **DHCP timeout** (11-05); OK 11-09 | 0cca9ec1 | baef2b3d | GPT + stage0 land in PCR2 | BDS action + sep only | sep only | | | +| local QEMU (our dbx) | | OK | 62852b26 | c3cc3083 | 3410b993/3d458cfe | 4fd748b2 | 170cbfef | 965cb27a | 090f86bc | + +- PCR0 varies by confidential type; PCR1 by machine type / confidential-vs-not. PCR4 (stage0), + PCR5 (GPT), PCR14 (payload) are portable across GCP configs AND local QEMU; PCR7 is uniform + across GCP configs for one image (keys + dbx fixed). +- [x] **TDX: gvnic probe all PASSED + link up, but no packets (DHCP 30 s timeout).** RESOLVED + 2026-11-09. The QPL shared/private theory below was wrong. Two causes: (1) GCE backs the + doorbell BAR2 as memory; under TDX EDK2's `PciIo.Mem` is a TDVMCALL MMIO hypercall that + never reaches it -> direct stores to the BAR's host address (615b810); (2) GCE firmware + ticks from the PIT/8259 and a TD gets no IRQ0, so no UEFI timer event ever fired -> LAPIC + tick when the firmware tick is dead (34dbc69). Original note: Not the queue + format (c3 Shielded works in GQI_QPL with the same device options 0x3+0x4). TDX-specific: + AQ DMA works, data-path DMA doesn't -- look at shared/private conversion of the large QPL / + ring buffers under TDX's IoMmu. Deferred. +- [ ] (deferred, 2026-11-10: GQI_QPL works on every platform we need) **DQO** (0x4) offered on c3 alongside GQI_QPL; not needed (GQI_QPL carries traffic). Revisit + only if a series stops offering 0x3. +- [x] **dbx on GCP: RESOLVED.** A bare EFI_SIGNATURE_LIST as fileType BIN is accepted at image + create but kills every VM at start (`compute.instances.hostError` ~8 s, all configs incl. + TDX, console "Unknown CPU Platform"). GCP's BIN dbx is an AUTHENTICATED variable update + (`EFI_VARIABLE_AUTHENTICATION_2` || ESL, as uefi.org DBXUpdate.bin used in RHEL's GCP docs), + signed by an enrolled KEK. Build now emits `dbx.auth.bin` (mkvarstore.py `--out-dbx-auth`, + KEK-signed via `openssl cms -noattr`, fixed timestamp) -- reproducible for a given key set, + ESL byte-identical to efi-vars.{ovmf,aws}. Verified through gcp/create.sh: boots, PCR7 + `ee5f65dc` (an X.509 dbx entry also boots: PCR7 `09992522`; default dbx: `c05a3c37`). +- [x] **PCR7 GCP vs QEMU differs with identical dbx bytes** (`ee5f65dc` vs `965cb27a`). ROOT CAUSE + (2026-11-06): GCP wraps the PK/KEK/db .cer we upload in an ESL with a fixed, undocumented + SignatureOwner `d281fad2-8d88-47a4-9792-5baa47bb1b89` (seen in go-tpm-tools' GCE test event + logs, cos-101 + ubuntu-2404); we used random per-key GUIDs (gen-keys.sh `uuidgen`). Event + sequence is otherwise identical (SecureBoot, PK, KEK, db, dbx, separator, db authority) -- + offline replay (scratchpad gce-evlog/bin/predict.py) reproduces BOTH values exactly. FIX + (committed, stage0 #12): gen-keys.sh writes GCP's GUID for all three; dev build/keys/*.guid rewritten. + VERIFIED on QEMU: PCR7 `965cb27a` -> `ee5f65dc` (= GCP), PCR0-6/14 unchanged. EC2 pending + (expected `ee5f65dc` too: efi-vars.aws comes from the same mkvarstore). The AMI + `ami-04abef7162f90706e` predates the fix -> recreate. Follow-up DONE: predicted PCRs are a + build output (`stage0.replay.json` + `pcrs.json`, stage0 #12). +- gcp/create.sh bugs found + fixed (committed, stage0 #12): `images list --filter=name=X` is a pattern match + (X matched X-defdbx) -> exact `images describe`; gcloud types key files by extension (`.bin` -> + BIN, else must be DER X.509) -> dbx passed as a `.bin` copy. +- [x] Signed BOOT*.EFI is not byte-reproducible across re-signings -- BY DESIGN: the Secure Boot + keys are deliberately ephemeral (minted per build), so the signed binary differs per build. + PCR4 (Authenticode hash) is unaffected. + +## Findings 2026-11-05 (GCP day) + +- stage0 DeployedMode gate refused every GCP boot: GCP can only provision PK/KEK/db/dbx, firmware + boots in User Mode. Fixed in stage0 be996b4: require SecureBoot=1, SetupMode=0, AuditMode + 0/absent; accept User or Deployed. stage0 never writes DeployedMode. +- Local QEMU (our edk2): `AuditMode` absent, `DeployedMode` = our preset plain NV|BS variable + (attrs 0x03), `SecureBoot`/`SetupMode` BS|RT -- this edk2 does not implement the UEFI 2.5 + modes; DeployedMode=1 on QEMU/EC2 was never firmware-enforced. +- A guest power-off leaves a GCP spot VM STOPPED (not deleted; `--max-run-duration` timer is + cleared on stop). Manifest + cleanup.sh required. +- GCP org policy `iam.allowedPolicyMemberDomains` blocked allUsers; overridden on project + `lockboot` only (2026-11-05). `gs://lockboot-test` = public-read payload mirror. +- `t2a` not offered in asia-southeast1-a -> default zone now `-b` (workspace Makefile). +- `lockboot-deploy create --args` applies to `_stage2` only; no way to set `_stage1` args + (used jq for the probe). Test-only gap: `_stage1.args` become the chain-loaded EFI image's + LoadOptions, which our UKI ignores under Secure Boot (stage0 `config.rs`); only a non-UKI stage1 + such as the stage0 test payload reads them. LEAVE (2026-11-10). +- Follow loops: stopping the host `docker exec` does not stop the in-container process; run + followers under in-container `timeout`. + +## Release gate + +- [x] Local `make selftest`, both arches (x86_64 KVM, aarch64 TCG): ALL PASS (before the getcap + fix; getcap fix verified by a single fresh-vTPM boot, no `core` file). +- [x] Tag rulesets (`lockboot-release-tags`, `refs/tags/v*`) + immutable releases: applied live, + `make check-rulesets` ok on all 6 repos. +- [x] Release attestation covers zip contents (+ `qemu-test.sh`) via `subject-checksums`. +- [ ] Cloud serial-console check, 4 cells: {EC2, GCP} x {x86_64, aarch64}. GCP x86_64 DONE + (2026-11-09/10, all lines present); EC2 both blocked (AWS case); GCP aarch64 blocked (no + network stack in the t2a firmware). Per cell look for + `stage0:` lines, kernel printk, `init:` lines, `stage1:` lines, stage2 loader lines. + (See `CONSOLE-OUTPUT.md` Phase 2.) Watch userspace lines: `/dev/console` = last + registered `console=`. +- [ ] (later -- user archives them in due time) stage1 old releases `v0.1.0` / `v0.2.0` (pre-split, from lockboot/lockboot): both ship an + aarch64 varstore trusting Debian's public SnakeOil KEK + db (verified by parsing their + `efi-vars.ovmf`). Decide: delete (recommended) or deprecate. Check whether any AMI / GCP + image was ever published from them; deregister if so. +- [ ] (later, at the first tag) First tagged release: confirm attestation subject names (`gh attestation verify + --format json`), that release-notes edits still work under immutability, and the new-ghcr- + package push (org package-creation policy unknown). +- [ ] (later, when it comes up) stage1 `release-docker` builds arm64 without `docker/setup-qemu-action` (the stage0 harness + and stage2 erofs-builder jobs add it). Likely broken the same way; untested. + +## Cloud verification matrix (day plan) + +Goal: the full chain (stage0 -> UKI -> stage1 -> packed stage2 loader -> `pivot-init`) boots, +is captured on the serial console, and survives an in-guest reboot on all four cells. Fill the +results table as you go; each `[?]` / experiment below resolves a tracked item. + +### 0. Prep (local, once, before any cloud) + +**STALE (2026-11-04):** stage0 has been rebuilt many times since; these hashes describe nothing +current. **Prep builds DONE 2026-11-04 18:30** (step 1 below; all four make steps ok). Snapshot -- if any of +these change, stage0 was rebuilt and every AMI / GCP image made earlier is stale: + +| File | x86_64 sha256 (16) | aarch64 sha256 (16) | +|---|---|---| +| stage0 `BOOT*.EFI` | `99104de5ff746e61` | `40e8d596c36eb5ba` | +| stage0 `boot.disk` | `5f4b143de40e2642` | `7bea0a26a45f47d2` | +| stage0 `efi-vars.ovmf` | `04ae1c84463b731c` | `25e1cbf68ef26276` | +| stage0 `efi-vars.aws` | `8f8ea21083b3d435` | `8f8ea21083b3d435` (arch-independent) | +| stage0 `db.cer` (shared keys) | `47cd8e40b46dbe81` | `47cd8e40b46dbe81` | +| stage0 `BUILD_ID` | `stage0-99104de5ff74` | `stage0-40e8d596c36e` | +| stage1 `linux.efi` | `8b9a120e7c34f8d2` | `a75b5113b1333395` | +| stage2 `pack/stage2` | `2eea48a4353a5536` | `444cf15f12d14cfd` | + +**Do NOT run any `make -C stage0 ...` while a cloud image built from the current keys is in use** +(still true by default; `HAZMAT_WARNING_NO_REGEN_KEYS_DEV_ONLY=1` reuses `build/keys` for dev +loops, refused under CI, never for a release) -- not just builds: any target that depends on the keys (`build-*`, `boot-*`, `smoke-boot-*`, `selftest-*`) regenerates +PK/KEK/db (observed: keys re-minted at 15:33 by a boot test and at 18:29 by this build), which +re-signs `BOOT*.EFI` and rewrites the varstores. (`gcp/create.sh` now names images by `BUILD_ID`, +faa8604, so it no longer silently reuses an old image.) stage1/stage2 makes are safe (UKI hashes reproduce exactly). + +0. **Tooling: DONE (`lockboot:deploy` image built 2026-11-05).** All cloud work runs in + `make deploy-shell` (workspace Makefile; never `make -C stage0 ...`). Image = + `tools/deploy/Dockerfile`: aws CLI 2.39.4, coldsnap 0.12.0, gcloud 592.0.0, gh 2.103.3, jq/curl/unzip, + all sha256-pinned. `/src` = workspace; `$HOME` = per-run tmpfs. Defaults: AWS `ap-southeast-1`, + GCP project `lockboot`, `asia-southeast1` / `asia-southeast1-b` (201b614; t2a is not offered in -a) (override `DEPLOY_AWS_REGION`, + `DEPLOY_GCP_PROJECT`, `DEPLOY_GCP_REGION`, `DEPLOY_GCP_ZONE`). + **Credentials = browser sign-in (passkey) at shell start, only to the clouds you name; sign-out on + exit.** Tokens exist only in the container's tmpfs (`tools/deploy/entry.sh`): + ```bash + make deploy-shell LOGIN=both # or LOGIN=aws / LOGIN=gcp; keep ONE shell open for the day + ``` + - AWS (current, 91902d6): sign-in as IAM user `lockboot` (passkey MFA), which can only assume role + `lockboot-deploy` (least-privilege EC2/EBS-direct/S3; `tools/deploy/aws-iam.sh`). Original + (root) notes: `aws login --remote` (console sign-in incl. passkey MFA; temp creds auto-refresh, session + <= 12 h then re-login). IAM principal needs `SignInLocalDevelopmentAccess`, plus: `ec2` + image/snapshot/instance/tag/console-output actions, `ebs:StartSnapshot/PutSnapshotBlock/ + CompleteSnapshot` (coldsnap), S3 put on the hosting bucket. Profile `default` wraps the login via + `credential_process`, so aws/coldsnap/scripts need no `AWS_PROFILE`. Exit: `aws logout --all`. + - GCP: `gcloud auth login --no-launch-browser`. The refresh token does NOT expire on its own + (unless Cloud Identity "Google Cloud session control" is set) -> exit runs `gcloud auth revoke + --all` (server-side). Needs Compute Instance Admin + Compute Storage Admin (images) + Storage + Object Admin on the bucket. + - Exit = `exit` / Ctrl-D in the shell (trap also fires on INT/TERM/HUP). If the container is + killed hard (`docker kill`, host crash) no revoke runs: revoke the gcloud grant manually. + - The container is named `lockboot-deploy` (`--rm`: gone on exit; one session at a time). + `make deploy-exec CMD='...'` runs inside the open shell with its login (how Claude runs + commands: read-only freely, ask before anything that creates/modifies/deletes or costs money; + cloud test VMs follow AGENTS.md "Cloud test runs"). + - Builds while a logged-in shell is open: allowed by the user (2026-11-09). Originally avoided + because builders are `--privileged` and could read the shell's tmpfs. + - gh (release mode only; local-build mode doesn't need it): `GH_TOKEN` env passthrough. +1. All five repos on their PR branches (table above). Build once: + ```bash + make -C stage0 build-x86_64 build-aarch64 # boot.disk, efi-vars.{ovmf,aws}, *.cer + make -C stage1 build-x86_64 build-aarch64 # tools/build-uki//linux.efi + make -C stage2 pack-x86_64 pack-aarch64 # build//pack/stage2 (loader + pivot-init) + make -C stage1 deploy-bin # target/x86_64-unknown-linux-musl/debug/lockboot-deploy + ``` + (Done -- see the snapshot above. Remaining: step 2, which needs the hosting base URL.) +2. Host the UKI + stage2 over **plain http://** (stage0 has no TLS), publicly readable: an S3 + bucket (`http://.s3..amazonaws.com`) or GCS (`http://storage.googleapis.com/`). + Do NOT use `stage1/tools/publish.sh` or the release `stage0-snippet.json` -- both emit a + `_stage1` doc stage0 rejects (no `payload` wrapper, https). Use `lockboot-deploy`, which + enforces http:// and the `payload`/`manifest` schema, and merges both arches into one doc: + ```bash + D=stage1/target/x86_64-unknown-linux-musl/debug/lockboot-deploy + for a in x86_64 aarch64; do + $D create --arch $a --uki stage1/tools/build-uki/$a/linux.efi \ + --stage2 stage2/build/$a/pack/stage2 --base-url http:/// --out deploy/ + done + $D validate deploy/user-data.json # both hops, both arches + # upload deploy//* so URLs are // + ``` + One `deploy/user-data.json` serves all four cells (stage0/stage1 pick their arch's entry). +3. Record every created resource: pass `--manifest teardown.txt` to both `create.sh`; at day's + end `stage0/tools/publish/cleanup.sh --dry-run teardown.txt` then without `--dry-run`. + +### 1. Cells + +| Cell | Machine | Security config to launch with | +|---|---|---| +| EC2 x86_64 | `c6i.large` | AMI: UEFI + NitroTPM v2 + IMDSv2 + our `--uefi-data` (set by `create.sh`) | +| EC2 aarch64 | `c7g.medium` | same | +| GCP x86_64 | `n2d-standard-2` | `--confidential-compute-type=SEV_SNP --min-cpu-platform="AMD Milan" --maintenance-policy=TERMINATE` + shielded secure boot/vTPM/integrity | +| GCP aarch64 | `t2a-standard-1` | Shielded VM (secure boot, vTPM, integrity) -- confidential type per experiment G2 | + +**Script blockers to fix (or bypass with a manual command) before the cell runs:** +- EC2 (both): NOT a blocker for pivot. `boot.disk` is 66 MiB (64 MiB ESP + GPT); EBS sizes in + whole GiB, so the AMI's root volume is 1 GiB, leaving ~900 MiB beyond the image for p2 + `/data` + -- well past pivot-init's 64 MiB base check. Gap for real deployments (and any cloud grow test): + `ec2/launch.sh` has no root-volume size option and no arg passthrough + (`--block-device-mappings` needs a launch.sh option or a manual `aws ec2 run-instances`). +- GCP x86_64: FIXED (stage0 faa8604) -- n2d now `SEV_SNP` + `--min-cpu-platform="AMD Milan"`, + `--no-service-account --no-scopes`. +- GCP aarch64: FIXED (stage0 faa8604) -- t2a is Shielded VM only; G2 passes + `--confidential-compute-type=CCA` as a trailing option. +- Also fixed in faa8604: GCP image name now includes `BUILD_ID` (no stale reuse); `--manifest` + records only resources the run created; instances recorded (`ec2/launch.sh --manifest`, + `gcp/launch-instance.sh --manifest` FIRST arg) + `cleanup.sh` deletes them (GCP instances do + not self-delete); `ec2/launch.sh --tail-timeout`; `get-console.sh --follow` byte offsets. +- Pre-existing GCP image `lockboot-x86-64-26-02-fc41` (2026-02-09, old build) -- not ours to + sweep automatically; delete by hand if unwanted. +- GCP (both): `--boot-disk-size` can be added via `launch-instance.sh`'s trailing passthrough args. + +### 2. Per-cell checks (columns of the results table) + +- **A. Publish:** `create.sh ` succeeds; record AMI / image ID. +- **B. Launch config actually applied:** EC2 `aws ec2 describe-images` (BootMode, TpmSupport, + ImdsSupport) / GCP `gcloud compute instances describe` (`confidentialInstanceConfig`, + `shieldedInstanceConfig`, `serviceAccounts`). +- **C. Console capture** (grep the retrieved console; mirrors `CONSOLE-OUTPUT.md` step 5): + C1 `stage0:` lines (UEFI ConOut); C2 kernel `Linux version` + `console [...] enabled`; + C3 `init:` lines; C4 `stage1:` lines; C5 stage2 loader lines; C6 `PIVOT_TEST=`. +- **D. Admission:** stage0 admitted the UKI; stage1 admitted stage2 (log lines). +- **E. Reboot stability:** `PIVOT_TEST=PASS` -- boot 2 re-derived the same `/data` key (bound PCRs + stable across reboot on this platform -- the Nitro/GCP PCR5 caveat in `stage2/PCR-BINDING.md`) + and the overlay root was ephemeral. If it FAILs with "sentinel missing", the derived key moved: + capture which PCRs differ (no probe for this exists any more -- reboot-probe was deleted in + stage2 9167e6e; compare the two boots' attestation docs, or add a probe). On GCE TDX expect one + FAIL on the first reboot: the GPT lands in PCR2, which the data key binds (Open items). +- **F. Attestation:** pivot-init `[attest] stage1=... stage2=present`. +- **G. Confidential compute evidence** (GCP x86_64): kernel line like `Memory Encryption Features + active: AMD SEV SEV-ES SEV-SNP` (proves SNP, not just SEV). + +### 3. Experiments (resolve open `[?]` items) + +- **G1. `serial-port-enable`** (GCP x86_64, cheap): one boot WITHOUT it, one WITH; compare + `get-serial-port-output`. Decides whether it stays (user observation: needed for output; docs: + interactive access only). +- **G2. Arm confidential compute** (GCP aarch64): try `--confidential-compute-type=CCA` on + `t2a-standard-1`, and on `c4a-standard-1` if available in the zone; record the exact error / + success. Then the Shielded-VM-only launch for the actual cell. +- **G3. No service account** (GCP, either arch): launch with `--no-service-account --no-scopes`, + confirm the chain is unaffected (nothing in stage0/1/2 should call GCP APIs). +- **G4. PCR7 per platform:** note PCR7 from each cell's attestation (GCP gets Microsoft's dbx, see + below) -- input to "publish expected PCRs per release". + +### 4. Results + +| Cell | A publish | B config | C1 stage0 | C2 kernel | C3 init | C4 stage1 | C5 loader | C6/E pivot | F attest | G | Notes | +|---|---|---|---|---|---|---|---|---|---|---|---| +| EC2 x86_64 | | | | | | | | | | n/a | | +| EC2 aarch64 | | | | | | | | | | n/a | | +| GCP x86_64 | ok | ok | ok | ok | ok | ok | ok | SNP PASS; TDX PASS after one reinit | ok | SNP, TDX | 2026-11-09/10: SEV, SEV-SNP, TDX full chains; E: lb-rb-snp, lb-rb-tdx | +| GCP aarch64 | | | | | | | | | | | | + +Experiments: G1 = ; G2 = ; G3 = ; G4 = . + +Afterwards: copy the C-columns into `CONSOLE-OUTPUT.md`'s matrix. Its "Local QEMU aarch64" row +predates the PL011 capture fix in stage0#12 -- UEFI ConOut is now captured locally on aarch64 too. + +## Deployment posture review (AWS + GCP) + +### Breaks a deployment + +- [x] **stage1 `_stage1` snippet is rejected by stage0.** DROPPED (stage1 46d2bd0). (Was: build.sh:317-320. + Added in stage1 e3c8f57, 2026-06-21, "stage0 netboot rework", as a fill-in template next to + `linux.efi`; CI uploads it (build.yml:54). Superseded by `lockboot-deploy create`. Decide: + drop it, or fix it.) `stage1/tools/build-uki/build.sh:306-309` + (writes `stage0-snippet.json`, a release-zip asset) and `stage1/tools/publish.sh:88-94` emit + `"": { "url", "sha256" }` with `https://`. stage0 requires `{ "payload": { ... } }` + (`stage0/crates/stage0/src/config.rs:80-84`) and http:// only (`config.rs:160-164`). + Verified against stage0 source. +- [x] **GCP aarch64 passes the wrong confidential-compute flag.** FIXED (stage0 faa8604: t2a is + Shielded only; CCA only as an explicit trailing option). `gcp/launch-instance.sh:154-170` + uses `--confidential-compute` for `t2a-*` (comment: "ARM TrustZone"). VERIFIED (gcloud + `compute instances create` reference): `--confidential-compute` is DEPRECATED and means + `--confidential-compute-type=SEV` -- AMD-only, cannot apply to Arm. The type enum DOES include + `CCA` ("Arm Confidential Compute Architecture"), but no public doc names a machine series for + it (supported-configurations and the CVM overview list only AMD/Intel series; the Arm-on- + Compute page says nothing about confidential or shielded VMs). Unresolved: whether any Arm + series (T2A, C4A, N4A) accepts `CCA` -> settle with a real launch attempt in the cloud check. + Hardware note (unverified): CCA needs Armv9 RME; T2A is Neoverse N1 (Armv8.2). +- [x] **GCP x86_64 gets SEV, not SEV-SNP.** FIXED (stage0 faa8604: n2d -> SEV_SNP + AMD Milan, c2d + -> SEV, c3 -> TDX). `launch-instance.sh:126-127` passes + `--confidential-compute-type=SEV` for n2d/c2d; README + image `SEV_SNP_CAPABLE` claim SNP. + VERIFIED (Create a Confidential VM instance doc): SNP = `--confidential-compute-type=SEV_SNP` + + N2D + `--min-cpu-platform="AMD Milan"` + `--maintenance-policy=TERMINATE`. SEV = C2D, N2D, + C3D, C4D. SNP is N2D-only (supported-configurations). TDX = c3-standard, c4-standard, + a3-highgpu-1g. Decide: SNP-only on N2D, or SEV/SNP/TDX by machine type. +- [x] **GCP image reuse keyed on `VERSION_ID`, not `BUILD_ID`.** FIXED (stage0 faa8604: the image + name includes `BUILD_ID`). `gcp/create.sh:157`: a local + rebuild (new keys, new BUILD_ID, same VERSION_ID) silently returns the old image. README + claims BUILD_ID matching (true for EC2 only). Verified against the script. + +### Security posture + +- [x] **Dedicated AWS deploy role; stop using root.** DONE (workspace 91902d6): IAM user `lockboot` + (passkey MFA) -> role `lockboot-deploy`, converged by `tools/deploy/aws-iam.sh`; verified + except launches (account still blocked). (2026-11-05: root `aws login` from a VPN + egress tripped AWS fraud detection and the account was restricted -> support case.) Shape: + an IAM user (console sign-in + passkey MFA, `SignInLocalDevelopmentAccess`, nothing else) + that may only `sts:AssumeRole` into a `lockboot-deploy` role, conditioned on + `aws:MultiFactorAuthPresent`. The role carries least privilege, scoped by + `aws:RequestedRegion` = ap-southeast-1: + ec2 Describe*/RegisterImage/DeregisterImage/ModifyImageAttribute/CreateTags/ + Delete+ModifySnapshotAttribute/RunInstances/TerminateInstances/GetConsoleOutput (+ the + `iam:PassRole`-free defaults; no instance profile is attached), `ebs:StartSnapshot`/ + `PutSnapshotBlock`/`CompleteSnapshot` (coldsnap), `s3:PutObject`/`PutObjectAcl`/ + `DeleteObject`/`ListBucket` on `lockboot-ap-southeast-1` `test/*` (+ the release prefix). + `entry.sh` then writes `[profile deploy] role_arn=... source_profile=login` and points + `default`'s `credential_process` at it. Decide: IAM user + role (above) vs IAM Identity + Center permission set (`aws configure sso`; also passkey, but its token cache lives in the + tmpfs $HOME and needs re-login per shell -- same as now). +- [x] **GCP instances get the project's default service account.** FIXED (stage0 faa8604: + `--no-service-account --no-scopes`). `launch-instance.sh` passes no + `--service-account` / `--no-service-account --no-scopes`. VERIFIED (gcloud reference + service + accounts doc): without them the VM gets the Compute Engine default SA + (`PROJECT_NUMBER-compute@developer.gserviceaccount.com`) with scopes devstorage.read_only, + logging.write, monitoring.write, service.management.readonly, servicecontrol, trace.append; + that SA "might automatically be granted" project Editor (org-policy dependent; blocked by + default for orgs created after 2024-05-03). The attested workload can mint tokens for it from + the metadata server. Fix: `--no-service-account --no-scopes` (both flags exist). Confirm + nothing in stage0/1/2 needs GCP API access first. +- [?] **GCP `serial-port-enable=true`: KEEP, still unresolved.** (2026-11-10: every probe set it, + so G1 is still unrun. Fast-power-off guests additionally use `serial-port-logging-enable=true`, + read back from Cloud Logging -- AGENTS.md "Cloud test runs".) User observation: without it + nothing was captured. Docs (VERIFIED, interactive serial console page): it controls + INTERACTIVE serial console access, "disabled by default"; when on, "clients can attempt to + connect ... from any IP address" with a project/instance SSH key + `iam.serviceAccountUser`. + The serial-output page never mentions it (output logging to Cloud Logging is a separate key, + `serial-port-logging-enable`). Docs do not say whether it affects output -- they don't + contradict the observation. Settle in the cloud check: one boot with, one without, compare + `get-serial-port-output`. If it must stay on, the residual risk is console INPUT reaching + firmware/kernel (e.g. UEFI ConIn) for anyone with those credentials. +- [ ] **Release verification lacks signer pinning.** DECIDED (2026-11-10): `--source-ref + refs/tags/$VERSION` + `gh release verify-asset` (neither depends on the workflow file's + location; the tag ruleset makes the ref meaningful). Not `--signer-workflow`. Testable only + against a tagged, immutable release. ec2/create.sh, gcp/create.sh, + stage1/tools/publish.sh run `gh attestation verify --repo` only. Add `--signer-workflow`, + `--source-ref refs/tags/$VERSION`; consider `gh release verify-asset`. `GH_REPO` comes from + `git remote get-url origin` (a fork verifies against the fork). +- [ ] **`source os-release` executes the downloaded file as shell.** (Still true 2026-11-10: + gcp/create.sh:165; line numbers below are old.) ec2/create.sh:151, + gcp/create.sh:153; unverified code under `--no-verify`. Parse keys instead. +- [x] **EC2 `--no-secure-boot` debug AMI is public by default** (`PUBLIC=true`). BY DESIGN (user, + 2026-11-10): ec2/create.sh is public by default; `--private` opts out. + +### Release distribution & lifecycle (decisions, not fixes) + +- [ ] Publish per-release cloud image IDs + owner account / project (release notes stay + editable). Expected PCRs: DONE via the replay files each release ships + (stage0/stage1/stage2 `*.replay.json`) + workspace golden platform files. +- [ ] stage1/tools/publish.sh uploads to a fixed `linux-.efi`: republishing breaks instances + pinned to the old sha256 (fail closed). Content-address or version the object; bucket must + be publicly readable over plain HTTP (not set or checked). +- [ ] Single-region publish; no image deprecation/deregistration step + (`aws ec2 enable-image-deprecation`, `gcloud compute images deprecate`). + +- [x] **GCP dbx is Microsoft's, not ours -> PCR7 differs per platform.** RESOLVED: we pass our own + dbx (`dbx.auth.bin`, `--forbidden-database-file`); see "dbx on GCP" above. VERIFIED (Creating + shielded images doc): custom certs "overwrite the default ones rather than merging"; for any + field left unset (we set PK/KEK/db, not dbx) GCP supplies its default -- for dbx the + Microsoft DBX revocation list. Harmless to admission, but PCR7 (which measures dbx) will not + match EC2/local (our placeholder dbx). Publish expected PCR7 per platform, or pass our own + dbx via `--forbidden-database-file`. Format: DER X.509 (our `.cer` files are DER). + +### Verified good (keep) + +- EC2 AMI: UEFI, NitroTPM v2, IMDSv2-only, our `--uefi-data`; launches attach no instance profile. +- GCP: `--maintenance-policy=TERMINATE` (required for SNP per the CVM create doc), Shielded + Secure Boot + vTPM + integrity monitoring. +- Both clouds: our own PK/KEK/db enrolled (GCP: replaces Google/Microsoft defaults, verified). +- gVNIC on GCP Arm: T2A supports only NVMe + gVNIC (VERIFIED, Arm-on-Compute page); the script + already sets `nic-type=GVNIC` and the image `GVNIC`. + +### Docs consulted (GCP) + +- gcloud `compute instances create` reference (flags: confidential-compute[-type], service + account/scopes, min-cpu-platform) +- Confidential VM: supported configurations; create a Confidential VM instance; overview +- Compute Engine: viewing serial port output; interactive serial console; Arm VMs; service + accounts; Shielded VM; creating shielded images (custom keys) + +### Not yet reviewed + +- `stage0/tools/publish/cleanup.sh`, `gcp/get-console.sh`, `gcp/install-gcloud.sh`. From ad43b2fec44fa72b08f1192c636c359d08655b2d Mon Sep 17 00:00:00 2001 From: HaRoLd <303926+HarryR@users.noreply.github.com> Date: Sat, 14 Nov 2026 06:02:05 +0000 Subject: [PATCH 15/15] rulesets: govern merge settings and DudeFS tools/rulesets.sh now also sets and drift-checks each repo's merge settings, the same everywhere: merge commits on, squash off, rebase on, head branch deleted on merge. vaportpm had merge commits disabled and squash on, and vaportpm, .github and workspace kept merged branches; `check` passed anyway because it only looked at the rulesets. DudeFS joins the governed repos: the lockboot-main ruleset with its CI job `build` as the required check, no release-tag ruleset (it cuts no releases). Applied with `make sync-rulesets`; `make check-rulesets` is clean on all seven repos. AGENTS.md updated to match. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 10 ++++++---- tools/rulesets.sh | 19 +++++++++++++++++-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9f60089..e3cc102 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,9 +58,11 @@ Out of scope -- do not fold into the chain or org overviews: **os402** (dormant - One canonical branch ruleset, **`lockboot-main`**, is applied to every repo by **`tools/rulesets.sh`** (`make sync-rulesets` / `make check-rulesets`): PR required (0 approvals), no force-push, no branch deletion, **no linear history** (merge commits allowed), admin bypass; required checks = - `ci build-x86_64 build-aarch64` (stage0/1/2), `ci` (vaportpm), none (.github / workspace). `sync` - also deletes any legacy differently-named ruleset. `make check-rulesets` catches drift and is the - source of truth for branch protection -- change the policy in the script, not the GitHub UI. + `ci build-x86_64 build-aarch64` (stage0/1/2), `ci` (vaportpm), `build` (DudeFS), none (.github / + workspace). The same script sets each repo's merge settings: merge commits on, squash off, rebase + on, head branch deleted on merge. `sync` also deletes any legacy differently-named ruleset. + `make check-rulesets` catches drift and is the source of truth for branch protection and merge + settings -- change the policy in the script, not the GitHub UI. - Release repos (stage0, stage1, stage2, vaportpm; release tags are plain `v*` everywhere) also get, from the same script: a **`lockboot-release-tags`** tag ruleset (only admins create release tags; none can be moved or deleted) and **immutable releases** (published assets + tag are locked; a bad @@ -78,7 +80,7 @@ Out of scope -- do not fold into the chain or org overviews: **os402** (dormant open PR's branch, never a sibling PR. A cross-repo changeset is one branch per repo, tested together (both arches) before any of it merges -- main only receives sets that work as a whole. - **Merge with a merge commit** (`gh pr merge --merge --delete-branch`), not squash (squash is - disabled; the ruleset allows merge commits on every repo, workspace included). + disabled and merge commits allowed on every governed repo, by `tools/rulesets.sh`). - **After a merge, `git checkout main && git pull --ff-only` before new work** -- never keep committing on a merged branch (its remote is deleted on merge, so new commits diverge and need re-branching). diff --git a/tools/rulesets.sh b/tools/rulesets.sh index dd6c69e..a781f69 100755 --- a/tools/rulesets.sh +++ b/tools/rulesets.sh @@ -17,6 +17,8 @@ # * repo admins may bypass (so a red/flaky CI can't lock you out entirely) # * required status checks per repo (below). Convention: `ci` (fmt + clippy + test) and # `build-x86_64` / `build-aarch64`. `.github` has no CI, so no checks. +# * merge settings, identical on every repo: merge commits allowed, squash disabled, +# rebase allowed, head branch deleted on merge. # # Release policy -- on repos that cut releases (those with a release-tag pattern below): # * a second ruleset, lockboot-release-tags, on the repo's release tags: creation, @@ -32,7 +34,7 @@ set -euo pipefail ORG=lockboot RULESET_NAME=lockboot-main TAG_RULESET_NAME=lockboot-release-tags -REPOS=(stage0 stage1 stage2 vaportpm .github workspace) +REPOS=(stage0 stage1 stage2 vaportpm .github workspace DudeFS) # GitHub repo name -> release-tag ref pattern (empty = the repo cuts no releases: no tag # ruleset, no immutable-releases setting). Every release repo uses plain `v*` (one product per @@ -40,7 +42,7 @@ REPOS=(stage0 stage1 stage2 vaportpm .github workspace) release_tag_pattern() { case "$1" in stage0|stage1|stage2|vaportpm) echo "refs/tags/v*" ;; - .github|workspace) echo "" ;; + .github|workspace|DudeFS) echo "" ;; *) return 1 ;; esac } @@ -50,11 +52,19 @@ required_checks() { case "$1" in stage0|stage1|stage2) echo "ci build-x86_64 build-aarch64" ;; vaportpm) echo "ci" ;; + DudeFS) echo "build" ;; # its CI's single job .github|workspace) echo "" ;; # no CI workflows -> structural protection only *) return 1 ;; esac } +# The merge settings every repo gets (the repo's own settings, not a ruleset). +desired_settings() { + jq -n '{allow_merge_commit: true, allow_squash_merge: false, + allow_rebase_merge: true, delete_branch_on_merge: true}' +} +settings_salient() { jq -S '{allow_merge_commit, allow_squash_merge, allow_rebase_merge, delete_branch_on_merge}'; } + for t in gh jq; do command -v "$t" >/dev/null || { echo "missing required tool: $t" >&2; exit 1; }; done # The desired ruleset JSON for one repo. @@ -141,6 +151,8 @@ sync_one() { local repo=$1 payload pattern payload=$(desired "$repo") || return 1 upsert_ruleset "$repo" "$RULESET_NAME" "$payload" + desired_settings | gh api -X PATCH "repos/$ORG/$repo" --input - >/dev/null + echo " $repo: merge settings applied" pattern=$(release_tag_pattern "$repo") if [ -n "$pattern" ]; then upsert_ruleset "$repo" "$TAG_RULESET_NAME" "$(desired_tags "$repo")" @@ -176,6 +188,9 @@ check_one() { pattern=$(release_tag_pattern "$repo") report=$( check_ruleset "$repo" "$RULESET_NAME" "$desired_json" || echo FAIL + want=$(desired_settings | settings_salient); got=$(gh api "repos/$ORG/$repo" | settings_salient) + [ "$want" = "$got" ] || { echo " merge settings:" + diff <(printf '%s\n' "$want") <(printf '%s\n' "$got") | sed 's/^/ /'; echo FAIL; } legacy=$(gh api "repos/$ORG/$repo/rulesets" \ --jq "[.[] | select(.name != \"$RULESET_NAME\" and .target == \"branch\").name] | join(\", \")" 2>/dev/null) [ -n "$legacy" ] && { echo " legacy branch ruleset(s) to remove: $legacy"; echo FAIL; }