A method, device, storage medium and electronic equipment for data risk assessment

By using asymmetric encryption technology in a trusted execution environment to conduct risk assessments on data, the problem of data privacy leakage is solved, and security and privacy protection are achieved in the data risk assessment process.

CN116050847BActive Publication Date: 2026-11-24ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310090702.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-17
Publication Date
2026-11-24
Estimated Expiration
2043-01-17

Smart Images

  • Figure CN116050847B_ABST
    Figure CN116050847B_ABST
Patent Text Reader

Abstract

This specification discloses a method, apparatus, storage medium, and electronic device for data risk assessment. The method includes: an assessment requester encrypting the determined data to be assessed using a node's first public key and sending the encrypted data to the node; the node decrypting the encrypted data using its first private key in its trusted execution environment; and then performing a risk assessment on the decrypted data in the trusted execution environment to obtain an assessment result; the node encrypting the assessment result using the assessment requester's second public key and sending the encrypted assessment result back to the assessment requester. By encrypting the transmitted data during data transmission and performing a risk assessment on the decrypted data in the node's trusted execution environment, data is not leaked during data transmission and risk assessment, thus reducing the risk of privacy breaches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computer technology, and in particular to a method, apparatus, storage medium, and electronic device for data risk assessment. Background Technology

[0002] With the development of technology, fraud is occurring more and more frequently, necessitating businesses to identify and combat fraud. Using blacklists and whitelists is the simplest method for this purpose.

[0003] When conducting risk assessments on data, the data to be assessed can be evaluated based on the characteristics of data in pre-defined blacklists and whitelists to determine the probability that the data is risky. If the data is deemed risky, it is added to the blacklist. This data may contain users' private information, such as facial recognition data or user identification numbers. Users on the blacklist have a history of fraudulent activity, while users on the whitelist have no such history. Although the data to be assessed is anonymized during this process, some key characteristics may still be disclosed to other stakeholders, such as cloud providers and malicious actors, increasing the risk of user privacy breaches.

[0004] Therefore, how to conduct risk assessments on data while protecting privacy is an urgent problem to be solved. Summary of the Invention

[0005] This specification provides a method, apparatus, storage medium, and electronic device for data risk assessment, in order to partially solve the aforementioned problems existing in the prior art.

[0006] The following technical solution is adopted in this specification:

[0007] This specification provides a method for data risk assessment, including:

[0008] The node receives encrypted data sent by the evaluation requester, wherein the encrypted data is obtained by the evaluation requester encrypting the data to be evaluated according to the node's first public key;

[0009] The encrypted data is decrypted in the trusted execution environment of the node based on the first private key stored in the node.

[0010] In the trusted execution environment, a risk assessment is performed on the decrypted data to be evaluated, and the assessment result is obtained.

[0011] The evaluation result is encrypted using the second public key of the evaluation requester, and the encrypted evaluation result is sent to the evaluation requester.

[0012] Optionally, a risk assessment is performed on the decrypted data to be evaluated to obtain the assessment results, which specifically include:

[0013] The decrypted data to be evaluated is input into a pre-saved prediction model to obtain the data features to be evaluated.

[0014] Determine whether the data features to be evaluated are consistent with the blacklist features stored by the node;

[0015] If so, the data to be evaluated is determined to be risk data.

[0016] Optionally, the encrypted data may also include an evaluation strategy;

[0017] When the data features to be evaluated are inconsistent with the blacklist features stored by the node, the method further includes:

[0018] Based on the assessment strategy, a risk assessment is performed on the data to be assessed.

[0019] Optionally, according to the assessment strategy, a risk assessment is performed on the data to be assessed, specifically including:

[0020] Obtain the blacklist features stored on other nodes;

[0021] Based on the obtained blacklist features, the features of the data to be evaluated, and the evaluation strategy, a risk assessment is performed on the data to be evaluated.

[0022] Optionally, based on the acquired blacklist features, the features of the data to be evaluated, and the evaluation strategy, a risk assessment is performed on the data to be evaluated, specifically including:

[0023] Determine the similarity between the data features to be evaluated and the obtained blacklist features;

[0024] Determine whether the similarity is greater than a threshold included in the evaluation strategy. If so, determine that the data to be evaluated is risky data; otherwise, determine that the data to be evaluated is not risky data.

[0025] Optionally, after determining that the data to be evaluated is risk data, the method further includes:

[0026] The data features to be evaluated are sent to other nodes so that the other nodes store the received data features to be evaluated as blacklist features.

[0027] Optionally, the prediction model can be pre-saved, specifically including:

[0028] Receive the encrypted prediction model sent by the scheduler;

[0029] In a trusted execution environment, the encrypted prediction model is decrypted using the first private key stored in the node to obtain the prediction model.

[0030] Optionally, before receiving the encrypted prediction model sent by the scheduler, the method further includes:

[0031] Receive remote verification requests sent by the scheduler;

