Safe and efficient fine-grained data analysis method for power distribution network
By introducing a security architecture based on a trusted execution environment into the distribution network data analysis system, the confidentiality and integrity issues in distribution network data transmission and analysis are solved, the security of data sharing and analysis results is achieved, and the distribution network is ensured. Efficient and secure analysis of power grid data.
Patent Information
- Application Number
- CN202410951142.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing distribution network data analysis system fails to effectively consider the confidentiality, integrity and fine-grained access control of distribution network data, resulting in data leakage and usage rights control problems, making it difficult to achieve data sharing and efficient security analysis.
Adopting a security architecture based on the Trusted Execution Environment (TEE), encryption keys are generated and distributed through the key distribution center, and smart distribution network equipment and edge servers encrypt and digitally sign data to ensure the integrity of the data during transmission. and confidentiality, and aggregate verification is performed in the cloud server. Users perform analysis based on authorized requests to ensure the confidentiality and integrity of the analysis results.
It achieves confidentiality and integrity guarantees during the transmission and aggregation process of distribution network data, supports data sharing among multiple data holders, and conducts fine-grained analysis within a trusted execution environment to ensure the accuracy and security of analysis results. sex.
Smart Images

Figure CN118797744A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis, and in particular to a safe and efficient fine-grained data analysis method for a distribution network. Background Art
[0002] With the ultra-high-speed development of the Internet of Things, it involves various fields such as electricity, medical care, transportation, and finance. The underlying distribution network smart devices generate massive amounts of asset data every day. These power-sensitive asset data are uploaded to the cloud server in real time for storage. However, the distribution network data generated by the distribution network smart devices involve the privacy of the country, government, and related units. If intercepted or tampered by malicious adversaries, it will cause unimaginable economic losses and losses to people's livelihood. However, the aggregated distribution network data has extremely high decision-making value and research value of the power Internet of Things. Due to the wide distribution area and huge number of distribution network smart devices, the traditional cloud computing environment can no longer meet its efficient and secure statistical analysis needs. For the security and fine-grained analysis problems of the above-mentioned distribution network data outsourcing, the previous solutions are no longer the best solutions. Therefore, it is crucial to design and solve the data security and computing efficiency problems in the distribution network data outsourcing storage and computing process in the trusted execution environment and the Internet of Things scenario.
[0003] In the Chinese patent "CN202310632407.5-A distribution network power system power supply efficiency analysis system and analysis method", the main focus is on the data collection system, data analysis system, data management system and mobile client. This invention focuses on the collection, analysis and management of voltage data, and does not consider the confidentiality and integrity of sensitive voltage data itself, nor does it adopt an authorized access mechanism for voltage data.
[0004] In the Chinese patent "CN202011278644.9-A distribution network data fusion and diagnostic analysis method and its detection system", the distribution network mainly distributes the acquired electric energy to various users to complete the transmission of distribution data; the current consumption generated at the output end of the distribution network is detected to obtain the impedance parameters of the distribution network and the user. The diagnosis and analysis of distribution network problems are supported by establishing a business table. This invention focuses on the distribution of electric energy and the calculation of impedance parameters to construct a diagnostic analysis and evaluation system for distribution network data. However, this patent does not take into account the confidentiality of the distribution network data and the integrity of the distribution network data during transmission, and does not perform fine-grained security control on the distribution network data.
[0005] In the Chinese patent "CN202010787350.2-A distribution network fault identification method based on intelligent data fusion analysis", sensors are mainly used to obtain multiple electrical characteristics of the collection nodes and perform fault identification. At the same time, the present invention sequentially performs regional differential processing, expansion and dimensionality reduction on the acquired electrical characteristics, and determines the outliers based on the LOF algorithm to predict whether the fault occurs. If a fault occurs, the fault location is determined, and then the three-phase voltage at the fault location is calculated by wavelet singular entropy value. The calculation results are input into the SVM fault identification model to obtain the distribution network fault phase identification results, without complex setting calculations, and with high speed. This invention focuses on identifying the electrical characteristics of the node, processing, expanding and reducing the dimensionality of the node, and making fault judgments based on the calculation results. However, the confidentiality and security of the distribution network data itself, as well as the access control of the distribution network data, are also not taken into account.
[0006] In the Chinese patent "CN202110556057.X-A method and system for constructing a load heat map and data analysis of distribution network equipment", the obtained load data of the distribution network equipment is preprocessed to form a stable and reliable data set that meets the requirements of heat map construction, and then a heat map is constructed based on the data set to analyze the data of the distribution network equipment, quickly identify abnormal load data of the distribution equipment, efficiently and automatically complete the construction of the heat map, and accurately display the weak points of the power grid operation. However, the confidentiality and integrity of the distribution network data transmission process and the fine-grained access control of the distribution network data are also not taken into account.
[0007] In summary, there are three key issues that need to be addressed:
[0008] First, in the current distribution network data analysis system, the security issues such as confidentiality and integrity of distribution network data and the fine-grained access control of distribution network data are not considered. However, since the National Internet Emergency Center (CNCERT / CC) often publishes a series of privacy data leakage incidents, even trusted third-party data management centers are also subject to malicious intrusion attacks and information leakage. In addition, even if the trusted third-party data management center does not directly leak the private data itself, it is difficult to ensure that users use the privacy data of the data owner in a standardized manner.
[0009] The legal provisions require that the data security of the data party be ensured, and the data holder must also release some of the control and use rights of the private data. However, due to technical and other factors, the above implementation is not ideal in real applications. Therefore, the data holder generally formulates a dedicated privacy policy to regulate the user's use. Since the access strategy formulated by each data holder is different, it is difficult to achieve data sharing among multiple data holders.
[0010] In the existing distribution network data analysis system, most methods do not consider the confidentiality and integrity of distribution network data, nor do they consider the IoT scenario, especially the IoT scenario based on the TEE trusted execution environment. Therefore, a secure and efficient fine-grained distribution network data analysis system architecture based on a trusted execution environment is needed, which can coexist with the data protection access mechanism to analyze the confidentiality, integrity and controllability of sensitive data in the distribution network. Therefore, a secure and efficient fine-grained data analysis method for distribution networks is needed. Summary of the invention
[0011] The purpose of the present invention is to provide a safe and efficient fine-grained data analysis method for a distribution network.
[0012] To achieve the above object, the present invention is implemented according to the following technical solutions:
[0013] The present invention includes intelligent distribution network equipment, edge servers, cloud servers, users and a key distribution center;
[0014] The cloud server and the user have a trusted execution environment. The user and the cloud server perform remote authentication of the trusted execution environment to generate a secure channel for transmitting keys.
[0015] The key distribution center calculates encryption keys and signature keys for all entities and distributes them to each entity;
[0016] The smart distribution network equipment encrypts data to generate distribution network ciphertext data, digitally signs the ciphertext data, and uploads it to the corresponding edge server;
[0017] The edge server aggregates and verifies whether the ciphertext data has been intercepted, tampered with, or deleted during transmission. After verification, it aggregates the ciphertext data of all distribution network devices and digitally signs the aggregated ciphertext and uploads it to the cloud server.
[0018] The cloud server aggregates and verifies all edge-level signatures. After the aggregate verification is passed, it stores all edge-level distribution network data ciphertexts and waits for analysis requests. This includes the following steps:
[0019] A cloud server and the user perform remote authentication under TEE to establish a secure channel. The key distribution center generates a key by executing an initialization algorithm, makes the public key parameters public, and distributes the corresponding private key to smart distribution network devices, edge servers, users, and cloud servers.
[0020] The smart distribution network device described in B uses the public key parameters to encrypt the distribution network data of the smart distribution network device to obtain a ciphertext, uses the private key to digitally sign the ciphertext to obtain a first signature, and sends the verifiable information with the first signature to the edge server;
[0021] C. The edge server receives the verifiable information and performs aggregate verification using the verifiable information. If the verification is successful, the distribution network ciphertext data is aggregated to generate an aggregated ciphertext, and the aggregated ciphertext is signed to obtain a second signature, and the edge-level verifiable information with the second signature is sent to the cloud service.
[0022] The cloud server described in D receives the edge-level verifiable information and uses the edge-level verifiable information to perform aggregate verification. If the verification is successful, it waits for the user's analysis request;
[0023] E. The user generates authorization request information and sends it to the edge server. The edge server responds to the request and generates an authorization key, encrypts it and sends it to the user;
[0024] F The user receives the authorization key and aggregates the authorization key to generate an analysis request key, then uses the analysis request key to encrypt the analysis request to generate a ciphertext analysis request, and sends the verifiable information of the request to the cloud server;
[0025] The cloud server receives the ciphertext analysis request, verifies and decrypts the ciphertext analysis request under TEE to obtain the analysis result, encrypts the analysis result under TEE to obtain the ciphertext analysis result, digitally signs the ciphertext analysis result to obtain a third signature, and then sends the verifiable result information with the third signature to the user;
[0026] The user described in H receives the verifiable result information and performs verification. If the verification is successful, the ciphertext analysis result is decrypted to obtain the analysis result of the analysis request.
[0027] Furthermore, the initialization algorithm described in step A specifically includes:
[0028] 1) The key distribution center generates a unique identity for the entity, id i represents the identity of the i-th edge server, represents the identity of the jth data owner under the i-th ES, idCS represents the identity of the cloud server, and idt represents the identity of the t-th user, 1≤i≤n,1≤j≤m,1≤t≤β;
[0029] 2) Read the security parameter λ preset by the key distribution center, select four large prime numbers p0, p1, p2, p3, and a large integer cyclic group whose generation order is N=p0p1p2p3, and construct a bilinear map, and calculate the public parameter and Set private keys S1 = p1p2p3 and S2 = p0p2p3, and set public key parameters pk1 = {u1,u2,u3,e,N,g}; pk1 is the first public key;
[0030] 3) Generate another bilinear map e1: G×G→G1 according to the security parameter λ, and the order of the cyclic groups G and G1 is q, where q>2λ, g1 and g2 are the generators of the cyclic groups G and G1 respectively;
[0031] The key distribution center selects another random number As the master key for signing and calculating public parameters Random number W = e1(H1(idt), y) and random number Wi = e1(H1(idi), y), and set two hash functions H1: {0, 1} * →G1 and H2: {0,1} * →G1; the key distribution center then generates signature private keys sk for smart distribution network equipment, edge servers, users, and cloud servers respectively CS =H1(id CS ) δ ,sk t =H1(id t ) δ ,sk i =H1(id i ) δ and
[0032] Set public key pk2 = {G, G1, g1, g2, H1, H2, e1, y, q, W, Wi}; pk2 is the second public key, where G is a cryptographic cyclic group, G1 is another cyclic group, g1 is the generator of cyclic group G, g2 is the generator of cyclic group G1, H1 is a hash function, H2 is another hash function, e1 is a two-line mapping from G to G1, y is a public parameter calculated by generator g1 and private key δ, q is the order of cyclic groups G and G1, W is the tth random number used to encrypt the ciphertext analysis result, and Wi is the random number used by each edge server for encryption;
[0033] The key distribution center randomly selects a generator v from the cyclic group G and randomly selects n random numbers At the same time, a corresponding index label labeli is generated for each edge server ES and the authorization set U = {1,…,n} is set. In addition, an anti-collision hash function H: {0,1} is set. * →G,
[0034] Set public key pk3 = {G, v, H, q, U}; pk3 is the third public key, where G is a cyclic group, v is another generator of the cyclic group G, H is a hash function that distinguishes H1 from H2, q is the order of the cyclic group G, and U is the authorized set of edge servers;
[0035] 5) The key distribution center publishes the first public key pk1, the second public key pk2 and the third public key pk3 respectively, and sends {skt,S1,S2,idt}, {ski,α i ,idi}, {skCS,idCS} and Sent to the corresponding smart distribution network equipment, edge servers and users respectively.
[0036] Furthermore, in step B 1) each smart distribution network device randomly selects a random number About the message Encrypted ciphertext
[0037] 2) Each smart distribution network device randomly selects a random number Utilizing private keys Ciphertext Digitally sign and get the signature That Represents the timestamp of each IDNEi,j;
[0038] 3) Each smart distribution network device uploads verifiable information
[0039] Further, in step C, 1) the edge server ESi randomly selects a random number Then batch verify all signatures uploaded by the IDNE using the following formula:
[0040]
[0041] Each edge server ESi uses ciphertext Each signature and timestamp of each smart distribution grid device and identity To aggregate and judge the ciphertext of all smart distribution network devices under the edge server During the transmission process, if the surface distribution network data is verified to be not tampered with during the transmission process, otherwise the result is rejected and a new request is required;
[0042] After verification, the edge server will upload the encrypted data to the smart distribution network equipment under its jurisdiction. Perform the following aggregation
[0043]
[0044] The edge server uses the secret text of each smart distribution network device Aggregate into an edge-level ciphertext C i
[0045] At the same time, the edge server randomly selects a random number And calculate Generating ciphertext data tags Then sign the aggregated ciphertext data and the ciphertext data label respectively to get the signature and
[0046] 3) Each edge server ESi sends edge verifiable information Give cloud server CS.
[0047] Further, in step D, the cloud server CS receives the edge verifiable information ζ sent by all edge servers ESi i ; TEE in the cloud server randomly selects a random number The following batch verification is performed on the ciphertext data of n different edge servers:
[0048]
[0049] Represents the edge-level ciphertext C used by the cloud server CS i Each signature and the timestamp t of each ESi i and each identity id i To aggregate and determine the edge-level ciphertext C of all edge servers ESi under the edge server CS i integrity during transmission;
[0050] If the verification fails, it proves that the ciphertext data uploaded by at least one edge server has been tampered with, and all edge servers ESi are required to resend; when the verification passes, the ciphertext data tags of n different edge servers are continued to perform batch verification as follows:
[0051]
[0052] Indicates the cloud server uses data ciphertext data label ct i =θ i +α i ·H(label i ) The timestamp t of each ESi i , each edge-level ciphertext C i , each edge server ESi calculates the random number used to sign the tag And each edge server ESi identity id i To aggregate and judge the ciphertext data label ct i =θ i +α i·H(label i ) integrity during transmission;
[0053] If the verification fails, it proves that the ciphertext data label uploaded by at least one edge server has been tampered with, and all edge servers ESi are required to resend.
[0054] Furthermore, in step E 1) the user generates a request set according to his own analysis requirements Random Selection For any I in the set I i Encryption and signing are performed to obtain CI i and Then Sent to the corresponding ESi, where Tt represents the timestamp of the t-th DU;
[0055]
[0056] CI i Represents any request I in set I i The ciphertext of
[0057] Ciphertext CI i The signature is expressed as
[0058]
[0059] 2) Edge Server Pair conduct If the verification is successful, CI i Decrypt and get I i =CI i,2 / e(sk i ,CI i,1 ), the edge server calculates the authorization key Then send it to DUt in the same way;
[0060] 3) The user then verifies and decrypts the authorization key AKi in the same way as above, and then calculates the aggregate authorization key
[0061] Further, in step F 1) the user randomly selects The analysis request Q is encrypted using the aggregate authorization key to obtain the encrypted analysis request CQ = AKH (Q || Method) and the signature σ Q =(σ Q,1 ,σ Q,2 )=(g γ ,sk t ·H2(C Q ||t Q ) υ), where tQ represents the user's timestamp, Method represents the data analysis method and verifiable information ζ is requested. Q ={C Q ,σ Q ,t Q ,id t}Sent to the TEE of the cloud server CS.
[0062] Further, in step G 1) the TEE of the cloud server CS receives the requested verifiable information Q To verify the formula:
[0063] e1(g1,σ Q,2 )=e1(y,H1(id t ))e1(σ Q,1 ,H2(C Q ||t Q ))
[0064] The signature σ of the encrypted analysis request CQ=AKH(Q||Method) used by the TEE of the cloud server CS Q =(σ Q,1 ,σ Q,2 )=(g γ ,sk t ·H2(C Q ||t Q ) υ ) and the timestamp tQ of DUt verify the integrity of the encrypted analysis request CQ=AKH(Q||Method);
[0065] 2) Verify again Get the ciphertext corresponding to the analysis request Q and the analysis method Method;
[0066] 3) The cloud server performs the following aggregation operations on the ciphertext corresponding to the analysis request Q under TEE:
[0067]
[0068] The cloud-level ciphertext C represents the cloud server CS aggregating all corresponding ciphertexts C according to the analysis request Q. Q polymerization;
[0069] 4) The TEE of the cloud server CS then uses S1 and S2 to decrypt and obtain the statistical sum R1 of the distribution network data and the sum of squares R2 of the distribution network data, and then calculates the result value R of data analysis such as variance, expectation or mean based on R1 and R2;
[0070]
[0071] Decrypting the cloud-level ciphertext C to obtain the statistics and R1 of the distribution network data
[0072]
[0073] Decrypting the cloud-level ciphertext C to obtain the square sum R2 of the distribution network data
[0074] 5) TEE randomly selects a random number Encrypt the result R to get the ciphertext Then sign the ciphertext result to get σ R =(σ R,1 ,σ R,2 )=(g1 ε ,sk CS ·H2(c R,1 ||c R,2 ||t R ) ε );
[0075] 6) Finally, TEE sends the analysis results to verify the information R ={C R ,σ R ,t R ,id CS}To user DUt.
[0076] Further, in step H 1) the user receives the analysis result and verifies the information R ={C R ,σ R ,t R ,id CS}, and perform the following verification:
[0077] e1(g,σ R,2 )=e1(y,H1(id CS ))e1(σ R,1 ,H2(c R,1 ||c R,2 ||t R ))
[0078] Denotes that DUt uses the ciphertext result to sign σ R =(σ R,1 ,σ R,2 )=(g1 ε ,sk CS ·H2(c R,1 ||c R,2 ||t R ) ε ) The ciphertext result value of data analysis such as variance, expectation or mean Verify the integrity of the transmission process;
[0079] 2) If the verification is successful, the user decrypts the ciphertext analysis results to obtain the analysis results
[0080] The beneficial effects of the present invention are:
[0081] The present invention is a safe and efficient fine-grained data analysis method for distribution networks. Compared with the prior art, the present invention has the following technical effects:
[0082] The present invention proposes a safe and efficient fine-grained distribution network data analysis system based on TEE, which not only realizes data sharing among multiple data holders, but also ensures confidentiality and integrity during the transmission and aggregation of distribution network data. In addition, users can perform corresponding fine-grained distribution network data analysis in TEE according to their own preferences, ensuring the confidentiality, integrity and correctness of the analysis results. At the same time, it can support a variety of analysis methods such as variance, expectation, covariance, etc., and can safely and efficiently complete the analysis operation of distribution network data. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 This is an analysis system architecture diagram of a safe and efficient fine-grained data analysis method for a distribution network according to the present invention;
[0084] Figure 2 The present invention is a workflow diagram of a safe and efficient fine-grained data analysis method for a distribution network. DETAILED DESCRIPTION
[0085] The present invention is further described below by means of specific embodiments. The illustrative embodiments and descriptions of the present invention are used to explain the present invention but are not intended to limit the present invention.
[0086] like Figure 1 As shown, the architecture of this system includes initialization, uploading ciphertext data and signature, edge aggregation verification and signature, cloud aggregation verification and signature, request authorization, data analysis, and user verification and decryption processes.
[0087] This system involves five entities, namely, smart distribution network equipment, edge servers, cloud servers, users, and key distribution centers. The cloud server and the user are required to have a trusted execution environment (TEE). First, the user and the cloud server perform remote authentication of the trusted execution environment to generate a secure channel for transmitting keys. Secondly, the key distribution center calculates encryption keys and signature keys for all entities and assigns them to each entity; the smart distribution network equipment encrypts data to generate distribution network ciphertext data and digitally signs the ciphertext data, and uploads it to the edge server in its jurisdiction; then, the edge server aggregates and verifies whether the ciphertext data has been intercepted, tampered with, or deleted during the transmission process, and then aggregates the ciphertext data of all distribution network devices after the verification is passed, digitally signs the aggregated ciphertext and uploads it to the cloud server; the cloud server aggregates and verifies all edge-level signatures, and after the aggregation verification is passed, stores all edge-level distribution network data ciphertexts and waits for analysis requests; then, use The user sends an authorization request to the corresponding edge server based on the analysis request. The corresponding edge server responds and sends the encrypted authorization key to the user. The user aggregates all the authorization keys requested, and then uses the aggregated authorization key to encrypt the analysis request and send it to the TEE of the cloud server. The TEE receives the analysis request and performs data analysis operations to obtain the analysis results of the corresponding analysis method. The TEE encrypts the analysis results and digitally signs the ciphertext results, and then sends the ciphertext results and signatures to the user through a secure channel. The user receives the ciphertext results and signatures, and verifies the signatures. After verification, the ciphertext results are decrypted to obtain the desired analysis results. The detailed flow chart is as follows: Figure 2 shown.
[0088] KDC generates public and private keys, and distributes the private keys to the corresponding entities through a secure channel; each IDNEi,j uses a random number and private key to encrypt and sign the data, and the edge server ESi batch verifies all signatures to ensure that the data has not been tampered with during transmission. ESi aggregates the ciphertext data of all IDNEi,j into edge-level ciphertext and signs it; CS receives edge verifiable information and performs batch verification to ensure the integrity of the data. DUt generates a request set, encrypts and signs the requests in the set, and then sends it to ESi. ESi verifies the integrity of the request, calculates the authorization key, and sends it to DUt; DUt encrypts the analysis request and sends it to TEE. TEE verifies the integrity of the request and performs aggregation operations; TEE calculates the data analysis results, encrypts the results and signs them, and then sends them to DUt. DUt receives the results and verifies the integrity of the transmission process.
[0089] The steps of the present invention are as follows:
[0090] Step 0: The cloud server and the user perform TEE remote authentication to establish a secure channel;
[0091] Step 1: The key distribution center KDC generates a key by executing an initialization algorithm, makes the public key parameters public, and distributes the corresponding private key to the smart distribution network device IDNEi,j, edge server ESi, user DUt and cloud server CS in the system;
[0092] Step 2: The smart distribution network device IDNEi,j uses the public key parameters to Encrypt to get ciphertext Using private key right Digitally sign and get the signature And send verifiable information To the edge server ESi;
[0093] Step 3: The edge server ESi described in the system receives all verifiable information And use Perform aggregation verification. If the verification passes, aggregate all the distribution network ciphertext data Generate an aggregate ciphertext Ci and sign it to get σ i , and sends edge-level verifiable information ζ i To cloud service CS;
[0094] Step 4: The cloud server CS receives all edge-level verifiable information ζ i , and use i Perform aggregation verification. If the verification passes, wait for the analysis request from the user DUt;
[0095] Step 5: The user DUt generates corresponding authorization request information AUQ according to its own needs, and sends it to the corresponding edge server ESi. The corresponding edge server responds to the request and generates an authorization key AKi at the same time, which is encrypted and sent to the user DUt;
[0096] Step 6: The user DUt receives all authorization keys AKi and aggregates them to generate an analysis request key AQ, then uses the analysis request key AQ to encrypt the analysis request Q to generate a ciphertext analysis request CQ, and sends the requested verifiable information ζ Q Give CS to the cloud server;
[0097] Step G: The cloud server CS receives the ciphertext analysis request CQ, TEE verifies and decrypts CQ, and then performs corresponding data analysis according to the request to obtain the analysis result R. TEE encrypts the analysis result R to obtain the ciphertext analysis result CR, and digitally signs the ciphertext analysis result to obtain the signature σ R , and then the verifiable result information ζ R Send to user DUt;
[0098] Step 8: The user DUt receives the verifiable result information R , and verify it. If the verification passes, the ciphertext analysis result CR is decrypted to obtain the analysis result R of the analysis request.
[0099] 2. The initialization algorithm specifically includes:
[0100] 1) The key distribution center generates a unique identity for the entity, id i represents the identity of the i-th edge server, represents the identity of the jth data owner under the i-th ES, idCS represents the identity of the cloud server, and idt represents the identity of the t-th user, 1≤i≤n,1≤j≤m,1≤t≤β;
[0101] 2) Read the security parameter λ preset by the key distribution center, select four large prime numbers p0, p1, p2, p3, and a large integer cyclic group whose generation order is N=p0p1p2p3, and construct a bilinear map, and calculate the public parameter and Set private keys S1=p1p2p3 and S2=p0p2p3.
[0102] 3) Generate another bilinear map e1: G×G→G1 based on the security parameter λ, and the order of the cyclic groups G and G1 is q, where q>2λ, and g1 and g2 are the generators of the cyclic groups G and G1 respectively. KDC then selects a random number As the master key for signing and calculating public parameters Random number W = e1(H1(idt), y) and random number Wi = e1(H1(idi), y). Set two hash functions H1: {0, 1} * →G1 and H2: {0,1} * →G1. KDC then generates signature private keys sk for CS, DU, ES, and IDNE respectively CS =H1(id CS ) δ ,sk t =H1(id t ) δ ,sk i =H1(id i ) δ and
[0103] Set public key pk2 = {G, G1, g1, g2, H1, H2, e1, y, q, W, Wi}; pk2 is the second public key, where G is a cryptographic cyclic group, G1 is another cyclic group, g1 is the generator of cyclic group G, g2 is the generator of cyclic group G1, H1 is a hash function, H2 is another hash function, e1 is a two-line mapping from G to G1, y is a public parameter calculated by generator g1 and private key δ, q is the order of cyclic groups G and G1, W is the tth random number used to encrypt the ciphertext analysis result, and Wi is the random number used by each edge server for encryption;
[0104] The key distribution center randomly selects a generator v from the cyclic group G and randomly selects n random numbers At the same time, a corresponding index label labeli is generated for each edge server ES and the authorization set U = {1,…,n} is set. In addition, an anti-collision hash function H:{0,1}*→G is set.
[0105] Set the public key pk3 = {G, v, H, q, U}; pk3 is the third public key, where G is a cyclic group, v is another generator of the cyclic group G, H is a hash function that distinguishes H1 and H2, q is the order of the cyclic group G, and U is the authorized set of edge servers.
[0106] 5) The key distribution center publishes the first public key pk1, the second public key pk2 and the third public key pk3 respectively, and sends {skt,S1,S2,idt}, {ski,α i ,idi}, {skCS,idCS} and They are sent to the corresponding DU, ES, CS and IDNE respectively. In particular, DU shares {S1, S2} to the TEE of CS through a secure channel.
[0107] In this implementation example, 1) each IDNEi,j randomly selects a random number About the message Encrypted ciphertext
[0108] 2) Each IDNEi,j randomly selects a random number Utilizing private keys Ciphertext Digitally sign and get the signature That Represents the timestamp of each IDNEi,j;
[0109] 3) Each IDNEi,j uploads verifiable information
[0110] In this implementation example, 1) the edge server ESi randomly selects a random number Then batch verify all signatures uploaded by the IDNE using the following formula:
[0111]
[0112] This formula is the ciphertext used by each edge server ESi Each signature and the timestamp of each IDNEi,j and identity To aggregate and judge the ciphertext of all smart distribution network devices under the edge server ESi During the transmission
[0113] If the data of the surface distribution network is verified to be not tampered with during the transmission process, otherwise the result will be rejected and a new request will be required;
[0114] After verification, the ESi will upload the encrypted data of all IDNEi,j within its jurisdiction. Perform the following aggregation
[0115]
[0116] This formula represents that each edge server ESi uses the ciphertext of each smart distribution network device IDNEi,j Aggregate into an edge-level ciphertext C i
[0117] At the same time, ESi randomly selects a random number And calculate In generating the ciphertext data label ct i =θ i +α i ·H(label i ), 1≤i≤n, and then sign the aggregated ciphertext data and the data ciphertext data label respectively to obtain the signature and
[0118] 3) Each edge server ESi sends edge verifiable information Give cloud server CS.
[0119] In this embodiment, the cloud server CS receives the edge verifiable information ζ sent by all edge servers ESi. i . TEE randomly selects random numbers in CS The following batch verification is performed on the ciphertext data of n different edge servers:
[0120]
[0121] This formula represents the edge-level ciphertext C used by the cloud server CS i Each signature and the timestamp t of each ESi i and each identity id i To aggregate and determine the edge-level ciphertext C of all edge servers ESi under the edge server CS i Integrity during transmission.
[0122] If the verification fails, it proves that the ciphertext data uploaded by at least one edge server has been tampered with, and all edge servers ESi are required to resend; after the verification passes, TEE continues to perform batch verification on the ciphertext data tags of n different edge servers as follows:
[0123]
[0124] This formula represents the cloud server CS using data ciphertext data label ct i =θ i +α i ·H(label i ) The timestamp t of each ESi i , each edge-level ciphertext C i , each edge server ESi calculates the random number used to sign the tag And each edge server ESi identity id i To aggregate and judge the ciphertext data label ct i =θ i +α i ·H(label i ) integrity during transmission.
[0125] If the verification fails, it proves that the ciphertext data label uploaded by at least one edge server has been tampered with, and all edge servers ESi are required to resend.
[0126] 1) DUt generates a request set based on its own analysis needs Random Selection For any I in the set I i Encryption and signing are performed to obtain CI i and Then Sent to the corresponding ESi, where Tt represents the timestamp of the t-th DU;
[0127] Represents any request I in set I i The ciphertext CI i
[0128] Represents the ciphertext CI i Signature
[0129] 2) ESi conduct (Indicates that ESi uses the ciphertext CI i If the signature is verified, the CI i Decrypt and get I i =CI i,2 / e(sk i ,CI i,1 ),ESi calculates the authorization key Then send it to DUt in the same way;
[0130] 3) DUt then verifies and decrypts the authorization key AKi in the same way as above, and then calculates the aggregate authorization key
[0131] 1) DUt random selection The analysis request Q is encrypted using the aggregate authorization key to obtain the encrypted analysis request CQ = AKH (Q || Method) and the signature σ Q =(σ Q,1 ,σ Q,2 )=(g γ ,sk t ·H2(C Q ||t Q ) υ ), where tQ represents the timestamp of DUt, Method represents the data analysis method, such as variance, mean and expectation, and the verifiable information ζ Q ={C Q ,σ Q, t Q, id t}Sent to TEE.
[0132] In this implementation example, 1) the TEE of the cloud server CS receives the requested verifiable information Q , and verify it:
[0133] e1(g1,σ Q,2 )=e1(y,H1(id t ))e1(σ Q,1 ,H2(C Q ||t Q ))
[0134] This formula represents the signature σ of the encrypted analysis request CQ=AKH(Q||Method) used by the TEE of the cloud server CS Q =(σ Q,1 ,σ Q,2 )=(g γ ,sk t ·H2(C Q ||t Q ) υ ) and the timestamp tQ of DUt verify the integrity of the encrypted analysis request CQ=AKH(Q||Method).
[0135] 2) Verify again Get the ciphertext CQ and analysis method Method corresponding to the analysis request Q;
[0136] 3) TEE performs the following aggregation operations on CQ:
[0137]
[0138] This formula means that the cloud server CS aggregates all corresponding ciphertexts C according to the analysis request Q. Q Aggregate into a cloud-level ciphertext C
[0139] 4) TEE then uses S1 and S2 to decrypt and obtain the statistical sum R1 of the distribution network data and the sum of squares R2 of the distribution network data, and then calculates the result value R of data analysis such as variance, expectation or mean based on R1 and R2;
[0140]
[0141] This formula represents the decryption of the cloud-level ciphertext C to obtain the statistical sum R1 of the distribution network data.
[0142]
[0143] This formula represents the sum of squares R2 of the distribution network data obtained by decrypting the cloud-level ciphertext C.
[0144] 5) TEE randomly selects a random number Encrypt the result R to get the ciphertext Then sign the ciphertext result to get σ R =(σ R,1 ,σ R,2 )=(g1 ε ,sk CS ·H2(c R,1 ||c R,2 ||t R ) ε );
[0145] 6) Finally, TEE sends the analysis results to verify the information R ={C R ,σ R ,t R ,id CS}To user DUt.
[0146] In this embodiment, 1) DUt receives the analysis result and verifies the information R ={C R ,σ R ,t R ,id CS}, and perform the following verification:
[0147] e1(g,σ R,2 )=e1(y,H1(id CS ))e1(σ R,1 ,H2(c R,1 ||c R,2 ||t R ))
[0148] This formula indicates that DUt uses the ciphertext result to sign σ R =(σ R,1 ,σ R,2 )=(g1 ε ,sk CS ·H2(c R,1 ||c R,2 ||t R ) ε ) The ciphertext result value of data analysis such as variance, expectation or mean Verify the integrity of the transfer process.
[0149] 2) If the verification is successful, DU decrypts the ciphertext analysis result to obtain the analysis result R =
[0150]
[0151] Among them: KDC (Key Distribution Center): Key Distribution Center, responsible for generating and managing keys; ES (Edge Server): Edge Server, responsible for processing computing tasks close to the data source; IDNE (Intelligent Distribution Network Equipment): Intelligent distribution network equipment; CS (Cloud Server): Cloud Server, responsible for processing large-scale computing tasks; DU (Data User): data user; 6.p0, p1, p2, p3: four large prime numbers used to generate the order of the cyclic group; N: the order of the large integer cyclic group, equal to p0*p1*p2*p3; .g: the generator of cyclic group 1; 9.e: bilinear mapping function, mapping two elements to another cyclic group; .S1, S2: private key, composed of the product of prime numbers; pk1: the first public key, containing multiple parameters, used for encryption and verification; e1: the second bilinear mapping function; q: the order of the cyclic groups G and G1; g1, g2: the generators of the cyclic groups G and G1 respectively; H1, H2: two hash functions; y: public parameters calculated by the generator and private key; W, Wi: random numbers used for encryption; v: another generator of the cyclic group G; labeli: the index label of the edge server; U: the authorized set, containing the index of the edge server; H: collision-resistant hash function;
[0152] The combination of cloud servers and edge servers based on the Trusted Execution Environment (TEE) happens to be able to solve the problem of safe and efficient fine-grained statistical analysis operations of sensitive data in the distribution network during transmission, storage and aggregation. Therefore, digital signature technology is needed to ensure the integrity of the data transmission process, and access control is used to achieve fine-grained analysis of distribution network data. Finally, the distribution network data analysis process in TEE ensures the correctness of the calculation results. Trusted Execution Environment (TEE) is a secure computing environment that provides a trusted security environment to ensure the security and privacy of sensitive data and code. TEE is usually composed of hardware and software, and can run on top of a normal operating system, providing a secure operating environment so that malware cannot obtain or tamper with the data and code in the TEE.
[0153] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A safe and efficient fine-grained data analysis method for distribution networks, It is characterized in that Including smart distribution network equipment, edge servers, cloud servers, users and key distribution centers; The cloud server and the user have a trusted execution environment. The user and the cloud server perform remote authentication of the trusted execution environment to generate a secure channel for transmitting keys. The key distribution center calculates encryption keys and signature keys for all entities and distributes them to each entity; The smart distribution network equipment encrypts data to generate distribution network ciphertext data, digitally signs the ciphertext data, and uploads it to the corresponding edge server; The edge server aggregates and verifies whether the ciphertext data has been intercepted, tampered with, or deleted during transmission. After verification, it aggregates the ciphertext data of all distribution network devices and digitally signs the aggregated ciphertext and uploads it to the cloud server. The cloud server aggregates and verifies all edge-level signatures. After the aggregate verification is passed, it stores all edge-level distribution network data ciphertexts and waits for analysis requests. This includes the following steps: A cloud server and the user perform remote authentication under TEE to establish a secure channel. The key distribution center generates a key by executing an initialization algorithm, makes the public key parameters public, and distributes the corresponding private key to smart distribution network devices, edge servers, users, and cloud servers. The smart distribution network device described in B uses the public key parameters to encrypt the distribution network data of the smart distribution network device to obtain a ciphertext, uses the private key to digitally sign the ciphertext to obtain a first signature, and sends the verifiable information with the first signature to the edge server; C. The edge server receives the verifiable information and performs aggregate verification using the verifiable information. If the verification is successful, the distribution network ciphertext data is aggregated to generate an aggregated ciphertext, and the aggregated ciphertext is signed to obtain a second signature, and the edge-level verifiable information with the second signature is sent to the cloud service. The cloud server described in D receives the edge-level verifiable information and uses the edge-level verifiable information to perform aggregate verification. If the verification is successful, it waits for the user's analysis request; E. The user generates authorization request information and sends it to the edge server. The edge server responds to the request and generates an authorization key, encrypts it and sends it to the user; F The user receives the authorization key and aggregates the authorization key to generate an analysis request key, then uses the analysis request key to encrypt the analysis request to generate a ciphertext analysis request, and sends the verifiable information of the request to the cloud server; The cloud server receives the ciphertext analysis request, verifies and decrypts the ciphertext analysis request under TEE to obtain the analysis result, encrypts the analysis result under TEE to obtain the ciphertext analysis result, digitally signs the ciphertext analysis result to obtain a third signature, and then sends the verifiable result information with the third signature to the user; The user described in H receives the verifiable result information and performs verification. If the verification is successful, the ciphertext analysis result is decrypted to obtain the analysis result of the analysis request.
2. According to claim 1, a safe and efficient fine-grained data analysis method for distribution network, It is characterized in that The initialization algorithm described in step A specifically includes: 1) The key distribution center generates a unique identity for the entity, id i Represents the identity of the i-th edge server, id ij represents the identity of the jth data owner under the i-th ES, idCS represents the identity of the cloud server, and idt represents the identity of the t-th user, 1≤i≤n,1≤j≤m,1≤t≤β; 2) Read the security parameter λ preset by the key distribution center, select four large prime numbers p0, p1, p2, p3, and a large integer cyclic group whose generation order is N=p0p1p2p3, and construct a bilinear map, and calculate the public parameter and Set private keys S1 = p1p2p3 and S2 = p0p2p3, and set public key parameters pk1 = {u1,u2,u3,e,N,g}; pk1 is the first public key; 3) Generate another bilinear map e1: G×G→G1 according to the security parameter λ, and the order of the cyclic groups G and G1 is q, where q>2λ, g1 and g2 are the generators of the cyclic groups G and G1 respectively; The key distribution center selects another random number As the master key for signing and calculating public parameters Random number W = e1(H1(idt), y) and random number Wi = e1(H1(idi), y), and set two hash functions H 1 :{0,1} * →G 1 and H 2 :{0,1} * →G 1 The key distribution center then generates signature private keys sk for smart distribution network equipment, edge servers, users, and cloud servers respectively. CS =H 1 (id CS ) δ ,sk t =H 1 (id t ) δ ,sk i =H 1 (id i ) δ and Set public key pk2 = {G, G1, g1, g2, H1, H2, e1, y, q, W, Wi}; pk2 is the second public key, where G is a cryptographic cyclic group, G1 is another cyclic group, g1 is the generator of cyclic group G, g2 is the generator of cyclic group G1, H1 is a hash function, H2 is another hash function, e1 is a two-line mapping from G to G1, y is a public parameter calculated by generator g1 and private key δ, q is the order of cyclic groups G and G1, W is the tth random number used to encrypt the ciphertext analysis result, and Wi is the random number used by each edge server for encryption; The key distribution center randomly selects a generator v from the cyclic group G and randomly selects n random numbers At the same time, a corresponding index label labeli is generated for each edge server ES and the authorization set U = {1,…,n} is set. In addition, an anti-collision hash function H: {0,1} is set. * →G, Set public key pk3 = {G, v, H, q, U}; pk3 is the third public key, where G is a cyclic group, v is another generator of the cyclic group G, H is a hash function that distinguishes H1 from H2, q is the order of the cyclic group G, and U is the authorized set of edge servers; 5) The key distribution center publishes the first public key pk1, the second public key pk2 and the third public key pk3 respectively, and sends {skt,S1,S2,idt}, {ski,α i ,idi}, {skCS,idCS} and Sent to the corresponding smart distribution network equipment, edge servers and users respectively.
3. According to the method for safe and efficient fine-grained data analysis of a distribution network as described in claim 1, It is characterized in that In step B 1) each smart distribution network device randomly selects a random number About the message Encrypted ciphertext 2) Each smart distribution network device randomly selects a random number Utilizing private keys Ciphertext Digitally sign and get the signature That Represents the timestamp of each IDNEi,j; 3) Each smart distribution network device uploads verifiable information 4. A safe and efficient fine-grained data analysis method for distribution network according to claim 1, It is characterized in that In step C, 1) the edge server ESi randomly selects a random number Then batch verify all signatures uploaded by the IDNE using the following formula: Each edge server ESi uses ciphertext Each signature and timestamp of each smart distribution grid device and identity To aggregate and judge the ciphertext of all smart distribution network devices under the edge server During the transmission process, if the surface distribution network data is verified to be not tampered with during the transmission process, otherwise the result is rejected and a new request is required; After verification, the edge server will upload the encrypted data to the smart distribution network equipment under its jurisdiction. Perform the following aggregation The edge server uses the secret text of each smart distribution network device Aggregate into an edge-level ciphertext C i At the same time, the edge server randomly selects a random number And calculate In generating the ciphertext data label ct i =θ i +α i ·H(label i ), 1≤i≤n, and then sign the aggregated ciphertext data and the data ciphertext data label respectively to obtain the signature and 3) Each edge server ESi sends edge verifiable information Give cloud server CS.
5. A safe and efficient fine-grained data analysis method for distribution network according to claim 1, It is characterized in that In step D, the cloud server CS receives the edge verifiable information ζ sent by all edge servers ESi i ; TEE in the cloud server randomly selects a random number The following batch verification is performed on the ciphertext data of n different edge servers: Represents the edge-level ciphertext C used by the cloud server CS i Each signature and the timestamp t of each ESi i and each identity id i To aggregate and determine the edge-level ciphertext C of all edge servers ESi under the edge server CS i integrity during transmission; If the verification fails, it proves that the ciphertext data uploaded by at least one edge server has been tampered with, and all edge servers ESi are required to resend; when the verification passes, the ciphertext data tags of n different edge servers are continued to perform batch verification as follows: Indicates the cloud server uses data ciphertext data label ct i =θ i +α i ·H(label i ) The timestamp t of each ESi i , each edge-level ciphertext C i , each edge server ESi calculates the random number used to sign the tag And each edge server ESi identity id i To aggregate and judge the ciphertext data label ct i =θ i +α i ·H(label i ) integrity during transmission; If the verification fails, it proves that the ciphertext data label uploaded by at least one edge server has been tampered with, and all edge servers ESi are required to resend.
6. A safe and efficient fine-grained data analysis method for distribution network according to claim 1, It is characterized in that In step E 1) the user generates a request set based on his / her own analysis needs Random Selection For any I in the set I i Encryption and signing are performed to obtain CI i and Then Sent to the corresponding ESi, where Tt represents the timestamp of the t-th DU; CI i Represents any request I in set I i The ciphertext of Ciphertext CI i The signature is expressed as 2) Edge Server Pair conduct If the verification is successful, CI i Decrypt and get I i =CI i,2 / e(sk i ,CI i,1 ), the edge server calculates the authorization key Then send it to DUt in the same way; 3) The user then verifies and decrypts the authorization key AKi in the same way as above, and then calculates the aggregate authorization key 7. A safe and efficient fine-grained data analysis method for distribution network according to claim 1, It is characterized in that In step F 1) the user randomly selects And use the aggregate authorization key to encrypt the analysis request Q, and obtain the encrypted analysis request CQ = AKH (Q || Method) and the signature Where tQ represents the user's timestamp, Method represents the data analysis method and verifiable information requested is ζ Q ={C Q ,σ Q ,t Q ,id t }Sent to the TEE of the cloud server CS.
8. A safe and efficient fine-grained data analysis method for distribution network according to claim 1, It is characterized in that In step G 1) the TEE of the cloud server CS receives the requested verifiable information Q To verify the formula: and 1 (g 1 ,σ Q,2 )}e 1 (y,H 1 (id t ))e 1 (σ Q,1 ,H 2 (C Q ||t Q )) The signature σ of the encrypted analysis request CQ=AKH(Q||Method) used by the TEE of the cloud server CS Q =(σ Q,1 ,σ Q,2 )=(g γ ,sk t ·H 2 (C Q ||t Q ) υ ) and the timestamp tQ of DUt verify the integrity of the encrypted analysis request CQ=AKH(Q||Method); 2) Verify again Get the ciphertext corresponding to the analysis request Q and the analysis method Method; 3) The cloud server performs the following aggregation operations on the ciphertext corresponding to the analysis request Q under TEE: The cloud-level ciphertext C represents the cloud server CS aggregating all corresponding ciphertexts C according to the analysis request Q. Q polymerization; 4) The TEE of the cloud server CS then uses S1 and S2 to decrypt and obtain the statistical sum R1 of the distribution network data and the sum of squares R2 of the distribution network data, and then calculates the result value R of data analysis such as variance, expectation or mean based on R1 and R2; Decrypting the cloud-level ciphertext C to obtain the statistics and R1 of the distribution network data Decrypting the cloud-level ciphertext C to obtain the square sum R2 of the distribution network data 5) TEE randomly selects a random number Encrypt the result R to get the ciphertext Then sign the ciphertext result to get σ R =(σ R,1 ,σ R,2 )=(g 1 ε ,sk CS ·H 2 (c R,1 ||c R,2 ||t R ) ε ); 6) Finally, TEE sends the analysis results to verify the information R ={C R ,σ R ,t R ,id CS }To user DUt.
9. A safe and efficient fine-grained data analysis method for distribution network according to claim 1, It is characterized in that In step H, 1) the user receives the analysis result and verifies the information R ={C R ,σ R ,t R ,id CS }, and perform the following verification: and 1 (g,σ R,2 )}e 1 (y,H 1 (id CS ))e 1 (σ R,1 ,H 2 (c R,1 ||c R,2 ||t R )) Denotes that DUt uses the ciphertext result to sign σ R =(σ R,1 ,σ R,2 )=(g 1 ε ,sk CS ·H 2 (c R,1 ||c R,2 ||t R ) ε ) The ciphertext result value of data analysis such as variance, expectation or mean Verify the integrity of the transmission process; 2) If the verification is successful, the user decrypts the ciphertext analysis results to obtain the analysis results
Citation Information
Patent Citations
Power distribution network fault identification method and system based on intelligent data fusion analysis
CN111965486A
Power distribution network data fusion and diagnostic analysis method and detection system thereof
CN112467725A
Method and system for constructing load thermodynamic diagram and data analysis of power distribution network equipment
CN113220748A
Power distribution network power system electric energy power supply efficiency analysis system and analysis method
CN116663924A
Lightweight non-interactive privacy protection data aggregation method
CN112733179A
Cited By
Selective aggregation and authentication method based on multi-type secret state data
CN120546896A
A selective aggregation and authentication method based on multi-type dense state data
CN120546896B
