Dual access control method and system with anti-edos attack property based on sgx

By employing a dual access control method based on SGX, utilizing the Cuckoo Filter and CP-ABE encryption technology, and combining the Enclave module for user identity management, the problem of EDoS attacks in cloud computing is solved, achieving efficient access control and data protection.

CN117527308BActive Publication Date: 2026-11-24WUHAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311370359.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-11-24
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

Existing cloud computing systems are unable to effectively control access when facing EDoS attacks, resulting in the malicious consumption of cloud platform resources. Existing dual access control schemes have low computing and storage efficiency and cannot effectively resist EDoS attacks.

Method used

The system employs a dual access control method based on SGX, generating system parameters and keys through an authoritative institution, managing user identities using a cuckoo filter, implementing fine-grained access control through CP-ABE encryption, and deploying an Enclave module on the cloud platform for authentication to ensure the legitimacy of download requests from legitimate users.

Benefits of technology

It achieves dual access control for encrypted data and download requests while ensuring data confidentiality and integrity, effectively resisting EDoS attacks, and has low computational and storage overhead, making it suitable for practical applications on cloud platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117527308B_ABST
    Figure CN117527308B_ABST
Patent Text Reader

Abstract

This invention discloses a dual access control method and system based on SGX with anti-EDoS attack properties. The system involves five parties: an authority (TA), a data owner (DO), a data consumer (DU), a cloud service provider (CSP), and a user space runtime environment (Enclave). The method comprises six parts: system initialization, user registration, shared data generation and outsourcing, download request generation, access control of download requests, and decryption of shared data. With the assistance of an SGX-based Enclave, this invention achieves dual access control: on the one hand, the cloud platform can control the download requests of data consumers; on the other hand, while ensuring data confidentiality and integrity, the data owner can perform fine-grained access control on shared data. Furthermore, this dual access control system also possesses anti-EDoS attack properties and exhibits high computational and communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of information security technology, specifically relating to a dual access control method and system based on SGX with anti-EDoS attack attributes. Background Technology

[0002] Cloud computing, as a novel computing and storage architecture, has become a strategic focus for the development of the information technology industry. It can form highly powerful systems through computer networks, storing and aggregating relevant resources and configuring them on demand. It provides users with personalized services unrestricted by time and space, characterized by high flexibility, scalability, and cost-effectiveness, making it a crucial support for enterprise information transformation. While cloud computing brings numerous conveniences and advantages to users, it also presents serious challenges in the field of information security. For example, how to protect the confidentiality and integrity of outsourced data in a cloud environment, how to implement fine-grained access control for encrypted data, and how to resist EDoS attacks to prevent the malicious consumption of cloud platform resources are all key issues that may affect cloud computing security, limit its development, and hinder its large-scale practical application.

[0003] In recent years, several solutions to these problems have been proposed. In a cloud computing environment, the confidentiality and integrity of outsourced data can be ensured through encryption. This means the data owner encrypts the data using encryption algorithms before uploading it to the cloud platform for storage and sharing. However, traditional encryption algorithms cannot solve the access control problem for encrypted data in the cloud. This problem can be addressed using cryptographic algorithms such as proxy re-encryption and attribute-based encryption. Ordinary proxy re-encryption schemes manage encrypted data sharing in the cloud by re-encrypting the ciphertext of designated authorized users, representing an end-to-end data sharing method. Attribute-based encryption algorithms associate access policies with the attributes of data users, enabling fine-grained access control of encrypted data and are considered one of the most flexible and effective methods for data sharing in a cloud environment.

[0004] Most existing solutions are based on CP-ABE (Ciphertext Policy Attribute Base Encryption), which can only achieve access control for shared data. However, cloud platforms are plagued by a difficult-to-prevent EDoS (Economic Denial of Sustainability) attack. Unlike traditional DDoS (Distributed Denial of Service) attacks, EDoS attacks do not aim to disrupt the availability of the victim's service, but rather to inflict high economic costs on the victim. It leverages the elasticity of the cloud, especially its auto-scaling capabilities, to increase cloud users' bills until accounts are bankrupt or large-scale service outages occur. Existing single-layer access control systems cannot implement access control for user download requests on cloud platforms, and therefore cannot effectively resist EDoS attacks. Among existing dual-access control schemes, some verify whether the user can decrypt a test ciphertext to verify the legitimacy of the user's request, but this has extremely low computational and storage efficiency; others verify whether the user's blinded key can correctly decrypt part of the ciphertext to verify the legitimacy of the user's request, but due to the scalability of the key, this scheme cannot effectively resist EDoS attacks. Summary of the Invention

[0005] The purpose of this invention is to provide a dual access control method and system based on SGX with anti-EDoS attack properties, which achieves dual access control of encrypted data and download requests while ensuring the confidentiality and integrity of outsourced data, and can resist EDoS attacks.

[0006] The technical solution of the present invention is as follows:

[0007] A dual access control method based on SGX with anti-EDoS attack properties involves five parties: the Authority (TA), the Data Owner (DO), the Data Consumer (DU), the Cloud Service Provider (CSP), and the User Space Runtime Environment (Enclave), where the Cloud Service Provider (CSP) provides the cloud computing service platform. The method includes the following steps:

