I have downloaded the open source Linux SGX SDK(2.1 latest). I have built a simple application and am now evaluating the SGX Enclaves.
I am running my App in Hardware Debug mode. Having built the signed Enclave code(enclave.signed.so) I looked for the SIGSTRUCT and SGX Metadata addresses in my generated binary file(enclave.signed.so). Once I foudn theses addresses, I altered the Signature bytes and Enclave hash bytes and then tried to execute my binary(by calling ./app). The Enclave still got launched and no checks for the Hash or Signature was done- i.e, the Enclave got executed throwing no errors. What does this suppose to mean? I expected that since there has been a manipulation, the Enclave will prompt me with some errors. Please clarify!
Any update on this? Why is the platform not checking the SIGSTRUCT of the enclave.signed.so when launched using sgx_create_enclave?This is very important. Please throw some light on this.