[0032] A proof report and a first public key are sent to the scheduler so that the scheduler can verify the proof report. After successful verification, the scheduler uses the first public key to encrypt the pre-trained prediction model and sends it to the node.

[0033] Optionally, the encrypted data may further include the second public key;

[0034] The evaluation result is encrypted using the second public key of the evaluation requester, specifically including:

[0035] Based on the first private key, the encrypted data is decrypted in the trusted execution environment of the node to obtain the second public key, and the evaluation result is encrypted using the second public key.

[0036] This specification provides a method for data risk assessment, which is applied to an assessment requester, and the method includes:

[0037] The data to be evaluated is determined, and the data to be evaluated is encrypted according to the first public key of the node to obtain encrypted data;

[0038] The encrypted data is sent to the node, so that the node decrypts the encrypted data in the trusted execution environment of the node according to the first private key stored in the node, and performs a risk assessment on the data to be evaluated after decryption to obtain an assessment result;

[0039] Receive the evaluation results sent by the node.

[0040] Optionally, the data to be evaluated is encrypted based on the node's first public key, specifically including:

[0041] The first public key of the node sent by the scheduler;

[0042] The data to be evaluated is encrypted using the first public key.

[0043] Optionally, the data to be evaluated is encrypted using the node's first public key to obtain encrypted data, specifically including:

[0044] Based on the node's first public key, the data to be evaluated and the evaluation requester's second public key are encrypted to obtain encrypted data;

[0045] Receiving the evaluation results sent by the node specifically includes:

[0046] The node receives an encrypted evaluation result, wherein the encrypted evaluation result is obtained by the node encrypting the evaluation result using the second public key;

[0047] The encrypted evaluation result is decrypted using the second private key stored by the evaluation requester to obtain the evaluation result.

[0048] This specification provides a data risk assessment device, which is applied to a node, and the device includes:

[0049] The receiving module is used for the node to receive encrypted data sent by the evaluation requester, wherein the encrypted data is obtained by the evaluation requester encrypting the data to be evaluated according to the first public key of the node;

[0050] The decryption module is used to decrypt the encrypted data in the trusted execution environment of the node based on the first private key stored in the node.

[0051] The evaluation module is used to perform a risk assessment on the decrypted data to be evaluated in the trusted execution environment and obtain the evaluation result.

[0052] An encryption module is used to encrypt the evaluation result using the second public key of the evaluation requester, and then send the encrypted evaluation result to the evaluation requester.

[0053] This specification provides a data risk assessment apparatus, which is applied to an assessment requesting party, and the apparatus includes:

[0054] The determination module is used to determine the data to be evaluated and encrypt the data to be evaluated according to the first public key of the node to obtain encrypted data;

[0055] The sending module is used to send the encrypted data to the node, so that the node can decrypt the encrypted data in the trusted execution environment of the node according to the first private key stored in the node, and perform a risk assessment on the data to be evaluated after decryption to obtain an assessment result.

[0056] The results module is used to receive the evaluation results sent by the node.

[0057] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for data risk assessment.

[0058] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described method for data risk assessment.

[0059] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:

[0060] In the data risk assessment method provided in this specification, the node receives encrypted data obtained by encrypting the determined data to be assessed using the node's first public key. The node then decrypts the encrypted data in its trusted execution environment using its first private key. After that, the node performs a risk assessment on the decrypted data to be assessed in the trusted execution environment to obtain the assessment result. The assessment result is then encrypted using the assessment requester's second public key, and the encrypted assessment result is sent to the assessment requester.

[0061] As can be seen from the above method, in this method, the evaluation requester encrypts the determined data to be evaluated using the node's first public key and sends the encrypted data to the node. The node, within its trusted execution environment, decrypts the encrypted data using its first private key. Then, within the trusted execution environment, it performs a risk assessment on the decrypted data to obtain the evaluation result. The node then encrypts the evaluation result using the evaluation requester's second public key and sends the encrypted evaluation result back to the evaluation requester. By having the evaluation requester encrypt the data to be evaluated before sending it to the node, and the node encrypt the evaluation result before sending it to the evaluation requester, the data transmission process between the node and the evaluation requester is protected from leakage, reducing the risk of privacy breaches. Simultaneously, the node performs a risk assessment on the decrypted data to obtain the evaluation result within its trusted execution environment, ensuring that the risk assessment process itself does not leak data, further reducing the risk of privacy breaches. Attached Figure Description

[0062] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and their descriptions, serving to explain this specification and do not constitute an undue limitation thereof.

[0063] In the picture:

[0064] Figure 1 This is a flowchart illustrating a data risk assessment method provided in this specification;

[0065] Figure 2 This is a flowchart illustrating another data risk assessment method provided in this specification.

[0066] Figure 3 This is a schematic diagram illustrating a data transmission process provided in this specification;

[0067] Figure 4 This is a schematic diagram of a data risk assessment device provided in this specification;

[0068] Figure 5 This is a schematic diagram of another data risk assessment device provided in this specification;

[0069] Figure 6 The corresponding information provided in this specification Figure 1 A schematic diagram of an electronic device. Detailed Implementation

