Skip to content

feat(sev-snp): judge the TCB status against configured AMD bulletins - #1621

Merged
kvinwang merged 2 commits into
nextfrom
feat/per-platform-tcb-policy
Nov 19, 2026
Merged

kvinwang merged 2 commits into
nextfrom
feat/per-platform-tcb-policy

Conversation

@kvinwang

@kvinwang kvinwang commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #1620. That PR binds reported_tcb to the VCEK, and this one relies on that value being authentic.

Problem

SEV-SNP's tcb_status doesn't mean what TDX's does. On TDX, UpToDate comes from Intel's TCB info: the platform is at the latest TCB Intel publishes. On SNP, it only meant that the current, reported, committed and launch TCBs are equal. A host on years-old, vulnerable firmware still reported UpToDate. DstackKms and DstackApp.requireTcbUpToDate gate on that string, so this gave SNP a false pass.

Fix

AMD publishes no TCB status, so the verifier now judges the report against a list of AMD bulletins configured in [core.attestation] sev_snp_tcb_requirements. Each entry gives a product family, an advisory ID and the minimum TCB that fixes it.

  • If the reported, committed or launch TCB is below an entry's minimum, that bulletin goes into advisory_ids and the status is OutOfDate.
  • If every entry is met, the status is UpToDate.
  • If no entry is configured for the product, the status is empty.

The reported TCB is the one the VCEK certifies. The committed TCB bounds a firmware rollback. The launch TCB is the firmware the guest first ran under. The status now lives on VerifiedAmdSnpReport.tcb_status, and AmdSnpTcbInfo::tcb_status() is removed. The contracts and BootInfo are unchanged.

Behavior change

An SNP deployment without sev_snp_tcb_requirements now reports an empty status, which the on-chain UpToDate check rejects. SNP is experimental. Operators list the bulletins before upgrading. I chose to fail closed rather than keep reporting a false UpToDate.

No bulletin values ship by default. The minimum TCBs must come from AMD's bulletins, so they are left to the operator.

Verification

  • configured_tcb_requirements_judge_the_real_report runs the real Milan fixture through QuoteVerifier with no requirement (empty status), a met one (UpToDate) and an unmet one (OutOfDate with its advisory).
  • Unit tests cover per-product selection, the committed and launch TCBs, and FMC on Turin.
  • cargo test -p sev-snp-qvl -p dstack-attest -p dstack-verifier -p dstack-kms -p dstack-tee-simulator -p mock-attestation -p dstack-auth --all-features passes.

@kvinwang
kvinwang force-pushed the feat/per-platform-tcb-policy branch from e1eb37e to dbd676a Compare November 19, 2026 03:43
@kvinwang kvinwang changed the title feat: judge SEV-SNP TCB against AMD bulletins and accept TCB per platform feat(sev-snp): judge the TCB status against configured AMD bulletins Nov 19, 2026
@kvinwang
kvinwang marked this pull request as ready for review November 19, 2026 03:43
@kvinwang
kvinwang force-pushed the feat/per-platform-tcb-policy branch from 1a710dd to f647db9 Compare November 19, 2026 04:15
@kvinwang
kvinwang deleted the branch fix/snp-vcek-binding November 19, 2026 04:45
@kvinwang kvinwang closed this Nov 19, 2026
@kvinwang kvinwang reopened this Nov 19, 2026
@kvinwang
kvinwang changed the base branch from fix/snp-vcek-binding to next November 19, 2026 04:46
@kvinwang
kvinwang force-pushed the feat/per-platform-tcb-policy branch from f647db9 to 776f26e Compare November 19, 2026 04:46
@kvinwang
kvinwang enabled auto-merge November 19, 2026 04:46
@kvinwang
kvinwang merged commit 99d3051 into next Nov 19, 2026
18 checks passed
@kvinwang
kvinwang deleted the feat/per-platform-tcb-policy branch November 19, 2026 04:54
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