Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Detect SGX at runtime

X99
New Contributor I
600 Views

Is there a way for a piece of code to detect it's being run inside of an enclave?

0 Kudos
3 Replies
KFPW_Intel
Moderator
563 Views

Hi X99,

Thank you for reaching out to us.

 

The code in an enclave is no different than code that exists as part of a regular application. However, enclave code is loaded in a special way such that once the enclave has been initialized, privileged code and the rest of the untrusted application cannot directly read data that resides in the protected environment, or change the behaviour of the code within the enclave without detection.

 

Could you please share your use cases and details that you are trying to achieve with Intel SGX? We can gain additional insights to support your use cases.

 

Sincerely,

Ken


0 Kudos
X99
New Contributor I
554 Views

I have no code, I was just wondering if this was possible.

0 Kudos
KFPW_Intel
Moderator
536 Views

Hi X99,


We would need more information on your use case. Can you describe what you are trying to do in depth? Do you need to verify the code is running internally or externally?


Sincerely,

Ken


0 Kudos
Reply