Data security storage and sharing method for cross-network distributed platform

Through the combination of SM9 ciphertext policy attribute-based encryption and data access policy, the problem of large overhead and low security of data security storage and sharing in cross-network distributed platforms is solved, and the secure transmission and refined access of cross-network data is realized Control simplifies the review process and reduces resource consumption.

CN118945180APending Publication Date: 2024-11-12NO 30 INST OF CHINA ELECTRONIC TECH GRP CORP
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411173626.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the data security storage and sharing of cross-network distributed platforms, there are problems such as artificial error, extensive data management and control, large resource consumption and cross-network plain text insecurity. Especially in physically isolated networks, two sets of encryption algorithms are required. This leads to large resource expenses and difficulty in regulatory review.

Method used

The SM9 ciphertext policy attribute-based encryption is adopted, and the authoritative organization serves as the key generation center. The data is encrypted and decrypted through the same set of passwords. The data access policy is used as the basis for review to ensure that cross-network data remains ciphertext when transmitted and is necessary. decryption and use data access policies for refined access control.

Benefits of technology

It realizes unified management of storage and sharing security, reduces resource consumption, improves data security, avoids the dependence of human censorship, simplifies the process of cross-network data sharing, and ensures secure data transmission and refined access control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945180A_ABST
    Figure CN118945180A_ABST
Patent Text Reader

Abstract

The invention discloses a data security storage and sharing method for a cross-network distributed platform. SM9 ciphertext policy attribute-based encryption is selected as an encryption mode for data storage and sharing. The method mainly comprises the steps of authority SM9 initialization, intranet micro-service data storage request, intranet and extranet authority data synchronization, decryption key generation and ciphertext decryption. Storage security and sharing security use the same set of password, cross-network data is transmitted by adopting a ciphertext, and a data access strategy of the cross-network data participates in encryption and is also used as a review basis. The problems that two encryption mechanisms are high in resource overhead, cross-network plaintexts are not safe, authoritative institutions need to invest a large amount of manpower for review, and cross-network encrypted data sharing, supervision and review are difficult are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data security of a cross-network distributed platform, and in particular, relates to a data security storage and sharing method of a cross-network distributed platform. Background Art

[0002] For secure data storage and sharing across distributed platforms, there are currently many effective methods if the network is only logically isolated, but there are mainly two methods for physically isolated networks:

[0003] 1) Manual review and manual ferrying methods have problems such as human errors and extensive data control, which can easily lead to important data leakage.

[0004] 2) Two sets of encryption algorithms are used for intranet storage and cross-network synchronization. This method requires decrypting the storage encryption algorithm first and then encrypting the cross-network sharing encryption algorithm when synchronizing data across networks, which consumes a lot of time and physical resources. Summary of the invention

[0005] The purpose of the present invention is to overcome the problems of the prior art and disclose a method for secure data storage and sharing on a cross-network distributed platform. The method uses the same set of passwords for storage security and sharing security, adopts ciphertext transmission for cross-network data, and uses the data access strategy of cross-network data, that is, participation in encryption, as a basis for review. This solves the problems of large resource overhead of the two encryption mechanisms, insecurity of cross-network plaintext, the need for authoritative agencies to invest a lot of manpower in review, and difficulty in regulatory review of cross-network encrypted data sharing.

[0006] The object of the present invention is achieved through the following technical solutions:

[0007] A data security storage and sharing method for a cross-network distributed platform, wherein the network environment of the cross-network distributed platform is an intranet and an extranet that are separated by physical domains in the vertical direction, and is divided into an application layer, a platform layer, and a data layer in the horizontal direction; the data security storage and sharing method comprises:

[0008] The authority SM9 initialization step, the authority acts as the key generation center KGC, first initializes the SM9Setup() algorithm, takes the security parameter λ as input, and outputs the system public parameter PP and the master key MSK. PP is released to the outside through the internal and external network authorities, and MSK is only synchronized between the internal and external network authorities;

[0009] Intranet microservice data storage request step, when the business microservice has a data storage request, first determine whether it is cross-network data. If so, the cross-network data is processed accordingly according to the data access strategy, and a disposal strategy identifier is generated after processing, which is processed by symmetric encryption and recorded as M ID ; Call the encryption algorithm Encrypt() to perform MID The SM9 ciphertext policy attribute-based encryption is used to output the ciphertext CT. The message to be synchronized is composed of the secret state disposal policy tag and the ciphertext combination CT||M ID ; If not, perform data storage operations on the data and data access policies, encrypt them with the SM9 ciphertext policy attribute base, and finally store them in ciphertext for subsequent use;

