- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Concern,
I am working with Intel’s PyTorch-SGX. I basically followed the example shown on Intel’s GitHub page (https://github.com/intel/sgx-pytorch/tree/sgx/enclave_ops) which demonstrates encryption-decryption of a deep learning model between the model owner and the remote cloud. But I did not find any demonstration between the user and the cloud.
My understanding is that before sending to the public cloud, first, the user needs to encrypt the test data to ensure security. The public cloud will decrypt it and send it to PyTorch’s enclave for making predictions. The public cloud will encrypt the prediction result and send it back to the user. The user will need to decrypt the prediction.
I am not sure how can we do this. Can you please provide me with some examples (or some guidance) for exchange between the user (not the model owner) and the public cloud?
Thank you.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Before any sensitive data is sent to the CSP, the user needs to encrypt the data using encryption keys managed by SGX which are then passed to the enclave.
The enclave executes the PyTorch computations using the encrypted data which made the data that are sent back to the user from the enclave are encrypted using the same SGX-managed encryption keys.
As a result, the user, whose machine has the decryption keys, receives the encrypted outcome and then decrypts the data.
The SGX + PyTorch repo is outdated and is not fully supported, so we recommend using Gramine and PyTorch Curated applications. Some samples are below:
- https://gramine.readthedocs.io
- https://github.com/gramineproject/
- https://github.com/gramineproject/examples/tree/master/pytorch
- https://github.com/gramineproject/contrib/tree/master/Intel-Confidential-Compute-for-X/workloads/pytorch
This video might help to illustrate the process to you as it demonstrates the set-up process for one of Intel® Software Guard Extensions (Intel® SGX) enhanced confidential containers and the PyTorch workload set-up
Cordially,
Iffa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Cordially,
Iffa
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page