[0008] Step 1: System initialization;

[0009] Step 1.1: The TA generates the system public parameters, system public key, and system private key based on the security parameters;

[0010] Step 1.2: TA generates public parameters and the system master key related to the ABE algorithm based on the security parameters;

[0011] Step 1.3: TA creates a cuckoo filter initialized to empty;

[0012] Step 1.4: The TA loads the system private key and the cuckoo filter into the Enclave on the cloud;

[0013] Step 2: User registration;

[0014] Step 2.1: The user sends their identity and attributes to TA via a secure channel;

[0015] Step 2.2: The TA verifies the user's identity and attributes, calculates the user's master key and the key related to the ABE algorithm, and returns it to the user through a secure channel;

[0016] Step 2.3: The TA performs an insertion operation on the cuckoo filter, stores user identity and attribute information, and loads the updated cuckoo filter onto the Enclave;

[0017] Step 3: Shared data generation and outsourcing;

[0018] Step 3.1: DO selects a random symmetric key and uses a symmetric encryption algorithm to encrypt the shared data to form the first ciphertext;

[0019] Step 3.2: DO defines the access policy for accessing the data, and under the corresponding policy, encrypts the selected symmetric key with CP-ABE to form the second ciphertext;

[0020] Step 3.3: DO uploads the first and second ciphertexts to the cloud platform via a public channel;

[0021] Step 4: Generate download request;

[0022] Step 4.1: DU generates kana;

[0023] Step 4.2: DU generates the Message Authentication Code (HMAC);

[0024] Step 4.3: DU packages the message and HMAC into a download request and sends it to CSP;

[0025] Step 5: Access control for download requests;

[0026] Step 5.1: CSP checks the freshness of the message; if the check fails, the process is terminated; if the check passes, proceed to Step 5.2.

[0027] Step 5.2: The CSP checks whether the user's attributes meet the access policy for the requested ciphertext; if the check fails, the process is terminated; if the check succeeds, an Enclave request is made.

[0028] Step 5.3: Enclave verifies whether the user exists in the Cuckoo filter; if the check fails, the process terminates; if the check passes, proceed to step 5.4.

[0029] Step 5.4: Enclave calculates the HMAC corresponding to the message and returns it to CSP;

[0030] Step 5.5: The CSP verifies whether the two message authentication codes are equal; if they are equal, it responds to the user request; if they are not equal, it does not respond.

[0031] Step 6: Decrypt the shared data;

[0032] Step 6.1: DU decrypts the second ciphertext using the key associated with the ABE algorithm to recover the symmetric key;

[0033] Step 6.2: DU decrypts the first ciphertext using the symmetric key to recover the shared data.

[0034] Furthermore, step 1.1 specifically includes:

[0035] Step 1.1.1: Input the safety parameter λ into TA, and select a safe elliptic curve E; select a point P from E, and generate an additive cyclic group of order q on the elliptic curve.

[0036] Step 1.1.2: TA selects a random number. As the system's master private key, calculate the system's public key as P. pub =xP; It is the prime group modulo q;

[0037] Step 1.1.3: TA selects two hash functions h1 and h2:

[0038] Step 1.1.4: TA publishes public parameters Secretly store the system's private key x.

[0039] Furthermore, step 1.2 specifically includes:

[0040] Step 1.2.1: TA inputs the security parameter λ and calls the swarm generator. Groups G and G of order p T We obtain a bilinear mapping group system (G,G) T (,p,e); where g is the generating cloud of group G, and e is the cloud of G×G→G T a bilinear mapping;

[0041] Step 1.2.2: TA randomly selects U group elements {A1,…,A1}. U}∈G corresponds to all attributes in the system;

[0042] Step 1.2.3: TA selects a random number α, a∈Z P Calculate g a ,gα TA released public parameters related to the ABE algorithm: PK = (g, g a ,A1,…,A U ,e(g,g) α The secret storage system master key MSK = (a, g) α );Z P It is a group modulo p.

[0043] Furthermore, the size of the created cuckoo filter depends on the acceptable false positive rate and the maximum number of registered users, and supports three types of operations: insert, delete, and query.

[0044] Furthermore, step 2 specifically includes:

[0045] Step 2.1: The user transmits their identity ID through a secure channel. i Send the attribute set S to TA;

[0046] Step 2.2: The TA verifies the user's identity and attributes, and calculates the user's master key s. i =h1(x,id) i ); TA selects a random number v∈Z p Calculate the key related to the ABE algorithm The key is returned to the user via a secure channel; L1, L2, and L 3,x The key consists of three components, with S being the user's attribute set;

[0047] Step 2.3: TA calculates the user identity and attribute set fingerprint f(x) = H(id). i S) and H() represent specific hash functions that map user identity and attributes to shorter fingerprints; TA performs an insertion operation on the cuckoo filter, stores the fingerprint information of user identity and attributes, and loads the latest cuckoo filter onto the Enclave.

[0048] Furthermore, step 3 specifically includes:

