Skip to content

attest: the attestation key is trusted on first use, and PCRs 1 and 5 are quoted but not compared #316

Done

Description

@teemow

Problem

The attestation key (AK) of a VM was pinned on first use: nothing bound it to the VM's vTPM, so the first quote a VM's record saw defined its identity, and a quote from another VM's TPM could be booked to a victim's record (#290 showed one path). PCRs 1 and 5 were quoted but not compared, so changes to the firmware configuration and the GPT went unnoticed.

Root cause

The verifier issued plain nonces and accepted the key that signed a VM's first quote. PCR 1 and 5 differ per VM, so they were left out of the golden values with nothing in their place.

Solution

Acceptance criteria

  • A quote signed by an AK that is not certified against the VM's own EK is rejected, also on the VM's first boot.
  • A change to the firmware configuration (PCR 1) or the GPT (PCR 5) fails attestation.
  • e2e covers both, and nothing accepts an uncertified AK.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Validation ☑️

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions