Repository navigation
feat(policies): lock the golden-PCR tags too (provabl#13) - #21
Merged
Merged
Conversation
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
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
This was referenced Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The runtime image binding records a vetted AMI's known-good boot PCR as
attest:pcr<N>tags (viavet ami-reference). A forgeable golden PCR defeats the binding, so the lockdown SCP now protects those keys likeattest:vetted.ami_vetting_lockdown_scp.json:ForAnyValue:StringEquals→StringLikeonaws:TagKeys, covering[attest:vetted, attest:pcr*]; vetterArnNotLikecarve-out unchanged.attest:pcr0/attest:pcr7→explicitDeny, vetter allowed, unrelated key allowed. Proven against the live IAM simulator (the wildcard actually denies — not assumed).Refs: #13