[0049] Step 3.1: DO selects a random symmetric key sk and encrypts the shared data m using the symmetric encryption algorithm SE.Enc(m,sk) to form the first ciphertext CT1;

[0050] Step 3.2: The DO defines an access policy (M, ρ) for accessing the data, where M is an l×n matrix and ρ is a row labeling function that labels each row of matrix M with a Boolean value; under the access policy (M, ρ), the selected symmetric key sk is encrypted using CP-ABE; the DO randomly selects {t} i} i∈[l] ∈Z p Randomly select vectors Where s is the selected secret value, y i Calculate random numbers. And generate a second ciphertext M i Let C1 and C2, D be the i-th row of matrix M. 1,i and D 2,i All of these are components of the ciphertext;

[0051] Step 3.3: DO uploads the first ciphertext CT1 and the second ciphertext CT2 to the cloud platform via a public channel.

[0052] Furthermore, step 4 specifically includes:

[0053] Step 4.1: DU selects a random number Calculate R i =r i P, generate pseudonyms Let r be the prime group modulo q. i It is a random number;

[0054] Step 4.2: DU generates message authentication code Where t i This is the current timestamp. The message authentication code is a hash operation associated with the key, which can be based on the hash function and the key s. i Perform message authentication;

[0055] Step 4.3: DU packages the message and HMAC to generate a download request DRe = {'download', tag1, pid} i ,t i ,R i ,S} and send it to CSP; download is the download request identifier.

[0056] Furthermore, step 5 specifically includes:

[0057] Step 5.1: CSP via |t cur -t i |≤Δt checks the message freshness; if the verification fails, it indicates the message has exceeded the time limit, and the process terminates; if the verification passes, proceed to step 5.2; t cur The current time;

[0058] Step 5.2: The CSP continues to check whether the user's attribute S satisfies the access policy (M, ρ) of the request ciphertext; if the verification fails, it indicates that the download request is illegal and will not be responded to; if the verification passes, the CSP will send message {pid} i ,t i ,R i,S} is sent to Enclave;

[0059] Step 5.3: Enclave Calculation Search for ID using the cuckoo query function. i Does the corresponding position contain a fingerprint f(x) = H(id)? i Step 5.4 verifies whether the user exists. If the verification fails, it indicates that the user is an illegal user and no response is given. If the verification passes, proceed to step 5.4.

[0060] Step 5.4: Enclave restores ID i User master key s′ i =h1(x,id) i Generate message authentication code And return it to the CSP;

[0061] Step 5.5: Verify whether the two authentication codes tag1 and tag2 corresponding to the CSP message are equal; if they are not equal, it indicates that the download request is illegal and will not be responded to; if they are equal, it indicates that the download request is legal and the CSP will return the corresponding first ciphertext CT1 and second ciphertext CT2 to the user DU.

[0062] Furthermore, step 6 specifically includes:

[0063] Step 6.1: DU decrypts the second ciphertext CT2 using the key associated with the ABE algorithm to recover the symmetric key; first, DU defines... I = {i: ρ(i) ∈ S}, calculate the constant {w i ∈Z p} i∈[l] Then, calculate F = e(C2,L1) / E = e(g,g) αs Recover the symmetric key sk = C1 / F;

[0064] Step 6.2: DU calls the symmetric encryption / decryption algorithm SE.Dec(CT1,sk) to decrypt the first ciphertext CT1 and recover the shared data m.

[0065] A dual access control system based on SGX with anti-EDoS attack properties for implementing the dual access control method based on SGX with anti-EDoS attack properties as described in any one of the above claims, the system involving five parties: the Authority (TA), the Data Owner (DO), the Data Consumer (DU), the Cloud Service Provider (CSP), and the User Space Runtime Environment (Enclave).

[0066] The authoritative organization TA indicates that it is a trustworthy third-party organization that generates public system parameters and system master keys during the system initialization phase, and generates user master keys and keys related to the attribute-based encryption ABE algorithm through secure channel interaction with users during the user registration phase. It also creates and maintains the Cuckoo Filter for user identity management.

[0067] The data owner (DO) refers to the producer or owner of the data, who encrypts the shared data and uploads it to the cloud platform for storage and sharing.

[0068] Data consumer (DU) refers to a regular user who needs to access cloud storage data. The data consumer generates a download request and sends it to the cloud server. After receiving the response, it decrypts the returned result to restore the shared data.

[0069] CSP stands for a platform that provides cloud computing services, enabling storage of outsourced data by data owners and access control for download requests by data consumers.

[0070] Enclave represents a trusted platform module deployed in the cloud, with SGX providing confidentiality and integrity protection. Enclave stores system private keys and a cuckoo filter, which manages user identities and provides an authentication mechanism to help the cloud identify legitimate and illegitimate users.

[0071] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0072] This invention achieves dual access control for encrypted data and download requests while ensuring the confidentiality and integrity of outsourced data, and is resistant to EDoS attacks. Specifically, CP-ABE encryption enables the DO (Data Provider) to achieve fine-grained access control over shared data; by deploying the Trusted Platform Module (Enclave) on the cloud and using a Cuckoo Filter to manage user identities and provide an authentication mechanism, it assists the cloud in identifying legitimate and illegitimate users, enabling the CSP (Cloud Service Provider) to control access to download requests. This dual access control system has EDoS attack resistance and is more suitable for practical cloud platform applications. Furthermore, data encryption and outsourcing do not incur additional computational and storage overhead. The number of bilinear mapping operations performed by the CSP when verifying user download requests is independent of the number of attributes, and the Enclave requires only minimal computational and storage overhead. Therefore, this invention has good computational and communication efficiency. Attached Figure Description

[0073] Figure 1 This is a diagram of a dual access control system architecture based on SGX with anti-EDoS attack properties;

[0074] Figure 2This is a flowchart of a dual access control method based on SGX with anti-EDoS attack properties;

[0075] Figure 3 This is the system initialization flowchart;

[0076] Figure 4 This is a user registration flowchart;

[0077] Figure 5 This is a flowchart of shared data generation and outsourcing, as well as download request generation.

[0078] Figure 6 This is a flowchart of access control for download requests and the decryption of shared data. Detailed Implementation

[0079] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.

[0080] This invention belongs to the field of information security technology, and further relates to the field of cloud computing data security technology. It proposes a dual access control system and method based on SGX (Intel Software Guard Extensions) with resistance to EDoS (Economic Denial of Sustainability) attacks. Specifically addressing the characteristics of the cloud computing field, the need for user data privacy protection, the requirement for fine-grained access control of shared data, and the need for access control of user download requests, this invention combines ciphertext policy attribute-based encryption, cuckoo filters, conditional privacy protection, and anonymous authentication technologies to propose a dual access control system and method resistant to EDoS attacks. This invention achieves dual access control for encrypted data and download requests while ensuring the confidentiality and integrity of outsourced data, and is also resistant to EDoS attacks.

[0081] The present invention relates to a dual access control system based on SGX with anti-EDoS attack properties, involving five parties, specifically including a Trusted Authority (TA), a Data Owner (DO), a Data User (DU), a Cloud Service Provider (CSP), and a user space runtime environment (Enclave). The Trusted Authority (TA) represents a trusted third-party organization that generates public system parameters and a system master key during the system initialization phase, and generates a user master key and keys related to the attribute-based encryption (ABE) algorithm through secure channel interaction with the user during the user registration phase. It also creates and maintains a cuckoo filter for user identity management. The data owner (DO) represents the producer or owner of the data, who encrypts the shared data and uploads it to the cloud platform for storage and sharing. The data consumer (DU) represents an ordinary user who needs to access data stored in the cloud. The data consumer generates a download request and sends it to the cloud server. After receiving the response, the data consumer decrypts the returned result to restore the shared data. The cloud service provider (CSP) represents a platform that provides cloud computing services, mainly responsible for storing data outsourced by the data owner and controlling access to download requests from data consumers. The user space runtime environment (Enclave) represents a trusted platform module deployed on the cloud platform, which is protected by SGX for confidentiality and integrity. The Enclave stores the system master private key and the Cuckoo Filter, which manages user identities and provides an authentication mechanism to assist the cloud in identifying legitimate and illegitimate users.

[0082] The dual access control method with anti-EDoS attack properties of the present invention includes the following steps:

[0083] Step 1: System initialization;

[0084] Step 2: User registration;

[0085] Step 3: Shared data generation and outsourcing;

[0086] Step 4: Generate download request;

[0087] Step 5: Access control for download requests;

[0088] Step 6: Decrypt the shared data.

[0089] Preferably, step 1 includes the following sub-steps:

[0090] Step 1.1: The TA generates the system public parameters, system public key, and system private key based on the security parameters;

[0091] Step 1.2: TA generates public parameters and the system master key related to the ABE algorithm based on the security parameters;

[0092] Step 1.3: TA creates a cuckoo filter initialized to empty;

[0093] Step 1.4: TA loads the system private key and the cuckoo filter into the Enclave on the cloud.

[0094] As a preferred embodiment, step 2 includes the following sub-steps:

[0095] Step 2.1: The user sends their identity and attributes to TA via a secure channel;

[0096] Step 2.2: The TA verifies the user's identity and attributes, calculates the user's master key and the key related to the ABE algorithm, and returns it to the user through a secure channel;

[0097] Step 2.3: The TA performs an insertion operation on the cuckoo filter, stores the user's identity and attribute information, and loads the updated cuckoo filter onto the Enclave.

[0098] As a preferred embodiment, step 3 includes the following sub-steps:

[0099] Step 3.1: The data owner DO selects a random symmetric key and uses a symmetric encryption algorithm to encrypt the shared data to form ciphertext 1;

[0100] Step 3.2: DO formulates an access policy that allows access to the data, and encrypts the selected symmetric key with CP-ABE under the corresponding policy to form ciphertext 2;

[0101] Step 3.3: DO uploads ciphertext 1 and ciphertext 2 to the cloud platform via a public channel.

[0102] As a preferred embodiment, step 4 includes the following sub-steps:

[0103] Step 4.1: DU generates kana;

[0104] Step 4.2: DU generates a message authentication code (HMAC).

[0105] Step 4.3: DU packages the message and HMAC into a download request and sends it to CSP.

[0106] As a preferred embodiment, step 5 includes the following sub-steps:

[0107] Step 5.1: CSP checks the freshness of the message. If the check fails, the process terminates; if the check passes, proceed to Step 5.2.

[0108] Step 5.2: The CSP checks whether the user's attributes meet the access policy for the requested ciphertext. If the check fails, the process terminates; if the check succeeds, an Enclave request is made.

[0109] Step 5.3: Enclave verifies whether the user exists in the Cuckoo filter. If the check fails, the process terminates; if the check passes, proceed to step 5.4.

[0110] Step 5.4: Enclave calculates the HMAC corresponding to the message and returns it to CSP;

[0111] Step 5.5: The CSP verifies whether the two message authentication codes are equal. If the verification passes, the user request is responded to; otherwise, the request is not responded to.

[0112] Preferably, step 6 includes the following sub-steps:

[0113] Step 6.1: DU uses the ABE algorithm-related key to decrypt ciphertext 2 and recover the symmetric key;

[0114] Step 6.2: DU decrypts ciphertext 1 using the symmetric key to recover the shared data.

[0115] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.

[0116] Please see Figure 1 The present invention provides a dual access control system based on SGX with anti-EDoS attack properties, which consists of five parties: the Authority (TA), the Data Owner (DO), the Data Consumer (DU), the Cloud Service Provider (CSP), and the User Space Runtime Environment (Enclave).

[0117] During system initialization, the TA generates public system parameters and the system master key. During user registration, it interacts with users through a secure channel to generate user master keys and ABE-related keys, and creates and maintains the Cuckoo Filter for user identity management. The DO encrypts shared data and uploads it to the cloud platform for storage and sharing. When the DU needs to access cloud storage data, it generates a download request and sends it to the CSP. Upon receiving a response, it decrypts the returned result to restore the shared data. When the CSP receives data uploaded by the DO, it stores the outsourced data. When it receives a download request from the DU, it verifies the download request message; if the verification is successful, it responds to the user request. The Enclave stores the system private key and the Cuckoo Filter. When it receives an identity message from the cloud, it verifies the legitimacy of the identity and calculates the message authentication code, providing an authentication mechanism to assist the cloud in identifying legitimate and illegitimate users.

[0118] Please see Figure 2 The present invention provides a dual access control method based on SGX with anti-EDoS attack properties, comprising six parts: system initialization, user registration, shared data generation and outsourcing, download request generation, access control of download requests, and decryption of shared data.

[0119] System initialization includes Figure 2 Step 1 in the process.

[0120] Step 1: System initialization, generating public parameters, system key, and cuckoo filter. For detailed process, please refer to [reference needed]. Figure 3 Steps 1.1 to 1.4 in the above.

[0121] Step 1.1: The TA generates the system public parameters and the system master key based on the security parameters. For detailed procedures, please refer to [reference needed]. Figure 3 Steps 1.1.1 to 1.1.4 in the above.

[0122] Step 1.1.1: Input the safety parameter λ into TA and select a safe elliptic curve E:y 2 =x 3 +ax+b mod n. From a point P in E, generate an additive cyclic group of order q on the elliptic curve.

[0123] Step 1.1.2: TA selects a random number. As the system's master private key, calculate the system's public key as P. pub =xP.

[0124] Step 1.1.3: TA selects two hash functions:

[0125] Step 1.1.4: TA publishes public parameters Secretly store the system's private key x.

[0126] Step 1.2: TA generates public parameters related to the ABE encryption algorithm based on the security parameters. For detailed process, please refer to [reference needed]. Figure 3 Steps 1.2.1 to 1.2.3 in the above.

[0127] Step 1.2.1: TA inputs the security parameter λ and calls the swarm generator. A group G,G of order p T We obtain a bilinear mapping group system (G,G) T ,p,e).

[0128] Step 1.2.2: TA randomly selects U group elements {A1,…,A1}. U}∈G corresponds to all attributes in the system.

[0129] Step 1.2.3: TA selects a random number α, a∈Z P Calculate g a ,g α TA released the public parameters related to the ABE algorithm: PK = (g, g a ,A1,…,A U ,e(g,g) α The secret storage system master key MSK = (a, g) α ).

[0130] Step 1.3: TA creates an empty cuckoo filter. The size of the created cuckoo filter depends on the acceptable false positive rate and the maximum number of registered users, and supports three types of operations: insert, delete, and query.

[0131] Step 1.4: TA preloads the system private key and the cuckoo filter into the Enclave on the cloud.

[0132] User registration involves Figure 2 Step 2 in the process.

[0133] Step 2: User registration and generation of user keys. For detailed procedures, please refer to [link / reference needed]. Figure 4 Steps 2.1 to 2.3 in the process.

[0134] Step 2.1: The user transmits their identity ID through a secure channel. i Send the attribute set S to TA.

[0135] Step 2.2: The TA verifies the user's identity and attributes, and calculates the user's master key s. i =h1(x,id) i ). TA selects a random number v∈Z pCalculate the key related to the ABE algorithm The key is returned to the user via a secure channel.

