[Paper Review] Intel SGX Enabled Key Manager Service with OpenStack Barbican
This paper proposes an Intel SGX-enabled software crypto plugin for OpenStack Barbican, enhancing key management security by leveraging hardware-enforced isolation with low cost and high scalability. It enables remote attestation, mutual authentication, and end-to-end confidentiality and integrity for secrets, achieving HSM-level security without HSM expenses or scalability limits.
Protecting data in the cloud continues to gain in importance, with encryption being used to achieve the desired data protection. While there is desire to use encryption, various cloud components do not want to deal with key management, which points to a strong need for a separate key management system. OpenStack Barbican is a platform developed by the OpenStack community aimed at providing cryptographic functions useful for all environments, including large ephemeral clouds. Barbican exposes REST APIs designed for the secure storage, provisioning and management of secrets such as passwords, encryption keys, and X.509 certificates, and supports plugins for a variety of crypto solutions in the backend. Crypto plugins store secrets as encrypted blobs within the Barbican database. Software based crypto plugins offer a scalable solution, but are vulnerable to system software attacks. Hardware Security Module or HSM plugins offer strong security guarantees, but they are expensive and don't scale well. We propose to build an Intel Software Guard Extension or SGX based software crypto plugin that offers security similar to an HSM with the low cost and scalability of a software based solution. We extend OpenStack Barbican API to support attestation of an Intel SGX crypto plugin, to allow clients higher confidence in the software they are using for storing keys. In addition, the API provides support for mutual attestation for Intel SGX enabled clients, multi-user key distribution, and extensions for protecting the confidentiality and integrity of the backend database.
Motivation & Objective
- To address the growing need for secure, scalable key management in cloud environments, especially for ephemeral and dynamic cloud workloads.
- To overcome the limitations of software-based crypto plugins (vulnerable to system-level attacks) and HSM-based solutions (expensive and non-scalable).
- To design and implement a software-based crypto plugin for OpenStack Barbican that provides hardware-level security guarantees using Intel SGX.
- To extend Barbican's API to support remote attestation of the SGX-based plugin, enabling clients to verify the authenticity and integrity of the key management service.
- To support multi-user key distribution and protect the confidentiality and integrity of the backend database using SGX enclaves.
Proposed method
- Extends OpenStack Barbican's REST API to support remote attestation of the Intel SGX-based crypto plugin, allowing clients to verify the plugin's identity and integrity.
- Deploys a secure enclave using Intel SGX to isolate cryptographic operations and protect secret keys from exposure to the host OS or other processes.
- Implements mutual attestation between the client and the SGX-enabled key manager to ensure both parties are authentic and running trusted code.
- Protects the confidentiality and integrity of the backend database by encrypting data at rest within the SGX enclave, ensuring only authorized code can access it.
- Integrates the SGX-based plugin as a backend module in Barbican, replacing traditional software or HSM plugins while maintaining API compatibility.
- Uses Intel's quoting and sealing mechanisms to enable secure key provisioning and remote verification of the enclave's state.
Experimental results
Research questions
- RQ1Can an Intel SGX-based software plugin provide security guarantees comparable to HSMs while maintaining the cost and scalability advantages of software solutions?
- RQ2How can remote attestation be integrated into OpenStack Barbican to allow clients to verify the trustworthiness of the key manager service?
- RQ3What mechanisms are required to support mutual attestation between clients and the SGX-enabled key manager in a multi-user cloud environment?
- RQ4How can the confidentiality and integrity of the backend database be preserved when using a software-based key manager in a cloud setting?
- RQ5What modifications are needed to extend Barbican's existing API to support SGX-specific security features like sealing and quoting?
Key findings
- The proposed SGX-based plugin achieves HSM-level security guarantees by leveraging Intel SGX's hardware-enforced isolation, protecting keys from compromise even if the host system is compromised.
- Remote attestation of the SGX plugin enables clients to cryptographically verify the authenticity and integrity of the key manager, increasing trust in the service.
- Mutual attestation between clients and the key manager ensures both parties are running trusted code, mitigating man-in-the-middle and impersonation attacks.
- The solution maintains compatibility with existing OpenStack Barbican APIs, enabling seamless integration into existing cloud infrastructures without architectural overhaul.
- The backend database remains protected through encryption within the SGX enclave, ensuring that even if the database is exposed, secrets remain confidential.
- The implementation demonstrates that software-based key management can achieve strong security with minimal performance overhead, making it suitable for large-scale, dynamic cloud environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.