[0070] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.

[0071] The embodiments of this specification provide a method, apparatus, storage medium, and electronic device for data risk assessment. The technical solutions provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0072] Figure 1 This is a flowchart illustrating a data risk assessment method provided in this specification. Figure 1 The method shown is applied to nodes and specifically includes the following steps:

[0073] S100: Receive encrypted data sent by the evaluation requester, wherein the encrypted data is obtained by the evaluation requester encrypting the data to be evaluated according to the first public key of the node.

[0074] When encrypting data, symmetric and asymmetric encryption can be used. Symmetric encryption uses the same key for both encryption and decryption. For example, when encrypting data using symmetric encryption, the public key is used, and the same public key is used for decryption. Asymmetric encryption, on the other hand, uses a pair of keys for both encryption and decryption. For instance, when encrypting data using asymmetric encryption, the public key is used, and only the corresponding private key can be used to decrypt the encrypted data. In this specification, to reduce the risk of privacy data leakage, we will use asymmetric encryption as an example.

[0075] In this specification, the node used for data risk assessment receives encrypted data sent by the assessment requester. This node is a node with a trusted execution environment (TEE). The node can be any node in the distributed system that possesses a TEE and is capable of data risk assessment. It can also be a server with a TEE and capable of data risk assessment. For ease of explanation, the node is used as the execution entity in the following description. The assessment requester is the data provider that needs to have its own data risk assessed. The encrypted data is obtained by the assessment requester encrypting the data to be assessed using the node's first public key. A Trusted Execution Environment (TEE) provides a hardware-based isolated operating environment whose isolation is unaffected by any external hardware, software, or personnel.

[0076] S102: Decrypt the encrypted data in the trusted execution environment of the node according to the first private key stored in the node.

[0077] S104: In the trusted execution environment, a risk assessment is performed on the decrypted data to be evaluated, and the assessment result is obtained.

[0078] The node decrypts the encrypted data in its trusted execution environment using the first private key stored within the node. It then performs a risk assessment on the decrypted data to obtain the assessment result. Specifically, the node decrypts the encrypted data in its trusted execution environment using the first private key stored within the node, inputs the decrypted data to be assessed into a pre-stored prediction model to obtain the data features to be assessed, and determines whether these features match the blacklist features stored by the node. If the data features match the blacklist features, the data to be assessed is determined to be risky data. The pre-stored prediction model is a model pre-trained by the scheduler, and the blacklist features are characteristics possessed by users on the blacklist, such as facial features and identification document features.

[0079] When determining whether the data features to be evaluated are consistent with the blacklist features stored by the node, a preset rule algorithm or a pre-trained machine learning model can be used for the determination. This manual does not make specific limitations; it is sufficient to determine whether the data features to be evaluated are consistent with the blacklist features stored by the node.

[0080] The encrypted data may also include an evaluation strategy. Therefore, when the characteristics of the data to be evaluated are inconsistent with the blacklist characteristics stored by the node, the node can perform a risk assessment on the data according to the evaluation strategy. Specifically, when the characteristics of the data to be evaluated are inconsistent with the blacklist characteristics stored by the node, the blacklist characteristics stored by other nodes are obtained. Based on the obtained blacklist characteristics, the characteristics of the data to be evaluated, and the evaluation strategy, a risk assessment is performed on the data to be evaluated. The evaluation strategy is a strategy formulated by the evaluation requester. For example, if the similarity between the characteristics of the data to be evaluated and the blacklist characteristics is greater than a preset threshold, the data to be evaluated is determined to be risky data. The preset thresholds of different evaluation requesters may be the same or different.

[0081] When assessing the risk of data based on the acquired blacklist features, the data features to be assessed, and the assessment strategy, a node can determine the similarity between the data features to be assessed and the acquired blacklist features. It then determines whether the similarity exceeds a threshold included in the assessment strategy. If the similarity is greater than or equal to a threshold, the data to be assessed is determined to be risky; otherwise, it is determined not to be risky. For example, suppose the data features to be assessed include facial features and ID features, the acquired blacklist features are the facial features of users on the blacklist, and the threshold in the assessment strategy is 0.9. The node determines the similarity between the data features to be assessed and the acquired blacklist features, which is essentially determining the similarity between the facial features and the facial features of users on the blacklist. Assuming the similarity is 0.91, it checks whether the similarity exceeds the threshold in the assessment strategy. If so, the data to be assessed is determined to be risky; otherwise, it is determined not to be risky. Clearly, 0.91 is greater than 0.9, therefore the data to be assessed is determined to be risky.