[0136] Step 2.3: TA calculates the user identity and attribute set fingerprint f(x) = H(id). i The `Cuckoo Filter` (S) is used to insert the user's identity and attribute fingerprint information. The latest `Cuckoo Filter` is then loaded onto the Enclave.

[0137] Shared data generation and outsourcing involve Figure 2 Step 3 in the process.

[0138] Step 3: The data owner (DO) encrypts the data, generates shared data, and outsources it to the CSP. For detailed procedures, please refer to [link / reference needed]. Figure 5 Steps 3.1 to 3.3 in the process.

[0139] Step 3.1: DO selects a random symmetric key sk and encrypts the shared data m using the symmetric encryption algorithm SE.Enc(m,sk) to form ciphertext CT1.

[0140] Step 3.2: The DO defines an access policy (M, ρ) to access the data, where M is an l×n matrix. Under the access policy (M, ρ), the selected symmetric key sk is encrypted using CP-ABE. The DO randomly selects {t} i} i∈[l] ∈Z p Randomly select vectors calculate And generate ciphertext

[0141] Step 3.3: DO uploads the ciphertext CT1 and ciphertext CT2 to the cloud platform via a public channel.

[0142] Download request generation involves Figure 2 Step 4 in the process.

[0143] Step 4: The data consumer (DU) generates a download request and sends it to the CSP. For detailed procedures, please refer to [reference needed]. Figure 5 Steps 4.1 to 4.3 in the process.

[0144] Step 4.1: DU selects a random number Calculate R i =r i P, generate pseudonyms

[0145] Step 4.2: DU generates message authentication code Where t i This is the current timestamp.

[0146] Step 4.3: DU packages the message and HMAC to generate a download request DRe = {'download', tag1, pid} i ,t i ,R i ,S} and send it to CSP.

[0147] Access control for download requests involves Figure 2 Step 5 in the process.

[0148] Step 5: The CSP verifies the legitimacy of the user request and performs access control on the download request. For detailed procedures, please refer to [reference needed]. Figure 6 Steps 5.1 to 5.5 in the above.

[0149] Step 5.1: CSP via |t cur -t i |≤Δt checks the freshness of the message. If the verification fails, it indicates that the message has exceeded the time limit, and the process is terminated; if the verification passes, proceed to step 5.2.

[0150] Step 5.2: The CSP continues to check whether the user's attribute S satisfies the access policy (M, ρ) of the encrypted request. If the verification fails, it indicates that the download request is illegal and will not be responded to. If the verification passes, the CSP will send the message {pid} i ,t i ,R i ,S} is sent to Enclave.

[0151] Step 5.3: Enclave Calculation Search for ID using the cuckoo query function. i Does the corresponding position contain a fingerprint f(x) = H(id)? i Step 5.4 verifies if the user exists. If the verification fails, it indicates that the user is illegitimate and no response is given. If the verification succeeds, proceed to step 5.4.

[0152] Step 5.4: Enclave restores ID i User master key s′ i =h1(x,id) i Generate message authentication code And return it to the CSP.

[0153] Step 5.5: Verify if the two authentication codes tag1 and tag2 corresponding to the CSP message are equal. If they are not equal, the download request is invalid and will not be responded to. If they are equal, the download request is valid, and the CSP will return the corresponding ciphertext CT1 and ciphertext CT2 to the user DU.

[0154] Decrypting shared data involves Figure 2 Step 6 in the process.

[0155] Step 6: DU decrypts the ciphertext and recovers the shared data. For detailed procedures, please refer to [reference needed]. Figure 6 Steps 6.1 to 6.2 in the process.

[0156] Step 6.1: DU decrypts the ciphertext CT2 using the ABE algorithm-related key to recover the symmetric key. First, DU is defined... I = {i: ρ(i) ∈ S}, calculate the constant {w i ∈Z p} i∈[l] Then, calculate. F = e(C2,L1) / E = e(g,g) αs , recover the symmetric key sk = C1 / F.

[0157] Step 6.2: DU calls the symmetric encryption / decryption algorithm SE.Dec(CT1,sk) to decrypt the ciphertext CT1 and recover the shared data m.

[0158] In summary, this invention discloses a dual access control system and method based on SGX (Intel Software Guard Extensions) with anti-EDoS (Economic Denial of Sustainability) attack attributes. The system mainly involves five parties: a Trusted Authority (TA), a Data Owner (DO), a Data User (DU), a Cloud Service Provider (CSP), and a user space runtime environment (Enclave). The method comprises six parts: system initialization, user registration, shared data generation and outsourcing, download request generation, access control of download requests, and decryption of shared data. With the assistance of the SGX-based Enclave, this invention achieves dual access control: on the one hand, the cloud platform can control the download requests of data consumers; on the other hand, while ensuring data confidentiality and integrity, the data owner can perform fine-grained access control on shared data. Furthermore, this dual access control system also possesses anti-EDoS attack attributes and has high computational and communication efficiency.

[0159] It should be noted that the order of the steps in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0160] It should be noted that, depending on the implementation needs, the various steps / components described in this application can be broken down into more steps / components, or two or more steps / components or parts of the operation of steps / components can be combined into new steps / components to achieve the purpose of this invention.

