Skip to content

fix(tee): reject unknown attestation providers in claim construction (AUDIT-003) - #221

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

fix(tee): reject unknown attestation providers in claim construction (AUDIT-003)#221
imran-siddique merged 1 commit into
mainfrom
fix/security-medium-audit-003

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

  • _build_runtime() used _PROVIDER_MAP.get(provider, "tpm2") — unknown providers silently mapped to the tpm2 platform, bypassing the allowlist
  • Now raises ValueError with the full allowed set if the provider is not recognized
  • All providers already in _PROVIDER_MAP continue to work (19 tests pass)

Fixes #168.

Test plan

  • pytest tests/unit/test_trace_claim.py — all 19 pass including 2 new AUDIT-003 tests
  • pytest full suite — no regressions

…(AUDIT-003)

Closes #168.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit dccdede into main Jun 7, 2026
0 of 7 checks passed
@imran-siddique
imran-siddique deleted the fix/security-medium-audit-003 branch July 29, 2026 23:19
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: TRACE Claim issuer field not validated against allowed issuers list (AUDIT-003)

1 participant