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

Auditor example with Remote Attestation #9

Open
3 tasks done
sbellem opened this issue Dec 8, 2020 · 0 comments
Open
3 tasks done

Auditor example with Remote Attestation #9

sbellem opened this issue Dec 8, 2020 · 0 comments

Comments

@sbellem
Copy link
Contributor

sbellem commented Dec 8, 2020

  • Figure out how to install the PSW in the nix environment -- currently running into issues to build the installer (make psw_install_pkg fails with -lpthread not available) -- see issue Reproducible builds for the PSW intel/linux-sgx#645 to follow.
  • Use an example that has remote attestation (e.g. remoteattestation, or something else)
  • Provide a simple demo script that would be use by an auditor.

auditor script

inputs:

  • a signed enclave (enclave.signed.so) to be checked for its reproducibility, and
  • enclave.so (optional)
  • the source code to reproduce the build
  • maybe: an attestation verification report from Intel -- from the enclave.signed.so the MRSIGNER can be extracted and compared against the one in the report -- hence, if the enclave.signed.so can be reproduced, and its MRSIGNER matches the one in the report, and the code "passes" the audit, then enclave.signed.so can be "trusted"

outputs:

  • true/success - meaning it is reproducible and "trusted", OR false/failing otherwise, with the reason (unreproducible, MRSIGNER and/or MRENCLAVE mismatch)

verbose/debug info:

  • the sha256sum of the metadata of the enclave.signed.so file under audit (the one given as input)
  • the sha256sum of the metadata of the built and signed enclave (built by the script) -- the sha256sums should match if the script outputs true/success for reproducibility
  • MRSIGNER extracted from enclave.signed.so
  • MRSIGNER extracted from report
  • MRENCLAVE extracted from report

Notes about MRSIGNER

See https://github.com/intel/sgx-ra-sample/blob/master/Makefile.am#L97-L100 for an example on how to extract the MRSIGNER from a signed enclave .so file.

@sbellem sbellem changed the title Simplify auditor example Auditor example with Remote Attestation Dec 8, 2020
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