[0082] The node can also determine the similarity between the data features to be evaluated and the acquired blacklist features, and determine the number of similarities greater than the thresholds included in the evaluation strategy. When the determined number is greater than the preset number included in the evaluation strategy, the data to be evaluated is determined to be risky data; otherwise, the data to be evaluated is determined to be non-risky data. For example, suppose the data features to be evaluated include facial features and ID features, the acquired blacklist features are the facial features and ID features of users on the blacklist, the threshold included in the evaluation strategy is 0.9, and the preset number is 2. The node determines the similarity between the data features to be evaluated and the acquired blacklist features, that is, determines the facial similarity between the facial features and the facial features of users on the blacklist, and determines the ID similarity between the ID features and the ID features of users on the blacklist. Assuming the facial similarity is 0.91 and the ID similarity is 0.8, the node determines the number of similarities greater than the thresholds included in the evaluation strategy, which is 1. When the determined number is greater than the preset number included in the evaluation strategy, the data to be evaluated is determined to be risky data; otherwise, the data to be evaluated is determined to be non-risky data. It is clear that the determined quantity 1 is less than the preset quantity 2, and the data to be evaluated is determined not to be risk data.

[0083] The node can also determine, based on the evaluation criteria included in the evaluation strategy, which identify blacklist features from the acquired blacklist features that meet the evaluation criteria. It then determines the similarity between the data feature to be evaluated and the blacklist features that meet the evaluation criteria, and judges whether the similarity is greater than a threshold included in the evaluation strategy. If so, the data to be evaluated is determined to be risky data; otherwise, it is determined not to be risky data. For example, suppose the evaluation strategy includes the criterion of only judging whether the similarity between the document features in the data to be evaluated and the document features in the blacklist features is greater than a threshold. If so, the data to be evaluated is determined to be risky data; otherwise, it is determined not to be risky data. The data features to be evaluated include facial features and document features, the acquired blacklist features are the facial features and document features of users on the blacklist, and the threshold included in the evaluation strategy is 0.9. The node determines which blacklist features (i.e., ID features) meet the evaluation criteria from the acquired blacklist features (i.e., facial and ID features of users on the blacklist) according to the evaluation criteria included in the evaluation strategy. It then determines the similarity between the data features to be evaluated and the blacklist features that meet the evaluation criteria; that is, it determines the similarity between the ID features in the data to be evaluated and the ID features in the blacklist features. Assuming a similarity of 0.91, it checks if the similarity is greater than the threshold (0.9) included in the evaluation strategy. If so, the data to be evaluated is determined to be risky data; otherwise, it is determined not to be risky data. Clearly, 0.91 is greater than 0.9, therefore the data to be evaluated is determined to be risky data.

[0084] S106: Encrypt the evaluation result using the second public key of the evaluation requester, and send the encrypted evaluation result to the evaluation requester.

[0085] The node encrypts the evaluation result using the second public key of the evaluation requester and sends the encrypted evaluation result to the evaluation requester. Specifically, the encrypted data may also include the second public key. Using the first private key, the encrypted data is decrypted in the node's trusted execution environment to obtain the second public key. That is, the encrypted data includes not only the data to be evaluated but also the second public key. The node decrypts the encrypted data using the first private key in its trusted execution environment to obtain the second public key. Then, it can use the second public key to encrypt the evaluation result and send the encrypted evaluation result to the evaluation requester.

[0086] As can be seen from the above method, in this method, the node receives encrypted data sent by the evaluation requester, decrypts the encrypted data in the node's trusted execution environment using the first private key, and then performs a risk assessment on the decrypted data to be evaluated in the trusted execution environment to obtain the evaluation result. The evaluation result is then encrypted using the evaluation requester's second public key and sent back to the evaluation requester. By sending the encrypted evaluation result obtained by encrypting the evaluation result with the second public key to the evaluation requester, the risk of the evaluation result being leaked during data transmission is reduced. Simultaneously, the encrypted data received by the node is the data encrypted by the evaluation requester using the first public key. Therefore, the risk of data leakage is reduced during the process of the evaluation requester transmitting encrypted data to the node. Moreover, the node decrypts the encrypted data in the trusted execution environment and performs a risk assessment on the decrypted data to be evaluated, further reducing the risk of data leakage and better protecting the privacy of the data.

[0087] After determining that the data to be evaluated is risky data in step S104 above, the node sends the data features to be evaluated to other nodes, so that the other nodes store the received data features as blacklist features. Specifically, when the data to be evaluated is risky data, the node determines the public keys of other nodes stored in its node, encrypts the data features to be evaluated using each public key, and sends the encrypted data features to be evaluated to the node corresponding to that public key, so that the node corresponding to that public key can decrypt it using the private key corresponding to that public key, and store the decrypted data features to be evaluated as blacklist features.

[0088] In step S104 above, when the prediction model is pre-saved, the node can receive the encrypted prediction model sent by the scheduler. In the trusted execution environment, the node decrypts the encrypted prediction model using the first private key stored in the node to obtain the prediction model. The prediction model is a model pre-trained by the scheduler to extract data features. Since this model is trained using data, this training sample data also contains private data. To avoid privacy data leakage due to model leakage, before receiving the encrypted prediction model sent by the scheduler, the node receives a remote proof request from the scheduler, sends a proof report and the first public key to the scheduler so that the scheduler can verify the proof report. After successful verification, the scheduler encrypts the pre-trained prediction model using the first public key and sends it to the node. The remote proof is the scheduler verifying the node's identity, that is, determining whether the node exists in a trusted execution environment and will not leak data. The proof report is a report sent by the node to the scheduler proving its identity. The proof report can be the node's digital signature or any other report that can prove its identity to the scheduler. This manual does not impose specific limitations; it is sufficient that the scheduler can determine that the node has a trusted execution environment and will not leak data.

