Skip to content

feat(policies): lock the golden-PCR tags too (provabl#13) - #21

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/golden-pcr-lockdown
Jun 11, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/golden-pcr-lockdown

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

The runtime image binding records a vetted AMI's known-good boot PCR as attest:pcr<N> tags (via vet ami-reference). A forgeable golden PCR defeats the binding, so the lockdown SCP now protects those keys like attest:vetted.

  • ami_vetting_lockdown_scp.json: ForAnyValue:StringEquals → StringLike on aws:TagKeys, covering [attest:vetted, attest:pcr*]; vetter ArnNotLike carve-out unchanged.
  • Tests: structural (lockdown targets both keys) + awssim adversarial — non-vetter forging/stripping attest:pcr0/attest:pcr7 → explicitDeny, vetter allowed, unrelated key allowed. Proven against the live IAM simulator (the wildcard actually denies — not assumed).
  • SECURITY.md updated.

Refs: #13

The runtime image binding records a vetted AMI's known-good boot measurement as
attest:pcr<N> tags (vet ami-reference). A forgeable golden PCR would defeat that
binding, so the lockdown SCP must protect those keys like attest:vetted.

- ami_vetting_lockdown_scp.json: ForAnyValue:StringEquals → StringLike on
  aws:TagKeys, covering [attest:vetted, attest:pcr*]; vetter ArnNotLike carve-out
  unchanged.
- policies_test: assert the lockdown targets both attest:vetted and attest:pcr*.
- scp_simulate_test (awssim): adversarial cases — non-vetter forging/stripping
  attest:pcr0/pcr7 → explicitDeny; vetter allowed; unrelated key allowed.
  Proven against the live IAM simulator (the StringLike wildcard actually denies).
- SECURITY.md: document the extended lockdown + matrix.

Refs: #13
@scttfrdmn
scttfrdmn merged commit ed3ac70 into main Jun 11, 2026
2 checks passed
@scttfrdmn
scttfrdmn deleted the feat/golden-pcr-lockdown branch June 11, 2026 21:31
scttfrdmn added a commit to provabl/vet that referenced this pull request Jun 11, 2026
Binds a running instance to a vetted AMI: vet ami-reference <ami> --pcr idx=hex
records the AMI's known-good boot measurements as attest:pcr<N> tags. The kernel
appraisers already check expected_pcr<N>; this is the missing golden-reference
half. NitroTPM/enclave PCRs can't be computed offline, so values come from a
trusted reference boot's .nitro/.tpm attestation output (runbook in README).

- internal/amitag: TagPCRPrefix; reuses the existing EC2 TagImage.
- cmd/vet ami-reference: --pcr idx=hex (repeatable) + --region; index (0-23) and
  hex validated; written via the vetter principal. Unit-tested (valid + 6
  rejections).
- README: reference-capture runbook + trust boundary.

The attest:pcr* tags are locked to the vetter by ground's lockdown SCP
(provabl/ground#21). Verified live: ami-reference wrote attest:pcr0/pcr7 to a
real AMI.

Refs: #13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant