Secure distribution of Hardware Security Module root keys
The system addresses the challenge of secure root key distribution in cloud environments by using ephemeral keys within HSM clusters, ensuring user control and preventing unauthorized access.
Patent Information
- Application Number
- JP2024512962
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-10
- Filing Date
- 2022-09-09
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2042-09-09
AI Technical Summary
Existing key management systems in cloud computing environments require complex coordination between nodes to maintain root keys, risking unauthorized access and loss of control over encryption keys.
A system that uses ephemeral keys for secure distribution of root keys within a Hardware Security Module (HSM) cluster, ensuring user ownership and control over the root key hierarchy, without relying on shared secrets across all nodes.
Ensures secure and user-controlled distribution of root keys, preventing unauthorized access and maintaining encryption key control within cloud environments.
Smart Images

Figure 2024533070000001
Abstract
Description
[Technical field]
[0001] The present invention relates to managing computing infrastructure resources, and more particularly to initializing a hardware security module (HSM) cluster and securely distributing cryptographic keys across an HSM cluster. [Background technology]
[0002] Known key management services offered by cloud service providers include bring-your-own-key capabilities, which allow users to import user keys or randomly generated keys into the HSM, which are then used with envelope encryption to encrypt data at rest. Data services such as database-as-a-service and infrastructure services integrate with known key management services to use key-encrypting-keys, securely store data encryption keys locally while in service, and access the key management service to unwrap the data encryption keys and decrypt data. Known key management services allow users to generate root keys (also known as wrapping keys or master keys) on systems that are controlled by the user and external to the key management service, and further allow users to upload the root keys via key ceremonies. Users have issues with physical security and processes that must be maintained around managing copies of the root keys.
[0003] Therefore, a root key distribution system is required to protect data within a cloud computing environment using key encryption keys, but it requires user ownership and exclusive control of the root key of the key hierarchy. Summary of the Invention
[0004] In one embodiment, the present invention provides a computer system including a central processing unit (CPU), a memory coupled to the CPU, and one or more computer-readable storage media coupled to the CPU. The one or more computer-readable storage media collectively include instructions executed by the CPU via the memory to implement a method for distributing a root key to hardware security modules (HSMs) of an HSM cluster. The method includes the computer system sending a first command to a source HSM to create a master key. The first command is signed by an administrator of the HSM in the HSM cluster. The method further includes the computer system receiving from the source HSM a fingerprint of the master key in a response signed by the source HSM using a module signing key hardcoded into the source HSM during manufacture of the source HSM. The method further includes the computer system sending a second command to the first HSM in the HSM cluster. The second command generates an importer key pair including an importer private key and an importer public key. The method further includes the computer system receiving an importer public key from the first HSM in response to sending the second command. The method further includes the computer system sending a request to the source HSM to export the master key and the importer public key. The method further includes the computer system receiving from the source HSM in response to sending the request (i) the master key wrapped with the transport key and (ii) an exporter public key. The transport key is derived from the importer public key and the exporter private key. The method further includes the computer system sending to the first HSM (i) the master key wrapped with the transport key and (ii) the exporter public key.The method further includes the computer system activating the master key in the first HSM.
[0005] The above-described embodiments advantageously allow a customer or end user to authenticate each of the nodes of the HSM cluster that hold the root key and ensure that each node is a trusted destination.
[0006] In an optional aspect of the invention, the method further includes the computer system using the enabled master key as a root key in a key management service, where the key management service provides the customer or end user with complete control over the encryption keys protecting the data in the cloud computing environment without requiring management of the root key outside of the key management service and preventing the cloud service provider from accessing the data. The foregoing aspect of the invention advantageously requires the end user and remote systems to authorize the action of distribution of the root key, rather than relying on difficult coordination between two HSMs used to maintain the root key in the key management service.
[0007] In another optional aspect of the invention, the method further includes the first HSM deriving a transport key from the exporter public key and the importer private key stored by the first HSM after transmitting the master key and the exporter public key. The method further includes the first HSM unwrapping the master key using the transport key. The method further includes the first HSM registering the unwrapped master key in a register of the first HSM in an uncommitted state as a new master key. The aforementioned aspect of the invention advantageously uses a temporary key to securely transport the root key, rather than using a less secure secret shared across all nodes in the HSM cluster.
[0008] In another optional aspect of the invention, the method further includes the computer system sending a command to a second HSM in the HSM cluster to generate a second importer key pair including a second importer private key and a second importer public key. The second importer key pair is different from the importer key pair. The method further includes the computer system receiving the second importer public key from the second HSM. The method further includes the computer system sending a request to the source HSM to export the master key and the second importer public key. The method further includes the computer system receiving from the source HSM (i) the master key wrapped using a second transport key and (ii) a second exporter public key, the second transport key being different from the transport key and derived from the second importer public key and the second exporter private key. The method further includes the computer system sending to the second HSM (i) the master key wrapped using the second transport key and (ii) the second exporter public key, where the second HSM derives a second transport key from the second exporter public key and the second importer private key stored by the second HSM, unwraps the master key using the second transport key, and registers the master key in an uncommitted state in a register of the second HSM. The method further includes the computer system setting the master key registered in the second HSM to a committed state and enabling the master key stored by the second HSM. The aforementioned aspects of the invention advantageously use an ephemeral key to securely transport the root key, rather than using a less secure secret shared across all nodes in an HSM cluster used to hold the root key of the key hierarchy.
[0009] Also described herein are computer program products and methods corresponding to the computer systems summarized above. The advantages discussed above relating to the computer systems also apply to the computer program products and methods. [Brief description of the drawings]
[0010] [Figure 1] 1 is a block diagram of a system for securely distributing a root key to HSMs in an HSM cluster in accordance with an embodiment of the present invention. [Figure 2A] FIG. 2 illustrates a flowchart of a process for securely distributing a root key to HSMs in an HSM cluster in accordance with an embodiment of the present invention. [Figure 2B] FIG. 2 illustrates a flowchart of a process for securely distributing a root key to HSMs in an HSM cluster in accordance with an embodiment of the present invention. [Figure 2C] FIG. 2 illustrates a flowchart of a process for securely distributing a root key to HSMs in an HSM cluster in accordance with an embodiment of the present invention. [Diagram 3] 2A-2C according to an embodiment of the present invention. FIG. 2B is a block diagram of a computer included in the system of FIG. 1 for implementing the processes of FIGS. 2A-2C. [Figure 4] FIG. 1 illustrates a cloud computing environment in accordance with an embodiment of the present invention. [Diagram 5] FIG. 2 illustrates an abstract model layer according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] overview In traditional key management services within a cloud environment, maintenance of the root key involves coordination between two nodes (i.e., two HSMs) and a shared secret across all nodes within the cluster that is used to hold the root key of the key hierarchy, allowing the cloud service provider to access the encryption keys within the HSM, thereby preventing the user encrypting data within the cloud environment from having complete control over access to the encryption keys. Additionally, in a cloud computing environment where an end user wants to protect the end user's encryption keys, another party may have physical access to the system and may have the ability to log in and copy the domain key without the end user's knowledge. As used herein, a node is a node within an HSM cluster, also referred to as an HSM.
[0012] The present invention addresses the aforementioned unique challenge of managing root keys by using key encryption keys, but with the user having ownership and exclusive control over the root keys of the key hierarchy to protect data in a cloud environment. The present invention requires the end user and remote system to authorize key management actions, rather than using traditional coordination between two nodes to maintain the root keys. The present invention uses ephemeral keys to securely transfer the root keys, rather than using the known technique of using a secret shared across all nodes in the HSM cluster used to hold the root keys. The present invention allows the user to authenticate each of the nodes in the HSM cluster that hold the root keys to ensure that the destination is a trusted destination. The user has full control over the authorization of the distribution process and the authentication of the destinations, and the distribution process distributes the root keys of the key hierarchy used to protect data in multiple cloud services to the nodes in the HSM cluster, without the need to generate or protect copies of the root keys outside of the HSM cluster.
[0013] In one embodiment, the root key distribution system uses the enabled master key in a key management service as a root key, and the key management service provides customers or end users with complete control over the encryption keys protecting their data in a cloud computing environment without requiring management of the root keys outside of the key management service, and prevents cloud service providers from accessing the data.
[0014] In one embodiment, the root key distribution system establishes an administrator for each HSM (i.e., node) of the HSM cluster, uploads a private / public key pair to the node for authorization of a given node's commands after the node is released from imprint mode, generates a root key, synchronizes the nodes in response to a user authorizing the process by using a key management service (e.g., IBM® Cloud Trusted Key Entry (TKE)) in the cloud computing environment, and uses the root key in the key management service to protect data in the cloud computing environment. IBM is a registered trademark of International Business Machines Corporation, Armonk, NY.
[0015] In one embodiment, the root key distribution system described herein allows users to protect data through control of a key hierarchy without requiring management of the root key outside of a key management service. The first (i.e., top) level of the key hierarchy includes the HSM root key (i.e., master key), which is stored in the HSM, configured by the user via the TKE command line interface (CLI) or smart card, and whose backup is stored only on the client. The second level in the key hierarchy includes the customer root key (CRK), which is stored in wrapped form only by Hyper Protect Crypto Services (HPCS), created randomly by the HSM or imported by an API, and backed up within a geographic region by the HPCS. The third level in the key hierarchy includes the data encryption key (DEK), which is stored in wrapped form by an application or other service, created randomly by the HSM or imported by an API, and backed up by the application using the DEK.
[0016] A system for distributing root keys to HSMs in an HSM cluster 1 is a block diagram of a system 100 for securely distributing root keys to HSMs in an HSM cluster in accordance with an embodiment of the present invention. System 100 includes a computer 102 that includes a software-based root key distribution system 104 that includes an HSM administrator establishment module 106, a root key generation and HSM synchronization module 108, and a root key activation module. In one embodiment, root key distribution system 104 is included in an IBM® Trusted Key Entry workstation.
[0017] The root key distribution system 104 receives a signing private key 112 from an administrator's computer system (not shown). The system 100 also includes a key management service and cloud HSM instance 114 in communication with the root key distribution system 104. The key management service and cloud HSM instance 114 may be, for example, an IBM® Hyper Protect Crypto Services instance.
[0018] The managed service and cloud HSM instance 114 includes a cluster of cryptographic units 116-1, ... 116-N, where N is an integer greater than 1. A cryptographic unit is a singular unit that represents an HSM and corresponding software stack. The cluster of cryptographic units 116-1, ... 116-N operates as one logical entity for key management and key governance. Each of the cryptographic units 116-1, ... 116-N includes an HSM 118 (i.e., a cloud HSM) that collectively constitutes an HSM cluster. A cloud HSM is a tamper-resistant, tamper-evident hardware device configured to securely manage, process, and store cryptographic keys.
[0019] The managed services and cloud HSM instance 114 also includes a source HSM 120, which is also a hardware security module. The HSM 120 creates a master key, creates an exporter key pair, derives a transport key, and wraps the master key with the transport key. In one embodiment, each of the crypto units 116-1, ..., 116-N includes a key management service application programming interface (KMS API) (not shown) and an Enterprise Public-Key Cryptography Standard (PKCS) #11 application programming interface (EP11 API) (not shown). The KMS API manages keys for the key management service. The EP11 API provides remote access to the instance 114 (e.g., an IBM® Hyper Protect Crypto Services instance) for data encryption and management.
[0020] The HSM administrator establishment module 106 establishes an administrator of the HSMs in the HSM cluster. For example, IBM® Crypto Express cards provide functionality for establishing an administrator of the HSMs. The HSM administrator establishment module 106 uploads a certificate from a private / public key pair to each HSM 118. The root key distribution system 104 uses this certificate to authorize commands for a given node in the HSM cluster after the given node is released from imprint mode.
[0021] The root key generation and HSM synchronization module 108 generates root keys and synchronizes nodes in the HSM cluster in response to a user authorizing the root key distribution process by using the TKE client.
[0022] The root key activation module 110 activates pending root keys in an instance 114 of a key management service and cloud HSM to protect data in the cloud computing environment.
[0023] The functionality of the components illustrated in FIG. 1 is explained in further detail in the discussion of FIGS. 2A-2C and 3 presented below.
[0024] The process for distributing the root key to the HSMs in an HSM cluster 2A-2C show a flowchart of a process for securely distributing a root key to HSMs in an HSM cluster according to an embodiment of the present invention. The process of FIG. 2A-2C begins at start node 200 of FIG. 2A. In step 202, root key distribution system 104 (see FIG. 1) receives a command from an administrator's computer system to create a new master key. As used herein, master key is a synonym for root key. The master key is a cryptographic key used to protect the key management service and instances of cloud HSMs 114 (see FIG. 1) by encrypting the contents of HSM 118 (see FIG. 1) and protecting cryptographic operations.
[0025] In step 204, the root key distribution system 104 (see FIG. 1) generates a command to create a master key, signs the command, and sends the command to the source HSM 120 (see FIG. 1). The root key distribution system 104 (see FIG. 1) signs the command to create the master key by using the signing private key 112 (see FIG. 1).
[0026] After step 204 and before step 206, source HSM 120 (see FIG. 1) receives the command sent in step 204, validates the signature of the command sent in step 204, generates a master key (also referred to herein as a new master key), generates a response using a module signing key that was hard-coded into source HSM 120 (see FIG. 1) during manufacture of source HSM 120 (see FIG. 1), and signs the response.
[0027] In step 206, the root key distribution system 104 (see FIG. 1) receives the fingerprint of the master key in the response that was generated after step 204 and before step 206 using the module signing key.
[0028] In step 208 , the root key distribution system 104 (see FIG. 1) validates the response signature generated after step 204 and before step 206 using the module signing key.
[0029] In step 210, the root key distribution system 104 (see FIG. 1) sends an indication to the administrator's computer system that the creation of the new master key is complete.
[0030] In step 212, the root key distribution system 104 (see FIG. 1) generates a command, signs the command, and sends the command to the first HSM in the HSM cluster (i.e., HSM 118 in crypto unit 116-1 in FIG. 1). The command sent in step 212 is to generate an importer key pair including an importer private key and an importer public key.
[0031] After step 212 and before step 214, a first HSM receives the command sent in step 212, generates an importer key pair, and stores the importer private key.
[0032] In step 214, the root key distribution system 104 (see FIG. 1) receives the importer public key from the first HSM.
[0033] In step 216, the root key distribution system 104 (see FIG. 1) generates a request to export the master key and the importer public key, signs the request, and sends the request to the source HSM 120 (see FIG. 1).
[0034] After step 216, the process of Figures 2A-2C continues to step 218 of Figure 2B. After step 216 and before step 218, source HSM 120 (see Figure 1) receives the request sent in step 216, generates an exporter key pair including an exporter private key and an exporter public key, derives a transport key from the importer public key and the exporter private key, wraps the master key using the transport key, generates a response to the request sent in step 216, and discards the importer public key, exporter private key, and transport key. As used herein, wrapping a master key means encrypting the master key using another key.
[0035] At step 218, the root key distribution system 104 (see FIG. 1) receives the wrapped master key and the exporter public key in response.
[0036] In step 220, the root key distribution system 104 (see FIG. 1) generates a wrapped master key and an exporter public key, signs the wrapped master key and the exporter public key, and sends the wrapped master key and the exporter public key to the first HSM.
[0037] After step 220 and before step 222, the first HSM receives the wrapped master key and the exporter public key sent in step 220, derives a transport key from the importer private key and the exporter public key, unwraps the master key using the transport key derived from the importer private key and the exporter public key, and places the unwrapped master key in an uncommitted state in a new master key register. The unwrapped master key placed in the new master key register is also referred to herein as a pending master key. As used herein, unwrapping a master key means decrypting the wrapped master key by using another key.
[0038] In step 222, the root key distribution system 104 (see FIG. 1) receives an indication that the import of the master key into the first HSM is complete.
[0039] In step 224, the root key distribution system 104 (see FIG. 1) generates a command to commit the pending master key, signs the command, and sends the command to the first HSM.
[0040] After step 224 and before step 226, the first HSM receives the command sent in step 224 and, in response to the received command, changes the state of the pending master key from an uncommitted state to a committed state.
[0041] In step 226, the root key distribution system 104 (see FIG. 1) receives an indication from the first HSM that the pending master key is in a committed state.
[0042] In step 228, the root key distribution system 104 (see FIG. 1) generates a command to finalize the pending master key, signs this command, and sends this command to the first HSM (see FIG. 1).
[0043] After step 228 and before step 230, the first HSM receives the command sent in step 228 and sets the pending master key to be active (ie, activates the pending master key).
[0044] At step 230, the root key distribution system 104 (see FIG. 1) receives an indication from the first HSM that the pending master key has been activated.
[0045] After step 230, the process of FIGS. 2A-2C continues to step 232 of FIG. 2C.
[0046] In step 232, the root key distribution system 104 (see FIG. 1) determines whether there is another unused HSM in the HSM cluster in the loop starting at step 212 (see FIG. 2A). If the root key distribution system 104 (see FIG. 1) determines that there is another HSM (i.e., a next HSM), the "Yes" branch of step 232 is taken and the process of FIGS. 2A-2C loops back to step 212 (see FIG. 2A) and the first HSM in the description of steps 212-230 is replaced with the next HSM.
[0047] If, in step 232, the root key distribution system 104 (see FIG. 1) determines that there is no other HSM in the HSM cluster to be used in the above loop, the “No” branch of step 232 is taken and step 234 is executed.
[0048] In step 234, the root key distribution system 104 (see FIG. 1) sends an indication to the administrator's computer system that distribution of the master key in the HSM cluster is complete.
[0049] The process of FIGS. 2A-2C ends at end node 236.
[0050] Computer Systems FIG. 3 is a block diagram of a computer that is included in the system of FIG. 1 and that performs the processes of FIGS. 2A-2C according to an embodiment of the present invention. The computer 102 is generally a computer system that includes a central processing unit (CPU) 302, a memory 304, an input / output (I / O) interface 306, and a bus 308. Additionally, the computer 102 is coupled to an I / O device 310 and a computer data storage unit 312. The CPU 302 performs the computational and control functions of the computer 102, including executing instructions included in the program code 314 of the root key distribution system 104 (see FIG. 1) to perform a method for securely distributing root keys to HSMs in an HSM cluster, which instructions are executed by the CPU 302 via the memory 304. The CPU 302 may include a single processing unit or processor, or may be distributed across one or more processing units or one or more processors at one or more locations (e.g., on a client and a server).
[0051] Memory 304 includes known computer-readable storage media, as described below. In one embodiment, cache memory elements of memory 304 provide temporary storage of at least some program code (e.g., program code 314) to reduce the number of times the code must be retrieved from bulk storage while instructions of the program code are being executed. Additionally, like CPU 302, memory 304 may reside in a single physical location or may be distributed across multiple physical systems or multiple computer-readable storage media of various forms, including one or more types of data storage. Additionally, memory 304 may include data distributed across, for example, a local area network (LAN) or a wide area network (WAN).
[0052] I / O interface 306 includes any system for exchanging information with an external source. I / O devices 310 include any known type of external device, including a display, keyboard, etc. Bus 308 provides a communication link between each of the components within computer 102 and may include any type of transmission link, including electrical, optical, wireless, etc.
[0053] The I / O interface 306 also enables the computer 102 to store or retrieve information (e.g., data or program instructions such as program code 314) in or from the computer data storage unit 312 or another computer data storage unit (not shown). The computer data storage unit 312 includes one or more known computer readable storage media, which are described below. In one embodiment, the computer data storage unit 312 is a non-volatile data storage device, such as, for example, a solid-state drive (SSD), a network-attached storage (NAS) array, a storage area network (SAN) array, a magnetic disk drive (i.e., a hard disk drive), or an optical disk drive (e.g., a CD-ROM drive that receives CD-ROM discs or a DVD drive that receives DVD discs).
[0054] Memory 304 and / or storage unit 312 may store computer program code 314 including instructions that are executed by CPU 302 via memory 304 to securely distribute root keys to HSMs in an HSM cluster. Although Figure 3 illustrates memory 304 as including program code, the present invention contemplates embodiments in which memory 304 does not include all of code 314 simultaneously, but instead includes only a portion of code 314 at a time.
[0055] Additionally, memory 304 may include an operating system (not shown), and may include other systems not shown in FIG.
[0056] As will be appreciated by one of ordinary skill in the art, in a first embodiment, the present invention may be a method, in a second embodiment, the present invention may be a system, and in a third embodiment, the present invention may be a computer program product.
[0057] Any of the components of the embodiments of the present invention may be deployed, managed, serviced, etc., by a service provider offering to deploy or integrate a computing infrastructure related to securely distributing a root key to HSMs in an HSM cluster. Accordingly, an embodiment of the present invention discloses a process for supporting a computing infrastructure, the process including providing at least one support service for at least one of integrating, hosting, maintaining, and deploying computer readable code (e.g., program code 314) in a computer system (e.g., computer 102) including one or more processors (e.g., CPU 302), the processors executing instructions included in the code to cause the computer system to securely distribute a root key to HSMs in an HSM cluster. Another embodiment discloses a process for supporting a computing infrastructure, the process including integrating computer readable program code into a computer system including a processor. The integrating step includes storing the program code in a computer readable storage device of the computer system by using the processor. The program code, when executed by the processor, implements a method for securely distributing a root key to HSMs in an HSM cluster.
[0058] While it is understood that the program code 314 for securely distributing root keys to HSMs in an HSM cluster may be deployed by manually loading directly into the client computers, server computers, and proxy computers (not shown) via loading a computer-readable storage medium (e.g., computer data storage unit 312), the program code 314 may also be automatically or semi-automatically deployed to computer 102 by sending the program code 314 to a central server or group of central servers. The program code 314 is then downloaded to the client computers (e.g., computer 102) that will execute the program code 314. As an alternative, the program code 314 is sent directly to the client computers by email. The program code 314 is then separated into a directory on the client computers or loaded into a directory on the client computers by a button on the email that executes a program that separates the program code 314 into the directory. Another alternative is to send the program code 314 directly to a directory on the client computers' hard drives. If a proxy server is present, the process selects the proxy server code, determines on which computer to place the proxy server code, transmits the proxy server code, and then installs the proxy server code on the proxy computer. The program code 314 is transmitted to the proxy server and then stored on the proxy server.
[0059] Another embodiment of the invention provides a method for performing steps of a process on a subscription, advertising, and / or fee basis. That is, a service provider may create, maintain, support, etc., a process for securely distributing root keys to HSMs in an HSM cluster. In this case, the service provider may create, maintain, support, etc., a computer infrastructure that performs the steps of the process for one or more customers. In return, the service provider may receive payments from the customer pursuant to a subscription and / or fee agreement, and / or the service provider may receive payments from the sale of advertising content to one or more third parties.
[0060] The present invention may be a system, method, or computer program product, or combination thereof, at any possible level of integration of technical detail. The computer program product may include one or more computer readable storage media (i.e., memory 304 and computer data storage unit 312) having computer readable program instructions 314 for causing a processor (e.g., CPU 302) to perform aspects of the present invention.
[0061] A computer readable storage medium may be a tangible device that can hold and store instructions (e.g., program code 314) for use by an instruction execution device (e.g., computer 102). A computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer-readable storage media includes portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridges in grooves on which instructions are recorded, and any suitable combinations of these. As used herein, computer-readable storage media should not be construed as being signals that are themselves ephemeral, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted over wires.
[0062] The computer readable program instructions (e.g., program code 314) described herein may be downloaded from a computer readable storage medium to a respective computing / processing device (e.g., computer 102) or to an external computer or storage device (e.g., computer data storage unit 312) via a network (not shown) (e.g., the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof). The network may comprise copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card (not shown) or network interface (not shown) in each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in the computer readable storage medium in each computing / processing device.
[0063] The computer readable program instructions (e.g., program code 314) for carrying out the operations of the present invention may be source or object code written in any combination of one or more programming languages, including assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or object-oriented programming languages, such as Smalltalk®, C++, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partially on the user's computer as a standalone software package, partially on the user's computer and on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer-readable program instructions to customize the electronic circuitry by utilizing state information of the computer-readable program instructions to perform aspects of the invention.
[0064] Aspects of the present invention are described herein with reference to flowchart illustrations (e.g., FIGS. 2A-2C) and / or block diagrams (e.g., FIGS. 1 and 3) of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions (e.g., program code 314).
[0065] These computer readable program instructions may be provided to a processor (e.g., CPU 302) of a general purpose computer, special purpose computer, or other programmable data processing apparatus (e.g., computer 102) to produce a machine, such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, produce means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium (e.g., computer data storage unit 312) and capable of directing a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, such that the computer readable storage medium on which the instructions are stored comprises an article of manufacture including instructions for performing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0066] Computer readable program instructions (e.g., program code 314) may be loaded into a computer (e.g., computer 102), other programmable data processing apparatus, or other device to cause a series of operable steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, such that the instructions, which execute on the computer, other programmable apparatus, or other device, perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0067] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, comprising one or more executable instructions for performing a specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the figures. For example, two blocks shown in succession may in fact be performed as one step, executed simultaneously, executed substantially simultaneously in a partially or fully overlapping manner in time, or executed in reverse order, depending on the functionality involved. It is also noted that each block in the block diagrams and / or flowchart diagrams, as well as combinations of blocks in the block diagrams and / or flowchart diagrams, may be implemented by a dedicated hardware-based system that executes the specified functions or operations or executes a combination of dedicated hardware and computer instructions.
[0068] While embodiments of the present invention have been described herein for purposes of illustration, many modifications and changes will become apparent to those skilled in the art. It is therefore intended in the appended claims to cover all such modifications and changes as fall within the true spirit and scope of the invention.
[0069] Cloud Computing Environment Although this disclosure includes detailed descriptions of cloud computing, it should be understood that the implementation of the teachings recited herein is not limited to a cloud computing environment. Rather, embodiments of the invention may be implemented in conjunction with any other type of computing environment now known or later developed.
[0070] Cloud computing is a service delivery model for enabling convenient, on-demand network access to a shared pool of configurable computational resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) and for rapidly provisioning and releasing these resources with minimal administrative effort or interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0071] The features are as follows:
[0072] On-Demand Self-Service: Cloud customers can automatically provision server time and computing power, such as network storage, as needed, without the need for unilateral human interaction with the service provider.
[0073] Broad network access: Capabilities are available over the network and can be accessed through standard mechanisms, facilitating use by heterogeneous thin- and thick-client platforms (e.g., cell phones, laptops, and PDAs).
[0074] Resource Pool: The provider's computing resources are pooled and offered to multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically allocated and reallocated according to demand. There is a sense of location independence, and consumers typically have no control or knowledge regarding the exact location of the resources offered, although at higher levels of abstraction they may be able to specify a location (e.g., country, state, or data center).
[0075] Rapid Elasticity: Capacity is provisioned quickly and elastically, in some cases automatically, and can be quickly scaled out and quickly released to quickly scale in. Capacity available for provisioning often appears to the consumer as unlimited, and any amount can be purchased at any time.
[0076] Measured Services: Cloud systems leverage their metering capabilities to automatically control and optimize resource usage at a level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the services utilized.
[0077] The service model is as follows:
[0078] Software as a Service: The capability offered to the consumer is the use of the provider's applications running on a cloud infrastructure. Those applications can be accessed from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, storage, or even individual application capabilities, except for the possibility of limited user-specific application configuration settings.
[0079] Platform as a Service: The capability provided to the Customer is to deploy applications that the Customer creates or acquires, written using programming languages and tools supported by the Provider, onto a cloud infrastructure. The Customer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does control the deployed applications and, where possible, the configuration of the application hosting environment.
[0080] Infrastructure as a Service: The capability provided to the consumer is the provisioning of processing, storage, network, and other basic computational resources over which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but does have control over the operating systems, storage, deployed applications, and possibly limited control over selected network components (e.g., host firewalls).
[0081] The deployment model is as follows:
[0082] Private Cloud: This cloud infrastructure is operated solely for the organization. It can be managed by the organization or a third party and can exist on-premise or off-premise.
[0083] Community Cloud: This cloud infrastructure is shared by multiple organizations to support a specific community with shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It can be managed by these organizations or a third party and can reside on-premise or off-premise.
[0084] Public Cloud: This cloud infrastructure is available for use by general users or large industry organizations and is owned by an organization that sells cloud services.
[0085] Hybrid cloud: This cloud infrastructure is a combination of two or more clouds (private, community, or public) that remain unique but are bound together by standardized or proprietary technologies that allow data and application portability (e.g., cloud bursting for load balancing between clouds).
[0086] A cloud computing environment is a service-oriented environment with an emphasis on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0087] Referring now to FIG. 4, an exemplary cloud computing environment 50 is shown. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10 with which local computing devices used by cloud consumers (e.g., a personal digital assistant (PDA) or mobile phone 54A, a desktop computer 54B, a laptop computer 54C, and / or an automobile computer system 54N) can communicate. The nodes 10 may communicate with each other. The nodes 10 may be physically or virtually grouped in one or more networks (not shown), such as in a private cloud, community cloud, public cloud, or hybrid cloud, or combinations thereof, as previously described herein. This allows the cloud computing environment 50 to provide infrastructure, platform, and / or software as a service that does not require the cloud consumer to maintain resources on a local computing device. The types of computing devices 54A, 54B, 54C, and 54N shown in FIG. 4 are intended to be illustrative only, and it will be understood that the computing node 10 and cloud computing environment 50 may communicate with any type of computer-controlled device via any type of network and / or network-addressable connection (e.g., a connection using a web browser).
[0088] Referring now to Figure 5, there is shown a set of functional abstraction layers provided by cloud computing environment 50 (see Figure 4). It should be understood in advance that the components, layers, and functions shown in Figure 5 are intended to be illustrative only and that embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:
[0089] The hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61, Reduced Instruction Set Computer (RISC) architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and network components 66. In some embodiments, the software components include network application server software 67 and database software 68.
[0090] The virtualization layer 70 provides an abstraction layer over which instances of virtual entities such as virtual servers 71 , virtual storage 72 , virtual networks including virtual private networks 73 , virtual applications and operating systems 74 , and virtual clients 75 can be provided.
[0091] In one example, the management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computational and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 82 provides cost tracking as resources are utilized within the cloud computing environment and billing or invoicing for the utilization of these resources. In one example, these resources may include application software licenses. Security provides identity verification of cloud consumers and tasks, as well as protection of data and other resources. User portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 provides allocation and management of cloud computational resources to meet required service levels. Service level agreement (SLA) planning and execution 85 provides advance provisioning and procurement of cloud computational resources in anticipation of upcoming demands and in accordance with SLAs.
[0092] The Workload Layer 90 provides examples of functionality available in a cloud computing environment. Examples of workloads and functionality that may be provided from this layer include mapping and navigation 91, software development and lifecycle management 92, virtual classroom instruction delivery 93, data analytics processing 94, transaction processing 95, and secure root key distribution 96 to HSMs in an HSM cluster.
Claims
1. A central processing unit (CPU); a memory coupled to the CPU; and one or more computer-readable storage media coupled to the CPU, the one or more computer-readable storage media collectively comprising instructions executed by the CPU via the memory to perform a method for distributing a root key to Hardware Security Modules (HSMs) of an HSM cluster, the method comprising: the computer system sending a first command to a source HSM to create a master key, the first command being signed by an administrator of an HSM in the HSM cluster; the computer system receiving from the source HSM a fingerprint of the master key in a response signed by the source HSM using a module signing key hard-coded into the source HSM during manufacture of the source HSM; sending, by the computer system, a second command to a first HSM in the HSM cluster, the second command generating an importer key pair including an importer private key and an importer public key; receiving, by the computer system, the importer public key from the first HSM in response to sending the second command; said computer system sending a request to said source HSM to export said master key and said importer public key; receiving, by the computer system in response to sending the request, from the source HSM: (i) the master key wrapped using a transport key and (ii) an exporter public key, the transport key being derived from the importer public key and an exporter private key; said computer system sending to said first HSM (i) said master key wrapped using said transport key and (ii) said exporter public key; said computer system validating said master key in said first HSM; 1. A computer system comprising:
2. The method further comprises the first HSM, after transmitting the master key and the exporter public key, the first HSM deriving the transport key from the exporter public key and the importer private key stored by the first HSM; the first HSM unwrapping the master key using the transport key; the first HSM registering the unwrapped master key in a register of the first HSM in an uncommitted state as a new master key; 10. The computer system of claim 1 further comprising:
3. The method further comprising:
3. The computer system of claim 2, further comprising the first HSM discarding the importer private key, the exporter public key, and the transport key.
4. The method further comprising:
4. The computer system of claim 2, further comprising: changing the master key registered in the register of the first HSM from the uncommitted state to a committed state.
5. The method further comprising:
5. The computer system of claim 1, further comprising: using the enabled master key as a root key in a key management service, the key management service providing customers with complete control over encryption keys protecting data in a cloud computing environment without requiring management of the root key outside of the key management service, and preventing cloud service providers from accessing the data.
6. The method further comprising: sending a command to a second HSM in the HSM cluster to generate a second importer key pair including a second importer private key and a second importer public key, the second importer key pair being different from the importer key pair; receiving, by the computer system, the second importer public key from the second HSM; the computer system sending a request to the source HSM to export the master key and the second importer public key; receiving, by the computer system, from the source HSM, (i) the master key wrapped using a second transport key and (ii) a second exporter public key, the second transport key being different from the transport key and being derived from the second importer public key and a second exporter private key; the computer system sending to the second HSM (i) the master key wrapped using the second transport key and (ii) the second exporter public key, where the second HSM derives the second transport key from the second exporter public key and the second importer private key stored by the second HSM, unwraps the master key using the second transport key, and registers the master key in an uncommitted state in a register of the second HSM; the computer system setting the master key registered in the second HSM to a committed state and validating the master key stored by the second HSM; 6. The computer system of claim 1, further comprising:
7. The method further comprises: receiving, at the source HSM, the request to export the master key and the importer public key; generating, by the source HSM in response to receiving the request to export the master key and the importer public key, an exporter key pair including the exporter private key and the exporter public key; the source HSM deriving the transport key from the importer public key and the exporter private key; the source HSM wrapping the master key using the transport key; generating, by the source HSM, a response to the request, the response including (i) the master key wrapped using the transport key and (ii) the exporter public key; the source HSM discarding the importer public key, the exporter private key, and the transport key; 7. The computer system of claim 1, further comprising:
8. The method further comprising: in response to sending the first command, the source HSM validating a signature of the first command by using a signature public key; the source HSM generating the master key; the source HSM generating a response to the first command using the module signing key and signing the response; 8. The computer system of claim 7, further comprising:
9. The method further comprising: the computer system establishing the administrator of the HSMs in the HSM cluster; uploading a certificate from a private and public key pair to the HSM, the certificate authorizing a command after each HSM of the plurality of HSMs is released from an imprint mode; 9. The computer system of claim 1, further comprising:
10. 1. A computer program product for distributing a root key to Hardware Security Modules (HSMs) of an HSM cluster, the computer program product comprising: one or more computer readable storage media having computer readable program code collectively stored thereon, the computer readable program code being executed by a central processing unit (CPU) of a computer system, the computer system comprising: the computer system sending a first command to a source HSM to create a master key, the first command being signed by an administrator of an HSM in the HSM cluster; the computer system receiving from the source HSM a fingerprint of the master key in a response signed by the source HSM using a module signing key hard-coded into the source HSM during manufacture of the source HSM; sending, by the computer system, a second command to a first HSM in the HSM cluster, the second command generating an importer key pair including an importer private key and an importer public key; receiving, by the computer system, the importer public key from the first HSM in response to sending the second command; said computer system sending a request to said source HSM to export said master key and said importer public key; receiving, by the computer system in response to sending the request, from the source HSM: (i) the master key wrapped using a transport key and (ii) an exporter public key, the transport key being derived from the importer public key and an exporter private key; said computer system sending to said first HSM (i) said master key wrapped using said transport key and (ii) said exporter public key; said computer system validating said master key in said first HSM; A computer program product for causing a computer to carry out a method comprising:
11. The method further comprising: after transmitting the master key and the exporter public key, the computer system deriving the transport key from the exporter public key and the importer private key stored by the first HSM; the computer system unwrapping the master key using the transport key; the computer system registering the unwrapped master key in a register of the first HSM in an uncommitted state as a new master key; 11. The computer program product of claim 10, further comprising:
12. The method further comprising:
12. The computer program product of claim 11, wherein the computer system further comprises revoking the importer private key, the exporter public key, and the transport key.
13. The method further comprising:
13. The computer program product of claim 11 or 12, further comprising the computer system changing the master key registered in the register of the first HSM from the uncommitted state to a committed state.
14. The method further comprising:
14. The computer program product of claim 10, further comprising: the computer system using the enabled master key as a root key in a key management service, the key management service providing customers with complete control over encryption keys protecting data in a cloud computing environment without requiring management of the root key outside of the key management service, and preventing cloud service providers from accessing the data.
15. The method further comprising: sending a command to a second HSM in the HSM cluster to generate a second importer key pair including a second importer private key and a second importer public key, the second importer key pair being different from the importer key pair; receiving, by the computer system, the second importer public key from the second HSM; the computer system sending a request to the source HSM to export the master key and the second importer public key; receiving, by the computer system, from the source HSM, (i) the master key wrapped using a second transport key and (ii) a second exporter public key, the second transport key being different from the transport key and being derived from the second importer public key and a second exporter private key; the computer system sending to the second HSM (i) the master key wrapped using the second transport key and (ii) the second exporter public key, where the second HSM derives the second transport key from the second exporter public key and the second importer private key stored by the second HSM, unwraps the master key using the second transport key, and registers the master key in an uncommitted state in a register of the second HSM; the computer system setting the master key registered in the second HSM to a committed state and validating the master key stored by the second HSM; 15. A computer program product according to any of claims 10 to 14, further comprising:
16. The method further comprising: receiving, by the computer system, the request to export the master key and the importer public key; generating, by said computer system, in response to said receiving said request to export said master key and said importer public key, an exporter key pair including said exporter private key and said exporter public key; the computer system deriving the transport key from the importer public key and the exporter private key; the computer system wrapping the master key with the transport key; generating a response to the request, the response including (i) the master key wrapped using the transport key and (ii) the exporter public key, the computer system revokes the importer public key, the exporter private key, and the transport key.
16. A computer program product according to any of claims 10 to 15, further comprising:
17. The method further comprising: in response to sending the first command, the computer system validating a signature of the first command by using a signature public key; said computer system generating said master key; said computer system generating a response to said first command using said module signing key and signing said response; 20. The computer program product of claim 16, further comprising:
18. 1. A computer-implemented method, comprising: sending, by one or more processors, a first command to a source HSM to create a master key, the first command being signed by an administrator of an HSM in the HSM cluster; receiving, by the one or more processors, from the source HSM, a fingerprint of the master key in a response signed by the source HSM using a module signing key that was hard-coded into the source HSM during manufacture of the source HSM; sending, by the one or more processors, a second command to a first HSM in the HSM cluster, the second command generating an importer key pair including an importer private key and an importer public key; receiving, by the one or more processors, the importer public key from the first HSM in response to the sending of the second command; sending, by the one or more processors, a request to the source HSM to export the master key and the importer public key; receiving, by the one or more processors, from the source HSM in response to sending the request, (i) the master key wrapped using a transport key and (ii) an exporter public key, the transport key being derived from the importer public key and an exporter private key; sending, by the one or more processors, to the first HSM: (i) the master key wrapped using the transport key, and (ii) the exporter public key; activating, by the one or more processors, the master key in the first HSM; 4. A computer-implemented method comprising:
19. deriving, by the one or more processors after said transmitting the master key and the exporter public key, the transport key from the exporter public key and the importer private key stored by the first HSM; unwrapping, by the one or more processors, the master key using the transport key; registering, by the one or more processors, the unwrapped master key in an uncommitted state in a register of the first HSM as a new master key; 20. The computer-implemented method of claim 18, further comprising:
20. 20. The computer-implemented method of claim 19, further comprising: revoking, by the one or more processors, the importer private key, the exporter public key, and the transport key.
21. 21. The computer-implemented method of claim 19 or 20, further comprising changing, by the one or more processors, the master key registered in the register of the first HSM from the uncommitted state to a committed state.
22. 22. The computer-implemented method of claim 18, further comprising: using, by the one or more processors, the enabled master key as a root key in a key management service, the key management service providing customers with complete control over encryption keys protecting data in a cloud computing environment without requiring management of the root key outside of the key management service, and preventing cloud service providers from accessing the data.
23. sending, by the one or more processors, a command to a second HSM in the HSM cluster to generate a second importer key pair including a second importer private key and a second importer public key, the second importer key pair being different from the importer key pair; receiving, by the one or more processors, the second importer public key from the second HSM; sending, by the one or more processors, a request to the source HSM to export the master key and the second importer public key; receiving, by the one or more processors, from the source HSM: (i) the master key wrapped using a second transport key and (ii) a second exporter public key, the second transport key being different from the transport key and being derived from the second importer public key and a second exporter private key; transmitting, by the one or more processors, to the second HSM (i) the master key wrapped using the second transport key and (ii) the second exporter public key, wherein the second HSM derives the second transport key from the second exporter public key and the second importer private key stored by the second HSM, unwraps the master key using the second transport key, and registers the master key in an uncommitted state in a register of the second HSM; setting, by the one or more processors, the master key registered in the second HSM to a committed state and validating the master key stored by the second HSM; 23. The computer-implemented method of claim 18, further comprising:
24. 24. The computer-implemented method of claim 18, further comprising providing software as a service within a cloud environment, the software executed by a hardware processor in the cloud environment to perform the sending of the first command, the receiving of the fingerprint of the master key, the sending of the second command, the receiving of the importer public key, the sending of the request to export the master key and the importer public key, the receiving of the master key and the exporter public key wrapped using the transport key, the sending of the master key and the exporter public key wrapped using the transport key, and the enabling of the master key in the first HSM.
25. 25. The computer-implemented method of claim 18, further comprising providing at least one support service for at least one of creating, integrating, hosting, maintaining, and deploying computer-readable program code in a computer, the program code being executed by a processor of the computer to perform the sending of the first command, the receiving of the fingerprint of the master key, the sending of the second command, the receiving of the importer public key, the sending of the request to export the master key and the importer public key, the receiving of the master key and the exporter public key wrapped using the transport key, the sending of the master key and the exporter public key wrapped using the transport key, and the enabling of the master key in the first HSM.
Citation Information
Patent Citations
Communication system and communication method
JP2006099694A
Information processing system and information processing apparatus
JP2020048008A
Key management system and method
JP2021521718A
Controlled use of a hardware security module
US20160105429A1
Key exchange process
US20180254894A1