[0089] When the proof report is a node's digital signature, the scheduler can receive the proof report and first public key sent by the node, and decrypt the proof report using the first public key. If the decryption is successful, the scheduler determines the identifier information in the decrypted proof report and checks if it matches the pre-saved node identifier information. If they match, the proof report is verified, and the scheduler uses the first public key to encrypt the pre-trained prediction model and sends it to the node. Otherwise, the proof report fails verification, and the scheduler does not send the pre-trained prediction model to the node. If the decryption fails, the proof report fails verification, and the scheduler does not send the pre-trained prediction model to the node. The proof report is a report obtained by the node after encryption using its first private key. The identifier information can be the node's identifier or any other content; this specification does not impose specific limitations, as long as the scheduler can determine the node's identity based on the identifier information.

[0090] Before the node receives the encrypted data sent by the evaluation requester in step S100 above, the node receives the remote proof request sent by the evaluation requester, sends a proof report and a first public key to the evaluation requester so that the evaluation requester can verify the received proof report, and after the verification is successful, uses the received first public key to encrypt the data to be evaluated to obtain encrypted data.

[0091] In step S100 above, the node can receive encrypted data sent by the scheduler. This encrypted data is obtained by the evaluation requester encrypting the data to be evaluated using the node's first public key and then sending it to the scheduler. Correspondingly, in step S106 above, the node can send the encrypted evaluation result to the scheduler, so that the scheduler can send the received encrypted evaluation result to the evaluation requester.

[0092] This specification also provides a method for data risk assessment, which is applied to the assessment requesting party, such as... Figure 2 As shown, Figure 2 This is a flowchart illustrating another data risk assessment method provided in this specification, which specifically includes the following steps:

[0093] S200: Determine the data to be evaluated, and encrypt the data to be evaluated according to the first public key of the node to obtain encrypted data.

[0094] The requesting party determines the data to be evaluated and encrypts it using the node's first public key to obtain encrypted data. Specifically, the requesting party determines the data to be evaluated, receives the node's first public key from the receiving node, and encrypts the data using the first public key to obtain encrypted data. The order of determining the data to be evaluated and receiving the node's first public key in the above process is not fixed. The data to be evaluated can be determined before or after the data to be evaluated is determined. This specification does not impose a specific limitation; the following example illustrates determining the data to be evaluated before the node's first public key is received.

[0095] When the data to be evaluated is encrypted using the node's first public key, the evaluation requester can encrypt the data to be evaluated and the evaluation requester's second public key using the node's first public key to obtain the encrypted data.

[0096] S202: The encrypted data is sent to the node so that the node decrypts the encrypted data in its trusted execution environment according to the first private key stored in the node, and performs a risk assessment on the data to be evaluated after decryption to obtain an assessment result.

[0097] The requesting party sends encrypted data to the node, so that the node can decrypt the encrypted data in the node's trusted execution environment using the first private key stored in the node, and perform a risk assessment on the decrypted data to be evaluated, thus obtaining the assessment result.

[0098] S204: Receive the evaluation result sent by the node.

[0099] The requesting party receives the evaluation result from the receiving node. Specifically, it receives the encrypted evaluation result from the receiving node and then decrypts the encrypted evaluation result using the second private key stored by the requesting party to obtain the final evaluation result. The encrypted evaluation result is obtained by the node encrypting the evaluation result using its second public key.

[0100] As can be seen from the above method, in this method, the evaluation requester determines the data to be evaluated, encrypts the data to be evaluated based on the node's first public key, sends the encrypted data to the node, and receives the evaluation result sent by the node. By encrypting the data to be evaluated before sending the encrypted data to the node, the risk of data leakage can be reduced, and the privacy of the data can be better protected.

[0101] Before the receiving node sends the first public key of the node in step S200 above, the evaluation requesting party sends a remote proof request to the node so that the node can receive the remote proof request from the evaluation requesting party and send a proof report and the first public key to the evaluation requesting party. The evaluation requesting party verifies the received proof report and, after successful verification, uses the received first public key to encrypt the data to be evaluated to obtain encrypted data.

