Questions tagged [sgx]

Intel SGX is a set of CPU instruction extensions that allows application developers to create applications that retain the confidentiality and integrity of select data and code using Secure Enclaves.

Intel SGX is a set of CPU instruction extensions that allows application developers to create applications that retain the confidentiality and integrity of select data and code using secure Enclaves.

Enclaves are protected areas of execution. Application code can be put into an enclave via special instructions and software made available to developers via the Intel SGX SDK. The SDK and documentation are available at:

Requirements

SGX requires 6th Generation Intel Core Processors (Skylake) or later.

The Windows SDK requires a 64-bit version of Windows 7 or above, and the Microsoft Universal C Runtime.

The Linux SDK requires Ubuntu Desktop-16.04-LTS 64-bit.

175 questions
1
vote
1 answer

Intel SGX remote attestation sample code

I'm trying to run the remote attestation sample code in the Intel SGX SDK. I always get error "Error, call sgx_ra_get_msg1 fail [wmain]." I think it's because that the sgx_ra_init(&g_sp_pub_key, b_pse, p_context) function returns a zero value…
WooShin
  • 11
  • 2
0
votes
0 answers

sgx-pytorch remote attestation failed due to msg3 type not matched

I am trying to run SGX-Pytorch. https://github.com/intel/sgx-pytorch/tree/sgx I successfully followed enclaves_op's instructions for setting up the environment. Prior to running a secure model in SGX, it is necessary to run "dkeycache" and perform…
taserghar
  • 340
  • 3
  • 15
0
votes
0 answers

gramine-direct works great but gramine-sgx cannot access text files for encryption

I am unable to access text files for encryption inside gramine-sgx, gramine-direct works great. The issue is I want to run it inside enclave. Makefile: CFLAGS = -Wall -Wextra -Wno-deprecated-declarations #ifeq ($(DEBUG),1) GRAMINE_LOG_LEVEL =…
0
votes
1 answer

Issue during reboot SGX disabled and APCI BIOS Error

Tried rebooting mint using command “sudo reboot” during reload processes stopped because “SGX is disabled by bios” and there is a bug in ACPI (ACPI Bios Error(bug): Could not resolve symbol [TBTS], AE_NOT_FOUND) Does anyone know why it happened or…
Yarky
  • 1
  • 2
0
votes
0 answers

How does Intel SGX bind the Host application process and the enclave to each other?

How does Intel SGX bind the Host application process and the enclave to each other? That is, how to ensure that the process that calls EENTER to enter the enclave is the correct process. If process A creates enclave 1 and process B creates enclave…
hsyhhh
  • 11
  • 3
0
votes
1 answer

Intel SGX cannot find sgxsdk/environment

I'm working with Intel SGX on Ubuntu 20.04 and trying to run some SampleApps. However I get errors like: ./app: error while loading shared libraries: libsgx_urts.so.2: cannot open shared object file: No such file or directory I checked on the…
Javid
  • 13
  • 3
0
votes
1 answer

'make' KDIR=/lib/modules/5.15.0-1023-azure/build....(bad exit status: 2)

I am trying to install SGX DCAP using link on vm with os ubuntu 20.04 https://www.intel.com/content/www/us/en/developer/articles/guide/intel-software-guard-extensions-data-center-attestation-primitives-quick-install-guide.html When I run command…
sama
  • 333
  • 2
  • 11
0
votes
0 answers

File: /var/lib/dkms/sgx/1.36.2/source/dkms.conf does not exist

I am going to install dcap on my vm with kernel : Linux version 5.15.0-1029-azure (buildd@lcy02-amd64-076) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #36~20.04.1-Ubuntu SMP Tue Dec 6 17:00:26 UTC 2022 I tried…
sama
  • 333
  • 2
  • 11
0
votes
1 answer

execute a specific method into sgx using gramine

I have an application which is using gRPC, client.py and server.py , I want to use gramine in order to execute the service inside SGX. how can I run a specific method not the whole script inside sgx using gramine? client.py: """The Python…
sama
  • 333
  • 2
  • 11
0
votes
1 answer

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/grpc/__init__.py'

I am using grpc in my app.py and I am going to run app.py inside SGX using Gramine, when I run command gramine-sgx ./python app.py" I get error: Traceback (most recent call last): File "app.py", line 2, in import grpc File "
sama
  • 333
  • 2
  • 11
0
votes
0 answers

/usr/bin/python3.8: can't open file 'app.py': [Errno 13] Permission denied

I am creating an app with Python which I am going to execute it in gramine when I run the command gramine-sgx ./python app.py I get error: /usr/bin/python3.8: can't open file 'app.py': [Errno 13] Permission denied and my python.manifest.template…
sama
  • 333
  • 2
  • 11
0
votes
1 answer

Prerequisites of sdk or psw for Gramine

I want to install Gramine on my SGX server, Is it needed to instal both SDK and PSW on my server ? or just installing SGX SDK is enough?
sama
  • 333
  • 2
  • 11
0
votes
0 answers

installing DCAP on sgx linux server

I am going to install DCAP On my linux server with Kernel : Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz when I run sudo ./sgx_linux_x64_driver_1.36.2.bin I get error : 'make' KDIR=/lib/modules/5.15.0-1023-azure/build....(bad exit status: 2) ERROR…
sama
  • 333
  • 2
  • 11
0
votes
0 answers

does doesn't intel (r) xeon (r) platinum 8370c cpu support epid?

I have a server with cpu : intel (r) xeon (r) platinum 8370c but EPID attestation does not work in this server .Does intel (r) xeon (r) platinum 8370c cpu support EPID attestation? if not how can I use EPID in this CPU?
sama
  • 333
  • 2
  • 11
0
votes
0 answers

How to install Intel SGX SDK on Windows 11

I'm trying to install Intel SGX SDK on Windows 11. I followed Intel instruction, downloaded the executable: "Intel SGX SDK for Windows v2.17.100.2.exe", and tried to execute it. The only thing that happens is that a zip program is opened and asks me…
Mithrandir
  • 46
  • 5