I'm building a system where I need to ensure that at most one thread can be run for a given enclave. One way to enforce this is to check the TCSNum property in the configuration file. However, I want it to be linked with attestation too.
Is it possible to get configuration information (esp. TCS number) from an attestation?
After some research, the answer turns out to be no. But the metadata such as TCS is in the binary. How to get them is another question. See this https://software.intel.com/en-us/forums/intel-software-guard-extensions-intel-sgx/topic/712465