[0161] Those skilled in the art will readily understand that the above are merely preferred embodiments of the present invention and are 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 within the scope of protection of the present invention.

Claims

1. A dual access control method based on SGX with anti-EDoS attack properties, involving five parties: an authority (TA), a data owner (DO), a data consumer (DU), a cloud service provider (CSP), and a user space runtime environment (Enclave), wherein the cloud service provider (CSP) provides a cloud computing service platform, characterized in that... The method includes the following steps: Step 1: System initialization; Step 1.1: The TA generates the system public parameters, system public key, and system private key based on the security parameters; Step 1.2: TA generates public parameters and the system master key related to the ABE algorithm based on the security parameters; Step 1.3: TA creates a cuckoo filter initialized to empty; Step 1.4: The TA loads the system private key and the cuckoo filter into the Enclave on the cloud; Step 2: User registration; Step 2.1: The user sends their identity and attributes to TA via a secure channel; Step 2.2: The TA verifies the user's identity and attributes, calculates the user's master key and the key related to the ABE algorithm, and returns it to the user through a secure channel; Step 2.3: The TA performs an insertion operation on the cuckoo filter, stores user identity and attribute information, and loads the updated cuckoo filter onto the Enclave; Step 3: Shared data generation and outsourcing; Step 3.1: DO selects a random symmetric key and uses a symmetric encryption algorithm to encrypt the shared data to form the first ciphertext; Step 3.2: DO defines the access policy for accessing the data, and under the corresponding policy, encrypts the selected symmetric key with CP-ABE to form the second ciphertext; Step 3.3: DO uploads the first and second ciphertexts to the cloud platform via a public channel; Step 4: Generate download request; Step 4.1: DU generates kana; Step 4.2: DU generates the Message Authentication Code (HMAC); Step 4.3: DU packages the message and HMAC into a download request and sends it to CSP; Step 5: Access control for download requests; Step 5.1: CSP checks the freshness of the message; if the check fails, the process is terminated; if the check passes, proceed to Step 5.

2. Step 5.2: The CSP checks whether the user's attributes meet the access policy for the requested ciphertext; if the check fails, the process is terminated; if the check succeeds, an Enclave request is made. Step 5.3: Enclave verifies whether the user exists in the Cuckoo filter; if the check fails, the process terminates; if the check passes, proceed to step 5.

4. Step 5.4: Enclave calculates the HMAC corresponding to the message and returns it to CSP; Step 5.5: The CSP verifies whether the two message authentication codes are equal; if they are equal, it responds to the user request; if they are not equal, it does not respond. Step 6: Decrypt the shared data; Step 6.1: DU decrypts the second ciphertext using the key associated with the ABE algorithm to recover the symmetric key; Step 6.2: DU decrypts the first ciphertext using the symmetric key to recover the shared data.

2. The dual access control method based on SGX with anti-EDoS attack properties according to claim 1, characterized in that, Step 1.1 specifically includes: Step 1.1.1: Input the safety parameter λ into TA, and select a safe elliptic curve E; select a point P from E, and generate an additive cyclic group of order q on the elliptic curve. Step 1.1.2: TA selects a random number. As the system's master private key, calculate the system's public key as P. pub =xP; It is the prime group modulo q; Step 1.1.3: TA selects two hash functions h1 and h2: Step 1.1.4: TA publishes public parameters Secretly store the system's private key x.

3. The dual access control method based on SGX with anti-EDoS attack properties according to claim 2, characterized in that, Step 1.2 specifically includes: Step 1.2.1: TA inputs the security parameter λ and calls the swarm generator. Groups G and G of order p T We obtain a bilinear mapping group system (G,G) T (,p,e); where g is the generating cloud of group G, and e is the cloud of G×G→G T a bilinear mapping; Step 1.2.2: TA randomly selects U group elements {A1,…,A1}. U }∈G corresponds to all attributes in the system; Step 1.2.3: TA selects a random number α, a∈Z P Calculate g a ,g α TA released public parameters related to the ABE algorithm: PK = (g, g a ,A1,…,A U ,e(g,g) α The secret storage system master key MSK = (a, g) α );Z P It is a group modulo p.

4. The dual access control method based on SGX with anti-EDoS attack properties according to claim 1, characterized in that, The size of the created cuckoo filter depends on the acceptable false positive rate and the maximum number of registered users, and supports three types of operations: insert, delete, and query.

5. The dual access control method based on SGX with anti-EDoS attack properties according to claim 3, characterized in that, Step 2 specifically includes: Step 2.1: The user transmits their identity ID through a secure channel. i Send the attribute set S to TA; Step 2.2: The TA verifies the user's identity and attributes, and calculates the user's master key s. i =h1(x,id) i ); TA selects a random number v∈Z p Calculate the key related to the ABE algorithm The key is returned to the user via a secure channel; L1, L2, and L 3,x The key consists of three components, with S being the user's attribute set; Step 2.3: TA calculates the user identity and attribute set fingerprint f(x) = H(id). i S) and H() represent specific hash functions that map user identity and attributes to shorter fingerprints; TA performs an insertion operation on the cuckoo filter, stores the fingerprint information of user identity and attributes, and loads the latest cuckoo filter onto the Enclave.