[0010] Data synchronization steps of internal and external network authorities, CT||M ID After being sent to the intranet authority, the intranet authority decrypts M with the symmetric key. ID Check whether the data access policy disposal identifier meets the cross-network disposal requirements. If not, end the process. If it meets the requirements, synchronize the ciphertext CT to the external network authority through the data transmission interface and the trusted exchange area. The external network authority then sends it to the external network-based synchronization service and then stores it.

[0011] Decryption key generation step: When the external network business microservice initiates a request to obtain cross-network data, the external network authority calls the key generation algorithm KeyGen() to generate a user private key for the user and outputs the user private key USKu;

[0012] In the ciphertext decryption step, the attribute set Su of the business microservice is matched with the access structure in the ciphertext CT. If the match is successful, the decryption algorithm Decrypt() is called. Decrypt(PP, CT, Su, USK) takes the system public parameters PP, ciphertext CT, data user attribute set Su and data set user USK as input, and outputs the decryption result M of the ciphertext CT. At this point, the decryption is completed and the plaintext is returned to the external network business microservice.

[0013] According to a preferred implementation, in the intranet microservice data storage request step, corresponding processing of cross-network data includes malicious file detection, data desensitization, and manual approval.

[0014] According to a preferred implementation, in the intranet microservice data storage request step, the encryption process of SM9 ciphertext policy attribute-based encryption takes the message to be encrypted M, the system public parameter PP, and the access structure as input, and outputs the ciphertext CT.

[0015] According to a preferred embodiment, in the decryption key generation step, the process of generating a user private key includes: the key generation algorithm KeyGen() uses the attribute set Su, the system public parameter PP, and the system master private key MSK in the external network business microservice request as input, and outputs the user private key USKu.

[0016] According to a preferred embodiment, the application layer includes business microservices, which rely on the lower layer to provide business processing logic;

[0017] The platform layer provides unified basic services for the upper layer, including data synchronization services, data storage services, data encryption and decryption services, trusted exchange services, etc.

[0018] The data layer provides storage of confidential data for upper-layer data storage services.

[0019] According to a preferred implementation, the data access policy is defined by the data owner, and must participate in the encryption of the SM9 ciphertext policy attribute set and also serve as a basis for authoritative agencies to synchronously take security measures across networks.

[0020] According to a preferred embodiment, the data access policy is stored in the database together with the data as a data attribute in the intranet, and is embedded in the ciphertext during cross-network transmission, thereby achieving refined access control.

[0021] According to a preferred embodiment, the data access strategy is an access structure tree, which is composed of a root node, a non-leaf node, and a leaf node;

[0022] The root node serves as the secret key of the final source data, which can be obtained by the visitor if he meets the minimum threshold;

[0023] Non-leaf nodes are also called threshold nodes. When the visitor meets the threshold, the secret value of this node is solved;

[0024] The leaf nodes are the attributes and attribute values ​​set by the data owner, as well as the secret values ​​passed from the parent node.

[0025] According to a preferred embodiment, after receiving intranet cross-network data and data access policy, the data is processed according to the data access policy tree policy, and a processing mark is generated. The processing mark is encrypted during transmission to prevent tampering.

[0026] According to a preferred implementation, the leaf nodes of the data access policy tree have several NAND logics, so a disposal identifier with a corresponding number of bits is generated. When all the disposal identifiers are 1, it means that the data synchronization service has made corresponding disposal. When the authoritative agency receives the ciphertext and the corresponding policy disposal identifier, it checks whether the disposal identifier complies with the cross-network export policy requirements. If it complies, the data is synchronized, otherwise it ends.

[0027] The aforementioned main scheme of the present invention and its further options can be freely combined to form multiple schemes, all of which are schemes that can be adopted and claimed for protection by the present invention. After understanding the scheme of the present invention, those skilled in the art can understand that there are multiple combinations based on the prior art and common knowledge, all of which are technical schemes to be protected by the present invention, and they are not exhaustively listed here.

[0028] Beneficial effects of the present invention:

