Method and host system for secure enclave migration
The method addresses enclave migration security by ensuring confidentiality and integrity through attestation and secure communication with timeouts, preventing cloning and concurrent execution during migration.
Patent Information
- Application Number
- JP2024525474
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2041-10-27
AI Technical Summary
Existing enclave migration methods fail to preserve the confidentiality and integrity of enclaves during transfer, allowing potential cloning attacks and concurrent execution on multiple hosts.
A method involving attestation and secure communication between security monitors on sending and receiving hosts using shared cryptographic keys, with timeouts and atomicity guarantees to ensure enclave data is transferred securely and without cloning.
Ensures the confidentiality and integrity of enclaves are maintained during migration, preventing concurrent execution and cloning, by using attestation, secure communication, and timeouts to guarantee atomicity.
Smart Images

Figure 2024540128000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a method that allows migration of the contents of an enclave and its sealed data from a first machine (the sending host) to a second machine (the receiving host).
[0002] Additionally, embodiments of the present invention relate to a computing platform that enables migration of the contents of an enclave and its sealed data to another computing platform. [Background technology]
[0003] A Trusted Execution Environment (TEE) allows applications to run in isolation from other software on the same platform, including potentially hostile hypervisors or operating systems. Applications are loaded into so-called enclaves, and access control to the enclave contents is protected by the underlying hardware. In particular, runtime enclave memory (i.e., dynamic random access memory (DRAM)) is encrypted with a hardware-dependent key that never leaves the processor.
[0004] Additionally, hardware platforms that implement a TEE feature other services such as remote attestation or sealing. Remote attestation allows a remote party to obtain a verifiable statement on the enclave's software configuration and the hardware of the platform on which the enclave is deployed, and as a by-product of most remote attestation protocols, the TEE and the remote party establish a secure channel using a shared cryptographic key. Sealing allows the enclave to save data in persistent storage such that the saved data is only available to the enclave itself, and this is achieved by encrypting and authenticating the data with a hardware-managed key that is unique to both the platform and the enclave.
[0005] The management and orchestration of the enclaves is delegated to a thin software layer that runs just above the hardware and uses different names depending on the instantiation of the TEE: for example, in ARM TrustZone this layer is called firmware or secure monitor, and is responsible for controlling which applications run in the "secure world" and switching between the so-called secure and normal worlds, whereas in the Intel SGX platform the software layer is distributed across a set of "system enclaves".
[0006] Embodiments of the present invention focus on enclaves built on the Risc-V instruction set architecture. The thin layer responsible for managing application enclaves is referred to herein as the Security Monitor (SM).
[0007] Previous work has shown that cloning applications running within enclaves, i.e., running multiple instances of the same application enclave concurrently, can be an effective attack vector to drive application behavior. Furthermore, application migration can be a vector to obtain multiple clones of a victim application. In particular, an adversary may initiate the migration of a victim application from a sending host to a receiving host without stopping the execution of the migrated application on the sending host. As a result, two instances of the same application will run concurrently, one on each of the hosts. Summary of the Invention [Problem to be solved by the invention]
[0008] It is therefore an object of the present invention to improve and further develop a method and a computing platform for enclave migration of the type initially described, such that the confidentiality and integrity of the enclave is preserved. [Means for solving the problem]
[0009] According to the present invention, the aforementioned object is achieved by a method for enabling enclave migration, in which the contents of an enclave and its sealed data are transferred from a first machine, which is a sending host, to a second machine, which is a receiving host. The method includes the steps of performing attestation between a security monitor of the sending host and a security monitor of the receiving host, including an exchange of a shared encryption key K between the two security monitors, using the shared encryption key K to implement a secure communication channel between the two security monitors, and executing a predefined transfer protocol by the two security monitors over the secure communication channel. The transfer protocol includes an initial exchange of validation messages between the security monitors to validate that both security monitors are ready and able to perform the transfer, and a subsequent transfer of the enclave data between the security monitors.
[0010] The aforementioned object is further achieved by a computing platform comprising an operating system, a hardware component, an enclave that allows an application to execute in isolation from other software executing on the platform, where access control to the enclave's contents is protected by the hardware component, and a security monitor implemented on the hardware component and configured to manage and orchestrate the enclave. The security monitor is further configured to perform attestation with the security monitor of the receiving host, exchange a shared encryption key K with the security monitor of the receiving host, use the shared encryption key K to implement a secure communication channel with the security monitor of the receiving host, and execute a predefined transfer protocol with the security monitor of the receiving host over the secure communication channel, the transfer protocol including an initial exchange of validation messages between the security monitors to validate that both security monitors are ready and able to perform the transfer, and a subsequent transfer of the enclave data between the security monitors.
[0011] According to the present invention, it has been recognized that the migration process of an enclave's runtime memory and its sealed data can be protected against cloning by guaranteeing atomicity. Thus, embodiments of the present invention enable live migration of an application running in a TEE from one host to another, while keeping its content confidential and unaltered, and ensuring that the migrated application cannot run on both hosts for a period longer than the network latency on both hosts. For example, the migration can be performed in a public cloud.
[0012] According to an embodiment of the present invention, timeouts defining the maximum allowed duration of a particular step of the transfer protocol may be implemented for both the initial exchange of validation messages and the subsequent transfer of enclave data. More specifically, according to an embodiment of the present invention, to ensure that it is not possible for two machines / computation platforms to run two clones of an enclave simultaneously, the transfer protocol utilizes different timeouts beyond which the migration operation is aborted. In other words, if any of the implemented timeouts, both in relation to the initial exchange of validation messages and the subsequent transfer of enclave data, exceeds the maximum allowed duration of a particular step of the transfer protocol, the transfer protocol is aborted.
[0013] According to one embodiment, the timeout for the transfer of enclave data may be defined to include the network latency between the two security monitors involved, the time required for the other party to prepare its respective response according to the transfer protocol, and a tolerance margin (e.g., a certain percentage of the network latency).
[0014] According to one embodiment, an initial exchange of validation messages between the security monitors may include sending a prepare message by the security monitor of the sending host to the security monitor of the receiving host, and sending a ready message by the security monitor of the receiving host in response to the prepare message to the security monitor of the sending host. The prepare message may inform the other party of the upcoming transfer and may also indicate the size of the enclave to be transferred. The ready message may indicate that the other party is ready to receive the enclave to be transferred.
[0015] According to one embodiment, subsequent transfer of enclave data between security monitors includes decrypting, by the security monitor of the sending host, data S (denoted herein simply as S) and a set of DRAM pages (denoted herein simply as D) stored on persistent storage that belong to the enclave to be transferred, then re-encrypting D and S by using a shared encryption key K, and transmitting the encrypted D and S to the security monitor of the receiving host.
[0016] According to one embodiment, the security monitor may be augmented with direct access to a trusted timer suitably implemented in the hardware of the respective computing platform. Here, it may be described that the security monitor observes the implemented timeouts using the trusted timer. The trusted timer may be implemented in the form of a trusted clock source protected against time changes introduced by a malicious operating system.
[0017] It may be described that in order to detect operations of timers that are affected by removing power from the computing platform (i.e., from each chip / processor of the computing platform), a temporal variable is instantiated within the runtime memory of each of the security monitors such that the variable is overwritten with every power cycle.
[0018] According to one embodiment, it may be described that the number of allowed clones of an enclave application is defined and documented by using the enclave's manifest file where these details are specified. In other words, an enclave application may be extended with a manifest file that provides configuration information including the maximum number of application instances that are allowed to run concurrently on a host. Here, it may be described that the security monitor maintains a per-application counter that tracks the number of instances of each application deployed on the platform. If the number of running instances reaches a threshold defined in the manifest file of the respective application, the platform's security monitor may reject any request from the platform's operating system to deploy a new instance.
[0019] According to one embodiment, the computing platform may be configured to maintain a consistent state regarding the status of the transfer protocol using Crash Fault Tolerant (CFT) storage. The CFT storage may be performed by a set of three or more security monitors, including security monitors of the sending host and the receiving host. Such an implementation may allow up to half of the security monitors in the implemented set to be arbitrarily Byzantine, allowing exchanged messages to be arbitrarily delayed by an adversary.
[0020] According to one embodiment, the transfer protocol may be triggered by a security monitor of the sending host upon request of the sending host's hypervisor.
[0021] In particular, with regard to reliable key management, it may be described that two cryptographic keys are derived from a shared cryptographic key K, a first of the derived keys being used for authenticating communications over the secure communications channel and a second of the derived keys being used for encrypting communications over the secure communications channel.
[0022] There are several ways of designing and further developing the teachings of the invention in an advantageous manner. For this purpose, reference should be made on the one hand to the dependent claims and on the other hand to the following description of preferred embodiments of the invention as examples shown by the figures. In connection with the description of preferred embodiments of the invention with the aid of the figures, preferred embodiments and further developments of the teachings in general are described. [Brief description of the drawings]
[0023] [Figure 1] FIG. 1 is a schematic diagram illustrating the general concept of the Risc-V instruction set architecture. [Diagram 2] FIG. 2 is a schematic diagram illustrating an enclave executing on a host implemented in accordance with one embodiment of the present invention. [Diagram 3] FIG. 2 is a schematic diagram illustrating a protocol for performing live TEE migration according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] A system model envisioned according to an embodiment of the present invention is illustrated diagrammatically in Fig. 1. More specifically, Fig. 1 illustrates an enclave 110 built on top of a Risc-V instruction set system 100.
[0025] Risc-V defines various privilege levels as shown in Figure 1. On the trusted hardware 120, the security monitor (SM) 130 runs in the most privileged mode, which is the machine mode (or simply M mode). Thus, firmware or code running in this mode is contained within the trusted computing base (TCB) of the system 100.
[0026] A hypervisor layer 140 implemented above security monitor 130 is necessary for a cloud environment but may not be present in other scenarios, for example, a group of servers managed by an enterprise that does not implement virtualization.
[0027] Security monitor 130 is the interface between enclave 110 and untrusted platform components. Some tasks, such as virtual memory management and process scheduling, can be delegated to operating system (OS) 150 or hypervisor 140. Security monitor 130 nevertheless oversees critical tasks such as enclave deployment.
[0028] Migration of a TEE application from a sending host to a receiving host requires coordination between security monitors 130 running on each of the hosts. In particular, the two security monitors 130 must agree on a secure channel instantiated with an encryption key, e.g., K, agreed upon by the two monitors 130. The security monitor 130 on the sending host (hereafter referred to as security monitor 130S) encrypts both the DRAM pages and the sealed data of the application to be transferred with key K and sends it to the security monitor 130 on the receiving host (hereafter referred to as security monitor 130R). It should be noted that in order to do so, the security monitor 130S on the sending host must be able to access the hardware-managed key used to encrypt the DRAM pages and the sealed data of the application to be transferred. The security monitor 130R on the receiving host decrypts the DRAM pages and the sealed data of the application by using key K before deploying the application on the receiving host. This is, to a large extent, a migration technique available in AMD Secure Encrypted Virtualization to migrate virtual machines running in enclaves between platforms.
[0029] Embodiments of the present invention enhance the security of TEE applications by ensuring that the number of running instances on a given host does not exceed a developer-selected threshold, and that during migration of an instance from one host to another, the migrated instance can only run on both hosts during a period bounded by the network latency between the two hosts. Thus, embodiments of the present invention enable migration of TEE applications between hosts while ensuring that clone-based attacks do not exploit the migration functionality.
[0030] Embodiments of the present invention extend an application with a manifest file that provides configuration information including a developer-defined maximum number of application instances that can run concurrently on a host. Additionally, embodiments of the present invention augment a security monitor on the host with access to a secure timer and implement a communication protocol between the two security monitors to ensure that a migrated application on a receiving host begins execution if and only if the same application on the sending host has been abandoned.
[0031] 2 illustrates a machine 200 with a general overview of elements and functional components (and some relationships therebetween) that may be implemented and utilized to realize embodiments of the present invention. Unless otherwise indicated, like components and functions are represented by like reference numerals as in FIG. 1. For ease of illustration, host components that are not necessarily required for understanding the present invention (e.g., an operating system or hypervisor, etc.) have been omitted in FIG. 2. In the context of embodiments of the present invention, machine 200 may function as both a sending host and a receiving host.
[0032] In the illustrated embodiment, the machine 200 includes a security monitor 130 that is enhanced with direct access to a trusted timer 210 implemented in the hardware 120. The security monitor 130 can also trigger encryption / decryption operations using hardware-managed keys 220, but the security monitor 130 cannot directly read these keys 220 to prevent them from being exfiltrated.
[0033] In one embodiment, the present invention extends a TEE application with a manifest file provided by the application developer along with the application code. The manifest file may contain various configuration parameters, as well as the maximum number of application instances that can run simultaneously on each host. Thus, security monitor 130 may be configured to maintain a per-application counter that tracks the number of instances deployed on each host 200. Each time a new instance of the application is started, the counter is incremented, and each time an instance is abandoned, the counter is decremented. Each time the OS requests security monitor 130 to deploy a new instance, security monitor 130 denies the request if the number of running instances has reached the threshold defined in the manifest file.
[0034] According to a further embodiment, the security monitor 130 is enhanced with logic to perform live TEE migration. Figure 3 shows the steps of the respective protocol according to one embodiment. The protocol may be triggered by the security monitor 130S (shown as SM1 in Figure 3) on the sending host 200S upon request of the hypervisor of the sending host 200S. The SM1 130S may first attest to the security monitor 130R (shown as SM2) on the receiving host 200R. Attestation provides assurance to SM1 that SM2 is a legitimate security monitor running on a TEE-enabled platform and meets all requirements specified by the developer. As a by-product, the two security monitors 130S, 130R obtain a shared encryption key, e.g., K, that is used to implement a secure communication channel. In Figure 3, attestation and key exchange are shown in step S301. All subsequent communications between the two security monitors 130S, 130R are performed via the communication channel, i.e. all transferred data is encrypted and authenticated with the shared encryption key K. If necessary, multiple encryption keys can be derived from the shared encryption key K, e.g. one encryption key for authentication and one encryption key for encryption, by using the shared encryption key as input to a deterministic function.
[0035] To ensure that it is not possible for two machines to run two clones of an enclave simultaneously, the protocol according to an embodiment of the invention utilizes different timeouts that, if exceeded, abort the migration operation. For this purpose, the SM 130 is provided with access to a trusted timer 210, as shown in FIG. 2. In other words, the SM 130 has access to a clock source contained in the respective chip / processor. It should be noted that, given that the security monitor 130 runs at the highest privilege level, such a source of time cannot be manipulated by a malicious OS 150 or hypervisor 140. As a result, the only way to manipulate the timer output is to remove power to the processor.
[0036] According to an embodiment of the present invention, such manipulation may be detected by instantiating a time variable in the run-time memory of SM 130 that is overwritten on every power cycle. Any change in this variable between time measurements thus indicates manipulation of the power supply and possible problems, such as, for example, a crash or a malicious party attempting to attack the migration process.
[0037] According to an embodiment of the present invention, the protocol shown in Fig. 3 is designed such that either all steps are executed or none occur, thereby guaranteeing atomicity. Both security monitors 130S, 130R are assumed to be "crash only", i.e. configured to follow the protocol specification, but may fail, for example due to a power failure. Furthermore, messages sent from one SM to another SM are supposed to be received within a predefined time interval. Thus, each of the security monitors 130S, 130R may define a timeout when it expects a message from the other party, and if a message is not received by the timeout, the other party is considered to have crashed.
[0038] In the following, every time a party sends a message, it also starts a timer and sets a timeout that defines the maximum delay until a response arrives. According to an embodiment, the timeout may include the network delay between the two parties, the time needed for the other party to prepare a response, and a tolerance margin (e.g. 10% of the network delay).
[0039] According to one embodiment, after attestation, SM1 may identify the data (hereafter simply denoted as S) and the set of DRAM pages (hereafter simply denoted as D) stored in persistent storage that belong to the enclave to be transferred. It also fetches the encryption key that the processor is currently using to encrypt D and S. SM1 then decrypts D and S and re-encrypts them by using K. The encrypted D and S are transferred to SM2, which finally continues the execution of the transmitted enclave.
[0040] According to one embodiment of the present invention, the overall process is carried out as follows.
[0041] 1. Hypervisor 140 on host 200S where SM1 is running sends a request to SM1 to migrate a particular enclave to host 200R where SM2 is running.
[0042] 2. SM1 and SM2 attest to each other, agree on an encryption key K, and measure the network delay between their respective hosts 200S, 200R, as shown in step S301 of FIG.
[0043] 3. SM1 sends a PREPARE message to SM2 as shown in S302. The PREPARE message may also include the size of the enclave to be transferred. SM1 also starts a timer with a timeout T1. If the timer reaches the timeout and the next expected message from SM2 (READY) has not arrived, SM1 sends an ABORT message (not shown), aborts operation, and ignores any subsequent messages that may be received from SM2.
[0044] 4. In response to receiving the message PREPARE from SM1, security monitor SM2 sends a READY message to SM1, as shown in S303. SM2 also starts a timer with a timeout T2. If the timer reaches the timeout and the next expected message (DATA) from SM1 has not arrived, SM2 sends an ABORT message (not shown), aborts operation, and ignores any subsequent messages that may be received from SM1.
[0045] 5. Upon receiving the message READY from SM2, security monitor SM1 triggers the hardware to decrypt the enclave's DRAM page to be transferred as well as its sealed data. The decrypted data is then encrypted with key K. The resulting ciphertext is sent to SM2 in a DATA message, as shown in S304. SM1 also starts a timer with timeout T3. If the timer reaches timeout and the next expected message from SM2 (DONE) has not arrived, SM1 sends an ABORT message (not shown), aborts operation, and ignores any subsequent messages that may be received from SM2.
[0046] 6. In response to receiving the message DATA from SM1, security monitor SM2 triggers a hardware encryption routine to use key K to decrypt the received data and unpack the enclave's DRAM pages and the sealed data. SM2 then sends a message DONE to SM1, as shown at S305, to terminate the migration protocol.
[0047] 7. Upon receiving the message DONE from SM2, security monitor SM1 removes the enclave's DRAM pages and sealed data that were just transferred, and terminates the migration protocol.
[0048] For the protocol described above to function properly, it is important that there is a reliable source of time on SM1 to measure the timeouts. According to an embodiment of the present invention, this can be implemented by directly feeding the output of the chip frequency oscillator to a set of counting registers. This signal is the same as the signal fed to the dividers and multipliers from which the CPU clocks at different frequencies are derived. As will be appreciated by those skilled in the art, this means that the SM clock is independent of the CPU frequency and its frequency cannot be changed. Such a set of registers can only be configured or read by the SM, other accesses, for example by processes not running in machine mode, are blocked, i.e. neither the OS nor the hypervisor can access the set of registers, since they do not have sufficient privileges. According to an embodiment, one of the registers can be configured to keep increasing while the CPU is powered, while the other registers can be written by the SM with a value corresponding to the end of the count that the SM wants to be notified of, i.e. timeouts T1 and T3 (for SM1) and timeout T2 (for SM2) in the case described exemplarily above. For example, the counts of the registers can be stopped and reset by the SM when the respective messages arrive on time and the respective timers are no longer needed.
[0049] According to a further embodiment, if an adversary is able to control the network, the migration protocol may rely on a crash-fault-tolerant (CFT) storage that can maintain a consistent state for the migration protocol status, thereby enabling SM1 and SM2 to achieve atomic migration. More specifically, an embodiment of the present invention provides a CFT layer L executed by a set of other security monitors, the set including 4 or more security monitors including SM1 and SM2. L can tolerate up to 1 / 2 of those monitors being arbitrarily Byzantine and exchanged messages being arbitrarily delayed by the adversary. Here, according to an embodiment, the migration protocol may be deployed as follows (where the terminology used is the same as that used in connection with the protocol of FIG. 3):
[0050] 1. SM1 sends a new, authenticated, encrypted "PREPARE SM2" message to L. This helps to verify that SM2 is running properly and is ready to receive the transfer.
[0051] 2. In response to receiving the "PREPARE SM2" message, SM2 sends an authenticated, new, encrypted "SM2 READY" message back to L, indicating that it is ready to receive the transfer.
[0052] 3. In response to receiving the “SM2 READY” message, SM1 sends D and M encrypted with key K directly to SM2 and sends the message “SENT from SM1” to L.
[0053] 4. Upon receiving the last message, SM2 decrypts D and M, re-encrypts them with the local enclave key, and stores them in persistent storage. SM2 then sends a new, authenticated, encrypted “SM2 DEPLOYED” message to L.
[0054] 5. In response to receiving the “SM2 DEPLOYED” message, SM1 suspends its enclave and sends a new, authenticated, encrypted message, OK, to L.
[0055] The protocol assumes that if the security monitor crashes, it may crash at any time and an adversary may also control the network. A message may be delayed in the network due to congestion, but it is likely to arrive within timeout T. If a message does not arrive within timeout T, all parties may assume that the sending node has crashed. If the protocol does not terminate completely, both parties, SM1 and SM2, abort the migration process and SM1 becomes the default party that continues to run the enclave being migrated. In this case, SM1 sends a new, encrypted, authenticated ABORT message to L.
[0056] In summary, according to an embodiment, the present invention provides a method for preserving confidentiality and integrity of an enclave's contents and its sealed data, avoiding cloning, and enabling live migration of an enclave's contents and its sealed data between different machines, the method comprising the following steps: 1) Attestation and key exchange between the sending SM (130S) and the receiving SM (130R). 2) Sending messages and data following a predefined transfer protocol that guarantees atomicity and uses different timeouts. a. Exchange a few messages to verify that both sender and receiver are ready and able to perform the operation. b. Transfer of the enclave's actual data (runtime and sealed data).
[0057] Depending on the underlying system / platform, the method may be enhanced by the following options: - Modify the enclave architecture in the Risc-V environment to include a manifest file where the maximum number of clones is specified by the developer. - Giving the security monitor access to a trusted timer to set timeouts during the transmission of data according to the protocol of the present invention. - Enhancing the SM with either hardware logic or a software module to enable the enclave to encrypt or decrypt with hardware-managed keys.
[0058] Many modifications and other embodiments of the inventions described herein will come to mind to one skilled in the art to which the inventions pertain having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. It is to be understood, therefore, that the invention is not limited to the specific embodiments disclosed, and that modifications and other embodiments are intended to be included within the scope of the appended claims. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation. [Explanation of symbols]
[0059] 100 Risc-V Instruction Set System 110 Enclave 120 Reliable Hardware 130 Security Monitor (SM) 130R Security monitor on the receiving host 130S Security monitor on sending host 140 Hypervisor 150 Operating Systems (OS) 200 Machines 200R Receiving host 200S Sending host 210 Reliable Timer 220 Hardware Managed Key
Claims
1. A method for enabling migration of an enclave, the contents of the enclave and its sealed data being transferred from a first machine, a sending host (200S), to a second machine, a receiving host (200R), the method comprising: performing attestation between a security monitor (130S) of the sending host (200S) and a security monitor (130R) of the receiving host (200R), including an exchange of a shared encryption key K between the two security monitors (130S, 130R); using said shared encryption key K to implement a secure communication channel between said two security monitors (130S, 130R); Executing a predetermined transfer protocol by the two security monitors (130S, 130R) via the secure communication channel, the transfer protocol comprising: an initial exchange of verification messages between the security monitors (130S, 130R) to verify that both security monitors (130S, 130R) are ready and able to perform the transfer; Subsequent transfer of said enclave data between said security monitors (130S, 130R); and Steps A method comprising:
2. timeouts defining a maximum allowed duration of a particular step of the transfer protocol are implemented for both the initial exchange of validation messages and the subsequent transfer of the enclave data; If any of the implemented timeouts are exceeded, the transfer protocol is aborted. The method of claim 1.
3. 3. The method of claim 2, wherein the timeout for the transfer of the enclave data is defined to include a network delay between the two security monitors (130S, 130R), the time required for other parties to prepare their respective responses according to the transfer protocol, and a tolerance margin.
4. said initial exchange of validation messages between said security monitors (130S, 130R), sending a prepare message by the security monitor (130S) of the sending host (200S) to the security monitor (130R) of the receiving host (200R), the prepare message indicating the size of the enclave to be transferred; sending a ready message by the security monitor (130R) of the receiving host (200R) to the security monitor (130S) of the sending host (200S) in response to the ready message, the ready message indicating that the security monitor (130R) is ready to receive the enclave to be transferred; The method according to any one of claims 1 to 3, comprising:
5. The subsequent transfer of the enclave data between the security monitors (130S, 130R) comprises: Decrypting, by the security monitor (130S) of the sending host (200S), data S stored on persistent storage belonging to the enclave and a set D of DRAM pages to be transferred; re-encrypting D and S using the shared encryption key K; sending the encrypted D and S to the security monitor (130R) of the receiving host (200R); 5. The method according to claim 1 , comprising:
6. The method of any one of claims 2 to 5, further comprising observing, by the security monitor (130S, 130R), the implemented timeout using a trusted clock source protected against time changes introduced by a malicious operating system (150).
7. The method of claim 6, further comprising instantiating a time variable in a runtime memory of each of the security monitors (130S, 130R) that is overwritten every power cycle.
8. 8. The method of claim 1, further comprising extending the enclave application with a manifest file that provides configuration information including a maximum number of application instances allowed to run concurrently on the host.
9. 9. The method of claim 1, further comprising maintaining a consistent state for the status of the transfer protocol using crash fault tolerant (CFT) storage, the CFT storage being performed by a set of three or more security monitors including the security monitors (130S, 130R) of the sending host and the receiving host (200S, 200R).
10. 10. The method according to claim 1, wherein the transfer protocol is triggered by the security monitor (130S) of the sending host (200S) upon request of a hypervisor (140) of the sending host (200S).
11. 11. The method according to claim 1, further comprising the step of deriving from the shared encryption key K a first encryption key used to authenticate communications over the secure communications channel and a second encryption key used to encrypt communications over the secure communications channel.
12. 1. A computing platform, comprising: An operating system (150); A hardware component (120); an enclave (110) that allows an application to run in isolation from other software running on the platform, where access control to the contents of the enclave is secured by the hardware components (120); a security monitor (130S) implemented on the hardware component (120) and configured to perform management and orchestration of the enclave (110); The security monitor (130S) further comprises: performing attestation in a security monitor (130R) of the receiving host (200R) and exchanging a shared encryption key K with the security monitor (130R) of the receiving host (200R); using said shared encryption key K to implement a secure communication channel with said security monitor (130R) of said receiving host (200R); executing a predetermined transfer protocol with the security monitor (130R) of the receiving host (200R) via the secure communication channel; and the transfer protocol is configured to: an initial exchange of verification messages between the security monitors (130S, 130R) to verify that both security monitors (130S, 130R) are ready and able to perform the transfer; and a subsequent transfer of said enclave data between said security monitors (130S, 130R). Platform.
13. 13. The platform of claim 12, wherein the security monitor (130S) is enhanced by direct access to a trusted timer (210) implemented within the hardware component (120).
14. The system of claim 13 , wherein a time variable is instantiated in a runtime memory of the security monitor (130S) that is overwritten every power cycle.
15. The security monitor (130S), maintaining a per-application counter that tracks the number of instances of each of said applications that have been deployed on said platform; rejecting requests from the operating system (150) to deploy new instances when the number of running instances reaches a threshold defined in the manifest file of each of the applications; 15. The platform of claim 12, further configured to:
Citation Information
Patent Citations
Bus switch, computer system, and management method for computer system
JP2010257209A
Data unsealing using a sealed enclave
JP2020505698A
Abstract Enclave Identity
JP2020505701A
Data migration method and apparatus
US20190377598A1
Supporting migration of virtual machines containing enclaves
US20210019166A1
