Skip to content

security: downgrade TPM attestation to software-only on SHA-1 fallback#319

Merged
imran-siddique merged 1 commit into
mainfrom
security/remaining-fixes
Jun 19, 2026
Merged

security: downgrade TPM attestation to software-only on SHA-1 fallback#319
imran-siddique merged 1 commit into
mainfrom
security/remaining-fixes

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Summary

SHA-1 PCR bank measurements must not present as hardware attestation in the TRACE Claim. When the TPM SHA-256 bank is unavailable and the provider falls back to SHA-1, the resulting AttestationReport now sets platform to software-only rather than tpm. Adds a warning log at fallback time.

SHA-1 is cryptographically broken; an adversary with physical TPM access can manipulate PCR values in the SHA-1 bank. A sha1-based measurement that presents as hardware-attested gives false assurance to verifiers.

Test plan

  • CI passes
  • SHA-1 fallback path produces platform == software-only in attestation report

🤖 Generated with Claude Code

SHA-1 PCR measurements are cryptographically broken. When the TPM
SHA-256 bank is unavailable and the provider falls back to SHA-1,
the resulting measurement must not present as hardware-attested in
the TRACE Claim. Set platform to software-only and emit a warning.

Signed-off-by: Imran Siddique <imran.siddique@opaque.co>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique imran-siddique merged commit 11d6283 into main Jun 19, 2026
10 checks passed
@imran-siddique imran-siddique deleted the security/remaining-fixes branch June 19, 2026 05:00
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