[0029] The data security storage and sharing method of the cross-network distributed platform of the present invention adopts SM9 ciphertext policy attribute-based encryption for encryption. KGC is performed by an authoritative agency, which can not only perform encryption initialization work, but also serve as a review agency to check the policy identification of cross-network data. When the business microservice has a cross-network data request, the data and the corresponding data access policy are sent to the data synchronization service. The data synchronization service performs corresponding processing according to the data access policy and generates a processing identification, and the processed data is encrypted with the SM9 ciphertext policy attribute set. When the authoritative agency receives the ciphertext data and the policy processing identification, it will be reviewed, and synchronization will be performed immediately if it meets the review.

[0030] The present invention realizes storage security and shared security using the same set of passwords to ensure security; the problem that cross-network transmission must be decrypted into plain text for re-inspection; the data access policy of cross-network data, namely participating in SM9 ciphertext policy attribute-based encryption, also serves as a basis for review by authoritative organizations. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is an architecture diagram of the cross-network distributed platform of the present invention;

[0032] Figure 2 It is a schematic diagram of the flow of the data security storage and sharing method of the present invention;

[0033] Figure 3 is an access control tree example;

[0034] Figure 4 Is the policy disposition identifier. DETAILED DESCRIPTION

[0035] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0036] Example 1

[0037] The present invention discloses a data security storage and sharing method for a cross-network distributed platform, and its architecture diagram is as follows: Figure 1As shown. Vertically, the network environment is an intranet and an extranet that are isolated across physical domains. There are differences in the data users and data knowledge scope of the two networks. Horizontally, it is divided into the application layer, platform layer, and data layer. The application layer is mainly business microservices, relying on the lower layer to provide business processing logic; the platform layer mainly provides unified basic services for the upper layer, mainly including data synchronization services, data storage services, data encryption and decryption services, trusted exchange services, etc.; the data layer mainly provides storage of confidential data for the upper layer data storage services.

[0038] The data security storage and sharing method of the present invention uses SM9 ciphertext policy attribute-based encryption as the encryption method for data storage and sharing.

[0039] Attribute-based encryption can provide data confidentiality protection and fine-grained access control for information systems. It is a public key encryption technology that associates users and ciphertexts with policies and attribute sets respectively. SM9 attribute-based encryption mainly includes key policy attribute set encryption and ciphertext policy attribute set encryption. In the key policy attribute set encryption (KP-ABE) system, the ciphertext is associated with a set of descriptive attributes, and the user's private key is associated with an access policy structure. The ciphertext can only be decrypted when the attribute set in the ciphertext satisfies the access policy in the user's private key. Ciphertext policy attribute set encryption (CP-ABE) is the opposite of KP-ABE. It assigns attribute sets to users and generates corresponding private keys. The access policy structure is associated with the ciphertext. The user can only decrypt when the user attribute base satisfies the access policy in the ciphertext.

[0040] The main steps of the method of the present invention are: initialization of the authority SM9, storage request of intranet microservice data, synchronization of intranet and intranet authority data, generation of decryption key, and decryption of ciphertext. Figure 2 shown.

[0041] The specific steps are as follows:

[0042] The authority acts as the key generation center (KGC) and first initializes the SM9 Setup() algorithm. It takes the security parameter λ as input and outputs the system public parameter PP (including the master public key MPK) and the master key MSK. PP is released to the outside through the internal and external network authorities, and MSK is only synchronized between the internal and external network authorities. The formal language is:

[0043] Setup(λ)→(PP,MSK) Formula 1-1

[0044] When a business microservice has a data storage request, it first determines whether it is cross-network data. If so, it performs corresponding operations on the cross-network data according to the data access strategy, including malicious file detection, data desensitization, manual approval, etc. After completion, a disposal strategy identifier ID is generated, which is processed by symmetric encryption and recorded as M IDFinally, the data synchronization service calls the data encryption and decryption service encryption algorithm Encrypt() to perform SM9 ciphertext policy attribute-based encryption on it. The encryption process takes the message to be encrypted M, the system public parameter PP, and the access structure (generated by the access policy) as input, and outputs the ciphertext CT. Its formal language is as shown in Formula 1-2. The message to be synchronized is composed of the secret state disposal policy tag and the ciphertext combination CT||M ID If not, data storage operations are performed on the data and data access policies. The data storage service uses the data encryption and decryption service to perform SM9 ciphertext policy attribute-based encryption on the data. The encryption process is the same as above, and the data is finally stored in ciphertext for subsequent use.

[0045] Encrypt(M,PP,Tx)→CT formula 1-2

