Skip to content

Add support for AMD SEV-SNP through nilCC#1

Merged
jimouris merged 3 commits intoproofofcloud:mainfrom
jimouris:main
Dec 10, 2025
Merged

Add support for AMD SEV-SNP through nilCC#1
jimouris merged 3 commits intoproofofcloud:mainfrom
jimouris:main

Conversation

@jimouris
Copy link
Member

@jimouris jimouris commented Oct 30, 2025

Add support for AMD attestations.

Note, the input (hex) is similar to the TDX ones so I added a new field "type": "amd", or "type": "intel", to differentiate between the two.

@jimouris jimouris marked this pull request as ready for review November 4, 2025 15:14
@jimouris
Copy link
Member Author

jimouris commented Nov 4, 2025

Example for testing:

curl -X POST "http://localhost:3000/attestations/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "amd",
    "hex": "03000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000001000000010000000900000000001748050000000000000000000000000000000009779f492d39d4c8a99302555f9ca34e2c37d05c1b9bbd7cef40d641feb3c47000000000000000000000000000000000000000000000000000000000000000a5a74546f93dbd483692cf14dff5d9fb78fa11e44b86fb2d0147c979d3c1f21811f686a5ca5f82a32b5912f816d74a7a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b9ebaf36db9554c8331081f3183c2ea810b3a904666acb7e5f68a2499c4f5f8ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff09000000000017481911010000000000000000000000000000000000000000008371db1617345c6be1c18fae78de9044bab30d6014cc266f2a9939379f2d46aab0ff39f5ca6a30c5fbcf8b03e2f72c77cfbe26c05a42e0c6488878a46225a8e0090000000000174827370100273701000900000000001748000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab9fcdb23d14f60804e6645e69a012dc0de47b27b501fdeeabfc2ff319b1d975b489c7f45a9657992efac3f0eb3e75f3000000000000000000000000000000000000000000000000c9d744e4098addf27d4a426ecf7d67cc23e40b47066e6f85598445501c16e97afbcd9cc46162f9cd15dd9858e1099d180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
  }'

returns

{"success":true,"proof_of_cloud":true,"quote":{"header":{"tee_type":"TEE_AMD_SEV_SNP"}},"chip_id":"8371db1617345c6be1c18fae78de9044bab30d6014cc266f2a9939379f2d46aab0ff39f5ca6a30c5fbcf8b03e2f72c77cfbe26c05a42e0c6488878a46225a8e0"}%

@jimouris jimouris marked this pull request as draft November 5, 2025 17:24
@jimouris jimouris marked this pull request as ready for review December 8, 2025 16:27
Copy link
Collaborator

@h4x3rotab h4x3rotab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Leaving a TODO to add hardware id check locally in this repo

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.

2 participants