Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include monotonic counter values in sealed data #1

Open
ajpaverd opened this issue Jun 7, 2018 · 0 comments
Open

Include monotonic counter values in sealed data #1

ajpaverd opened this issue Jun 7, 2018 · 0 comments

Comments

@ajpaverd
Copy link
Member

ajpaverd commented Jun 7, 2018

When the enclave's data is sealed, it should include an SGX monotonic counter to prevent old sealed data being replayed.

An SGX monotonic counter should be initialized when the enclave is first initialized.

When data is sealed the current counter value should be included with the sealed data.

When data is unsealed, the included value should be checked against the current counter value: if the value match, increment the current counter value and continue operation; if there is a mismatch, abort and raise an error.

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

No branches or pull requests

1 participant