[0046] Basic platform synchronization service will CT||M ID After being sent to the intranet authority, the intranet authority decrypts M with the symmetric key. ID Check whether the access policy disposal identifier meets the cross-network disposal requirements. If not, end the process. If it meets the requirements, synchronize the ciphertext CT to the external network authority through the data sending interface through the trusted exchange area. The external network authority then sends it to the external network-based synchronization service and then stores it.

[0047] When the external network business microservice initiates a request to obtain cross-network data, the external network authority calls the key generation algorithm KeyGen() to generate a user private key for the user. The attribute set Su, system public parameters PP, and system master private key MSK in the request are used as input, and the user private key USKu is output. Its formal language is:

[0048] KeyGen(Su,PP,MSK)→USKu formula 1-3

[0049] The external network basic platform synchronization service matches the attribute set Su of the business microservice with the access structure in the ciphertext CT. If the match is successful, the decryption algorithm Decrypt() is called. Decrypt(PP, CT, Su, USK) takes the system public parameter PP, ciphertext CT, data user attribute set Su and data set user USK as input, and outputs the decryption result M of the ciphertext CT. Its formal language is formula 1-4. At this point, the decryption is completed and the plain text is returned to the external network business microservice.

[0050] Decrypt(PP,CT,Su,USK)→M′ formula 1-4

[0051] In the invention, the access policy is defined by the data owner himself, which not only needs to participate in the encryption of the SM9 ciphertext policy attribute set, but also needs to serve as the basis for the authority to take security measures synchronously across the network. In the intranet, the access policy is stored in the database together with the data as a data attribute, and it is embedded in the ciphertext during cross-network transmission, so that refined access control can be achieved.

[0052] The access strategy selected by the present invention is a small access structure tree, which, as the name implies, is composed of a root node, a non-leaf node, and a leaf node. The root node is the secret key of the final source data, and the visitor must meet the minimum threshold to obtain it. The non-leaf node is also called a threshold node, and the visitor can only solve the secret value of this node if the threshold of the threshold is met. The leaf node is the attribute and attribute value set by the data owner, as well as the secret value passed by the parent node.

[0053] The following is an example to illustrate: Figure 3 As shown. Data accessors can decrypt the source data encrypted by this access tree. The attributes that data accessors need to meet are: ("destination network 1" or "destination network 2" or "destination network 3") and "mass-free" and "manual approval" and "source network".

[0054] The access control tree is generated by the data provider when applying for data storage and stored in the database as a data attribute. When the data synchronization service receives the intranet cross-network data and access policy (access control tree), it processes the data according to the access policy tree policy and generates a processing mark. The processing mark is encrypted during transmission to prevent tampering. Figure 3 The access control tree corresponding to the disposal identifier is as follows Figure 4 As shown, the access policy tree child node has four AND-NOT logics, so a four-bit disposal flag is generated. When the disposal flags are all 1, it means that the data synchronization service has taken corresponding actions. When the authority receives the ciphertext and the corresponding policy disposal flag, it checks whether the disposal flag meets the cross-network export policy requirements. If it meets the requirements, the data is synchronized, otherwise it ends.

[0055] The data security storage and sharing method of the cross-network distributed platform of the present invention adopts SM9 ciphertext policy attribute-based encryption for encryption. KGC is performed by an authoritative agency, which can not only perform encryption initialization work, but also serve as a review agency to check the policy identification of cross-network data. When the business microservice has a cross-network data request, the data and the corresponding data access policy are sent to the data synchronization service. The data synchronization service performs corresponding processing according to the data access policy and generates a processing identification, and the processed data is encrypted with the SM9 ciphertext policy attribute set. When the authoritative agency receives the ciphertext data and the policy processing identification, it will be reviewed, and synchronization will be performed immediately if it meets the review.

