Computer system and information processing method
The system optimizes processing speed in Trusted Execution Environments by dynamically determining if encrypted data needs decryption within the trust area, preventing paging and ensuring high-speed processing for large memory operations.
Patent Information
- Application Number
- JP2021182743
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-11-09
AI Technical Summary
Conventional methods using Trusted Execution Environments (TEE) for machine learning face inefficiencies due to memory usage exceeding the capacity of the trusted area, leading to paging processes that increase processing time.
A computer system with a processor having a security function and a logically isolated trust area, where encrypted data is processed within or outside the trusted area based on memory requirements, preventing paging by dividing processes into smaller units.
This approach suppresses paging processing, ensuring high-speed confidential information processing while maintaining security, even with large memory requirements, by optimizing memory usage within the trusted area.
Smart Images

Figure 0007544681000008 
Figure 0007544681000003 
Figure 0007544681000010
Abstract
Description
[Technical field]
[0001] The present invention relates to a system for executing processing while confidential information such as personal information is kept secret, and to an information processing method thereof. [Background technology]
[0002] In recent years, there has been progress in schemes for utilizing personal data through collaboration between the public and private sectors. For example, new value is being created by linking diverse information, such as collaboration between public and private services. Statistical analysis such as regression analysis and machine learning such as CNN (Convolutional Neural Network) are considered effective in creating new value by linking diverse information. A platform is also provided that allows various companies to easily run statistical analysis and machine learning using inexpensive public clouds.
[0003] On the other hand, regulations aimed at protecting privacy are becoming stronger. Therefore, there is a demand for technology that allows data holders such as hospitals and banks to use confidential information while keeping it confidential.
[0004] Conventional technologies have made it possible to perform specific processes on encrypted data, thereby enabling the use of confidential information in a concealed state. However, the processes that can be performed with conventional technologies are limited to basic processes such as search and order comparison, and the flexibility of the processes is limited. Therefore, there is a demand for technologies that can handle advanced statistical processes that require a high degree of flexibility in processing, and image processing using machine learning such as CNN (Convolutional Neural Network).
[0005] In recent years, CPUs (Central Processing Units) are equipped with TEE (Trusted Execution Environment) functions. The TEE function is considered to be effective for processing confidential information. The TEE function provides a trusted area where information cannot be read even if the administrator privileges of the OS running on the computer are stolen. By decrypting and processing encrypted data within the trusted area, secure and advanced processing becomes possible.
[0006] A technology that uses the trust region of a TEE function for machine learning is described in Patent Document 1. Patent Document 1 discloses a method for secure transfer learning that uses a trusted execution environment (trust region) of a TEE.
[0007] The technology described in Patent Document 1 relates to a secure portable deep neural network (DNN) for confidential transfer learning, and is disclosed for a method of confidential transfer learning. The method includes generating a machine learning model including a training API (Application Programming Interface) and an inference API. The method further includes encrypting the machine learning model using a predetermined encryption mechanism. The method additionally includes copying the encrypted machine learning model to a TEE. The method also includes executing the machine learning model in the TEE using the inference API. [Prior art documents] [Patent documents]
[0008] [Patent Document 1] US Patent Application Publication No. 2021 / 0125051 Summary of the Invention [Problem to be solved by the invention]
[0009] However, in the method described in Patent Document 1, when the memory usage required for the machine learning model and machine learning application, as well as the input and output data, is larger than the capacity of the trust region, a paging process occurs in which data that does not fit in the trust region is written externally and reloaded when necessary, increasing processing time. For example, when the capacity of the trust region is about 100 MB, the parameter amount of the machine learning model is about 140 MB, and the machine learning application that executes the machine learning model is about 150 MB, the memory usage required for the machine learning application to execute the machine learning model is larger than the capacity of the trust region, and therefore a paging process occurs.
[0010] Therefore, one aspect of the present invention aims to prevent the occurrence of paging processing when the memory usage required for execution exceeds the capacity of the trusted region in secret information processing using the TEE function, and to speed up the processing. [Means for solving the problem]
[0011] In order to solve the above problem, one aspect of the present invention employs the following configuration: A computer system including at least one computer, the at least one computer having a processor, a memory connected to the processor, and a network interface connected to the processor, the processor having a function for setting a trusted area in the memory where security is ensured and logically isolated, the at least one computer including a plurality of block processes, accepting a request to execute a process on encrypted data in which data including confidential information is encrypted, and when executing one of the block processes, determining whether or not the encrypted data needs to be decrypted in the block process, and if the encrypted data does not need to be decrypted in the block process, executing the block process using an area different from the trusted area, and if the encrypted data needs to be decrypted in the block process, executing the block process using the trusted area. Effect of the Invention
[0012] According to one aspect of the present invention, it is possible to suppress occurrence of paging processing and realize high-speed secret information processing using the TEE function. Problems, configurations, and effects other than those described above will become apparent from the following description of the embodiment. [Brief description of the drawings]
[0013] [Figure 1] 1 is a block diagram showing an example of the configuration of a secret information processing system according to a first embodiment. [Diagram 2] 1 is a block diagram showing an example of a hardware configuration of a secret information processing system. [Diagram 3] 1 is a sequence diagram illustrating an example of a flow of providing a secret information processing service in the secret information processing system according to the first embodiment. [Figure 4] 2 is a block diagram illustrating an example of a functional configuration of a secret information processing server according to a first embodiment. FIG. [Diagram 5] 11 is a flowchart illustrating an example of secret information processing executed by the secret information processing server according to the first embodiment. [Figure 6A] FIG. 11 is a sequence diagram showing an example of a flow of providing a secret information processing service in the secret information processing system according to the second embodiment. [Figure 6B] FIG. 11 is a sequence diagram showing an example of a flow of providing a secret information processing service in the secret information processing system according to the second embodiment. [Figure 7] FIG. 11 is a block diagram showing an example of a system configuration of a confidential information processing service according to a third embodiment. [Figure 8A] FIG. 11 is a sequence diagram showing an example of a flow of providing a secret information processing service in the secret information processing system according to the third embodiment. [Figure 8B] FIG. 11 is a sequence diagram showing an example of a flow of providing a secret information processing service in the secret information processing system according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. However, the present invention is not to be interpreted as being limited to the description of the embodiment shown below. It will be easily understood by those skilled in the art that the specific configuration can be changed without departing from the concept or purpose of the present invention.
[0015] In the configurations of the invention described below, the same or similar configurations or functions are given the same reference numerals, and duplicated explanations are omitted.
[0016] In this specification, the terms "first," "second," "third," and the like are used to identify components and do not necessarily limit the number or order. EXAMPLES
[0017] (1-1) Example of the configuration of a confidential information processing system 1 is a block diagram showing a configuration example of a confidential information processing system according to a first embodiment. The confidential information processing system 1 receives data including encrypted confidential information from a service user (data holder) who holds confidential information such as personal information and trade secrets, processes the received data in a state in which the confidential information is concealed from the outside, and provides the result of the processing to the service user. Here, the outside is a concept that includes a cloud administrator and a service administrator.
[0018] The confidential information processing system 1 includes, for example, a user terminal 10, a confidential information processing server 30, and a service manager terminal 20. The user terminal 10, the confidential information processing server 30, and the service manager terminal 20 are connected to each other via a network 40 such as the Internet. Here, the network 40 is a communication network such as the Internet via wired or wireless communication, an intranet such as an in-house network, or a satellite line.
[0019] The user terminal 10 is a terminal used by a service user who uses a service or a data holder who provides data. The service user and the data holder may be the same person. The data holder uses the user terminal 10 to encrypt data and transmit it to the confidential information processing server 30. The service user uses the user terminal 10 to transmit an application to use the service and a request to execute processing. The service administrator terminal 20 is a terminal used by a service administrator who provides a confidential information processing service. The service administrator uses the service administrator terminal 20 to accept an application to use the confidential information processing service from the service user, and also constructs, operates, and manages the environment of the confidential information processing server 30. When the confidential information processing server 30 receives a request to execute processing using the data received from the service user, it executes the processing while the data is kept confidential from the outside, and transmits the result of the processing to the service user.
[0020] The confidential information processing system 1 may include a plurality of user terminals 10, a plurality of service administrator terminals 20, or a plurality of confidential information processing servers 30. When the confidential information processing system 1 includes a plurality of user terminals 10, the user terminal 10 that transmits confidential information and the user terminal 10 that uses the processing result may be separated.
[0021] Fig. 2 is a block diagram showing an example of a hardware configuration of the secret information processing system 1. The hardware configurations of the user terminal 10, the service administrator terminal 20, and the secret information processing server 30 will be described with reference to Fig. 2.
[0022] The user terminal 10 is, for example, a computer such as a personal computer, a smartphone, or a server device. The user terminal 10 includes a CPU (Control Processing Unit) 11, a memory 12, an auxiliary storage device 13, a network interface 14, a display device 15, and an input device 16, which are connected to each other, for example, by an internal communication line.
[0023] The CPU 11 is an example of a computing device, and executes programs stored in the memory 12. The memory 12 includes a ROM (Read Only Memory), which is a non-volatile storage element, and a RAM (Random Access Memory), which is a volatile storage element. The ROM stores unchanging programs such as a BIOS (Basic Input / Output System). The RAM is a high-speed and volatile storage element such as a DRAM (Dynamic Random Access Memory), and temporarily stores programs executed by the CPU 11 and data used when the programs are executed.
[0024] The CPU 11 of this embodiment is a TEE-compatible CPU having a Trusted Execution Environment (TEE) function. The CPU 11 uses the TEE function to generate a trusted area 17 in the memory 12, which is a hardware storage area and is isolated from other areas. The trusted area 17 is assumed to have a small capacity (e.g., 128 MB) compared to the total storage area of the memory 12. If the memory usage required for executing a process is larger than the capacity of the trusted area 17, the processing speed of the process using the area decreases due to the occurrence of paging processing.
[0025] The CPU 11 may not have a TEE function. The trust region 17 may be generated when the process is executed, or may be generated before the process starts. The capacity of the trust region 17 may not be limited.
[0026] The auxiliary storage device 13 is a large-capacity non-volatile storage device such as a magnetic storage device (HDD: Hard Disk Drive) or a flash memory (SSD: Solid State Drive), and stores programs executed by the CPU 11 and data used when the programs are executed. That is, the programs are read from the auxiliary storage device 13, loaded into the memory 12, and executed by the CPU 11.
[0027] The display device 15 is a device such as a display or printer that outputs the results of program execution in a format that can be viewed by the user. The input device 16 is a device such as a keyboard or mouse that accepts input from the user. The network interface 14 controls communication with other devices according to a predetermined protocol. The network interface 14 may also include a serial interface such as a USB.
[0028] The program executed by the CPU 11 may be stored in advance in a non-volatile auxiliary storage device 13, which is a computer-readable non-transient storage medium, or may be provided to the user terminal 10 from a removable medium (CD-ROM, flash memory, etc.) which is a non-transient storage medium, or from a non-transient storage device of another device via a network, and then stored in the auxiliary storage device 13. For this reason, the user terminal 10 may have an interface for reading data from removable media. This also applies to the service administrator terminal 20 and the confidential information processing server 30.
[0029] The service administrator terminal 20 is, for example, a computer such as a personal computer, a smartphone, or a server device. The service administrator terminal 20 includes, for example, a CPU 21, a memory 22, an auxiliary storage device 23, a network interface 24, a display device 25, and an input device 26, which are connected to each other via an internal communication line.
[0030] The hardware description of the CPU 21, memory 22, auxiliary storage device 23, network interface 24, display device 25, and input device 26 is similar to the hardware description of the CPU 11, memory 12, auxiliary storage device 13, network interface 14, display device 15, and input device 16. However, the CPU 21 does not need to have a TEE function.
[0031] The confidential information processing server 30 is, for example, a computer such as a personal computer, a smartphone, a server device, etc. The confidential information processing server 30 includes a CPU 31, a memory 32, an auxiliary storage device 33, a network interface 34, a display device 35, an input device 36, and a GPU (Graphics Processing Unit) 39, which are connected to each other by an internal communication line such as a bus.
[0032] The hardware description of the CPU 31, memory 32, auxiliary storage device 33, network interface 34, display device 35, and input device 36 is the same as the hardware description of the CPU 11, memory 12, auxiliary storage device 13, network interface 14, display device 15, and input device 16, respectively. However, the CPU 31 of the secret information processing server 30 has a TEE function and can generate a trusted region 38 in the memory 32. The GPU 39 executes a program stored in the memory 32 at high speed by using an area (normal area) different from the trusted region 38 of the memory 32. Note that the secret information processing server 30 does not need to have the GPU 39.
[0033] In this embodiment, the TEE function is used as a function for realizing processing in a secure area isolated on the memory, but a different method may be adopted.
[0034] Some or all of the processes executed by the CPU 11, CPU 21, CPU 31, and GPU 39 may be executed by hardware such as an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA).
[0035] The user terminal 10, the service administrator terminal 20, and the secret information processing server 30 may be realized as a computer system configured on multiple logically or physically configured computers. The user terminal 10, the service administrator terminal 20, and the secret information processing server 30 may be realized as separate threads on the same computer, or may be realized as a virtual computer constructed using multiple physical computer resources.
[0036] In this embodiment, the information used by the confidential information processing system 1 may be expressed in any data structure independent of the data structure, and for example, the information may be stored in a data structure appropriately selected from a list, a table, a database, or a queue.
[0037] (1-2) Example of the flow of providing confidential information processing services by the confidential information processing system FIG. 3 is a sequence diagram showing an example of a flow of providing a secret information processing service in the secret information processing system 1 according to the first embodiment.
[0038] First, a description will be given of a confidential information processing service provided by the confidential information processing system 1 of this embodiment. The confidential information processing service is a service that provides a service user with an advanced and secure information processing function using the confidential information processing server 30 through the construction and operation management of the confidential information processing server 30 on the cloud by a service administrator.
[0039] The value provided by the confidential information processing service is that it allows service users to use inexpensive, highly functional computer resources on the cloud while confidential information is kept confidential. By using the confidential information processing service, service users do not need to purchase expensive computers, software, and other resources at their customer sites, build an environment, and manage their operations. This allows them to obtain the results of advanced information processing such as AI learning and AI inference without disclosing confidential information to cloud administrators and service administrators.
[0040] An example of the flow of providing the above-mentioned confidential information processing service will be described below with reference to FIG.
[0041] First, the service user operates the user terminal 10 to transmit an application for use of the confidential information processing service to the service administrator terminal 20 (step S301).
[0042] Next, the service manager operates the service manager terminal 20 to build a service environment on the cloud (step S302).
[0043] Specifically, the service administrator uses the service administrator terminal 20 to construct the secret information processing server 30 and start the secret information processing service on the secret information processing server 30. Here, the cloud administrator is a privileged user in the cloud data center, and monitors the operation log of the service administrator on the cloud. In addition, the service administrator uses the service administrator terminal 20 to analyze the program that realizes the processing, and embeds information in the program indicating whether or not the encrypted data needs to be decrypted. The above-mentioned information may be added to each task included in the processing.
[0044] Next, the service administrator operates the service administrator terminal 20 to transmit a notice of the start of the secret information processing service to the user terminal 10 (step S303).
[0045] Next, the service user operates the user terminal 10 to transmit to the secret information processing server 30 a request for issuing a key for encrypting confidential information to be transmitted to the secret information processing server 30 (step S304).
[0046] When the secret information processing server 30 receives the issuance request, it generates a key pair of public key cryptography in the trusted area 38 (step S305), stores the private key of the key pair in the trusted area 38, and transmits the public key of the key pair to the user terminal 10 (step S306). Here, it is assumed that a private key 331 and a public key 332 are generated.
[0047] Next, the service user operates the user terminal 10 to generate a common key used for encryption / decryption of confidential information, processing contents, or processing results (step S307). Here, it is assumed that the common key 301 is generated. The service user operates the user terminal 10 to encrypt confidential information included in data to be processed by the confidential information processing service using the common key (step S308), and further encrypts the common key using the public key (step S309). The service user also operates the user terminal 10 to transmit an execution request including the encrypted data and the encrypted common key to the confidential information processing server 30 (step S310).
[0048] The secret information processing server 30 executes secret information processing for decrypting confidential information included in the received data within the trust area 38 and processing the information (step S311), and transmits the processing result encrypted using the common key to the user terminal 10 (step S312). In addition, the secret information processing server 30 transmits an execution log of the secret information processing, etc. to the service administrator terminal 20 (step S313).
[0049] The service user operates the user terminal 10 to decrypt the received processing result using the common key (step S314), and obtains the processing result of the secret information processing on the data including the confidential information.
[0050] (1-3) Example of functional configuration of confidential information processing server and data processing example of confidential CNN processing FIG. 4 is a block diagram illustrating an example of a functional configuration of the secret information processing server 30 according to the first embodiment.
[0051] As an example of the secret information processing, a functional configuration of the secret information processing server 30 that executes secret CNN (Convolutional Neural Network) processing will be described with reference to FIG.
[0052] The confidential information processing server 30 includes, for example, a normal area 410 for high-speed processing using a normal CPU and memory and an acceleration chip such as a GPU, and a highly secure and isolated trusted area 38 generated by a TEE function.
[0053] The normal area 410 stores, for example, a network flow control unit 411, a determination processing unit 412, and parameter information 413. The network flow control unit 411 is a part of a machine learning process of a multi-layered network structure such as CNN (hereinafter, CNN will be described as an example) and executes a control process of the data flow of input and output of encrypted data based on the network relationship between each layer. The determination processing unit 412 executes a process of determining whether or not the process needs to be divided based on the memory usage required for executing the process, the size of the input and output data, parameter information, etc., and a process of determining a speed-up method. The parameter information 413 includes the network configuration of the CNN, such as the number of layers of the CNN and the type of calculation process of each layer, and weights, etc. The parameter information 413 is stored in the auxiliary storage device 33 of the secret information processing server 30, and the network flow control unit 411 reads it out to the normal area 410 when necessary.
[0054] In the trust region 38, for example, a decryption processing unit 421, a preprocessing unit 422, a partial processing unit 423, an encryption processing unit 424, a common key 301, and a private key 331 are stored. The partial processing unit 423 executes processing of a layer of CNN. The decryption processing unit 421 uses the private key 331 stored in the trust region 38 to decrypt the common key 301 encrypted by the public key 332, and stores it in the trust region 38. The encryption processing unit 424 uses the common key 301 stored in the trust region 38 to encrypt the processing result output by the partial processing unit 423.
[0055] FIG. 5 is a flowchart illustrating an example of secret information processing executed by the secret information processing server 30 according to the first embodiment.
[0056] Hereinafter, an example of the secret information processing (CNN processing) executed by the secret information processing server 30 will be described with reference to FIG.
[0057] When the secret information processing server 30 receives a request to execute a process including data encrypted using a common key and the common key 301 encrypted using the public key 332, the secret information processing server 30 executes the secret information processing described below.
[0058] When the network flow control unit 411 of the confidential information processing server 30 receives a processing execution request, it initializes the values of the variables i, j, and b_num used for network flow control of CNN used in confidential CNN processing for encrypted data to 1 (step S501). At this time, the network flow control unit 411 reads out CNN parameter information 413 used in confidential CNN processing from the auxiliary storage device 33 and stores it in the normal area 410. The network flow control unit 411 starts processing of the network flow that performs confidential CNN processing based on the parameter information 413.
[0059] Next, the network flow control unit 411 calls the determination processing unit 412. The determination processing unit 412 calculates the memory usage Si required for executing the processing of the i-th layer based on parameters (associated parameters) related to the processing of the i-th layer (block processing) included in the parameter information 413 (step S502).
[0060] Next, the determination processing unit 412 determines whether the memory usage Si is equal to or less than the upper limit Smax of the capacity of the trust region 38 that can be processed without causing paging (step S503).
[0061] If the memory usage Si is equal to or less than the upper limit Smax, the determination processing unit 412 determines a speed-up method suitable for executing the processing of the i-th layer based on the parameters related to the processing of the i-th layer, and generates a decryption processing unit 421, a preprocessing unit 422, a partial processing unit 423 performing the processing of the i-th layer, and an encryption processing unit 424 as an enclave, which is an isolated execution process, in the trust region 38 (step S504). In addition, the determination processing unit 412 inputs the parameters related to the i-th layer and the input data for the i-th layer to the enclave. The determination processing unit 412 waits for a response from the enclave.
[0062] For example, when the input data used in the i-th layer is large, the determination processing unit 412 employs a method of dividing the input data in order to speed up the processing in the i-th layer.
[0063] Next, the decryption processing unit 421 decrypts the encrypted common key using the private key 331, and decrypts the encrypted data using the decrypted common key (step S505).
[0064] Next, the preprocessing unit 422 performs preprocessing such as division and shaping processing for multi-threading data processing, which is effective for high-speed execution of the i-th layer processing, based on the relevant parameters of the i-th layer processing and the decoded data (step S506).
[0065] Next, the partial processing unit 423 executes the processing of the i-th layer using the relevant parameters of the i-th layer and the data on which the preprocessing has been performed (step S507). Specifically, the processing of each layer constituting the CNN (convolution processing, pooling processing, dense processing, etc.) is executed.
[0066] Next, the encryption processing unit 424 encrypts the parameter information or data resulting from the processing in step S507 using the decrypted common key 301, and outputs the encrypted information or data to the determination processing unit 412 (step S508).
[0067] Next, the determination processing unit 412 removes the enclave from the trust region 38 (step S509), and then proceeds to step S520. By removing the enclave, it is possible to secure capacity of the trust region 38 that can be used by other processes.
[0068] In step S503, if the memory usage Si is greater than the upper limit Smax, the determination processing unit 412 calculates the division number and sets the division number to the variable b_num (step S510). Here, the division number is the number of piece processes for which the memory usage is smaller than the capacity of the trust region 38 and paging does not occur.
[0069] For example, the division number is calculated using formula (1). ceiling() represents an operation to round up the decimal point to calculate a natural number.
[0070]
number
[0071] Next, the determination processing unit 412 divides the related parameters and input data of the i-th layer into b_num pieces (step S511). That is, the processing of the i-th layer is divided into b_num piece processing.
[0072] Next, the determination processing unit 412 determines a speed-up method suitable for executing the j-th piece processing based on the related parameters of the i-th layer, and generates an enclave in the trust region 38 (step S512). The determination processing unit 412 also inputs the related parameters of the i-th layer and the input data for the i-th layer to the enclave. The determination processing unit 412 waits for a response from the enclave. The process of step S512 is the same as the process of step S504.
[0073] Next, the decryption processing unit 421 decrypts the encrypted common key 301 using the private key 331, and decrypts the encrypted data using the decrypted common key 301 (step S513). The process of step S513 is similar to the process of step S505.
[0074] Next, the preprocessing unit 422 performs preprocessing based on the relevant parameters of the i-th layer and the decoded data (step S514). The process of step S514 is the same as the process of step S506.
[0075] Next, the partial processing unit 423 executes the piece processing using the parameters related to the j-th piece processing and the data on which the preprocessing has been executed (step S515). In the piece processing, the processing is performed using the divided or shaped parameters and data so as not to exceed Smax, which can be processed without generating paging processing. Therefore, it is possible to suppress an increase in processing time due to the occurrence of paging processing.
[0076] Next, the encryption processing unit 424 encrypts the parameter information or data resulting from the processing in step S515 using the decrypted common key 301, and outputs the encrypted information or data to the determination processing unit 412 (step S516). The processing in step S516 is similar to the processing in step S508.
[0077] Next, the determination processing unit 412 deletes the enclave from the trust region 38 (step S517). The process of step S517 is similar to the process of step S509.
[0078] Next, the determination processing unit 412 adds 1 to the value of the variable j (step S518), and determines whether the value of the variable j is smaller than the value of the variable b_num (step S519).
[0079] If the value of the variable j is smaller than the value of the variable b_num, the determination processing unit 412 returns to step S512 and executes the same process. If the value of the variable j is equal to or greater than the value of the variable b_num, the determination processing unit 412 proceeds to step S520.
[0080] In step S520, the determination processor 412 calls the network flow controller 411. The network flow controller 411 adds 1 to the value of the variable i (step S520). In addition, the network flow controller 411 determines whether or not the i-th layer exists (step S521).
[0081] If the i-th layer exists, the network flow control unit 411 returns to step S502 and calls the determination processing unit 412. If the i-th layer does not exist, the network flow control unit 411 ends the secret information processing. If there are multiple encrypted processing results, the network flow control unit 411 aggregates the multiple processing results to generate one processing result.
[0082] In FIG. 5, all the processes in the layers of the CNN are processes that require decryption, but at least one of the processes in the layers of the CNN may be processes that do not require decryption. In this case, the determination processing unit 412 determines whether or not the block process requires decryption in step S502. If decryption is not required, the determination processing unit 412 generates the preprocessing unit 422 and the partial processing unit 423 as an enclave in the normal area 410, executes the preprocessing and the i process, and then deletes the enclave. When the normal area 410 is used, the piece process is not divided. In this way, by dividing one process into smaller unit processes and controlling the process, security can be ensured and the speed can be increased.
[0083] (1-3) Effects of Example 1 As described above, the secret information processing server 30 can prevent the occurrence of paging processing by executing processing using the trust region 38 in block processing units for processing consisting of a plurality of block processes. In addition, the secret information processing server 30 can prevent the occurrence of paging processing by dividing the block processing into finer piece processing and executing processing using the trust region 38 in piece processing units. That is, according to this embodiment, even if the size, parameter information, and amount of data handled of an application (e.g., a machine learning application of several hundred MB, a multi-layered CNN model of several hundred MB to several GB, etc.) exceed the trust region, it is possible to prevent the occurrence of paging processing. This makes it possible to prevent an increase in processing time while ensuring security. EXAMPLES
[0084] The second embodiment differs from the first embodiment in that the secret information processing is performed using a plurality of secret information processing servers 30. The second embodiment will be described below, focusing on the differences from the first embodiment.
[0085] (2-1) Configuration of confidential information processing system The system configuration of the secret information processing system 1 of the second embodiment is the same as that of the first embodiment. The hardware configuration examples of the user terminal 10, the service administrator terminal 20, and the secret information processing server 30 of the second embodiment are the same as those of the first embodiment. The functional configuration of the secret information processing server 30 of the second embodiment is the same as that of the first embodiment.
[0086] In the second embodiment, an execution request for secret information processing using confidential information held by the user terminal 10 is transmitted to multiple secret information processing servers 30. When the multiple secret information processing servers 30 receive the execution request, they execute secret information processing such as inference / learning processing using the confidential information in parallel and transmit the processing result to the user terminal 10. This can speed up the secret information processing, thereby improving the value of the secret information processing service.
[0087] (2-2) Confidential information processing service provision flow 6A and 6B are sequence diagrams showing an example of a flow of providing a secret information processing service in the secret information processing system 1 of the second embodiment.
[0088] Hereinafter, an example of a flow of providing a secret information processing service according to the second embodiment will be described with reference to Fig. 6. In the description using Fig. 6, the description of the same processes as those in the first embodiment will be omitted, and differences will be mainly described.
[0089] First, the service user operates the user terminal 10 to transmit an application for use of the confidential information processing service to the service administrator terminal 20 (step S301).
[0090] Next, the service manager operates the service manager terminal 20 to build a service environment on the cloud (step S302). Here, three secret information processing servers 30-1, 30-2, and 30-3 are built, and a secret information processing service is started. When there is no need to distinguish between the secret information processing servers 30-1, 30-2, and 30-3, they are referred to as the secret information processing server 30.
[0091] Next, the service administrator operates the service administrator terminal 20 to transmit a notice of the start of the secret information processing service to the user terminal 10 (step S303).
[0092] Next, the service user operates the user terminal 10 to transmit a request for issuing a key for encrypting confidential information to be transmitted to the confidential information processing server 30 to one of the confidential information processing servers 30 (step S304). It is assumed that the transmission destination has been notified by the service administrator. In this example, it is assumed that the transmission destination is the confidential information processing server 30-1.
[0093] The secret information processing server 30 that has received a key issuance request from the user terminal 10 transmits the key issuance request to the other secret information processing servers 30 (step S351). Here, the secret information processing server 30-1 transmits key issuance requests to the two secret information processing servers 30-2 and 30-3.
[0094] The secret information processing server 30 that has received a key issuance request from another secret information processing server 30 generates a key pair of public key cryptography in the trusted area 38 (step S352), stores the private key of the key pair in the trusted area 38, and transmits the public key of the key pair to the secret information processing server 30 (step S353). Here, it is assumed that the secret information processing server 30-2 generates a private key 341 and a public key 342, and the secret information processing server 30-3 generates a private key 351 and a public key 352.
[0095] The secret information processing server 30, which has received a key issuance request from the user terminal 10, generates a key pair of public key cryptography in the trust area 38 (step S305), stores the private key of the key pair in the trust area 38, and transmits the public key of the key pair to the user terminal 10 (step S306). Here, it is assumed that a private key 331 and a public key 332 are generated.
[0096] Next, the service user operates the user terminal 10 to generate a common key used for encrypting / decrypting the confidential information, the processing contents, or the processing results (step S307). Here, it is assumed that the common key 301 is generated. The service user operates the user terminal 10 to encrypt confidential information included in the data to be processed by the confidential information processing service using the common key (step S308), and further encrypts the common key using the public key (step S309). In addition, the service user operates the user terminal 10 to transmit an execution request including the encrypted data and the encrypted common key to the confidential information processing server 30 that transmitted the public key (step S310). Here, the execution request is transmitted to the confidential information processing server 30-1.
[0097] The secret information processing server 30 that has received the execution request from the user terminal 10 cooperates with the other secret information processing servers 30 to execute the secret information processing (step S354).
[0098] When the secret information processing is secret CNN processing, the processing flow is partially different from that described in Fig. 5. Specifically, after the processing of step S511, the following (Processing 1) to (Processing 3) are repeatedly executed.
[0099] (Process 1) The secret information processing server 30-1 generates a common key 343 used for encryption of the j+1th piece processing and a common key 353 used for encryption of the j+2th piece processing. The secret information processing server 30-1 encrypts input data for the j+1th piece processing using the common key 343, and encrypts the common key 343 using the public key 342. The secret information processing server 30-1 transmits the encrypted input data and the encrypted common key 343 to the secret information processing server 30-2. The secret information processing server 30-1 encrypts input data for the j+2th piece processing using the common key 353, and encrypts the common key 353 using the public key 352. The secret information processing server 30-1 transmits the encrypted input data and the encrypted common key 353 to the secret information processing server 30-3.
[0100] (Process 2) The secret information processing server 30-2 decrypts the common key 343 using the private key 341 within the trust area 38, and decrypts the input data using the common key 343. The secret information processing server 30-2 executes the j+1-th piece processing using the input data, etc., encrypts the processing result using the common key 343, and transmits it to the secret information processing server 30-1. The processing flow is similar to the processing flow from step S512 to step S517.
[0101] (Process 3) The secret information processing server 30-3 decrypts the common key 353 using the private key 351 within the trust area 38, and decrypts the input data using the common key 353. The secret information processing server 30-3 executes the j+2-th piece process using the input data, etc., encrypts the processing result using the common key 353, and transmits it to the secret information processing server 30-1. The process flow is the same as the process flow from step S512 to step S517.
[0102] When the secret information processing server 30-1 receives encrypted processing results from the secret information processing servers 30-2, 30-3, it decrypts them using the common keys 343, 353. Furthermore, the secret information processing server 30-1 executes the processes from step S512 to step S517 for the j-th piece processing in parallel with (Process 1). In step S518, the secret information processing server 30-1 adds 3 to the value of the variable j. The secret information processing server 30 aggregates the results of the piece processing or block processing executed in parallel. Return to the explanation of FIG. 6B.
[0103] Next, the encryption processing unit 424 of the secret information processing server 30 that has received the execution request from the user terminal 10 transmits the processing result encrypted using the common key received from the user terminal 10 to the user terminal 10 (step S312). In addition, each secret information processing server 30 transmits an execution log of the secret information processing, etc. to the service administrator terminal 20 (step S313).
[0104] Finally, the service user operates the user terminal 10 to decrypt the processing result using the common key (step S314), and obtains the processing result of the secret information processing on the data including the confidential information.
[0105] (2-3) Effects of Example 2 As described above, in the secret information processing system 1 of the second embodiment, the secret information processing can be speeded up by executing the secret information processing using the multiple secret information processing servers 30. This can shorten the response time of the service. EXAMPLES
[0106] The third embodiment differs from the first and second embodiments in that the secret information processing servers 30 are arranged in a plurality of areas. Hereinafter, the third embodiment will be described, focusing on the differences between the first and second embodiments.
[0107] (3-1) Configuration of confidential information processing system 7 is a block diagram showing an example of a system configuration of a secret information processing service according to a third embodiment. In the third embodiment, the secret information processing server 30 and the user terminal 10 exist in a plurality of areas 700-1, 700-2, and 700-3. In the following description, when there is no need to distinguish between the areas 700-1, 700-2, and 700-3, they are referred to as area 700. Here, the area 700 represents, for example, a country, a region, or an organization such as a company.
[0108] It is assumed that the data holder in each area 700 holds confidential information that can only be handled within the area 700. It is also assumed that at least one area 700 has a service administrator.
[0109] The hardware configurations of the user terminal 10, the service administrator terminal 20, and the secret information processing server 30 in the third embodiment are the same as those in the first embodiment. The functional configuration of the secret information processing server 30 in the third embodiment is the same as that in the first embodiment.
[0110] In the confidential information processing service of Example 3, when a service administrator receives an application to use the service from a user terminal 10 in any area 700, the service administrator constructs a confidential information processing server 30 in each area 700, causes the confidential information processing server 30 in each area 700 to execute confidential information processing using confidential information within the area, aggregates the processing results of each area 700, and provides them to the service user.
[0111] (3-2) Confidential information processing service provision flow 8A and 8B are sequence diagrams showing an example of a flow of providing a secret information processing service in the secret information processing system 1 of the third embodiment.
[0112] Hereinafter, an example of a flow of providing a secret information processing service according to the third embodiment will be described with reference to Fig. 8. In the description using Fig. 8, the description of the same contents as those in the first and second embodiments will be omitted, and differences will be mainly described.
[0113] A service user in each area 700 operates the user terminal 10 to transmit an application for use of the secret information processing service to the service administrator terminal 20 of the service administrator (step S301).
[0114] Next, the service administrator operates the service administrator terminal 20 to create a service environment on the cloud in each area 700 (step S302).
[0115] Next, the service administrator operates the service administrator terminal 20 to transmit a service start notification of the secret information processing service to the user terminals 10 in each area 700 (step S303).
[0116] The processes from step S304 to step S310 are executed between the user terminal 10 and the secret information processing server 30 in each area 700. In the area 700-1, the private key 331, the public key 332, and the common key 301 are generated, in the area 700-2, the private key 651, the public key 652, and the common key 601 are generated, and in the area 700-3, the private key 751, the public key 752, and the common key 701 are generated.
[0117] A service user in any of the areas 700 operates the user terminal 10 to transmit a request for aggregation of the secret information processing of each area 700 to the secret information processing server 30 (step S361).
[0118] The secret information processing server 30 transmits a request for issuing a key for encrypting the aggregation request to the secret information processing servers 30 in areas 700 other than the area 700 in which the user terminal 10 that made the aggregation request exists (step S362).
[0119] The secret information processing server 30 that has received the key issuance request generates a key pair of public key cryptography in the trusted area 38 (step S363), stores the private key of the key pair in the trusted area 38, and transmits the public key of the key pair to the secret information processing server 30 that has transmitted the key issuance request (step S364). Here, it is assumed that the secret information processing server 30 in the area 700-2 generates a private key 661 and a public key 662, and the secret information processing server 30 in the area 700-3 generates a private key 761 and a public key 762.
[0120] The secret information processing server 30 that has received the aggregation request generates a common key to be used for encryption / decryption of the confidential data, the processing request contents, or the processing results (step S365). Here, the common key 343 is generated. The secret information processing server 30 also encrypts the processing contents and input information to be transmitted to each area 700 using the common key (step S366), and encrypts the common key using the public key received from the secret information processing server 30 of each area 700 (step S367). Here, the common key 343 is encrypted using each of the public key 662 and the public key 762.
[0121] The secret information processing server 30 that has received the aggregation request transmits an execution request including the encrypted processing content and the encrypted common key to the secret information processing server 30 in each area 700 (step S368).
[0122] The secret information processing server 30 that has received the execution request decrypts the encrypted processing content and the common key in each trust area 38 using the private key generated in step S363, decrypts the data received from the user terminal 10 using the private key generated in step S305, and executes the secret information processing (step S369). The secret information processing server 30 also encrypts the processing result using the common key and transmits it to the secret information processing server 30 that has transmitted the execution request (step S370).
[0123] The confidential information processing server 30 that has received the aggregation request decrypts the encrypted processing results using the common key generated in step S364, aggregates the multiple processing results by tabulating, analyzing, machine learning, etc. based on the contents of the confidential aggregation processing request, and encrypts the aggregation result using the common key generated in step S307 (step S371). Here, decryption is performed using the common key 343, and encryption is performed using the common key 301. The confidential information processing server 30 transmits the aggregation result to the user terminal 10 that has transmitted the aggregation request (step S372).
[0124] The user terminal 10 that has received the aggregation result decrypts the received aggregation result using the common key, and presents the aggregation result to the service user by displaying it on a screen or the like (step S370). Here, the decryption is performed using the common key 301.
[0125] (3-3) Effects of Example 3 As described above, in the secret information processing system 1 of the third embodiment, the secret information processing server 30 in each area executes secret information processing using confidential information held by the user terminal 10 in the area, and the secret information processing server 30 in one area aggregates the processing results of each area into one area and transmits them to the user terminal 10. This makes it possible to provide the service user with the results of processing using confidential information that cannot be moved outside the area due to legal regulations or corporate rules of each area.
[0126] Furthermore, in the confidential information processing system 1 described in Examples 1 to 3, the confidential information processing server 30 decrypts and processes the confidential information and the contents of the processing request that are encrypted only in the trusted area 38, so that the confidential information and the contents of the processing request can be kept confidential from the service administrator, the cloud administrator, and other data holders.
[0127] In this way, the confidential information processing system 1 described in Examples 1 to 3 can provide a confidential information processing service to a service user that quickly performs confidential information processing combining data held by multiple service users while keeping confidential information secret from a service administrator and a cloud administrator.
[0128] The present invention is not limited to the above-described embodiment, and includes various modifications and equivalent configurations within the spirit of the appended claims. For example, the above-described embodiment has been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to those including all of the described configurations. In addition, a part of the configuration of a certain embodiment may be added, deleted, or replaced with other configurations.
[0129] In addition, each of the above-mentioned configurations, functions, processing units, processing means, etc. may be realized in hardware, for example by designing some or all of them as an integrated circuit, or may be realized in software by a processor interpreting and executing a program that realizes each function.
[0130] In addition, each of the above configurations, functions, processing units, processing means, etc. may be realized in part or in whole by hardware, for example, by designing them as integrated circuits. The present invention can also be realized by software program code that realizes the functions of the embodiments. In this case, a storage medium on which the program code is recorded is provided to a computer, and a processor included in the computer reads the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-mentioned embodiments, and the program code itself and the storage medium storing it constitute the present invention. Examples of storage media for supplying such program code include flexible disks, CD-ROMs, DVD-ROMs, hard disks, SSDs (Solid State Drives), optical disks, magneto-optical disks, CD-Rs, magnetic tapes, non-volatile memory cards, ROMs, etc.
[0131] Furthermore, the program code for realizing the functions described in this embodiment can be implemented in a wide range of program or script languages, such as assembler, C / C++, perl, Shell, PHP, Python, Java (registered trademark), etc.
[0132] Furthermore, the program code of the software that realizes the functions of the embodiments may be distributed over a network and stored in a storage means such as a computer's hard disk or memory, or in a storage medium such as a CD-RW or CD-R, and the processor of the computer may read out and execute the program code stored in the storage means or storage medium.
[0133] In the above-mentioned embodiment, the control lines and information lines are shown as those considered necessary for the explanation, and not all the control lines and information lines are shown in the product. All the components may be connected to each other.
[0134] In addition, the present invention can achieve the same effect when providing confidential information, such as trade secrets and other highly confidential information whose disclosure to outside the company is restricted by internal company rules, in addition to personal information, to external organizations, etc., by concealing the information.
[0135] Furthermore, the present invention can improve the processing efficiency of advanced deep learning, etc., while keeping personal information and trade confidential information confidential in multiple organizations that handle personal information such as customer information and medical information, and confidential information such as trade secrets, and can therefore be widely applied to information processing systems for public and private services that link a variety of confidential information. [Explanation of symbols]
[0136] 1. Secret information processing system 10 User terminal 20 Service administrator terminal 30 Confidential information processing server 11, 21, 31 CPU 12, 22, 32 memory 13, 23, 33 Auxiliary storage 14, 24, 34 network interfaces 15, 25, 35 display device 16, 26, 36 Input Devices 17, 38 Confidence Region 39 GPU 40 Network 410 Normal area 411 Network flow control section 412 Judgment processing unit 413 Parameter Information 421 Decoding processing unit 422 Pretreatment section 423 Partial Processing Unit 424 Encryption processing unit 700 areas
Claims
1. A computer system comprising at least one computer, The at least one computer includes a processor, a memory connected to the processor, and a network interface connected to the processor; The processor has a function for setting a secure and logically isolated trust domain in the memory; The at least one computer receiving a request to execute a process on encrypted data, the encrypted data including a plurality of block processes and including confidential information; When executing one of the block processes, it is determined whether or not the encrypted data needs to be decrypted in the block process; If the block processing does not require decryption of the encrypted data, the block processing is performed using a region different from the trust region; When the block processing requires decryption of the encrypted data, the block processing is executed using the trust region.
2. 2. The computer system of claim 1, The at least one computer If the encrypted data needs to be decrypted, a memory usage required for executing one of the block processes is compared with a capacity of the trust region, and based on a result of the comparison, it is determined whether a paging process is to be generated; If a paging process occurs, the block process is divided into a plurality of piece processes; A computer system comprising: a computer that sequentially executes each of the plurality of piece processes using the trust region.
3. 3. The computer system of claim 2, A computer system characterized in that at least one of the computers deletes data stored in the trusted area when either one of the block processing and one of the piece processing in which no paging processing occurs is completed.
4. 3. The computer system of claim 2, The at least one computer Encrypting the result of said processing; A computer system which outputs an encrypted result of said processing.
5. 3. The computer system of claim 2, A plurality of the computers, A computer system, characterized in that one of said computers assigns at least one of said block processes to another of said computers for execution.
6. 6. The computer system of claim 5, each of the plurality of computers is distributed and disposed in a plurality of areas; A computer system, characterized in that the computer to which the block processing is assigned executes the block processing using the encrypted data that can be obtained in the area in which the computer exists.
7. 7. The computer system of claim 6, The computer system is characterized in that the computer aggregates results of the plurality of block processes and outputs the aggregated results as a result of the processes.
8. 2. The computer system of claim 1, Equipped with a management terminal, The management terminal includes: Analyzing a program that realizes the process; a computer system including: embedding information for identifying the block processing that requires decryption of the encrypted data in the program based on a result of the analysis; and providing the information to a user.
9. An information processing method executed by a computer system, comprising: The computer system includes at least one computer, The at least one computer includes a processor, a memory connected to the processor, and a network interface connected to the processor; The processor has a function for setting a secure and logically isolated trust domain in the memory; The information processing method includes: a first step of receiving, by the at least one computer, a request to execute a process on encrypted data, the process including a plurality of block processes and in which data including confidential information is encrypted; a second step of determining whether or not decryption of the encrypted data is required in one of the block processes when the at least one computer executes the block processes; a third step of performing the block operation using a region different from the trust region by the at least one computer if the block operation does not require decryption of the encrypted data; and a fourth step of, if the block processing requires decryption of the encrypted data, the at least one computer executes the block processing using the trust region.
10. 10. The information processing method according to claim 9, The fourth step includes: a fifth step in which the at least one computer compares a memory usage required for executing one of the block processes with a capacity of the trust region, and determines whether or not a paging process is to occur based on a result of the comparison; a sixth step of the at least one computer dividing the block processing into a plurality of piece processing when a paging processing occurs; and a seventh step of the at least one computer sequentially executing each of the plurality of piece processes using the trust region.
11. 11. The information processing method according to claim 10, the fourth step includes a step of deleting data stored in the trust area when one of the block processes is completed without a paging process occurring, by the at least one computer; The information processing method, wherein the seventh step includes a step in which the at least one computer deletes data stored in the trust area when processing of one of the pieces is completed.
12. 11. The information processing method according to claim 10, the computer system includes a plurality of the computers, The information processing method, comprising the step of one of the computers assigning at least one of the block processes to another of the computers for execution.
13. 13. The information processing method according to claim 12, each of the plurality of computers is distributed and disposed in a plurality of areas; The information processing method is characterized in that it includes a step in which the computer to which the block processing is assigned executes the block processing using the encrypted data that can be obtained in the area in which the computer is located.
14. 14. An information processing method according to claim 13, The information processing method, further comprising a step of: aggregating results of the plurality of block processes and outputting the results as a result of the process.
15. 10. The information processing method according to claim 9, the computer system includes a management terminal; The information processing method includes: The management terminal analyzes a program that realizes the process; and a step in which the management terminal embeds information for identifying the block processing that requires decryption of the encrypted data based on the results of the analysis into the program and provides the information to a user.
Citation Information
Patent Citations
Confidential information processing system and confidential information processing method
JP2021039143A
Resource management of execution environments
US20140075502A1
Private transfer learning
US20210125051A1
Cited By
Computer systems and information processing methods
JP2026177417A
