Intel Confidential Computing
Discussion board focused on Intel Confidential Computing technologies and how they can protect data and AI security, privacy, and sovereignty.

Detect SGX at runtime

X99
New Contributor I
2,249 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
2,212 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
2,203 Views

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

0 Kudos
KFPW_Intel
Moderator
2,185 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