6. The dual access control method based on SGX with anti-EDoS attack properties according to claim 5, characterized in that, Step 3 specifically includes: Step 3.1: DO selects a random symmetric key sk and encrypts the shared data m using the symmetric encryption algorithm SE.Enc(m,sk) to form the first ciphertext CT1; Step 3.2: The DO defines an access policy (M, ρ) for accessing the data, where M is an l×n matrix and ρ is a row labeling function that labels each row of matrix M with a Boolean value; under the access policy (M, ρ), the selected symmetric key sk is encrypted using CP-ABE; the DO randomly selects {t} i } i∈[l] ∈Z p Randomly select vectors Where s is the selected secret value, y i Calculate random numbers. And generate a second ciphertext M i Let C1 and C2, D be the i-th row of matrix M. 1,i and D 2,i All of these are components of the ciphertext; Step 3.3: DO uploads the first ciphertext CT1 and the second ciphertext CT2 to the cloud platform via a public channel.

7. The dual access control method based on SGX with anti-EDoS attack properties according to claim 6, characterized in that, Step 4 specifically includes: Step 4.1: DU selects a random number Calculate R i =r i P, generate pseudonyms Let r be the prime group modulo q. i It is a random number; Step 4.2: DU generates message authentication code Where t i This is the current timestamp. The message authentication code is a hash operation associated with the key, which can be based on the hash function and the key s. i Perform message authentication; Step 4.3: DU packages the message and HMAC to generate a download request DRe = {'download', tag1, pid} i ,t i ,R i ,S} and send it to CSP; download is the download request identifier.

8. The dual access control method based on SGX with anti-EDoS attack properties according to claim 7, characterized in that, Step 5 specifically includes: Step 5.1: CSP via |t cur -t i |≤Δt checks the message freshness; if the verification fails, it indicates the message has exceeded the time limit, and the process terminates; if the verification passes, proceed to step 5.2; t cur The current time; Step 5.2: The CSP continues to check whether the user's attribute S satisfies the access policy (M, ρ) of the request ciphertext; if the verification fails, it indicates that the download request is illegal and will not be responded to; if the verification passes, the CSP will send message {pid} i ,t i ,R i ,S} is sent to Enclave; Step 5.3: Enclave Calculation Search for ID using the cuckoo query function. i Does the corresponding position contain a fingerprint f(x) = H(id)? i Step 5.4 verifies whether the user exists. If the verification fails, it indicates that the user is an illegal user and no response is given. If the verification passes, proceed to step 5.

4. Step 5.4: Enclave restores ID i User master key s′ i =h1(x,id) i Generate message authentication code And return it to the CSP; Step 5.5: Verify whether the two authentication codes tag1 and tag2 corresponding to the CSP message are equal; if they are not equal, it indicates that the download request is illegal and will not be responded to; if they are equal, it indicates that the download request is legal and the CSP will return the corresponding first ciphertext CT1 and second ciphertext CT2 to the user DU.

9. The dual access control method based on SGX with anti-EDoS attack properties according to claim 8, characterized in that, Step 6 specifically includes: Step 6.1: DU decrypts the second ciphertext CT2 using the key associated with the ABE algorithm to recover the symmetric key; first, DU defines... I = {i: ρ(i) ∈ S}, calculate the constant {w i ∈Z p } i∈[l] Then, calculate F = e(C2,L1) / E = e(g,g) αs Recover the symmetric key sk = C1 / F; Step 6.2: DU calls the symmetric encryption / decryption algorithm SE.Dec(CT1,sk) to decrypt the first ciphertext CT1 and recover the shared data m.

10. A dual access control system based on SGX with EDoS attack resistance for implementing the dual access control method based on SGX with EDoS attack resistance as described in any one of claims 1 to 9, characterized in that, The system involves five parties: the Authority (TA), the Data Owner (DO), the Data Consumer (DU), the Cloud Service Provider (CSP), and the User Space Operating Environment (Enclave). The authoritative organization TA indicates that it is a trustworthy third-party organization that generates public system parameters and system master keys during the system initialization phase, and generates user master keys and keys related to the attribute-based encryption ABE algorithm through secure channel interaction with users during the user registration phase. It also creates and maintains the Cuckoo Filter for user identity management. The data owner (DO) refers to the producer or owner of the data, who encrypts the shared data and uploads it to the cloud platform for storage and sharing. Data consumer (DU) refers to a regular user who needs to access cloud storage data. The data consumer generates a download request and sends it to the cloud server. After receiving the response, it decrypts the returned result to restore the shared data. CSP stands for a platform that provides cloud computing services, enabling storage of outsourced data by data owners and access control for download requests by data consumers. Enclave represents a trusted platform module deployed in the cloud, with SGX providing confidentiality and integrity protection. Enclave stores system private keys and a cuckoo filter, which manages user identities and provides an authentication mechanism to help the cloud identify legitimate and illegitimate users.