Today I read about IPT [https://software.intel.com/en-us/blogs/2013/09/18/processor-tracing] and as soon as I read it, I started to wonder how It could affect/used/exploit(gives some information) an SGX based application? Can anyone here have something to say?
I have not tried it but it should be similar to what Intel VTune can do to profile it. You can see activities "only when the enclave has been launched as a debug enclave." Please take a look at this document for more info: https://software.intel.com/en-us/node/708952
You can also read Section 43 of https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software... . In particular, "43.6 INTERACTION WITH PERFORMANCE MONITORING ".