[0102] In step S200 above, the evaluation requester can also determine the data to be evaluated, receive the first public key of the node sent by the scheduler, and encrypt the data to be evaluated based on the first public key. The determination of the data to be evaluated and the receipt of the first public key of the node sent by the scheduler are not sequential in the above process. The first public key of the node can be received before or after the data to be evaluated is determined. This specification does not impose a specific limitation; the following explanation uses the example of determining the data to be evaluated before receiving the first public key of the node sent by the scheduler. Correspondingly, in step S202 above, the evaluation requester can send the encrypted data to the scheduler, so that the scheduler can send the received encrypted data to the node. The node, based on the first private key stored in the node, decrypts the encrypted data in the node's trusted execution environment and performs a risk assessment on the decrypted data to obtain the evaluation result. In step S204 above, the evaluation requester can receive the evaluation result sent by the scheduler, wherein the evaluation result is sent by the node to the scheduler.

[0103] In step S200 above, the data to be evaluated is encrypted using the node's first public key. Upon obtaining encrypted data, the evaluation requester can also encrypt the data to be evaluated and its evaluation strategy using the node's first public key to obtain encrypted data. Alternatively, the evaluation requester can encrypt the data to be evaluated, its evaluation strategy, and its second public key using the node's first public key to obtain encrypted data.

[0104] In this specification, the scheduler can bind nodes to evaluation requesters according to preset rules, determining the binding relationship between nodes and evaluation requesters. In step S100, the node receives encrypted data sent by the scheduler; this encrypted data is the encrypted data of the evaluation requester bound to the node. In step S106, the node can send the encrypted evaluation result to the scheduler, so that the scheduler can send the received encrypted evaluation result to the evaluation requester, which is the evaluation requester bound to the node. Correspondingly, in steps S200 to S204, the scheduler also sends the first public key and the evaluation result to the evaluation requester bound to the node, and sends the encrypted data to the node bound to the evaluation requester, based on the binding relationship between the node and the evaluation requester. The specific data transmission process between a scheduler, a node, and an evaluation requester is as follows: Figure 3 As shown, Figure 3 This is a schematic diagram illustrating a data transmission process provided in this specification. Figure 3 The nodes in the system are bound to the evaluation requester. The preset rule can be to bind the node to the evaluation requester based on the prediction model pre-saved in the node, or it can be to bind the node to the evaluation requester according to any rule. This specification does not make a specific limitation.

[0105] Since there can be multiple nodes in a distributed system, the scheduler can determine the binding relationship between nodes and evaluation requesters in a one-to-one or one-to-many manner. That is, a node can be bound to one evaluation requester, a node can be bound to multiple evaluation requesters, or an evaluation requester can be bound to multiple nodes. This specification does not impose specific limitations. The scheduler only needs to determine the binding relationship between nodes and evaluation requesters and perform data transmission.

[0106] The scheduler in this manual can be a server or a device such as a mobile phone or personal computer (PC) that can execute the scheme in this manual. This manual does not make any specific limitations.

[0107] In this specification, after receiving the evaluation results, the requesting party can restrict the users corresponding to the data to be evaluated based on those results. Specifically, when the evaluation result indicates that the data to be evaluated is risky, the requesting party determines the users corresponding to the data and restricts them according to preset control rules, such as restricting their trading behavior. However, when the evaluation result indicates that the data to be evaluated is not risky, the requesting party determines the users corresponding to the data but does not restrict them.

[0108] The above describes one or more embodiments of the data risk assessment method provided in this specification. Based on the same idea, this specification also provides corresponding data risk assessment apparatus, such as... Figure 4 As shown.

[0109] Figure 4 This is a schematic diagram of a data risk assessment device provided in this specification, specifically including:

[0110] The receiving module 300 is used for the node to receive encrypted data sent by the evaluation requester, wherein the encrypted data is obtained by the evaluation requester encrypting the data to be evaluated according to the first public key of the node;

[0111] The decryption module 302 is used to decrypt the encrypted data in the trusted execution environment of the node according to the first private key stored in the node;

[0112] Evaluation module 304 is used to perform risk assessment on the decrypted data to be evaluated in the trusted execution environment and obtain the evaluation result;

[0113] The encryption module 306 is used to encrypt the evaluation result using the second public key of the evaluation requester and send the encrypted evaluation result to the evaluation requester.

[0114] Optionally, the evaluation module 304 is specifically used to input the decrypted data to be evaluated into a pre-saved prediction model to obtain the data features to be evaluated; determine whether the data features to be evaluated are consistent with the blacklist features stored by the node; if so, determine that the data to be evaluated is risky data.

[0115] Optionally, the encrypted data may also include an evaluation strategy;

[0116] The evaluation module 304 is specifically used to perform a risk assessment on the data to be evaluated according to the evaluation strategy when the data characteristics to be evaluated are inconsistent with the blacklist characteristics stored by the node.

[0117] Optionally, the evaluation module 304 is specifically used to obtain blacklist features stored by other nodes; and to perform risk assessment on the data to be evaluated based on the obtained blacklist features, the data features to be evaluated, and the evaluation strategy.

[0118] Optionally, the evaluation module 304 is specifically used to: determine the similarity between the data feature to be evaluated and the obtained blacklist feature; determine whether the similarity is greater than a threshold included in the evaluation strategy; if so, determine that the data to be evaluated is risky data; otherwise, determine that the data to be evaluated is not risky data.