[0056] 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A data security storage and sharing method for a cross-network distributed platform, wherein the network environment of the cross-network distributed platform is an intranet and an extranet separated by physical domains in the vertical direction, and is divided into an application layer, a platform layer and a data layer in the horizontal direction; characterized in that: The data security storage and sharing method comprises: The authority SM9 initialization step, the authority acts as the key generation center KGC, first initializes the SM9Setup() algorithm, takes the security parameter λ as input, and outputs the system public parameter PP and the master key MSK. PP is released to the outside through the internal and external network authorities, and MSK is only synchronized between the internal and external network authorities; Intranet microservice data storage request step, when the business microservice has a data storage request, first determine whether it is cross-network data. If so, the cross-network data is processed accordingly according to the data access strategy, and a disposal strategy identifier is generated after processing, which is processed by symmetric encryption and recorded as M ID , call the encryption algorithm Encrypt() to perform M ID The SM9 ciphertext policy attribute-based encryption is used to output the ciphertext CT. The message to be synchronized is composed of the secret state disposal policy tag and the ciphertext combination CT||M ID ; If not, perform data storage operations on the data and data access policies, encrypt them with the SM9 ciphertext policy attribute base, and finally store them in ciphertext for subsequent use; Data synchronization steps of internal and external network authorities, CT||M ID After being sent to the intranet authority, the intranet authority decrypts M with the symmetric key. ID Check whether the data access policy disposal identifier meets the cross-network disposal requirements. If not, end the process. If it meets the requirements, synchronize the ciphertext CT to the external network authority through the data transmission interface and the trusted exchange area. The external network authority then sends it to the external network-based synchronization service and then stores it. Decryption key generation step: When the external network business microservice initiates a request to obtain cross-network data, the external network authority calls the key generation algorithm KeyGen() to generate a user private key for the user and outputs the user private key USKu; In the ciphertext decryption step, the attribute set Su of the business microservice is matched with the access structure in the ciphertext CT. If the match is successful, the decryption algorithm Decrypt() is called. Decrypt(PP, CT, Su, USK) takes the system public parameters PP, ciphertext CT, data user attribute set Su and data set user USK as input, and outputs the decryption result M of the ciphertext CT. At this point, the decryption is completed and the plaintext is returned to the external network business microservice.

2. The data security storage and sharing method according to claim 1, characterized in that: In the intranet microservice data storage request step, corresponding processing of cross-network data includes malicious file detection, data desensitization, and manual approval.

3. The data security storage and sharing method according to claim 1, characterized in that: In the intranet microservice data storage request step, the encryption process of SM9 ciphertext policy attribute-based encryption takes the message to be encrypted M, the system public parameter PP, and the access structure as input, and outputs the ciphertext CT.

4. The data security storage and sharing method according to claim 1, characterized in that: In the decryption key generation step, the process of generating a user private key includes: the key generation algorithm KeyGen() uses the attribute set Su, the system public parameter PP, and the system master private key MSK in the external network business microservice request as input, and outputs the user private key USKu.

5. The data security storage and sharing method according to claim 1, characterized in that: The application layer includes business microservices, which rely on the lower layer to provide business processing logic; The platform layer provides unified basic services for the upper layer, including data synchronization services, data storage services, data encryption and decryption services, trusted exchange services, etc. The data layer provides storage of confidential data for upper-layer data storage services.

6. The data security storage and sharing method according to claim 1, characterized in that: The data access policy is defined by the data owner, and must participate in the encryption of the SM9 ciphertext policy attribute set and serve as the basis for authoritative agencies to take security measures synchronously across networks.

7. The data security storage and sharing method according to claim 6, characterized in that: The data access policy is stored in the database together with the data as a data attribute in the intranet, and is embedded in the ciphertext during cross-network transmission, thereby achieving refined access control.

8. The data security storage and sharing method according to claim 7, characterized in that: The data access strategy is an access structure tree, which is composed of a root node, non-leaf nodes, and leaf nodes; The root node serves as the secret key of the final source data, which can be obtained by the visitor if he meets the minimum threshold; Non-leaf nodes are also called threshold nodes. When the visitor meets the threshold, the secret value of this node is solved; The leaf nodes are the attributes and attribute values ​​set by the data owner, as well as the secret values ​​passed from the parent node.

9. The data security storage and sharing method according to claim 8, characterized in that: After receiving intranet cross-network data and data access policies, the data is processed according to the data access policy tree policy, and a processing identifier is generated. The processing identifier is kept confidential during transmission to prevent tampering.

10. The data security storage and sharing method according to claim 9, characterized in that: The leaf nodes of the data access strategy tree have several AND-NON logics, so a processing flag with a corresponding number of bits is generated. When all processing flags are 1, it means that the data synchronization service has made a corresponding processing; When the authority receives the ciphertext and the corresponding policy disposal identifier, it checks whether the disposal identifier meets the cross-network export policy requirements. If it meets the requirements, the data is synchronized, otherwise the process ends.

Citation Information

Cited By

  • Cross-network transmission method, device and equipment for target data

    CN121567398A

  • A method, apparatus and device for cross-network transmission of target data

    CN121567398B