Skip to content

fix(tee): validate AttestationReport.provider against allowed set (HW-001) - #226

Merged
imran-siddique merged 1 commit into
mainfrom
fix/security-medium-hw-001
Jun 7, 2026
Merged

fix(tee): validate AttestationReport.provider against allowed set (HW-001)#226
imran-siddique merged 1 commit into
mainfrom
fix/security-medium-hw-001

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

  • AttestationReport.provider was an unconstrained string — a misconfigured or custom TEE provider could set it to any arbitrary value
  • Added __post_init__ validation against _ALLOWED_PROVIDERS = {"sev-snp", "tdx", "opaque", "tpm", "software-only"}
  • Raises ValueError with the full allowed set on violation

Fixes #171.

Test plan

  • pytest tests/unit/test_tee.py — all 15 pass including 2 new HW-001 tests
  • pytest full suite — no regressions

…-001)

Closes #171.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 19eb247 into main Jun 7, 2026
1 of 8 checks passed
imran-siddique added a commit that referenced this pull request Jun 7, 2026
…-001) (#226)

Closes #171.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique deleted the fix/security-medium-hw-001 branch July 29, 2026 23:20
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.

MEDIUM: TEE platform string not validated before use in attestation report — open string injection (HW-001)

1 participant