Data security sharing method and system in attribute encryption and cloud storage environment
By adopting attribute encryption and checker policy verification methods in the cloud storage environment, the problems of user attribute set testing and insufficient access policy verification in traditional solutions are solved, fine-grained access control and data security sharing are achieved, and the risk of data leakage is reduced. and decryption overhead to prevent fake policy attacks and improve the security and flexibility of the system.
Patent Information
- Application Number
- CN202410518057.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-09-27
AI Technical Summary
In the cloud storage environment, the traditional attribute-based encryption scheme based on ciphertext policy is difficult to effectively test the user attribute set, resulting in the decryption of the untested user attribute set, and the access policy cannot be effectively verified after being hidden, which increases the risk of data leakage and decryption overhead. And there is the problem of fake strategy attacks.
A data security sharing method in attribute encryption and cloud storage environment is adopted, including the initialization stage, data encryption storage stage, checker policy verification stage and data decryption stage. Access policy verification is performed by generating system public parameters and checker private key. Ensure that ciphertext is only uploaded and decrypted under compliance conditions, combined with confusion bloom filter testing, to achieve fine-grained access control and secure data sharing.
It achieves fine-grained access control and secure data sharing in a cloud storage environment, reduces the risk of data leakage and decryption overhead, prevents false policy attacks, and improves data security and system flexibility.
Smart Images