[0119] Optionally, after the evaluation module 304 determines that the data to be evaluated is risk data, the device further includes:

[0120] The forwarding module 308 is used to send the data features to be evaluated to other nodes so that the other nodes store the received data features to be evaluated as blacklist features.

[0121] Optionally, the device further includes:

[0122] The deployment model module 310 is used to receive the encrypted prediction model sent by the scheduler; in the trusted execution environment, the encrypted prediction model is decrypted according to the first private key stored in the node to obtain the prediction model.

[0123] Optionally, the deployment model module 310 is further configured to receive a remote proof request sent by the scheduler before receiving the encrypted prediction model sent by the scheduler; send a proof report and a first public key to the scheduler so that the scheduler can verify the proof report; and after successful verification, encrypt the pre-trained prediction model using the first public key and send it to the node.

[0124] Optionally, the encrypted data may further include the second public key;

[0125] The encryption module 306 is specifically used to decrypt the encrypted data in the trusted execution environment of the node according to the first private key, obtain the second public key, and encrypt the evaluation result using the second public key.

[0126] This manual also provides a device for data risk assessment, such as... Figure 5 As shown.

[0127] Figure 5 This is a schematic diagram of another data risk assessment device provided in this specification, specifically including:

[0128] The determination module 400 is used to determine the data to be evaluated and encrypt the data to be evaluated according to the first public key of the node to obtain encrypted data;

[0129] The sending module 402 is used to send the encrypted data to the node, so that the node can decrypt the encrypted data in the trusted execution environment of the node according to the first private key stored in the node, and perform a risk assessment on the data to be evaluated after decryption to obtain an assessment result.

[0130] Result module 404 is used to receive the evaluation results sent by the node.

[0131] Optionally, the determining module 400 is specifically used to receive the first public key of the node sent by the scheduler; and to encrypt the data to be evaluated based on the first public key.

[0132] Optionally, the determining module 400 is specifically used to encrypt the data to be evaluated and the second public key of the evaluation requester based on the first public key of the node to obtain encrypted data;

[0133] The result module 404 is specifically used to receive the encrypted evaluation result sent by the node, wherein the encrypted evaluation result is obtained by the node encrypting the evaluation result using the second public key; and to decrypt the encrypted evaluation result according to the second private key stored by the evaluation requester to obtain the evaluation result.

[0134] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described... Figure 1 The data risk assessment method shown.

[0135] This instruction manual also provides Figure 6 The diagram shows a schematic structural representation of the electronic device. Figure 6 At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for the business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to achieve the above-mentioned functions. Figure 1 The data risk assessment method shown.

[0136] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0137] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0138] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, ASICs, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0139] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0140] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0141] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0143] 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 function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0144] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0145] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0146] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0147] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0148] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0149] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0150] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0151] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0152] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.

Claims

1. A method for data risk assessment, the method being applied to nodes, the method comprising: Upon receiving a remote proof request from the scheduler, a proof report and a first public key are sent to the scheduler, so that the scheduler, based on the proof report, determines that the node has a trusted execution environment, uses the first public key to encrypt the pre-trained prediction model and sends it to the node. In a trusted execution environment, the encrypted prediction model is decrypted based on the first private key stored in the node to obtain and save the prediction model; Upon receiving a remote proof request from the evaluation requester, the system returns a proof report and the node's first public key to the evaluation requester, enabling the evaluation requester to encrypt the data to be evaluated using the first public key, based on the proof report and the determination that the node has a trusted execution environment, to obtain encrypted data; and then receives the encrypted data sent by the evaluation requester. The encrypted data is decrypted in the trusted execution environment of the node based on the first private key stored in the node. In the trusted execution environment, the decrypted data to be evaluated is input into the prediction model to extract the data features to be evaluated. The data features are compared with the blacklist features stored by the node to perform risk assessment and obtain the assessment result. When the data features are consistent with the blacklist features stored by the node, the data to be evaluated is determined to be risky data. The evaluation result is encrypted using the second public key of the evaluation requester, and the encrypted evaluation result is sent to the evaluation requester.

2. The method of claim 1, wherein the encrypted data further includes an evaluation strategy; When the data features to be evaluated are inconsistent with the blacklist features stored by the node, the method further includes: Based on the assessment strategy, a risk assessment is performed on the data to be assessed.

3. The method as described in claim 2, wherein risk assessment is performed on the data to be assessed according to the assessment strategy, specifically including: Obtain the blacklist features stored on other nodes; Based on the obtained blacklist features, the features of the data to be evaluated, and the evaluation strategy, a risk assessment is performed on the data to be evaluated.

4. The method as described in claim 3, wherein risk assessment is performed on the data to be assessed based on the acquired blacklist features, the features of the data to be assessed, and the assessment strategy, specifically including: Determine the similarity between the data features to be evaluated and the obtained blacklist features; Determine whether the similarity is greater than a threshold included in the evaluation strategy. If so, determine that the data to be evaluated is risky data; otherwise, determine that the data to be evaluated is not risky data.

