Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nitro enclave, HTTPS and shim eavesdropping #2582

Open
ibukanov opened this issue Jun 25, 2024 · 0 comments
Open

Nitro enclave, HTTPS and shim eavesdropping #2582

ibukanov opened this issue Jun 25, 2024 · 0 comments

Comments

@ibukanov
Copy link
Collaborator

Presently the Nitro enclave uses plain HTTP to listen on vsock connection from the Nitro shim proxy. It implies that the shim layer outside the enclave, which is considered less trusted, see unencrypted traffic. Thus attackers gaining access to the shim will be able to see all the traffic. Moreover, they can alter the messages coming into the enclave from a client. The only thing they will not be able to do is to alter HTTP replies coming from the enclave as those are signed using Nitro authentication.

To address this the idea is to use HTTPS, not HTTP, to listen on vsock connections. To address the issue of the TLS certificate trust the server will use a self-signed certificate which is then published using plain HTTP signed using Nitro authentications.

The client then first connects using HTTP to the enclave to get the certificate. Then for the subsequent traffic the client switches to HTTPS and verifies that the server uses that certificate for all connections.

This addresses the above issues of shim eavesdropping or even altering the incoming messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant