在安全飞地 (SGX) 中运行任意应用程序
我希望我的 C++ 应用程序在安全 enclave (Intel SGX) 内启动任意应用程序(假设通过 python 解释器运行 python 脚本)。这可能吗? 步骤如下。
- 我的应用程序初始化一个飞地并执行其证明。
- 接下来,它以某种方式将 python 解释器和 python 脚本上传到 enclave。
- 它还将一些要由脚本处理的数据上传到 enclave。
- 然后,脚本在飞地内启动并处理数据。
- 最后将处理结果上传回主机。
这种情况可能吗?如果是,有没有关于如何执行此操作的示例?
I want my C++ application to launch an arbitrary app (let's say a python script through a python interpreter) inside a secure enclave (Intel SGX). Is that even possible?
The steps are the following.
- My app initializes an enclave and performs its attestation.
- Next, it somehow uploads a python interpreter and a python script to the enclave.
- It also uplaods to the enclave some piece of data to be processed by the script.
- Then, the script is being launched inside the enclave and the data is being processed.
- Finally, the processing result is uploaded back to the host.
Is this scenario possible? If yes, are there any examples on how to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Microsoft OpenEnclave 也是一个选择。
有很多向 SGX 添加未修改的库,然后运行玩具应用程序的示例: oeapkman,包管理器和工具箱对于 enclave 开发:apkman。
Microsoft OpenEnclave is also a choice.
There are many examples of adding unmodified libraries to SGX and then run the toy applications: oeapkman, Package Manager and Toolbox for enclave development: apkman.
如果 AWS Nitro Enclaves 能让您满意,那么 Oblivious 框架就可以让您执行您所描述的操作。
有一个关于部署 FastAPI 服务器的完整教程和 YouTube 演练,例如,此处 。
披露:我与 Oblivious 合作,但这篇文章绝不是广告或插件,我认为它只是满足 @pgr 的要求。
If AWS Nitro Enclaves would satisfy you then the Oblivious framework let’s you do what you are describing.
There is a full tutorial and YouTube walkthrough of deploying FastAPI servers, as an example, here.
Disclosure: I work with Oblivious but this post is in no way an ad or plug, I think it just does what @pgr is asking for.