Interaction protocol evaluation method and device, equipment and medium
By constructing a virtual privacy computing domain and a real privacy computing domain, and using the method of hash value comparison, the security of the privacy computing interaction protocol is automatically evaluated, which solves the problems of low efficiency and incomplete coverage of security evaluation in the existing technology, and achieves efficient, Comprehensive security review.
Patent Information
- Application Number
- CN202310283699.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-24
AI Technical Summary
The security evaluation efficiency of existing privacy computing interaction protocols is low, and it is impossible to achieve full coverage of the security evaluation of interaction protocols.
By obtaining the interaction process and evaluation data of the target interaction protocol to be evaluated between privacy computing nodes, a virtual privacy computing domain and a real privacy computing domain are constructed, and the hash value comparison of the simulation operation and real operation results is used to automatically evaluate the security of the interaction protocol. sex.
It improves the efficiency of security evaluation of privacy computing interaction protocols, achieves full coverage of security evaluation of any interaction protocol, and ensures the accuracy and comprehensiveness of the evaluation.
Smart Images

Figure CN118690397A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of privacy computing, and in particular to an evaluation method, device, equipment and medium for an interactive protocol. Background Art
[0002] Privacy computing technology is the core technology for building a public data circulation and trading platform. It can realize safe and efficient data cooperation among multiple data partners in a distributed environment, and achieve a new data circulation paradigm of "available but invisible". Privacy computing technology includes secure multi-party computing, federated learning, trusted execution environment and other technical routes. The application of this technology can meet various needs such as anonymous query, joint statistics, joint modeling, and joint reasoning.
[0003] At present, privacy computing technology is still in rapid development, but generally speaking it is still in the early stage of pilot technology verification. To achieve truly large-scale applications, it is necessary to solve problems such as property rights, pricing, mutual trust, security, entry and supervision. One very important issue is how to determine whether the privacy computing interaction protocol is safe. Only by solving the security problem can the concerns of privacy computing participants about privacy and security be dispelled, and more data providers can be attracted to participate and further build the entire industry ecosystem of privacy computing.
[0004] Currently, the security assessment of privacy computing interaction protocols is mainly carried out through manual evaluation of specific interaction protocols by third-party evaluation agencies. The security assessment efficiency is low and it is impossible to achieve full coverage of the security assessment of the interaction protocol. Summary of the invention
[0005] The purpose of the present invention is to provide an evaluation method, device, equipment and medium for an interactive protocol, so as to solve the problem that the security evaluation efficiency of the existing privacy computing interactive protocol is low and the security evaluation of the interactive protocol cannot be fully covered.
[0006] In order to achieve the above object, in a first aspect, the present invention provides an evaluation method for an interactive protocol, comprising:
[0007] Obtain the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data;
[0008] According to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, obtain the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol;
[0009] If the simulation operation result is consistent with the actual operation result, it is determined that the target interaction protocol is safe; otherwise, the target interaction protocol is unsafe.
[0010] The step of obtaining the interaction process of the target interaction protocol to be tested between privacy computing nodes and the corresponding evaluation data includes:
[0011] Receiving an evaluation request sent by a real privacy computing node, wherein the evaluation request is used to request an evaluation target interaction protocol;
[0012] authenticating the target interaction protocol according to the evaluation request;
[0013] When the target interaction protocol passes the authentication, the interaction process of the target interaction protocol between the privacy computing nodes and the corresponding evaluation data are obtained.
[0014] Wherein, the method further comprises:
[0015] According to the evaluation request, a virtual privacy computing domain is constructed, wherein the virtual privacy computing nodes in the virtual privacy computing domain correspond one-to-one to the real privacy computing nodes related to the evaluation request.
[0016] Wherein, obtaining the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol according to the interaction process of the target interaction protocol between the privacy computing nodes and the evaluation data includes:
[0017] Randomly segmenting the evaluation data to obtain segmented data;
[0018] After sending the segmented data to each virtual privacy computing node in the virtual privacy computing domain, the virtual privacy computing nodes in the virtual privacy computing domain are controlled to start the interaction process of the target interaction protocol between the privacy computing nodes to obtain the simulation operation result;
[0019] According to the segmented data and the interaction protocol parameters used by the virtual privacy computing nodes in the virtual privacy computing domain to run the interaction process, the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol are obtained.
[0020] The step of obtaining the real operation result of the real privacy computing node in the real privacy computing domain based on the target interaction protocol according to the segmented data and the interaction protocol parameters used by the virtual privacy computing node in the virtual privacy computing domain to run the interaction process includes:
[0021] Sending the segmented data and the interaction protocol parameters to the corresponding real privacy computing nodes in the real privacy computing domain, so that the real privacy computing nodes synchronously run the interaction process of the target interaction protocol;
[0022] Obtain the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol.
[0023] The simulation operation result includes a hash value of each virtual privacy computing node, the hash value of the virtual privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the virtual privacy computing node is constructed based on the corresponding sent and received messages in the interaction process;
[0024] The actual operation result includes the hash value of each real privacy computing node, the hash value of the real privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the real privacy computing node is constructed based on the corresponding sent and received messages during the interaction process.
[0025] Wherein, if the simulation operation result is consistent with the actual operation result, determining that the target interaction protocol is safe includes:
[0026] If the hash value of each virtual privacy computing node is equal to the hash value of the corresponding real privacy computing node, the target interaction protocol is determined to be secure.
[0027] In a second aspect, an embodiment of the present invention further provides an evaluation device for an interactive protocol, comprising:
[0028] An acquisition module is used to obtain the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data;
[0029] A first processing module is used to obtain, according to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol;
[0030] The evaluation module is used to determine that the target interaction protocol is safe when the simulation operation result is consistent with the actual operation result; otherwise, the target interaction protocol is unsafe.
[0031] In a third aspect, an embodiment of the present invention further provides an evaluation device for an interactive protocol, including a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, and the processor is used to perform the following operations:
[0032] Obtain the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data;
[0033] According to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, obtain the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol;
[0034] If the simulation operation result is consistent with the actual operation result, it is determined that the target interaction protocol is safe; otherwise, the target interaction protocol is unsafe.
[0035] In a fourth aspect, an embodiment of the present invention further provides an evaluation device for an interactive protocol, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the evaluation method for the interactive protocol as described in the first aspect is implemented.
[0036] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps in the interactive protocol evaluation method as described in the first aspect.
[0037] The above technical solution of the present invention has at least the following beneficial effects:
[0038] In an embodiment of the present invention, the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data are obtained; according to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol are obtained; if the simulated operation results are consistent with the real operation results, it is determined that the target interaction protocol is safe; otherwise, the target interaction protocol is not safe. In this way, through the above-mentioned automated evaluation processing, the efficiency of the security evaluation of the privacy computing interaction protocol can be improved, and any interaction protocol can also be evaluated, so as to achieve full coverage of the security evaluation of the interaction protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram showing a flow chart of a method for evaluating an interactive protocol provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram showing a flow chart of an evaluation device for an interactive protocol provided by an embodiment of the present invention;
[0041] Figure 3A schematic diagram showing an automated evaluation framework for a privacy computing security protocol according to an embodiment of the present invention;
[0042] Figure 4 A schematic diagram showing the hardware structure of an interactive protocol evaluation device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0044] At present, the security assessment of privacy computing interaction protocols mainly checks whether they have passed the security assessment certification of third-party assessment organizations such as the China Academy of Information and Communications Technology and the China Banking Inspection Center. The common practice of security assessment by third-party assessment organizations is manual assessment, which mainly includes: expert review of privacy computing interaction protocols to ensure the theoretical security of the interaction protocols; and the use of network packet capture, code reading, setting breakpoints and output logs to ensure the consistency and security of code implementation and interaction protocols.
[0045] However, there are major problems with this approach. First, there are many privacy computing interaction protocols. Relying on expert review, network packet capture, log reading, and code walkthrough can only perform random tests on specific interaction protocols, and cannot achieve full coverage of the security assessment of the interaction protocols; second, even if a specific protocol is evaluated, the current method requires network packet capture to compare the contents of the higher-level network packets, and read the logs to compare with actual expectations. The operations required are very complicated, which often leads to the security assessment becoming a formality and failing to achieve the purpose of the security assessment. At the same time, this method requires a security backdoor for network packet capture and decryption, which may introduce new security issues in order to solve security problems; finally, relying on the current evaluation method cannot avoid fraud by evaluation manufacturers. For example, during the evaluation, the manufacturer can provide a protocol that is determined to have no security issues for evaluation, but in actual application, another interactive protocol that has not been security verified is used.
[0046] In order to solve the above problems, an embodiment of the present invention provides an evaluation method, device, equipment and medium for an interactive protocol, wherein the method and the device are based on the same application concept. Since the principles of solving the problems by the method and the device are similar, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0047] like Figure 1 FIG. 1 is a flow chart of a method for evaluating an interactive protocol provided by an embodiment of the present invention. The method may include:
[0048] Step 101, obtaining the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data;
[0049] It should be noted that the target interaction protocol is an interaction protocol that has passed security authentication. The evaluation data corresponding to the target interaction protocol is stored in the test database, and the test database stores actual evaluation data for all security evaluation protocols.
[0050] Here, the target interaction protocol is specifically an interaction protocol for privacy computing. There is a mapping relationship between the interaction protocol and the evaluation data, through which the evaluation data corresponding to the target interaction protocol can be obtained.
[0051] Step 102, according to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, obtain the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol;
[0052] Here, the virtual privacy computing nodes in the virtual privacy computing domain correspond one-to-one to the real privacy computing nodes in the real privacy computing domain, that is, each virtual privacy computing node has a corresponding real privacy computing node.
[0053] Step 103: If the simulation operation result is consistent with the actual operation result, it is determined that the target interaction protocol is safe; otherwise, the target interaction protocol is unsafe.
[0054] The method of the present invention can support a variety of privacy computing scenarios by simulating a virtual privacy computing domain, not only supporting two parties, but also three parties and multiple parties; and the security-certified protocol algorithm and the corresponding evaluation sample data can be expanded according to the situation to adapt to various possible changes in security evaluation in the future.
[0055] In an optional embodiment, the above step 101 specifically includes:
[0056] Step 1011, receiving an evaluation request sent by a real privacy computing node, wherein the evaluation request is used to request an evaluation target interaction protocol;
[0057] Here, evaluation requests include but are not limited to:
[0058] The name of the target interaction protocol;
[0059] Information of participating nodes;
[0060] Information about expected evaluation data;
[0061] Protocol parameters of the target interaction protocol.
[0062] It should be noted that participating nodes refer to real privacy computing nodes that participate in privacy computing, and the participating nodes here include real privacy computing nodes that send evaluation requests.
[0063] Step 1012, authenticating the target interaction protocol according to the evaluation request;
[0064] Step 1013, when the target interaction protocol passes the authentication, obtain the interaction process of the target interaction protocol between the privacy computing nodes and the corresponding evaluation data.
[0065] Here, if the target interactive protocol fails to pass the authentication, it is determined that the authentication fails. Since there is a mapping relationship between the interactive protocol and the evaluation data, the evaluation data corresponding to the target interactive protocol can be obtained through the mapping relationship.
[0066] Based on this, the method of the embodiment of the present invention further includes:
[0067] According to the evaluation request, a virtual privacy computing domain is constructed, wherein the virtual privacy computing nodes in the virtual privacy computing domain correspond one-to-one to the real privacy computing nodes related to the evaluation request.
[0068] It should be noted that the real privacy computing nodes related to the evaluation request specifically refer to the participating nodes in the evaluation request, that is, the real privacy computing nodes participating in the privacy computing involved in the evaluation request, including the real privacy computing nodes that send the evaluation request.
[0069] The purpose of constructing a virtual privacy computing domain is to locally simulate the interaction process of real privacy computing nodes based on the target interaction protocol and obtain the simulated operation results for comparison with the actual operation results obtained by the real privacy computing nodes through the interaction process based on the target interaction protocol to determine whether the target interaction protocol is safe.
[0070] In an optional embodiment, the above step 102 may specifically include:
[0071] Step 1021, randomly segmenting the evaluation data to obtain segmented data;
[0072] Specifically, the evaluation data is randomly split horizontally or vertically according to the privacy computing scenario to obtain the split data. Here, the split data is mapped to each privacy computing node.
[0073] Step 1022, after sending the segmented data to each virtual privacy computing node in the virtual privacy computing domain, control the virtual privacy computing nodes in the virtual privacy computing domain to start the interaction process of the target interaction protocol between the privacy computing nodes to obtain the simulation operation result;
[0074] Optionally, the simulation running result includes the hash value of each virtual privacy computing node, the hash value of the virtual privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the virtual privacy computing node is constructed based on the corresponding sent and received messages during the interaction process.
[0075] That is, after the virtual privacy computing node starts the interaction process of the target interaction protocol between privacy computing nodes, each virtual privacy computing node will build a Merkle hash tree based on its sent and received messages, and after the interaction process ends, it will obtain the hash value of the root node of the Merkle hash tree.
[0076] Step 1023, according to the segmented data and the interaction protocol parameters used by the virtual privacy computing node in the virtual privacy computing domain to run the interaction process, obtain the real operation result of the real privacy computing node in the real privacy computing domain based on the target interaction protocol.
[0077] This step 1023 may specifically include:
[0078] 1. Send the segmented data and the interaction protocol parameters to the corresponding real privacy computing node in the real privacy computing domain, so that the real privacy computing node synchronously runs the interaction process of the target interaction protocol;
[0079] Specifically, the virtual privacy computing node will send the segmented data and interaction protocol parameters (i.e., the interaction protocol parameters for each round, such as the random number in the target interaction protocol, etc.) to the corresponding real privacy computing node through the node agent, so that the real privacy computing node can synchronously run the interaction process of the target interaction protocol.
[0080] 2. Obtain the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol.
[0081] Specifically, the actual operation result of the real privacy computing node based on the target interaction protocol is obtained through the node agent corresponding to the real privacy computing node.
[0082] It should be noted that the node agent will record the network interaction information of the real privacy computing node (that is, only the information sent and received by the real privacy computing node during the interaction process of the target interaction protocol between privacy computing nodes), and obtain the real operation results of the real privacy computing node based on the target interaction protocol.
[0083] Optionally, the real running result includes the hash value of each real privacy computing node, the hash value of the real privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the real privacy computing node is constructed based on the corresponding sent and received messages during the interaction process.
[0084] That is, during the interaction process between privacy computing nodes when the real privacy computing nodes synchronously run the target interaction protocol, each real privacy computing node will build a Merkle hash tree based on the messages it sends and receives, and after the interaction process is over, it will obtain the hash value of the root node of the Merkle hash tree.
[0085] Based on this, in an optional embodiment, in the above step 103, if the simulation operation result is consistent with the actual operation result, determining that the target interaction protocol is safe includes:
[0086] If the hash value of each virtual privacy computing node is equal to the hash value of the corresponding real privacy computing node, the target interaction protocol is determined to be secure.
[0087] It should be noted that if the hash value of each virtual privacy computing node is equal to the hash value of the corresponding real privacy computing node, it proves that the interaction protocol between nodes in the real privacy computing domain and the interaction protocol between nodes in the virtual privacy computing domain are secure and consistent, thereby proving that the target interaction protocol is secure.
[0088] The evaluation method of the interactive protocol of the embodiment of the present invention obtains the interaction process of the target interactive protocol to be evaluated between privacy computing nodes and the corresponding evaluation data; according to the interaction process of the target interactive protocol between privacy computing nodes and the evaluation data, obtains the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interactive protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interactive protocol; if the simulated operation result is consistent with the real operation result, it is determined that the target interactive protocol is safe; otherwise, the target interactive protocol is not safe. In this way, through the above-mentioned automated evaluation processing, the efficiency of the security evaluation of the privacy computing interactive protocol can be improved, and any interactive protocol can also be evaluated, so as to achieve full coverage of the security evaluation of the interactive protocol.
[0089] like Figure 2 As shown, an embodiment of the present invention further provides an evaluation device for an interactive protocol, the device comprising:
[0090] An acquisition module 201 is used to acquire the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data;
[0091] The first processing module 202 is used to obtain the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol according to the interaction process of the target interaction protocol between the privacy computing nodes and the evaluation data;
[0092] The evaluation module 203 is used to determine that the target interaction protocol is safe when the simulation operation result is consistent with the actual operation result; otherwise, the target interaction protocol is unsafe.
[0093] Optionally, the acquisition module 201 includes:
[0094] A receiving unit, configured to receive an evaluation request sent by a real privacy computing node, wherein the evaluation request is used to request an evaluation target interaction protocol;
[0095] an authentication unit, configured to authenticate the target interaction protocol according to the evaluation request;
[0096] The acquisition unit is used to obtain the interaction process of the target interaction protocol between privacy computing nodes and the corresponding evaluation data when the target interaction protocol passes the authentication.
[0097] Optionally, the device of the embodiment of the present invention may further include:
[0098] The second processing module is used to construct a virtual privacy computing domain according to the evaluation request, wherein the virtual privacy computing nodes in the virtual privacy computing domain correspond one-to-one to the real privacy computing nodes related to the evaluation request.
[0099] Optionally, the first processing module 202 includes:
[0100] A first processing unit, used for randomly segmenting the evaluation data to obtain segmented data;
[0101] A second processing unit is used to send the segmented data to each virtual privacy computing node in the virtual privacy computing domain, control the virtual privacy computing nodes in the virtual privacy computing domain to start the interaction process of the target interaction protocol between the privacy computing nodes, and obtain the simulation operation result;
[0102] The third processing unit is used to obtain the real operation results of the real privacy computing node in the real privacy computing domain based on the target interaction protocol according to the segmented data and the interaction protocol parameters used by the virtual privacy computing node in the virtual privacy computing domain to run the interaction process.
[0103] Optionally, the third processing unit is specifically configured to:
[0104] Sending the segmented data and the interaction protocol parameters to the corresponding real privacy computing nodes in the real privacy computing domain, so that the real privacy computing nodes synchronously run the interaction process of the target interaction protocol;
[0105] Obtain the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol.
[0106] Optionally, the simulation running result includes a hash value of each virtual privacy computing node, the hash value of the virtual privacy computing node is the hash value of a root node of a Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the virtual privacy computing node is constructed based on the corresponding sent and received messages in the interaction process;
[0107] The actual operation result includes the hash value of each real privacy computing node, the hash value of the real privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the real privacy computing node is constructed based on the corresponding sent and received messages during the interaction process.
[0108] Optionally, the evaluation module 203 includes:
[0109] The evaluation unit is used to determine that the target interaction protocol is secure when the hash value of each virtual privacy computing node is equal to the hash value of the corresponding real privacy computing node; otherwise, the target interaction protocol is insecure.
[0110] The evaluation device for the interactive protocol of the embodiment of the present invention obtains the interaction process of the target interactive protocol to be evaluated between privacy computing nodes and the corresponding evaluation data; according to the interaction process of the target interactive protocol between privacy computing nodes and the evaluation data, obtains the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interactive protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interactive protocol; if the simulated operation result is consistent with the real operation result, it is determined that the target interactive protocol is safe; otherwise, the target interactive protocol is not safe. In this way, through the above-mentioned automated evaluation processing, the efficiency of the security evaluation of the privacy computing interactive protocol can be improved, and any interactive protocol can also be evaluated, so as to achieve full coverage of the security evaluation of the interactive protocol.
[0111] Reference Figure 3 The embodiment of the present invention also provides an automated evaluation framework for privacy computing security protocols, and the evaluation method of the interactive protocol of the embodiment of the present invention can be applied to the automated evaluation framework.
[0112] Among them, the automated evaluation framework consists of a federated learning automated evaluation server and a computing domain consisting of all federated learning nodes participating in the evaluation.
[0113] Specifically, the core modules of the automated evaluation server include: evaluation session manager, authentication protocol manager and test database. Among them, the evaluation session manager is responsible for processing the interactive protocol security evaluation requests put forward by the real federated learning node (that is, the real privacy computing node); the authentication protocol manager is responsible for managing the interactive protocol algorithm set that has been authenticated, as well as the mapping relationship between the interactive protocol algorithm and the corresponding test data, and performing security authentication on external protocol requests; the test database stores the actual evaluation data for all security evaluation protocols.
[0114] The general process of security assessment based on this automated assessment framework can be:
[0115] First, the evaluation session manager receives the evaluation request and interacts with the authentication protocol manager to obtain the specific interaction process of the authenticated protocol, and obtains the evaluation data corresponding to the protocol from the test database; the evaluation data is randomly split horizontally or vertically according to the type of federated learning (horizontal or vertical) and the number of participants.
[0116] Then, the evaluation session manager constructs a virtual privacy computing domain locally according to the interaction protocol and the evaluation data. Each virtual privacy computing node in the virtual privacy computing domain corresponds to the real node of the federated learning that issued the real evaluation request (i.e., the real privacy computing node). The federated learning computing process of the virtual privacy computing domain and the real privacy computing domain is started respectively, and a Merkle hash tree is constructed at each node according to the sent and received messages.
[0117] Finally, after the protocol process ends, the hash values of the root nodes of the Merkle hash tree of each virtual privacy computing node and the corresponding real privacy computing node are compared. If they are all the same, it can be verified that the actual running results of the federated learning protocol and the authenticated interaction protocol in the authentication protocol manager are completely consistent, so the federated learning protocol is secure.
[0118] Refer to the following Figure 3 Describe the detailed process of security assessment based on this automated assessment framework.
[0119] Step 1: Privacy computing node A sends an evaluation request to the evaluation session manager;
[0120] The evaluation request includes the name of the interactive protocol, information of the participants, information of the expected evaluation data, and other protocol parameters.
[0121] Step 2: After receiving the evaluation request, the evaluation session manager sends the name of the interaction protocol to the authentication protocol manager; the authentication protocol manager authenticates the interaction protocol; if the interaction protocol is authenticated, the authentication protocol manager sends the interaction process of the interaction protocol between nodes and the corresponding evaluation data set identifier to the evaluation session manager; if the protocol is not authenticated, the authentication failure is returned;
[0122] Step 3: After receiving the evaluation data set identifier, the evaluation session manager reads the corresponding evaluation data from the local test database, and randomly splits it horizontally or vertically according to the privacy computing scenario, and maps the split data to each privacy computing node respectively;
[0123] It should be noted that the authentication protocol manager may not send the evaluation data set identifier to the evaluation session manager, that is, the authentication protocol manager reads the corresponding evaluation data from the local test database according to the evaluation data set identifier, and randomly splits the data horizontally or vertically according to the privacy computing scenario, and maps the split data to each privacy computing node. In other words, the evaluation data can also be split by the authentication protocol manager, and then the split data is sent to the evaluation session manager.
[0124] Step 4: The evaluation session manager constructs a virtual privacy computing domain locally based on the participating nodes. Each virtual privacy computing node in the domain corresponds to a real privacy computing node one by one. The segmented data is sent to each virtual privacy computing node, and the interaction process between virtual privacy computing nodes is started according to the interaction protocol. Each virtual privacy computing node constructs a Merkle hash tree based on the messages it sends and receives.
[0125] Step 5: The virtual privacy computing node sends its evaluation data and each round of interaction protocol parameters (such as random numbers in the protocol) to the corresponding real privacy computing node through a proxy, and synchronously runs the interaction protocol process of the real privacy computing node;
[0126] Step 6: The proxy records the network interaction messages of the real privacy computing node, and the real privacy computing node builds a Merkle hash tree based on its network sent and received messages;
[0127] Step 7: Wait for the protocol interaction process between the virtual privacy computing domain and the real privacy computing domain to end, and compare the hash values of the Merkle hash tree root nodes of each virtual privacy computing node and the corresponding real privacy computing node. If they are all equal, it proves that the interaction protocol between nodes in the real privacy computing domain and the authenticated interaction protocol in the authentication protocol manager are completely consistent, thereby proving the security of the privacy computing interaction protocol.
[0128] In order to better achieve the above goals, Figure 4 As shown, the embodiment of the present invention further provides an evaluation device for an interactive protocol, including a processor 400 and a transceiver 410, wherein the processor 400 is configured to perform the following process:
[0129] Obtain the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data;
[0130] According to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, obtain the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol;
[0131] If the simulation operation result is consistent with the actual operation result, it is determined that the target interaction protocol is safe; otherwise, the target interaction protocol is unsafe.
[0132] Optionally, the transceiver 410 is further used to: receive an evaluation request sent by a real privacy computing node, where the evaluation request is used to request an evaluation target interaction protocol;
[0133] The processor 400 is further configured to:
[0134] authenticating the target interaction protocol according to the evaluation request;
[0135] When the target interaction protocol passes the authentication, the interaction process of the target interaction protocol between the privacy computing nodes and the corresponding evaluation data are obtained.
[0136] Optionally, the processor 400 is further configured to:
[0137] According to the evaluation request, a virtual privacy computing domain is constructed, wherein the virtual privacy computing nodes in the virtual privacy computing domain correspond one-to-one to the real privacy computing nodes related to the evaluation request.
[0138] Optionally, the processor 400 is further configured to:
[0139] Randomly segmenting the evaluation data to obtain segmented data;
[0140] After sending the segmented data to each virtual privacy computing node in the virtual privacy computing domain, the virtual privacy computing nodes in the virtual privacy computing domain are controlled to start the interaction process of the target interaction protocol between the privacy computing nodes to obtain the simulation operation result;
[0141] According to the segmented data and the interaction protocol parameters used by the virtual privacy computing nodes in the virtual privacy computing domain to run the interaction process, the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol are obtained.
[0142] Optionally, the processor 400 is further configured to:
[0143] Sending the segmented data and the interaction protocol parameters to the corresponding real privacy computing nodes in the real privacy computing domain, so that the real privacy computing nodes synchronously run the interaction process of the target interaction protocol;
[0144] Obtain the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol.
[0145] Optionally, the simulation running result includes a hash value of each virtual privacy computing node, the hash value of the virtual privacy computing node is the hash value of a root node of a Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the virtual privacy computing node is constructed based on the corresponding sent and received messages in the interaction process;
[0146] The actual operation result includes the hash value of each real privacy computing node, the hash value of the real privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the real privacy computing node is constructed based on the corresponding sent and received messages during the interaction process.
[0147] Optionally, the processor 400 is further configured to:
[0148] If the hash value of each virtual privacy computing node is equal to the hash value of the corresponding real privacy computing node, the target interaction protocol is determined to be secure.
[0149] The evaluation device for the interactive protocol of the embodiment of the present invention obtains the interaction process of the target interactive protocol to be evaluated between privacy computing nodes and the corresponding evaluation data; according to the interaction process of the target interactive protocol between privacy computing nodes and the evaluation data, obtains the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interactive protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interactive protocol; if the simulated operation results are consistent with the real operation results, it is determined that the target interactive protocol is safe; otherwise, the target interactive protocol is not safe. In this way, through the above-mentioned automated evaluation processing, the efficiency of the security evaluation of the privacy computing interactive protocol can be improved, and any interactive protocol can also be evaluated, so as to achieve full coverage of the security evaluation of the interactive protocol.
[0150] An embodiment of the present invention also provides an evaluation device for an interactive protocol, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the various processes in the embodiment of the evaluation method for the interactive protocol as described above are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be described here.
[0151] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, each process in the embodiment of the interactive protocol evaluation method described above is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0153] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A device that specifies functions in one or more processes and / or one or more blocks.
[0154] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable storage medium produce a paper product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that the computer or other programmable device executes a series of operating steps to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for evaluating an interactive protocol. It is characterized in that include: Obtain the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data; According to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, obtain the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol; If the simulation operation result is consistent with the actual operation result, it is determined that the target interaction protocol is safe; Otherwise, the target interaction protocol is not secure.
2. The method according to claim 1, It is characterized in that The step of obtaining the interaction process of the target interaction protocol to be tested between privacy computing nodes and the corresponding evaluation data includes: Receiving an evaluation request sent by a real privacy computing node, wherein the evaluation request is used to request an evaluation target interaction protocol; authenticating the target interaction protocol according to the evaluation request; When the target interaction protocol passes the authentication, the interaction process of the target interaction protocol between the privacy computing nodes and the corresponding evaluation data are obtained.
3. The method according to claim 2, It is characterized in that The method further comprises: According to the evaluation request, a virtual privacy computing domain is constructed, wherein the virtual privacy computing nodes in the virtual privacy computing domain correspond one-to-one to the real privacy computing nodes related to the evaluation request.
4. The method according to claim 1, It is characterized in that The step of obtaining, according to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol includes: Randomly segmenting the evaluation data to obtain segmented data; After sending the segmented data to each virtual privacy computing node in the virtual privacy computing domain, the virtual privacy computing nodes in the virtual privacy computing domain are controlled to start the interaction process of the target interaction protocol between the privacy computing nodes to obtain the simulation operation result; According to the segmented data and the interaction protocol parameters used by the virtual privacy computing nodes in the virtual privacy computing domain to run the interaction process, the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol are obtained.
5. The method according to claim 4, It is characterized in that The step of obtaining the real operation result of the real privacy computing node in the real privacy computing domain based on the target interaction protocol according to the segmented data and the interaction protocol parameters used by the virtual privacy computing node in the virtual privacy computing domain to run the interaction process includes: Sending the segmented data and the interaction protocol parameters to the corresponding real privacy computing nodes in the real privacy computing domain, so that the real privacy computing nodes synchronously run the interaction process of the target interaction protocol; Obtain the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol.
6. The method according to claim 4, It is characterized in that The simulation running result includes the hash value of each virtual privacy computing node, the hash value of the virtual privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the virtual privacy computing node is constructed based on the corresponding sent and received messages in the interaction process; The actual operation result includes the hash value of each real privacy computing node, the hash value of the real privacy computing node is the hash value of the root node of the Merkle hash tree constructed by the virtual privacy computing node, and the Merkle hash tree of the real privacy computing node is constructed based on the corresponding sent and received messages during the interaction process.
7. The method according to claim 6, It is characterized in that If the simulation operation result is consistent with the actual operation result, determining that the target interaction protocol is safe includes: If the hash value of each virtual privacy computing node is equal to the hash value of the corresponding real privacy computing node, the target interaction protocol is determined to be secure.
8. An evaluation device for an interactive protocol, It is characterized in that include: An acquisition module is used to obtain the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data; A first processing module is used to obtain, according to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol; An evaluation module, used for determining the safety of the target interaction protocol when the simulation operation result is consistent with the actual operation result; Otherwise, the target interaction protocol is not secure.
9. An evaluation device for an interactive protocol, comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor. It is characterized in that The processor is configured to perform the following operations: Obtain the interaction process of the target interaction protocol to be evaluated between privacy computing nodes and the corresponding evaluation data; According to the interaction process of the target interaction protocol between privacy computing nodes and the evaluation data, obtain the simulated operation results of the virtual privacy computing nodes in the virtual privacy computing domain based on the target interaction protocol and the real operation results of the real privacy computing nodes in the real privacy computing domain based on the target interaction protocol; If the simulation operation result is consistent with the actual operation result, it is determined that the target interaction protocol is safe; Otherwise, the target interaction protocol is not secure.
10. An evaluation device for an interactive protocol, comprising a memory, a processor, and a program stored in the memory and executable on the processor; It is characterized in that When the processor executes the program, the evaluation method of the interactive protocol as described in any one of claims 1 to 7 is implemented.
11. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the interactive protocol evaluation method according to any one of claims 1 to 7 are implemented.