5. The method of claim 1, further comprising, after determining that the data to be evaluated is risk data: The data features to be evaluated are sent to other nodes so that the other nodes store the received data features to be evaluated as blacklist features.

6. The method of claim 1, wherein the encrypted data further includes the second public key; The evaluation result is encrypted using the second public key of the evaluation requester, specifically including: Based on the first private key, the encrypted data is decrypted in the trusted execution environment of the node to obtain the second public key, and the evaluation result is encrypted using the second public key.

7. A method for data risk assessment, said method being applied to an assessment requester, said method comprising: Send a remote proof request to the node; Receive the proof report returned by the node and the first public key of the node. If it is determined from the proof report that the node has a trusted execution environment, use the first public key to encrypt the data to be evaluated to obtain encrypted data. The encrypted data is sent to the node, so that the node decrypts the encrypted data in its trusted execution environment using a first private key stored in the node. The decrypted data to be evaluated is then input into a pre-stored prediction model to extract the data features to be evaluated. The data features are compared with blacklist features stored in the node to perform risk assessment and obtain an assessment result. When the data features match the blacklist features stored in the node, the data to be evaluated is determined to be risky data. After receiving a remote proof request from the scheduler, the node sends a proof report and a first public key to the scheduler. This allows the scheduler, based on the proof report and determining that the node has a trusted execution environment, to encrypt the prediction model using the first public key and send it to the node. In the trusted execution environment, the encrypted prediction model is decrypted using the first private key stored in the node to obtain and save the prediction model. The node then receives the assessment result sent by the node.

8. The method as described in claim 7, wherein the data to be evaluated is encrypted according to the first public key of the node, specifically including: The first public key of the node sent by the scheduler; The data to be evaluated is encrypted using the first public key.

9. The method as described in claim 7, wherein the data to be evaluated is encrypted according to the first public key of the node to obtain encrypted data, specifically includes: Based on the node's first public key, the data to be evaluated and the evaluation requester's second public key are encrypted to obtain encrypted data; Receiving the evaluation results sent by the node specifically includes: The node receives an encrypted evaluation result, wherein the encrypted evaluation result is obtained by the node encrypting the evaluation result using the second public key; The encrypted evaluation result is decrypted using the second private key stored by the evaluation requester to obtain the evaluation result.

10. An apparatus for data risk assessment, the apparatus being applied to a node, the apparatus comprising: The first receiving module is configured to send a proof report and a first public key to the scheduler after receiving a remote proof request from the scheduler, so that the scheduler, based on the proof report, determines that the node has a trusted execution environment, encrypts the pre-trained prediction model using the first public key and sends it to the node; in the trusted execution environment, the encrypted prediction model is decrypted according to the first private key stored in the node to obtain and save the prediction model; The second receiving module is configured to, upon receiving a remote proof request sent by the evaluation requester, return a proof report and the first public key of the node to the evaluation requester, so that the evaluation requester, based on the proof report and determining that the node has a trusted execution environment, can use the first public key to encrypt the data to be evaluated to obtain encrypted data; and receive the encrypted data sent by the evaluation requester. The decryption module is used to decrypt the encrypted data in the trusted execution environment of the node based on the first private key stored in the node. An evaluation module is used in the trusted execution environment to input the decrypted data to be evaluated into the prediction model to extract the data features to be evaluated, compare the data features with the blacklist features stored by the node to perform risk assessment, and obtain the evaluation result; wherein, when the data features are consistent with the blacklist features stored by the node, the data to be evaluated is determined to be risky data. An encryption module is used to encrypt the evaluation result using the second public key of the evaluation requester, and then send the encrypted evaluation result to the evaluation requester.

11. An apparatus for data risk assessment, the apparatus being used by an assessment requester, the apparatus comprising: The determination module is used to send a remote proof request to the node; Receive the proof report returned by the node and the first public key of the node. If it is determined from the proof report that the node has a trusted execution environment, use the first public key to encrypt the data to be evaluated to obtain encrypted data. A sending module is configured to send the encrypted data to the node, so that the node, using a first private key stored in the node, decrypts the encrypted data in its trusted execution environment, inputs the decrypted data to be evaluated into a pre-stored prediction model to extract the data features to be evaluated, compares the data features with blacklist features stored in the node for risk assessment, and obtains an assessment result; wherein, when the data features match the blacklist features stored in the node, the data to be evaluated is determined to be risky data. After receiving a remote proof request from the scheduler, the node sends a proof report and a first public key to the scheduler, so that the scheduler, based on the proof report and determining that the node has a trusted execution environment, encrypts the prediction model using the first public key and sends it to the node; in the trusted execution environment, the encrypted prediction model is decrypted using the first private key stored in the node to obtain and save the prediction model; The results module is used to receive the evaluation results sent by the node.

12. A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 9.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • User risk assessment method, device and system based on multi-party security computing

    CN111160814A

  • Risk data sharing method and system, trusted unit and server

    CN115422588A