Figure CN118713849A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of Internet security technology, and specifically relates to a data security sharing method and system in an attribute encryption and cloud storage environment. Background Art
[0002] With the continuous development of Internet technology, information exchange between different institutions and organizations has gradually increased, and the degree of data sharing has increased day by day. Cloud storage can manage users' data files through Internet clusters, and has functions such as distributed storage and data backup, which has changed the storage mode of users' previous use of local storage.
[0003] However, while solving the data storage and management problems, users also lose the right to manage their data. The security of cloud storage environment is related to the security of a large number of user data privacy, and any carelessness will lead to irreparable consequences. Cryptography is a discipline that can ensure the non-repudiation, confidentiality, and integrity of data, and provides key technologies for cloud storage security. Data encryption can effectively prevent honest and curious cloud storage servers from obtaining plaintext data information, and can also prevent the leakage of plaintext data information. Since the cloud storage service provider does not have the decryption key, the cloud storage server cannot decrypt the ciphertext data even if it obtains it, so it cannot obtain the plaintext data information. User data generally needs to be encrypted before online storage, and the security of plaintext data is guaranteed by encrypted data to reduce the risk of data leakage.
[0004] In the encryption scenario of the traditional public key cryptography system, encrypted data is securely shared in a point-to-point manner, and each encrypted file can only be shared with one user. Assuming that the data owner wants to share data, the data owner will use the user's public key to encrypt the data, and then send the ciphertext to the user. After the user gets the data, he will use the private key to decrypt the ciphertext to restore the original data. When the number of users to share data is large, the data owner not only needs to manage a large number of keys, but also needs to perform a large number of computing operations, which will undoubtedly greatly reduce the flexibility of the cryptographic mechanism. In addition, the reasonable use of access control technology can obviously ensure the security of data resources. Access control technology can limit the user's access scope and access capabilities to ensure that unauthorized users cannot use or access data resources. A solution with both access control and encryption features is Ciphertext-Policy Attribute-Based Encryption (CP-ABE). Ciphertext-Policy-Based Attribute-Based Encryption can represent user identity with a series of attribute sets, while reducing the amount of ciphertext storage and realizing fine-grained access control, bringing a new direction for cloud storage access control.
[0005] The access policy in the data ciphertext may lead to the leakage of data information or sensitive data of the authorized user. Therefore, the access policy is usually hidden to solve the problem of sensitive information leakage in the access policy. However, after the access policy is hidden, the user's attribute set cannot be effectively tested, which will lead to direct decryption without testing the user's attribute set. Therefore, adding an efficient testing phase to solve the overhead problem caused by invalid user attribute sets needs to be solved urgently.
[0006] In addition, after the access policy is hidden, internal spies in the company can change the access policy submitted to the checker, allowing unauthorized users to access and decrypt the ciphertext, resulting in data leakage. In order to prevent data leakage caused by internal spies, a checker is usually set up at the intranet boundary. The data owner first sends the ciphertext and access policy to the checker for verification to determine whether the access policy follows certain rules. However, traditional checkers cannot effectively verify the access policy in the ciphertext. Therefore, it is urgent to add the ability of the checker to verify the access policy in the ciphertext and resist fake policy attacks on the basis of traditional checkers. Summary of the invention
[0007] The technical problem to be solved by the present invention is to address the deficiencies of the above-mentioned prior art and to provide a method and system for data security sharing in an attribute encryption and cloud storage environment, which can provide fine-grained access control and data security sharing.
[0008] The technical solution adopted by the present invention is: a data security sharing method in an attribute encryption and cloud storage environment, the method comprising: an initialization phase, a data encryption storage phase, a checker policy verification phase and a data decryption phase;
[0009] The initialization phase is processed as follows:
[0010] A1: The attribute agency generates system public parameters and system master keys according to the initialization algorithm. The system public parameters are sent to the data owner, and the system master key is stored in the attribute agency.
[0011] A2: Determine the upper limit of the number of checker attributes, and use the checker initialization algorithm to generate the checker public parameters and checker private key based on the system public parameters of A1;
[0012] The data encryption storage stage is processed as follows:
[0013] B1: The data owner uses the system's public parameters and access policies to encrypt the plaintext data, generate a ciphertext file, and generate a symmetric key for the ciphertext file;
[0014] B2: Arrange the checker, generate the verification component through the access policy and the public parameters of the checker, and send the ciphertext embedded in the access policy and the verification component to the checker;
[0015] The checker policy validation phase is processed as follows:
[0016] C1: After receiving the ciphertext and verification component, the checker uses the checker private key to perform computational verification to verify whether the access policy embedded in the ciphertext is compliant; if compliant, the ciphertext passes the verification and the checker uploads the ciphertext to the cloud server for storage; if not compliant, the ciphertext is directly discarded;
[0017] The data decryption stage is processed as follows:
[0018] D1: The user sends a data access request to the cloud server, and the cloud server sends the ciphertext to the user;
[0019] D2: The user provides his own attribute set to the attribute agency. The attribute agency uses the system master key and the attribute set provided by the user to generate the user's private key and send it to the user.
[0020] D3: After receiving the ciphertext and the user's private key, the user performs attribute set testing, data decryption, and data verification in sequence. When the data verification succeeds, the plaintext is directly returned to the user.
[0021] Preferably, during the data encryption storage phase, the data owner encrypts the plaintext data using system public parameters and access policies according to its own attribute set.
[0022] Preferably, in the data decryption stage, when the user private key decrypts the ciphertext, the user attribute set in the user private key is first tested by a confusion Bloom filter through the user attribute set in the ciphertext; after the test passes, the ciphertext is decrypted into plaintext data using the private key; data verification is performed on the plaintext data, and the plaintext is returned after successful verification.
[0023] A data security sharing system in an attribute encryption and cloud storage environment includes a data owner, a data requester, an attribute mechanism, a checker and a cloud server;
[0024] The data owner is used to receive the system public parameters sent by the attribute agency during the initialization phase; encrypt the plaintext data using the public parameters and access policy to generate ciphertext during the data encryption and storage phase, and store the ciphertext in the cloud server;
[0025] The data request end is used to send a user private key acquisition request to the attribute agency to obtain the user private key during the data decryption stage, and send a data access request to the cloud server to obtain the ciphertext, decrypt the ciphertext with the user private key, and obtain the plaintext after the decryption is successful;
[0026] The attribute mechanism is used to generate system public parameters and system master keys in the initialization phase. The system public parameters are sent to the data owner, and the system master key is stored in the attribute mechanism; in the data decryption phase, the user private key is generated according to the attributes provided by the data requesting end and the system master key;
[0027] The checker is used to generate checker public parameters and checker private keys in the initialization phase; generate verification components through access policies and checker public parameters in the data encryption storage phase; and use the checker private key and verification components to verify the compliance of the access policy embedded in the ciphertext in the checker policy verification phase. If it is compliant, the ciphertext passes the verification and the checker uploads the ciphertext to the cloud server for storage; if it is not compliant, the ciphertext is directly discarded.
[0028] The present invention is applicable to one-to-many data sharing in a cloud environment. The data owner only needs to set the access policy to encrypt once, and all users who meet the access policy can decrypt. Based on the policy-hidden CP-ABE scheme (HCP-ABE scheme), while preventing the policy from leaking sensitive information, a HCP-ABE scheme with test-decryption-verification functions and policy verifiability is designed, which solves the problem of wasteful decryption overhead and false policy attack problems commonly found in the HCP-ABE scheme. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a system flow chart of the present invention;
[0030] Figure 2 It is a schematic diagram of the initialization phase of the present invention;
[0031] Figure 3 This is a schematic diagram of the data encryption storage stage of the present invention;
[0032] Figure 4 It is a schematic diagram of the checker strategy verification stage of the present invention;
[0033] Figure 5 It is a schematic diagram of the data decryption stage of the present invention. DETAILED DESCRIPTION
[0034] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0035] Example
[0036] like Figure 1As shown, this embodiment provides a data security sharing method under attribute encryption and cloud storage environment, the method includes an initialization phase, a data encryption storage phase, a checker policy verification phase and a data decryption phase; correspondingly, a data security sharing system under attribute encryption and cloud storage environment is proposed, the system includes a data owner, a data requester, an attribute mechanism, a checker and a cloud server, which cooperate with each other to complete the functions of each phase;
[0037] like Figure 2 As shown, it is the initialization stage;
[0038] Select appropriate security parameters and run the attribute mechanism. The attribute mechanism generates a pair of system public parameters and system master key according to the initialization algorithm, sends the system public parameters to the data owner, and the system master key is stored in the attribute mechanism. For each checker, it is necessary to first determine and enter the upper limit of the corresponding attribute quantity, and then use the checker initialization algorithm to generate the checker public parameters and checker private key according to the system public parameters.
[0039] like Figure 3 As shown, it is the data encryption storage stage;
[0040] If the data owner wants to share sensitive data with some users, he or she must first apply for system public parameters from the initialized attribute organization. Then, the corresponding access policy will be formulated according to the user object that he or she wants to share with. In this way, the data owner can use the system public parameters and access policy to encrypt the plaintext file according to his or her own attribute set and generate a ciphertext file.
[0041] If there is no layout checker, it can be uploaded directly to the cloud server;
[0042] If a checker is deployed, you need to generate a verification component through the access policy and the public parameters of the checker, and send the generated ciphertext file and the verification component to the checker. Only when the checker successfully verifies the access policy in the ciphertext will the ciphertext be uploaded to the cloud server;
[0043] like Figure 4 As shown, it is the checker strategy verification stage;
[0044] After receiving the ciphertext and verification component, the checker uses the checker private key to perform computational verification to verify whether the access policy embedded in the ciphertext is compliant; if compliant, the ciphertext passes the verification and the checker uploads the ciphertext to the cloud server for storage; if not compliant, the ciphertext is directly discarded;
[0045] like Figure 5 As shown, it is the data decryption stage;
[0046] If the user wants to obtain data on the cloud server, he needs to send a data access request to the cloud server. When the access request is approved, the cloud server will send the ciphertext required by the user to the user; at the same time, the user provides his own attribute set to apply for the user private key from the attribute agency. The attribute agency uses the system master key and the attribute set provided by the user to generate the user private key, and sends the user private key to the user; after receiving the ciphertext and the user private key, the user first uses the own attribute set in the ciphertext to perform an obfuscated Bloom filter test on the user attribute set in the user private key; if the test fails, the decryption failure is returned; after the test passes, the ciphertext is decrypted using the private key to obtain the plaintext data; after the decryption is completed, the plaintext data will be verified. If the verification fails, the decryption failure is returned; if the verification succeeds, the plaintext will be directly returned.
[0047] The above description is only a preferred implementation manner of the present invention, but the protection scope of the present invention is not limited thereto, and any modification and replacement based on the technical solution and inventive concept provided by the present invention should be included in the protection scope of the present invention.
Claims
1. A data security sharing method in attribute encryption and cloud storage environment, characterized by: The method comprises: an initialization phase, a data encryption storage phase, a checker policy verification phase and a data decryption phase; The initialization phase is processed as follows: A1: The attribute agency generates system public parameters and system master keys according to the initialization algorithm. The system public parameters are sent to the data owner, and the system master key is stored in the attribute agency. A2: Determine the upper limit of the number of checker attributes, and use the checker initialization algorithm to generate the checker public parameters and checker private key based on the system public parameters of A1; The data encryption storage stage is processed as follows: B1: The data owner uses the system's public parameters and access policies to encrypt the plaintext data, generate a ciphertext file, and generate a symmetric key for the ciphertext file; B2: deploy the checker, generate the verification component through the access policy and the public parameters and ciphertext file of the checker, and send the ciphertext and verification component embedded in the access policy to the checker; The checker policy validation phase is processed as follows: C1: After receiving the ciphertext and verification component, the checker uses the checker private key to perform computational verification to verify whether the access policy embedded in the ciphertext is compliant; if compliant, the ciphertext passes the verification and the checker uploads the ciphertext to the cloud server for storage; if not compliant, the ciphertext is directly discarded; The data decryption stage is processed as follows: D1: The user sends a data access request to the cloud server, and the cloud server sends the ciphertext to the user; D2: The user provides his own attribute set to the attribute agency. The attribute agency uses the system master key and the attribute set provided by the user to generate the user's private key and send it to the user. D3: After receiving the ciphertext and the user's private key, the user performs attribute set testing, data decryption, and data verification in sequence. When the data verification succeeds, the plaintext is directly returned to the user.
2. According to claim 1, a data security sharing method and system in attribute encryption and cloud storage environment is characterized by: During the data encryption and storage phase, the data owner encrypts the plaintext data using system public parameters and access policies according to its own attribute set.
3. According to claim 1, a data security sharing method and system in an attribute encryption and cloud storage environment is characterized by: In the data decryption phase, when the user private key decrypts the ciphertext, the user attribute set in the user private key is firstly subjected to a confusion Bloom filter test through the own attribute set in the ciphertext; After the test passes, the private key is used to decrypt the ciphertext into plaintext data; the plaintext data is verified and the plaintext is returned after successful verification.
4. A data security sharing system in an attribute encryption and cloud storage environment, characterized by: It includes data owner, data requester, attribute agency, checker and cloud server; The data owner is used to receive the system public parameters sent by the attribute agency during the initialization phase; encrypt the plaintext data using the public parameters and access policy to generate ciphertext during the data encryption and storage phase, and store the ciphertext in the cloud server; The data request end is used to send a user private key acquisition request to the attribute agency to obtain the user private key during the data decryption stage, and send a data access request to the cloud server to obtain the ciphertext, decrypt the ciphertext with the user private key, and obtain the plaintext after the decryption is successful; The attribute mechanism is used to generate system public parameters and system master keys in the initialization phase. The system public parameters are sent to the data owner, and the system master key is stored in the attribute mechanism; in the data decryption phase, the user private key is generated according to the attributes provided by the data requesting end and the system master key; The checker is used to generate checker public parameters and checker private keys in the initialization phase; generate verification components through access policies and checker public parameters in the data encryption storage phase; and use the checker private key and verification components to verify the compliance of the access policy embedded in the ciphertext in the checker policy verification phase. If it is compliant, the ciphertext passes the verification and the checker uploads the ciphertext to the cloud server for storage; if it is not compliant, the ciphertext is directly discarded.
Citation Information
Cited By
Shared data filtering method based on data producer user behaviors
CN119728266A
A shared data filtering method based on data producer user behavior
CN119728266B
Multidimensional data order-preserving encryption method and system based on coding forest
CN121664504A
