Trust management system based on identity authentication drive for data center collaboration

By adopting an identity authentication-driven trust management system in the data center, combined with symmetric encryption and distributed hash tables, security threats and data access control issues in data center collaboration are solved, and data confidentiality and traceability are achieved. Improved data center security and trusted management capabilities.

CN118713853APending Publication Date: 2024-09-27CHINA INFOMRAITON CONSULTING & DESIGNING INST CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410608003.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Data center collaboration faces security threats such as identity theft, data tampering, and unauthorized data access, and existing technologies cannot effectively address these issues, especially when equipment is unsupervised and relies on trusted third-party storage, resulting in data Confidentiality and trust management are difficult to achieve.

Method used

Using a trust management system driven by identity authentication, combined with symmetric encryption, distributed hash table and attribute encryption, interactive messages are recorded through the blockchain to ensure the confidentiality and traceability of data, and distributed storage is implemented through the Kademlia algorithm. Provide fine-grained access control.

Benefits of technology

It achieves data confidentiality, availability and traceability, prevents unauthorized access, improves the security and trustworthy management capabilities of the data center, and avoids the single point of failure and privacy leakage risks of centralized storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713853A
    Figure CN118713853A
Patent Text Reader

Abstract

The invention provides an identity authentication driving-based trust management system for data center collaboration. The identity authentication driving-based trust management system comprises an authentication and key negotiation module, a distributed data storage module, an access control module and an intelligent contract deployment module, the authentication and key negotiation module completes identity authentication and key negotiation through an identity authentication algorithm; the distributed data storage module is used for realizing distributed data storage of the server through a Kademlia algorithm; the access control module is used for adding an access control mechanism based on attribute encryption ABE into the trusted management system, and the access control mechanism enables a data owner to specify a data access strategy based on a user identity and attributes; and the intelligent contract deployment module is used for realizing collaborative process and intelligent contract deployment. According to the method, key problems in a traditional storage system are effectively solved, and important technical support and innovation are provided for development of a distributed storage system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of cyberspace security, and in particular relates to an identity authentication-driven trust management system for data center collaboration. Background Art

[0002] A data center is usually a centralized, large-scale data processing and storage facility that hosts a large number of servers, storage devices, and smart devices, revolutionizing many fields. The valuable data collected by these smart devices has given birth to many real-life smart applications, such as smart healthcare, smart homes, and smart cities. Basically, the realization of data center applications relies on the collaborative participation of many objects, including network operators, application servers, data center gateways, and a large number of data center devices. Therefore, the reliability of data center collaboration is crucial to ensure the effectiveness of the data center system.

[0003] However, with the rapid growth of the number of data center devices and the increasing demand for data center services, data center collaboration faces huge security threats, such as identity theft, data eavesdropping, data tampering, denial of service attacks, and fraud attacks. One of the important challenges is the illegal initialization of collaborative tasks. Malicious data center task publishers (hereinafter referred to as data center managers) may send instructions to data center devices to perform illegal tasks. For example, data center managers can send virus instructions to home appliances and vehicle terminals at the same time, resulting in the theft of personal life data. In addition, the devices in most data center scenarios are not supervised and are vulnerable to many security issues. Attackers can easily access and destroy these devices, as well as tamper with the generated data. During data transmission, the collected data is also vulnerable to privacy attacks and integrity violations. To address these issues, it is crucial to establish mutual authentication and key agreement schemes to ensure legitimate task execution and protect confidentiality during data transmission. In addition, the current data center ecosystem relies on trusted third parties for data storage and processing. However, the third-party-based data management framework has inherent limitations of centralized architecture, such as lack of scalability, low bandwidth, privacy issues, and single point of failure. Finally, it is possible for data users to use illegal means to gain unauthorized access to data, such as bribing data holders or performing impersonation attacks, which highlights the importance of access control for data requesters.

[0004] Trusted management for data center collaboration is a systemic problem due to the complexity of the components involved in the data center service process. The individual component solutions currently proposed are not compatible to form a comprehensive trusted management framework. Therefore, designing a lightweight and comprehensive trusted data center management framework remains a pressing but unsolved challenge. Summary of the invention

[0005] Purpose of the invention: The technical problem to be solved by the present invention is to provide an identity authentication-driven trust management system for data center collaboration in view of the deficiencies of the prior art. The system ensures the legitimacy and authenticity of data center managers and equipment, and generates a negotiated key for symmetric encryption of original data to ensure the confidentiality of the data. The framework also includes a distributed data storage solution based on attribute encryption (ABE) and a fine-grained access control mechanism to prevent unauthorized data access. The present invention aims to solve the following problems:

[0006] (1) Data confidentiality. The devices in the data center use symmetric encryption algorithms to encrypt the collected raw data. This ensures the confidentiality of the data, making it impossible for external attackers and internal adversaries to access any private information in the encrypted data.

[0007] (2) Distributed storage. A distributed storage network is built based on edge computing and distributed hash tables to store data pairs. This solution eliminates the reliance on any centralized party. The security, flexibility, and redundancy characteristics of distributed hash tables ensure the feasibility and data availability of distributed data storage systems.

[0008] (3) Fine-grained access control. The proposed access control mechanism based on attribute encryption (ABE) is proven to be completely secure under the decision linear assumption (DLIN). Only users with attributes that meet the policy requirements can access the data, thus achieving fine-grained access control for data in the data center.

[0009] (4) Traceability. The proposed system achieves behavior traceability by recording interactive messages on the blockchain. In the authentication phase, messages are transmitted to the target recipient via the blockchain. If a dishonest data center manager or terminal device is suspected, the supervisor can query its transaction records from the blockchain. In addition, the data user's request is also stored on the blockchain as event evidence for subsequent behavior audits. Therefore, the proposed trusted management system ensures the traceability of malicious or dishonest behavior.

[0010] The system of the present invention includes an authentication and key negotiation module, a distributed data storage module, an access control module and a smart contract deployment module;

[0011] The authentication and key negotiation module completes identity authentication and key negotiation through an identity authentication algorithm;

[0012] The distributed data storage module implements distributed data storage of the server through the Kademlia algorithm;

[0013] The access control module is used to add an access control mechanism based on attribute encryption (ABE) to the trusted management system, wherein the access control mechanism enables the data owner to specify a data access policy based on user identity and attributes;

[0014] The smart contract deployment module is used to implement collaborative processes and smart contract deployment.

[0015] The identity authentication algorithm includes: setting the devices to communicate via a low-power wide area network method, and the data user to communicate with the device and the server via a cellular network;

[0016] Set the gateway to be equipped with a long-term key K GTW ; Target device D j Initially a unique identifier DID is assigned j ; Gateway computing Tag j =h(DID j ||K GTW ), Tags j As target device D j The authentication tag of , where h represents a one-way hash function;

[0017] The unique identifier DID j and authentication tag j Stored on target device D j In the trusted module of i With identity ID i and password PW i ; To the target device D j Before sending the command, the manager M i You need to register on the network with the help of the gateway GTW: First, the administrator M i Generate a random number r i And calculate the authentication parameter W i =h(r i ||PW i ), then, the registration message m is sent through the blockchain reg =(ID i ,W i ,T reg ) is sent to GTW, where T reg Indicates the manager M i Timestamp of the time when the message was sent; timestamp of the time when the registration message was received reg After that, GTW verifies the identity ID i , and then calculate the identity authentication tag Tag i =h((ID i ||K GTW ) and the value a i =W i ⊕Tagi To hide the authentication tag i ;

[0018] GTW creates a smart card SC i , the value a i Stored on smart card SC i Then insert the smart card SC i Issued to Manager M i ; Manager M i After receiving the smart card, the random number r i Write to smart card SC i ;

[0019] If the manager M i Want to activate the target device D j , then the smart card SC i Insert the target device D j , and enter the administrator M i ID i and password PW i ; Smart Card SC i Calculate W i =h(r i ||PW i ), Tags i =W i ⊕a i , and calculate the smart card authentication parameter b i =h(Tag i ||T1), then, the smart card SC i Select a random number K for subsequent key negotiation i ; Then, the manager M i Calculate the authentication hidden parameter O i =b i ⊕K i and authentication encryption parameter E i =h(b i ||ID i ||DID j ) to hide K i and b i ; Then, the smart card SC i Through the blockchain to device D j Send login request m1=(ID i ,E i ,O i ,T1), T1 is the timestamp of the time when the smart card sends the login request; after receiving the login request m1, the target device D j First check whether |T1-T c |≤ΔT|, where T cis the timestamp of the time when the device receives the message, ΔT is the accepted transmission delay, if it is not satisfied, the verification fails, and the target device D j The request will be rejected; otherwise, the target device D j Calculation about Tag j Authentication encryption parameters I j =h(Tag j ||E i ), then the target device D j Send a login request to GTW m2 = (ID i ,E i ,DID j ,I j ,T1,T2), GTW checks whether T1 and T2 are valid to decide whether to continue or terminate. Then, the gateway GTW calculates the three necessary verification parameters b′ required for authentication i , E′ i and I′ j :

[0020] b′ i =h(Tag u ||T1),

[0021] E′ i =h(b′ i ||ID i ||DID j ),

[0022] U′ j =h(Tag j ||E′ i ),

[0023] Target device D j It is only necessary to verify whether two verification parameters E′ are met i =E i and I′ j =I j If the verification is successful, GTW accepts the administrator M i Then the gateway GTW calculates the authentication parameter F required for authentication between the device and the manager ij and i As target device D j and Manager M i Certification materials:

[0024] F ij = b′ i ⊕h(Tag j ||T3),

[0025] y i =(Tag i ||DIDj ),

[0026] where F ij is about b′ i An encryption parameter, T3 is the gateway calculation parameter F ij The timestamp of GTW is that the response message m3 of the target device is m3=(F ij ,y i ,T3) to the target device D j , target device D j After receiving the response message m3, check whether the timestamp T3 satisfies |T3-T c |≤ΔT|, if it is not satisfied, the verification fails, otherwise, the target device calculates the verification parameter b′ i =F ij ⊕h(Tag j ||T3) and verification parameter E″ i =h(b′ i ||ID i ||DID j ), if E″ i =E i , it means that the data center manager's identity authentication is successful, otherwise, the manager's request will be rejected;

[0027] Target device D j Randomly select a secret number K j For session key calculation, target device D j Obtain O' i =O i ⊕b′ i And calculate X ij =h(K′ i ||T4)⊕K j , where O′ i Refers to the previous authentication hidden parameter O i A recovery calculation parameter, X ij is the secret number K j A calculation parameter to hide K j , T4 is the target device D j Calculate O′ i Then, the target device D j Calculate the session key SKey ij =h(K′ i ⊕K j ); Finally, the target device D j Send authentication response message m4 to the administrator = (X ij ,y i ,T4) is packaged into a transaction and sent to the manager M through the blockchain iTo negotiate the key; after receiving m4, the manager M i First check T4, then use the response message m4 to check the previous y i Perform recovery calculation to obtain the authentication secret parameter y′ i =h(Tag i ||DID j ), if y′ i Equal to y i , then the manager M i The sender is concluded to be legitimate; then, the manager M i Calculate the secret parameter K used to calculate the session key j =h(K i ||T4)⊕X ij ; Finally, the manager M i By formula SKey ij =h(K i ⊕K j ) Calculate the session key SKey ij .

[0028] The distributed data storage module implements the distributed data storage of the server through the Kademlia algorithm, which specifically includes: the server status information is stored in each node through the K bucket table. The K bucket table is a data structure in the Kademlia distributed hash table. The Kademlia algorithm uses XOR operation to calculate the distance between nodes. Each server maintains a 160-layer K bucket table, where each K bucket storage range is in the interval [2 i-1 ,2 i ], the status information includes the node ID, IP address and access port, k is a system-level constant; the server can log at most N The information of locating the target server is queried, where N is the total number of servers in the system. Note that the number 160 is specific to the Kademlia algorithm and is directly related to the length of the node ID. Specifically, the Kademlia algorithm usually uses a 160-bit node ID. This is because in many implementations (such as those based on the SHA-1 hash function), the node ID is generated by a hash algorithm, and the hash value generated by SHA-1 is exactly 160 bits. In the Kademlia algorithm, i is used to represent the level of the K bucket. Specifically, each K bucket stores the nodes that are within [2 i-1 ,2 i ] nodes within the range.

[0029] The access control mechanism includes:

[0030] Step a1: The gateway acting as a trusted attribute authority executes the following initialization algorithm during system initialization:

[0031] Setup(1 λ )→(PK,MSK)

[0032] Where λ represents the security parameter, PK represents the public key, and MSK represents the system master key; the gateway publishes PK to the system through the blockchain and stores MSK locally;

[0033] Step a2: The gateway executes the following encryption algorithm, where Enc represents the encryption algorithm, which is used to encrypt the negotiated session key Skey:

[0034] Enc(PK,P,SKey)→CipText

[0035] Where P represents the access policy established during system initialization; CipText represents the ciphertext;

[0036] Step a3: The gateway executes the following key generation algorithm, where KeyGen represents the key generation algorithm, which is used to generate the user's secret key SK:

[0037] KeyGen(MSK,S)→SK

[0038] Where S represents the attribute set; after receiving the user's secret key request, the gateway first verifies its identity. If the verification is successful, the user will be assigned the corresponding attribute set S; the gateway securely stores {PK, SK} in a private channel on the blockchain shared with the data user;

[0039] In step a4, the data user executes the following key decryption algorithm, where Dec represents the decryption algorithm, to decrypt the ciphertext to recover the session key Skey:

[0040] Dec(PK,SK,CipText)→SKey

[0041] Where Skey represents the encryption key; if the user's attribute set S meets the access policy P, the data user successfully decrypts the ciphertext to recover the encryption key SKey, and then executes step a5; if the access policy is not met, the decryption will fail;

[0042] Step a5: The data user executes the following data decryption algorithm, where SymDec represents a symmetric decryption algorithm, for decrypting the encrypted data Edata:

[0043] SymDec(Edata) SKey →PlaText

[0044] PlaText is the original data output by the data decryption algorithm. SymDec(Edata) SKey Indicates using a symmetric decryption algorithm, inputting the key SKey, and decrypting the encrypted data Edata.

[0045] The access control mechanism also includes an access rights revocation mechanism: the gateway maintains a confidentiality table containing the identities of authorized users. When a malicious user is detected, the gateway takes the following steps:

[0046] Step b1, identity removal: the gateway removes the identity of the malicious user from the confidentiality table;

[0047] Step b2, behavior recording: the gateway records the bad behavior of malicious users;

[0048] By executing steps b1 to b2, subsequent data requests from users identified as malicious users will be automatically rejected.

[0049] The collaboration process includes:

[0050] Step c1, executing the identity authentication algorithm to ensure the reliability of the manager and the device that initiates the collaboration task. After the identity authentication is successful, the manager sends instructions to the relevant device to start the collaboration;

[0051] Step c2, encryption and storage process: The session key SKey negotiated in the authentication phase is encrypted by the gateway using attribute-based encryption for subsequent data access control; the ciphertext is stored inside the gateway; subsequently, the device uses SKey to encrypt the collected raw data using a symmetric encryption algorithm and then sends it to the gateway; after receiving {Edata, T} from the gateway, the server generates and publishes a hash-based identifier CID, enabling users to find the required data in the storage system; T is the timestamp;

[0052] Step c3, data request and acquisition process: When the gateway receives the data user's secret key request, the gateway executes the key generation algorithm in step a3 to generate the user's secret key SK, and sends {PK, SK} to the user through a secure channel; the data user's request event is recorded on the blockchain for subsequent behavior auditing; the user sends a data request to the gateway to obtain {CipText, CID}, then the user downloads {Edata, T} from the storage system and uses the timestamp T to verify the freshness of the data; finally, the user executes the decryption function to obtain SKey from the ciphertext, and executes the symmetric decryption function to obtain the required original data.

[0053] The smart contract deployment module completes the smart contract deployment through the data storage contract module and the server management contract module.

[0054] The data storage contract module performs the following steps:

[0055] Step d1, initialize the following contract variables:

[0056] The data owner dataOwner variable is of type address, which represents the address of the gateway;

[0057] The type of the authorized server authorizedServers variable is mapping, which represents a mapping that maps the authorized server address to a Boolean value;

[0058] The gateway uses the relevant function interface of the contract to add, modify or delete entries in the authorizedServers collection to manage the server;

[0059] Step d2, the server calls the data storage contract Filecoin. Filecoin is a decentralized storage network based on blockchain technology, which aims to provide users with reliable storage services. Filecoin uses smart contracts to manage storage transactions, ensure the security and availability of data, and store {Edata, T} in the distributed storage network.

[0060] The server management contract module performs the following steps:

[0061] Step e1, add or delete server contracts: Add or delete server contracts can only be executed by the creator of the contract, which refers to the above-mentioned related function interface. The new server sends an identity certificate to the data owner as a registration request. After successful verification, the server is authorized through the related function interface; if a server is to be removed from the authorized server set authorizedServers, the data owner provides the address of the server to be deleted as an input parameter to the related function interface;

[0062] Step e2, data search contract: The server calls the data search contract, and the search contract has the above-mentioned related function interface. The corresponding {Edata, T} is found in the distributed storage system through the data user's identity identifier CID.

[0063] The present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores a program code, the program code is used to run the system, and the program code can be executed by the processor.

[0064] The present invention first proposes a novel mutual authentication and key negotiation method, and then integrates distributed data storage and access control components to build a comprehensive trusted framework. Specifically, the system proposed by the present invention is used to prevent the risk of malicious collaborative tasks. By using the negotiated session key, the collected raw data is securely protected by symmetric encryption. In addition, in order to prevent potential security issues of traditional centralized storage systems, the present invention introduces a distributed storage solution based on edge computing without relying on a trusted third party. Finally, the present invention incorporates a fine-grained access control mechanism into the trust system to prevent unauthorized access to data. At present, blockchain has become one of the most suitable candidate technologies for providing a secure and distributed ecosystem for data center networks. Because it brings the following four promising advantages:

[0065] (1) Decentralization is achieved and fault tolerance is improved;

[0066] (2) It provides immutability, traceability, and accountability;

[0067] (3) Enhanced security and confidentiality through cryptography-based consensus algorithms;

[0068] (4) Supporting trusted collaboration by allowing automatic contract execution. This system utilizes the deployment of a blockchain network to record interactive messages, ensure the immutability and traceability of data, and establish a reliable collaboration environment for physical objects in the data center.

[0069] The present invention has the following beneficial effects:

[0070] 1. Comprehensive Trust Management System

[0071] In this paper, a comprehensive lightweight authentication-driven trusted management system is proposed for the first time, focusing on ensuring reliable data center collaboration. The system considers mutual authentication, data confidentiality, data storage, access control and behavior auditing, filling the gap of comprehensive trusted system in the field of data center collaboration.

[0072] 2. Novel authentication and key negotiation methods

[0073] In this paper, a lightweight and secure authentication and key negotiation method is proposed. The scheme ensures the legitimacy and authenticity of data center managers and devices, and generates symmetric encrypted negotiation keys to ensure the confidentiality of original data. In addition, the system also adopts a fine-grained access control mechanism based on attribute encryption to prevent unauthorized data access.

[0074] 3. Efficient distributed storage method

[0075] The distributed storage solution of the present invention, based on the Kademlia algorithm (a protocol for distributed hash tables (DHT)), manages server status information by maintaining a table, which effectively solves the problems of excessive network traffic and reduced storage efficiency caused by frequent node entry and exit in traditional storage systems. The table maintained by each server stores the status information of nodes within a specific range, so that the server can locate the information of the target server within a maximum of log(N) queries (N refers to the total number of servers in the system), thereby improving the search efficiency of the storage system. The distributed storage method proposed in this article effectively solves the key problems in traditional storage systems and provides important technical support and innovation for the development of distributed storage systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.

[0077] Figure 1 Schematic diagram of the system model of the present invention.

[0078] Figure 2 This is a schematic diagram of the server data storage model. DETAILED DESCRIPTION

[0079] The present invention provides an identity authentication-driven trust management system for data center collaboration, including an authentication and key negotiation module, a distributed data storage module, an access control module, and a smart contract deployment module;

[0080] The authentication and key negotiation module completes identity authentication and key negotiation through an identity authentication algorithm;

[0081] The distributed data storage module implements distributed data storage of the server through the Kademlia algorithm;

[0082] The access control module is used to add an access control mechanism based on attribute encryption (ABE) to the trusted management system, wherein the access control mechanism enables the data owner to specify a data access policy based on user identity and attributes;

[0083] The smart contract deployment module is used to implement collaborative processes and smart contract deployment.

[0084] The identity authentication algorithm includes: setting the devices to communicate via a low-power wide area network method, and the data user to communicate with the device and the server via a cellular network;

[0085] Set the gateway to be equipped with a long-term key K GTW ; Target device D j Initially a unique identifier DID is assigned j; Gateway computing Tag j =h(DID j ||K GTW ), Tags j As target device D j The authentication tag of , where h represents a one-way hash function;

[0086] The unique identifier DID j and authentication tag j Stored on target device D j In the trusted module of i With identity ID i and password PW i ; To the target device D j Before sending the command, the manager M i You need to register on the network with the help of the gateway GTW: First, the administrator M i Generate a random number r i And calculate the authentication parameter W i =h(r i ||PW i ), then, the registration message m is sent through the blockchain reg =(ID i ,W i ,T reg ) is sent to GTW, where T reg Indicates the manager M i Timestamp of the time when the message was sent; timestamp of the time when the registration message was received reg After that, GTW verifies the identity ID i , and then calculate the identity authentication tag Tag i =h(ID i ||K GTW ) and the value a i =W i ⊕Tag i To hide the authentication tag i ;

[0087] GTW creates a smart card SC i , the value a i Stored on smart card SC i Then insert the smart card SC i Issued to Manager M i ; Manager M i After receiving the smart card, the random number r i Write to smart card SC i ;

[0088] If the manager M i Want to activate the target device D j , then the smart card SCi Insert the target device D j , and enter the administrator M i ID i and password PW i ; Smart Card SC i Calculate W i =h(r i ||PW i ), Tags i =W i ⊕a i , and calculate the smart card authentication parameter b i =h(Tag i ||T1), then, the smart card SC i Select a random number K for subsequent key negotiation i ; Then, the manager M i Calculate the authentication hidden parameter O i =b i ⊕K i and authentication encryption parameter E i =h(b i ||ID i ||DID j ) to hide K i and b i ; Then, the smart card SC i Through the blockchain to device D j Send login request m1=(ID i ,E i ,O i ,T1), T1 is the timestamp of the time when the smart card sends the login request; after receiving the login request m1, the target device D j First check whether |T1-T c |≤ΔT|, where T c is the timestamp of the time when the device receives the message, ΔT is the accepted transmission delay, if it is not satisfied, the verification fails, and the target device D j The request will be rejected; otherwise, the target device D j Calculation about Tag j Authentication encryption parameters I j =h(Tag j ||E i ), then the target device D j Send a login request to GTW m2 = (ID i ,E i ,DID j ,I j ,T1,T2), GTW checks whether T1 and T2 are valid to decide whether to continue or terminate. Then, the gateway GTW calculates the three necessary verification parameters b′ required for authenticationi , E′ i and I′ j :

[0089] b′ i =h(Tag i ||T1),

[0090] E′ i =h(b′ i ||ID i ||DID j ),

[0091] I′ j =h(Tag j ||E′ i ),

[0092] Target device D j It is only necessary to verify whether two verification parameters E′ are met i =E i and I′ j =I j If the verification is successful, GTW accepts the administrator M i Then the gateway GTW calculates the authentication parameter F required for authentication between the device and the manager ij and i As target device D j and Manager M i Certification materials:

[0093] F ij = b′ i ⊕h(Tag j ||T3),

[0094] y i =(Tag i ||DID j ),

[0095] where F ij is about b′ i An encryption parameter, T3 is the gateway calculation parameter F ij The timestamp of GTW is that the response message m3 of the target device is m3=(F ij ,y i ,T3) to the target device D j , target device D j After receiving the response message m3, check whether the timestamp T3 satisfies |T3-T c |≤ΔT|, if it is not satisfied, the verification fails, otherwise, the target device calculates the verification parameter b′ i =F ij ⊕h(Tag j||T3) and verification parameter E″ i =h(b′ i ||ID i ||DID j ), if E″ i =E i , it means that the data center manager's identity authentication is successful, otherwise, the manager's request will be rejected;

[0096] Target device D j Randomly select a secret number K j For session key calculation, target device D j Obtain O' i =O i ⊕b′ i And calculate X ij =h((K′ i ||T4)⊕K j , where O′ i Refers to the previous authentication hidden parameter O i A recovery calculation parameter, X ij is the secret number K j A calculation parameter to hide K j , T4 is the target device D j Calculate O′ i Then, the target device D j Calculate the session key SKey ij =h(K′ i ⊕K j ); Finally, the target device D j Send authentication response message m4 to the administrator = (X ij ,y i ,T4) is packaged into a transaction and sent to the manager M through the blockchain i To negotiate the key; after receiving m4, the manager M i First check T4, then use the response message m4 to check the previous y i Perform recovery calculation to obtain the authentication secret parameter y′ i =h(Tag i ||DID j ), if y′ i Equal to y i , then the manager M i The sender is concluded to be legitimate; then, the manager M i Calculate the secret parameter K used to calculate the session key j =h(K i ||T4)⊕X ij ; Finally, the manager M i By formula SKeyij =h(K i ⊕K j ) Calculate the session key SKey ij .

[0097] The distributed data storage module implements the distributed data storage of the server through the Kademlia algorithm, which specifically includes: the server status information is stored in each node through the K bucket table. The K bucket table is a data structure in the Kademlia distributed hash table. The Kademlia algorithm uses XOR operation to calculate the distance between nodes. Each server maintains a 160-layer K bucket table, where each K bucket storage range is in the interval [2 i-1 ,2 i ], the status information includes the node ID, IP address and access port, k is a system-level constant; the server can log at most N The information of locating the target server is queried, where N is the total number of servers in the system. Note that the number 160 is specific to the Kademlia algorithm and is directly related to the length of the node ID. Specifically, the Kademlia algorithm usually uses a 160-bit node ID. This is because in many implementations (such as those based on the SHA-1 hash function), the node ID is generated by a hash algorithm, and the hash value generated by SHA-1 is exactly 160 bits. In the Kademlia algorithm, i is used to represent the level of the K bucket. Specifically, each K bucket stores the nodes that are within [2 i-1 ,2 i ] nodes within the range.

[0098] The access control mechanism includes:

[0099] Step a1: The gateway acting as a trusted attribute authority executes the following initialization algorithm during system initialization:

[0100] Setup(1 λ )→(PK,MSK)

[0101] Where λ represents the security parameter, PK represents the public key, and MSK represents the system master key; the gateway publishes PK to the system through the blockchain and stores MSK locally;

[0102] Step a2: The gateway executes the following encryption algorithm, where Enc represents the encryption algorithm, which is used to encrypt the negotiated session key Skey:

[0103] Enc(PK,P,SKey)→CipText

[0104] Where P represents the access policy established during system initialization; CipText represents the ciphertext;

[0105] Step a3: The gateway executes the following key generation algorithm, where KeyGen represents the key generation algorithm, which is used to generate the user's secret key SK:

[0106] KeyGen(MSK,S)→SK

[0107] Where S represents the attribute set; after receiving the user's secret key request, the gateway first verifies its identity. If the verification is successful, the user will be assigned the corresponding attribute set S; the gateway securely stores {PK, SK} in a private channel on the blockchain shared with the data user;

[0108] In step a4, the data user executes the following key decryption algorithm, where Dec represents the decryption algorithm, to decrypt the ciphertext to recover the session key Skey:

[0109] Dec(PK,SK,CipText)→SKey

[0110] Where Skey represents the encryption key; if the user's attribute set S meets the access policy P, the data user successfully decrypts the ciphertext to recover the encryption key SKey, and then executes step a5; if the access policy is not met, the decryption will fail;

[0111] Step a5: The data user executes the following data decryption algorithm, where StmDec represents a symmetric decryption algorithm, for decrypting the encrypted data Edata:

[0112] StmDec(Edata) SKey →PlaText

[0113] PlaText is the original data output by the data decryption algorithm. StmDec(Edata) SKey Indicates using a symmetric decryption algorithm, inputting the key SKey, and decrypting the encrypted data Edata.

[0114] The access control mechanism also includes an access rights revocation mechanism: the gateway maintains a confidentiality table containing the identities of authorized users. When a malicious user is detected, the gateway takes the following steps:

[0115] Step b1, identity removal: the gateway removes the identity of the malicious user from the confidentiality table;

[0116] Step b2, behavior recording: the gateway records the bad behavior of malicious users;

[0117] By executing steps b1 to b2, subsequent data requests from users identified as malicious users will be automatically rejected.

[0118] The collaboration process includes:

[0119] Step c1, executing the identity authentication algorithm to ensure the reliability of the manager and the device that initiates the collaboration task. After the identity authentication is successful, the manager sends instructions to the relevant device to start the collaboration;

[0120] Step c2, encryption and storage process: The session key SKey negotiated in the authentication phase is encrypted by the gateway using attribute-based encryption for subsequent data access control; the ciphertext is stored inside the gateway; subsequently, the device uses SKey to encrypt the collected raw data using a symmetric encryption algorithm and then sends it to the gateway; after receiving {Edata, T} from the gateway, the server generates and publishes a hash-based identifier CID, enabling users to find the required data in the storage system; T is the timestamp;

[0121] Step c3, data request and acquisition process: When the gateway receives the data user's secret key request, the gateway executes the key generation algorithm in step a3 to generate the user's secret key SK, and sends {PK, SK} to the user through a secure channel; the data user's request event is recorded on the blockchain for subsequent behavior auditing; the user sends a data request to the gateway to obtain {CipText, CID}, then the user downloads {Edata, T} from the storage system and uses the timestamp T to verify the freshness of the data; finally, the user executes the decryption function to obtain SKey from the ciphertext, and executes the symmetric decryption function to obtain the required original data.

[0122] The smart contract deployment module completes the smart contract deployment through the data storage contract module and the server management contract module.

[0123] The data storage contract module performs the following steps:

[0124] Step d1, initialize the following contract variables:

[0125] The data owner dataOwner variable is of type address, which represents the address of the gateway;

[0126] The type of the authorized server authorizedServers variable is mapping, which represents a mapping that maps the authorized server address to a Boolean value;

[0127] The gateway uses the relevant function interface of the contract to add, modify or delete entries in the authorizedServers collection to manage the server;

[0128] The relevant function interfaces here implement adding, modifying, deleting, and searching for servers. Here are two code examples:

[0129] Adding an Authorization Server

[0130] Function name: addAuthorizedServer

[0131] Description: Add a new authorization server address to the authorizedServers map.

[0132] Interface code example:

[0133] function addAuthorizedServer(address serverAddress)publiconlyDataOwner{

[0134] authorizedServers[serverAddress]=true;

[0135] emit ServerAdded(serverAddress);

[0136] }

[0137] Modify the authorization server

[0138] Function name: modifyAuthorizedServer

[0139] Description: Modify the status of an existing authorization server, such as enabling or disabling a server.

[0140] Interface code example:

[0141] function modifyAuthorizedServer(address serverAddress,bool status)public onlyDataOwner{

[0142] require(authorizedServers[serverAddress]!=status,"No changeneeded");

[0143] authorizedServers[serverAddress]=status;

[0144] emit ServerModified(serverAddress,status);

[0145] }

[0146] Step d2, the server calls the data storage contract Filecoin. Filecoin is a decentralized storage network based on blockchain technology, which aims to provide users with reliable storage services. Filecoin uses smart contracts to manage storage transactions, ensure the security and availability of data, and store {Edata, T} in the distributed storage network.

[0147] The server management contract module performs the following steps:

[0148] Step e1, add or delete server contracts: Add or delete server contracts can only be executed by the creator of the contract, which refers to the above-mentioned related function interface. The new server sends an identity certificate to the data owner as a registration request. After successful verification, the server is authorized through the related function interface; if a server is to be removed from the authorized server set authorizedServers, the data owner provides the address of the server to be deleted as an input parameter to the related function interface;

[0149] Step e2, data search contract: The server calls the data search contract, and the search contract has the above-mentioned related function interface. The corresponding {Edata, T} is found in the distributed storage system through the data user's identity identifier CID.

[0150] The four modules of the system of the present invention respectively implement lightweight authentication and key negotiation method, distributed data storage method, access control mechanism and smart contract implementation.

[0151] 1. Lightweight Authentication and Key Agreement Method

[0152] An effective but malicious data center manager may induce devices to perform illegal tasks, resulting in serious system threats. To avoid such troubles, the present invention proposes an efficient and secure authentication and key negotiation method. It is assumed that devices communicate with each other through a low power wide area network (LPWA) method, while data users communicate with devices and servers through a cellular network.

[0153] 1. Registration and preparation stage

[0154] (1) The data center (IDC) manager registers with the gateway through the blockchain, sends a message, and obtains a smart card.

[0155] (2) The gateway generates a verification tag and a hidden tag, stores the verification tag and the hidden tag in a smart card, and then distributes them to the administrator.

[0156] 2. Activate equipment stage

[0157] (1) The administrator inserts the smart card into the target terminal device and enters the identity and password.

[0158] (2) The terminal device calculates relevant parameters and generates a message to send to the smart card.

[0159] 3. Verification and certification phase

[0160] (1) The terminal device receives and verifies the message to ensure that the timestamp is within the valid range.

[0161] (2) The terminal device calculates a specific value and sends a message to the gateway.

[0162] (3) The gateway verifies the validity of the message, generates authentication credentials, and confirms the legitimacy of the identity of the data center IDC manager.

[0163] 4. Key negotiation phase

[0164] The terminal device generates a session key and sends it to the data center IDC manager for confirmation.

[0165] These phases constitute the main flow of the authentication and key agreement method, ensuring secure communication and data transfer between devices.

[0166] 2. Distributed Data Storage Method

[0167] In order to alleviate the trust issues caused by centralized storage systems, including single point attacks and privacy leaks, this system proposes to use edge computing to build a decentralized storage environment. The original data is encrypted using the Advanced Encryption Standard (AES), and the encryption key is generated through negotiation during the authentication phase. It is stored on distributed servers based on the Kademlia algorithm, a protocol for distributed hash tables. The Kademlia algorithm is widely used for data storage and retrieval in peer-to-peer (P2P) networks and is known for its simplicity, flexibility, and security. In a Kademlia network, each node is assigned a 160-bit identity identifier (ID) as a unique identifier, while the hash value of the encrypted data block is used as the 160-bit Key and the encrypted data block as the Value. When a new server joins the Kademlia network, it is assigned a randomly generated 160-bit node ID. The KeyValue pair is then stored on several servers whose ID values ​​are close to the Key. The maximum number of nodes that Kademlia can accommodate is 2 160 , far exceeding the number of servers in the actual network.

[0168] In this storage system, each server maintains part of the storage content instead of the complete ledger. In addition, each node stores the status information of the relevant servers in the node through the K bucket table (a data structure in the Kademlia distributed hash table). The Kademlia algorithm uses XOR operations to calculate the distance between nodes.

[0169] 1. Node identification and distance calculation. Each node in the Kademlia network has a unique 160-bit identifier, which is usually generated from the node's public key or other unique information using a hash function. Kademlia uses XOR operations to calculate the distance between nodes, making it easier to determine the closest node.

[0170] 2. Routing table. Kademlia uses a hierarchical routing table to maintain contact information of other nodes in the network. The routing table is divided into multiple buckets, each bucket represents a region of the node ID space. Each bucket can hold up to a certain number of node contact information, usually organized according to the distance of the node from the local node.

[0171] 3. Search and storage. Kademlia supports search and storage operations based on node IDs. Nodes can achieve distributed storage of data by storing data on the nodes closest to their IDs. At the same time, nodes can find the value corresponding to a specific key by sending a search request to the network, and these requests will be propagated along the path of nodes closest to the target ID.

[0172] 4. Flexibility and fault tolerance. Kademlia is simple in design and highly fault-tolerant. Nodes can dynamically join and leave the network, and Kademlia's routing table can be updated and maintained according to network changes, maintaining the robustness and reliability of the network.

[0173] 3. Access Control Mechanism

[0174] In a trusted data center collaboration system, it is expected that data can only be accessed by authorized users. To meet this requirement, the present invention proposes an access control mechanism based on attribute encryption (ABE) in a trusted management system. This mechanism allows data owners to specify data access policies based on the identity and attributes of users, thereby achieving fine-grained access management of data. Users can download encrypted data blocks from the server, but cannot decrypt the original data without proper authorization. The core of the access control mechanism is the authorization of session keys.

[0175] 1. System initialization

[0176] During system initialization, the gateway, which acts as the attribute authority, executes the initialization algorithm to generate the system's public key and system master key. The public key is published on the blockchain, and the master key is securely stored locally on the gateway.

[0177] 2. Data encryption

[0178] The gateway executes the encryption algorithm and encrypts the data using the system public key, access policy, and negotiated session key. The encrypted ciphertext is stored locally on the gateway.

[0179] 3. User key generation

[0180] When a user requests a key, the gateway executes the key algorithm. The gateway verifies the user's identity and generates a corresponding user key based on the user's attribute set. The gateway then securely stores the public key and user key in a private channel on the blockchain shared with the data user.

[0181] 4. Data Decryption

[0182] The data user executes the decryption algorithm and uses the system public key, user key and ciphertext for decryption. If the user's attribute set meets the access policy, the decryption is successful and the encryption key is generated; otherwise, the decryption fails.

[0183] 5. Data decryption and recovery

[0184] The data user uses the encryption key to symmetrically decrypt the encrypted data downloaded from the server network, generating the required original data as output.

[0185] 4. Smart Contract Deployment

[0186] 1. Data Storage Contract

[0187] (1) Initialization

[0188] Initialize the contract variables, including the data owner and the authorized person (representing the authorized server address set). The gateway can use the relevant function interface of the contract to add, modify or delete entries to the authorized person set.

[0189] (2) Contract Storage

[0190] The server calls this contract to store the encrypted data and timestamp in the distributed storage network.

[0191] 2. Server Management Contract

[0192] (1) Add or delete server contracts

[0193] Only the creator of the contract can execute this function. A new server sends its identity certificate to the data owner for registration request. After successful authentication, the server is authorized through this function. Conversely, the data owner can remove a server by providing the address of the server to be removed from the authorized set as an input parameter of this function.

[0194] (2) Data search contract: The server calls this function to find the corresponding encrypted data and timestamp in the distributed storage system through the identity identifier.

[0195] In a specific embodiment of the present invention, a trust management system based on identity authentication driven for data center collaboration is provided. The system model is as follows: Figure 1 As shown, including:

[0196] 1. Perception layer

[0197] This layer includes various smart devices such as sensors, inductors, and wearable devices that collect real-time data from different sources.

[0198] 2. Gateway

[0199] The gateway is the management and control unit closest to the terminal device and is responsible for pre-processing the data collected by the perception layer.

[0200] 3. Server

[0201] The server is responsible for data storage and providing responsive services to data users.

[0202] 4. Data Users

[0203] Data users are individuals or entities from various application areas who process and utilize data for specific purposes.

[0204] The system aims to ensure the legitimacy of data center collaboration tasks through the following mechanisms:

[0205] 1. Mutual authentication and key negotiation

[0206] Establish trust between data center managers and devices to prevent malicious attacks. The device uses the negotiated session key to encrypt the original data to ensure confidentiality.

[0207] 2. Attribute-based encryption (ABE) access policy control

[0208] The gateway implements attribute-based encryption (ABE) to enforce specific access policies, granting users access to data based on their attributes.

[0209] 3. Distributed Data Storage

[0210] Servers work together to form a distributed data storage system, ensuring data availability and resilience.

[0211] 4. Blockchain Integration

[0212] Gateways and servers maintain the blockchain network, storing interactive messages and deploying smart contracts to ensure the transparency and integrity of transactions.

[0213] The framework involves five types of entities:

[0214] 1. Data Center Manager

[0215] Responsible for initiating collaborative tasks; its commands are limited to prevent potential malicious attacks.

[0216] 2. Equipment

[0217] Collects data and performs tasks; vulnerable to threats from malicious administrators.

[0218] 3. Gateway

[0219] A trusted entity responsible for managing and controlling the flow of data between devices and servers.

[0220] 4. Server

[0221] Semi-trusted entities that store and process data; expected to act honestly but may have curiosity about the data they process.

[0222] 5. Data Users

[0223] A person or entity that accesses and exploits data; their actions may vary and include unethical behavior such as data misuse or unauthorized access.

[0224] Overall, the framework addresses security and trust issues by implementing identity authentication, access control, distributed storage, and blockchain technology to ensure reliable data center collaboration across multiple tiers and entities.

[0225] In summary, the system of the present invention includes an authentication and key agreement module, a distributed data storage module, an access control module and a smart contract deployment module, which are described in detail below. Table 1 explains the main symbols used in this article.

[0226] Table 1

[0227]

[0228]

[0229] 1. Authentication and key agreement module

[0230] As mentioned above, an effective but malicious data center manager may induce devices to perform illegal tasks, thereby causing serious system threats. In order to avoid this problem, the present invention proposes an efficient and provably secure identity authentication and key negotiation protocol. Considering the expensive distribution and maintenance costs of traditional certificate-based identity authentication, the present invention designs a lightweight method that can be more universal by adopting simple hash functions and XOR operations. It is assumed that devices communicate with each other through a low-power wide area network method, and data users communicate with devices and servers through a cellular network.

[0231] Set the gateway to be equipped with a long-term key K GTW ; Target device D j Initially a unique identifier DID is assigned j ; Gateway computing Tag j =h(DID j ||K GTW ), Tags j As target device D j The authentication tag of , where h represents a one-way hash function;

[0232] The unique identifier DID j and authentication tag j Stored on target device D j In the trusted module of i With identity ID i and password PW i ; To the target device D j Before sending the command, the manager M i You need to register on the network with the help of the gateway GTW: First, the administrator M i Generate a random number r i And calculate the authentication parameter W i =h(r i ||PW i ), then, the registration message m is sent through the blockchain reg =(ID i ,W i ,T reg ) is sent to GTW, where T reg Indicates the manager M i Timestamp of the time when the message was sent; timestamp of the time when the registration message was received reg After that, GTW verifies the identity ID i , and then calculate the identity authentication tag Tag i =h(ID i ||K GTW ) and the value a i =W i ⊕Tag iTo hide the authentication tag i ;

[0233] GTW creates a smart card SC i , the value a i Stored on smart card SC i Then insert the smart card SC i Issued to Manager M i ; Manager M i After receiving the smart card, the random number r i Write to smart card SC i ;

[0234] If the manager M i Want to activate the target device D j , then the smart card SC i Insert the target device D j , and enter the administrator M i ID i and password PW i ; Smart Card SC i Calculate W i =h(r i ||PW i ), Tags i =W i ⊕a i , and calculate the smart card authentication parameter b i =h(Tag i ||T1), then, the smart card SC i Select a random number K for subsequent key negotiation i ; Then, the manager M i Calculate the authentication hidden parameter O i =b i ⊕K i and authentication encryption parameter E i =h(b i ||ID i ||DID j ) to hide K i and b i ; Then, the smart card SC i Through the blockchain to device D j Send login request m1=(ID i ,E i ,O i ,T1), T1 is the timestamp of the time when the smart card sends the login request; after receiving the login request m1, the target device D j First check whether |T1-T c |≤ΔT|, where T cis the timestamp of the time when the device receives the message, ΔT is the accepted transmission delay, if it is not satisfied, the verification fails, and the target device D j The request will be rejected; otherwise, the target device D j Calculation about Tag j Authentication encryption parameters I j =h(Tag j ||E i ), then the target device D j Send a login request to GTW m2 = (ID i ,E i ,DID j ,I j ,T1,T2), GTW checks whether T1 and T2 are valid to decide whether to continue or terminate. Then, the gateway GTW calculates the three necessary verification parameters b′ required for authentication i , E′ i and I′ j :

[0235] b′ i =h(Tag i ||T1),

[0236] E′ i =h(b′ i ||ID i ||DID j ),

[0237] I′ j =h(Tag j ||E′ i ),

[0238] Target device D j It is only necessary to verify whether two verification parameters E′ are met i =E i and I′ j =I j If the verification is successful, GTW accepts the administrator M i Then the gateway GTW calculates the authentication parameter F required for authentication between the device and the manager ij and i As target device D j and Manager M i Certification materials:

[0239] F ij = b′ i ⊕h(Tag j ||T3),

[0240] y i =(Tag i ||DIDj ),

[0241] where F ij is about b′ i An encryption parameter, T3 is the gateway calculation parameter F ij The timestamp of GTW is that the response message m3 of the target device is m3=(F ij ,y i ,T3) to the target device D j , target device D j After receiving the response message m3, check whether the timestamp T3 satisfies |T3-T c |≤ΔT|, if it is not satisfied, the verification fails, otherwise, the target device calculates the verification parameter b′ i =F ij ⊕h((Tag j ||T3) and verification parameter E″ i =h(b′ i ||ID i ||DID j ), if E″ i =E i , it means that the data center manager's identity authentication is successful, otherwise, the manager's request will be rejected;

[0242] Target device D j Randomly select a secret number K j For session key calculation, target device D j Obtain O' i =O i ⊕b′ i And calculate X ij =h((K′ i ||T4)⊕K j , where O′ i Refers to the previous authentication hidden parameter O i A recovery calculation parameter, X ij is the secret number K j A calculation parameter to hide K j , T4 is the target device D j Calculate O′ i Then, the target device D j Calculate the session key SKey ij =h(K′ i ⊕K j ); Finally, the target device D j Send authentication response message m4 to the administrator = (X ij ,y i ,T4) is packaged into a transaction and sent to the manager M through the blockchain iTo negotiate the key; after receiving m4, the manager M i First check T4, then use the response message m4 to check the previous y i Perform recovery calculation to obtain the authentication secret parameter y′ i =h(Tag i ||DID j ), if y′ i Equal to y i , then the manager M i The sender is concluded to be legitimate; then, the manager M i Calculate the secret parameter K used to calculate the session key j =h(K i ||T4)⊕X ij ; Finally, the manager M i By formula SKey ij =h(K i ⊕K j ) Calculate the session key SKey ij Therefore, SKey ij Can be used to protect the manager M i and target device D j Communication between.

[0243] It is important to note that a longer secret key can significantly enhance the security of the XOR operation, thereby strengthening the security of the proposed authentication scheme. In addition, to further enhance the security of the system, it is recommended that devices and managers update their authentication tags regularly.

[0244] 2. Distributed Data Storage Module

[0245] Each server in the storage system maintains a portion of the storage content, rather than a complete ledger. In addition, the status information of the relevant servers is stored in each node through a K-bucket table, where the K-bucket table refers to a data structure in the Kademlia distributed hash table. The Kademlia algorithm uses an XOR operation to calculate the distance between nodes. For example, the distance between a server with IDs 01000000 and another server with IDs 00000001 is calculated as follows:

[0246] 01000000⊕00000001=01000001

[0247] like Figure 2 As shown, each server maintains a 160-layer K-bucket table, where each K-bucket stores data in the range [2 i -1 ,2 i] contains the status information of k nodes in the storage system. The status information includes the node ID, IP address, and access port. Here, k is a system-level constant set by the storage system. Through this mechanism, the server can log at most N The query locates the target server information, where N is the total number of servers in the system.

[0248] The proposed distributed storage scheme based on the Kademlia algorithm effectively solves two key problems faced by traditional storage systems. First, the frequent entry and exit of nodes in the distributed system leads to increased network traffic and reduces storage and search efficiency. To alleviate these problems, the system of the present invention adopts a partitioned storage method, where each node maintains messages from some servers instead of the complete status information of other nodes. This method minimizes the impact on the network when participants change their status. Secondly, traditional distributed storage frameworks are susceptible to global privacy leaks caused by malicious server behavior. In contrast, the storage scheme of the present invention provides enhanced data security by limiting the status information of each node to a portion of the server. These features significantly improve the service experience while ensuring data security.

[0249] 3. Access Control Module

[0250] In a trusted data center system, it is expected that only authorized users can access the data. To meet this requirement, the present invention proposes an access control mechanism based on attribute encryption (ABE) in a trusted management framework. This mechanism enables data owners to specify data access policies based on user identity and attributes, thereby achieving refined access management of data. Users can download encrypted data blocks from the server, but cannot decrypt the original data without proper authorization. The core of the access control mechanism is the authorization of the key SKey.

[0251] Most ABE-based access control schemes require a trusted attribute authority to establish the system and distribute the corresponding secret keys to data users. However, the system based on the trusted authority is vulnerable to key abuse, because the trusted attribute authority can decrypt all encrypted data in the server by obtaining the encryption key SKey, resulting in serious data leakage. To alleviate this problem, it is recommended to delegate the responsibilities of the trusted attribute authority to a gateway with relatively strong computing power, assuming that the gateway is reliable. The access control mechanism is described in detail below:

[0252] (1)Setup(1 λ)→(PK,MSK): This is an initialization algorithm. The gateway, which acts as a trusted attribute authority, executes this algorithm during system initialization. It receives the security parameter λ as input and outputs the system's public key PK and the system master key MSK. The gateway publishes PK to the system through the blockchain and stores MSK locally.

[0253] (2) Enc(PK, P, SKey) → CipText: This is an encryption algorithm. This algorithm is executed by the gateway. It receives as input the public key PK, the access policy P, and the negotiated session key SKey. In particular, P is established during system initialization. Upon completion, the algorithm outputs the ciphertext, which is then stored internally in the gateway.

[0254] (3)KeyGen(MSK,S)→SK: This is a key generation algorithm. The key generation algorithm is also executed by the gateway. After receiving the user's secret key request, the gateway first verifies its identity. If the verification is successful, the user will be assigned the corresponding attribute set S. The algorithm accepts the system master key MSK and the user's attribute set S as input and generates a secret key SK as output. The gateway then securely stores {PK,SK} in a private channel on the blockchain shared with the data user. Note that SK is a long-term key and will not be recycled until the data user's access rights are revoked.

[0255] (4) Dec(PK, SK, CipText) → SKey: This is a key decryption algorithm. The decryption algorithm is executed by the data user. It receives as input the public key PK, the user's secret key SK, and the ciphertext CipText. After execution, the algorithm outputs the encryption key SKey. If the user's attribute set S meets the access policy P, the data user can successfully decrypt the ciphertext to recover SKey, and then can execute the final algorithm described below. On the contrary, if the access policy is not met, the decryption will fail.

[0256] (5)SymDec(Edata) SKey →PlaText: This is an algorithm for decrypting data. The data user executes this symmetric decryption algorithm. Edata is downloaded from the server network using the content identifier CID, which is provided by the gateway after the data request. The algorithm produces the required original data PlaText as output.

[0257] In order to deal with the problem that data users may initiate malicious behavior after obtaining access rights (i.e., obtaining SKey), it is crucial to establish an access rights revocation mechanism. A simple and effective method is for the gateway to maintain a confidentiality table containing the identities of authorized users. When a malicious user is detected, the gateway can take the following steps:

[0258] (1) Identity removal: The gateway removes the malicious user's identity from the authorized user confidentiality table.

[0259] (2) Behavior records: The gateway records the bad behavior of malicious users.

[0260] By following these steps, subsequent data requests for users identified as malicious will be automatically denied. This denial prevents Edata from being downloaded from the storage network and effectively revokes the user's access rights. This revocation mechanism is a proactive measure that mitigates potential risks and ensures the security of data systems.

[0261] 4. Collaboration Process and Smart Contract Deployment Module

[0262] 1. Collaboration process

[0263] The whole process can be divided into three parts.

[0264] (1) Implement a lightweight authentication and key negotiation method to ensure the reliability of the administrator and the device that initiates the collaborative task. After successful authentication, the administrator sends instructions to the relevant devices to start the collaboration.

[0265] (2) Encryption and storage process. The session key SKey negotiated during the authentication phase is encrypted by the gateway using attribute-based encryption for subsequent data access control. The ciphertext is stored inside the gateway. Subsequently, the device uses SKey to encrypt the collected raw data using a symmetric encryption algorithm and then sends it to the gateway. After receiving {Edata, T} from the gateway, T is the timestamp, the server generates and publishes a hash-based identifier CID, enabling users to find the required data in the storage system.

[0266] (3) Data request and acquisition process. When the gateway receives a secret key request from a data user, it executes the KeyGen algorithm to generate SK and sends {PK, SK} to the user through a secure channel. Note that the data user's request event is recorded on the blockchain for subsequent behavior auditing. The user then sends a data request to the gateway to obtain {CipText, CID}. Next, the user downloads {Edata, T} from the storage system and uses the timestamp t to verify the freshness of the data. Finally, the user executes the decryption function to obtain SKey from the ciphertext, and executes the symmetric decryption function to obtain the required original data. Note that data cleaning, formatting, and preprocessing are not within the scope of this invention.

[0267] 2. Smart Contract Deployment

[0268] Through smart contracts, the present invention provides a system that can encode the interaction rules of stakeholders into programs and automatically execute them without centralized trust. The entire contract implementation is divided into two main modules: data storage contract and server management contract. In these contracts, the present invention utilizes the special variable msg.sender, which always exists in the global namespace and represents the address of the creator or caller of the contract.

[0269] (1) Data Storage Contract

[0270] 1) Initialization: This process initializes several contract variables. The data owner dataOwner variable is of type address, representing the address of the gateway. The authorized server authorizedServers variable is of type mapping, representing a mapping that maps the authorized server address to a Boolean value. The gateway can use the relevant function interface of the contract to add, modify, or delete entries in the authorizedServers collection to manage the server.

[0271] 2) Data storage contract: This contract is called by the server to store {Edata, T} in the distributed storage network.

[0272] (2) Server Management Contract

[0273] In this contract, the exit and entry of the server in the data center system are considered. The server management contract gateway deployment usually provides the following functional interfaces.

[0274] 1) Add or delete server contracts: This function can only be executed by the creator of the contract. The new server sends an identity certificate to the data owner as a registration request. After successful verification, the server is authorized through this function. Conversely, to remove a server from the authorized set, the data owner can provide the address of the server to be deleted as an input parameter to this function.

[0275] 2) Data search contract: This function is called by the server. It aims to find the corresponding {Edata, T} in the distributed storage system through the CID of the data user.

[0276] The present invention provides an identity authentication-driven trust management system for data center collaboration. There are many methods and approaches to implement the technical solution. The above is only a preferred implementation of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention. All components not specified in this embodiment can be implemented using existing technologies.

Claims

1. An identity-based trust management system for data center collaboration, characterized in that: It includes authentication and key negotiation module, distributed data storage module, access control module and smart contract deployment module; The authentication and key negotiation module completes identity authentication and key negotiation through an identity authentication algorithm; The distributed data storage module implements distributed data storage of the server through the Kademlia algorithm; The access control module is used to add an access control mechanism based on attribute encryption (ABE) to the trusted management system, wherein the access control mechanism enables the data owner to specify a data access policy based on user identity and attributes; The smart contract deployment module is used to implement collaborative processes and smart contract deployment.

2. The system according to claim 1, characterized in that The identity authentication algorithm includes: setting the devices to communicate via a low-power wide area network method, and the data user to communicate with the device and the server via a cellular network; Set the gateway to be equipped with a long-term key K GTW ; Target device D j Initially a unique identifier DID is assigned j ; Gateway computing Tag j =h(DID j ||K GTW ), Tags j As target device D j The authentication tag of , where h represents a one-way hash function; The unique identifier DID j and authentication tag j Stored on target device D j In the trusted module of i With identity ID i and password PW i ; To the target device D j Before sending the command, the manager M i You need to register on the network with the help of the gateway GTW: First, the administrator M i Generate a random number r i And calculate the authentication parameter W i =h(r i ||PW i ), then, the registration message m is sent through the blockchain reg =(ID i ,W i ,T reg ) is sent to GTW, where T reg Indicates the manager M i Timestamp of the time when the message was sent; timestamp of the time when the registration message was received reg After that, GTW verifies the identity ID i , and then calculate the identity authentication tag Tag i =h(ID i ||K GTW ) and numerical values To hide the authentication tag i ; GTW creates a smart card SC i , the value a i Stored on smart card SC i Then insert the smart card SC i Issued to Manager M i ; Manager M i After receiving the smart card, the random number r i Write to smart card SC i ; If the manager M i Want to activate the target device D j , then the smart card SC i Insert the target device D j , and enter the administrator M i ID i and password PW i ; Smart Card SC i calculate And calculate the smart card authentication parameter b i =h(Tag i ||T1), then, the smart card SC i Select a random number K for subsequent key negotiation i ; Then, the manager M i Calculate authentication hidden parameters and authentication encryption parameter E i =h(b i ||ID i ||DID j ) to hide K i and b i ; Then, the smart card SC i Through the blockchain to device D j Send login request m1=(ID i ,E i ,O i ,T1), T1 is the timestamp of the time when the smart card sends the login request; after receiving the login request m1, the target device D j First check whether |T1-T c |≤ΔT|, where T c is the timestamp of the time when the device receives the message, ΔT is the accepted transmission delay, if it is not satisfied, the verification fails, and the target device D j The request will be rejected; otherwise, the target device D j Calculation about Tag j Authentication encryption parameters I j =h(Tag j ||E i ), then the target device D j Send a login request to GTW m2 = (ID i ,E i ,DID j ,I j ,T1,T2), GTW checks whether T1 and T2 are valid to decide whether to continue or terminate. Then, the gateway GTW calculates the three necessary verification parameters b′ required for authentication i , E′ i and I′ j : b′ i =h(End) i ||T1), E′ i =h(b′ i ||ID i ||DID j ), I′ j =h(day j ||E′ i ), Target device D j It is only necessary to verify whether two verification parameters E′ are met i =E i and I′ j =I j If the verification is successful, GTW accepts the administrator M i Then the gateway GTW calculates the authentication parameter F required for authentication between the device and the manager uj and i As target device D j and Manager M i Certification materials: y i =(Tag i ||DID j ), where F ij It is about b′ i An encryption parameter, T3 is the gateway calculation parameter F ij The timestamp of GTW is that the response message m3 of the target device is m3=(F ij ,y i ,T3) to the target device D j , target device D j After receiving the response message m3, check whether the timestamp T3 satisfies |T3-T c |≤ΔT|, if it is not satisfied, the verification fails, otherwise, the target device calculates the verification parameters and verification parameter E″ i =h(b′ i ||ID i ||DID j ), if E″ i =E i , it means that the data center manager's identity authentication is successful, otherwise, the manager's request will be rejected; Target device D j Randomly select a secret number K j For session key calculation, target device D j get And calculate Where O′ i Refers to the previous authentication hidden parameter O i A recovery calculation parameter, X ij is the secret number K j A calculation parameter to hide K j , T4 is the target device D j Calculate O′ i Then, the target device D j Calculate the session key Finally, the target device D j Send authentication response message m4 to the administrator = (X ij ,y i ,T4) is packaged into a transaction and sent to the manager M through the blockchain i To negotiate the key; after receiving m4, the manager M i First check T4, then use the response message m4 to check the previous y i Perform recovery calculation to obtain the authentication secret parameter y′ i =h(Tag i ||DID j ), if y′ i Equal to y i , then the manager M i The sender is concluded to be legitimate; then, the manager M i Calculates secret parameters used to calculate session keys Finally, Manager M i By formula Calculate the session key SKey ij .

3. The system according to claim 2, characterized in that The distributed data storage module implements the distributed data storage of the server through the Kademlia algorithm, which specifically includes: the server status information is stored in each node through the K bucket table. The K bucket table is a data structure in the Kademlia distributed hash table. The Kademlia algorithm uses XOR operation to calculate the distance between nodes. Each server maintains a 160-layer K bucket table, where each K bucket storage range is in the interval [2 i-1 ,2 i ], the status information includes the node ID, IP address and access port, k is a system-level constant; the server can log at most N The query locates the target server information, where N is the total number of servers in the system.

4. The system according to claim 3, characterized in that The access control mechanism includes: Step a1: The gateway acting as a trusted attribute authority executes the following initialization algorithm during system initialization: Setup(1 λ )→(PK,MSK) Where λ represents the security parameter, PK represents the public key, and MSK represents the system master key; the gateway publishes PK to the system through the blockchain and stores MSK locally; Step a2: The gateway executes the following encryption algorithm, where Enc represents the encryption algorithm, which is used to encrypt the negotiated session key Skey: Enc(PK,P,SKey)→CipText Where P represents the access policy established during system initialization; CipText represents the ciphertext; Step a3: The gateway executes the following key generation algorithm, where KeyGen represents the key generation algorithm, which is used to generate the user's secret key SK: KeyGen(MSK,S)→SK Where S represents the attribute set; after receiving the user's secret key request, the gateway first verifies its identity. If the verification is successful, the user will be assigned the corresponding attribute set S; the gateway securely stores {PK, SK} in a private channel on the blockchain shared with the data user; In step a4, the data user executes the following key decryption algorithm, where Dec represents the decryption algorithm, to decrypt the ciphertext to recover the session key Skey: Dec(PK,SK,CipText)→SKey Where Skey represents the encryption key; if the user's attribute set S meets the access policy P, the data user successfully decrypts the ciphertext to recover the encryption key SKey, and then executes step a5; if the access policy is not met, the decryption will fail; Step a5: The data user executes the following data decryption algorithm, where SymDec represents a symmetric decryption algorithm, for decrypting the encrypted data Edata: StmDec(Edata) SKey →PlaText PlaText is the original data output by the data decryption algorithm.

5. The system according to claim 4, characterized in that The access control mechanism also includes an access rights revocation mechanism: the gateway maintains a confidentiality table containing the identities of authorized users. When a malicious user is detected, the gateway takes the following steps: Step b1, identity removal: the gateway removes the identity of the malicious user from the confidentiality table; Step b2, behavior recording: the gateway records the bad behavior of malicious users; By executing steps b1 to b2, subsequent data requests from users identified as malicious users will be automatically rejected.

6. The system according to claim 5, characterized in that The collaboration process includes: Step c1, executing the identity authentication algorithm to ensure the reliability of the manager and the device that initiates the collaboration task. After the identity authentication is successful, the manager sends instructions to the relevant device to start the collaboration; Step c2, encryption and storage process: The session key SKey negotiated in the authentication phase is encrypted by the gateway using attribute-based encryption for subsequent data access control; the ciphertext is stored inside the gateway; subsequently, the device uses SKey to encrypt the collected raw data using a symmetric encryption algorithm and then sends it to the gateway; after receiving {Edata, T} from the gateway, the server generates and publishes a hash-based identifier CID, enabling users to find the required data in the storage system; T is the timestamp; Step c3, data request and acquisition process: When the gateway receives the data user's secret key request, the gateway executes the key generation algorithm in step a3 to generate the user's secret key SK, and sends {PK, SK} to the user through a secure channel; the data user's request event is recorded on the blockchain for subsequent behavior auditing; the user sends a data request to the gateway to obtain {CipText, CID}, then the user downloads {Edata, T} from the storage system and uses the timestamp T to verify the freshness of the data; finally, the user executes the decryption function to obtain SKey from the ciphertext, and executes the symmetric decryption function to obtain the required original data.

7. The system according to claim 6, characterized in that The smart contract deployment module completes the smart contract deployment through the data storage contract module and the server management contract module.

8. The system according to claim 7, characterized in that The data storage contract module performs the following steps: Step d1, initialize the following contract variables: The data owner dataOwner variable is of type address, which represents the address of the gateway; The type of the authorized server authorizedServers variable is mapping, which represents a mapping that maps the authorized server address to a Boolean value; The gateway uses the relevant function interface of the contract to add, modify or delete entries in the authorizedServers collection to manage the server; In step d2, the server calls the data storage contract Filecoin. Filecoin uses smart contracts to manage storage transactions and stores {Edata, T} in the distributed storage network.

9. The system according to claim 8, characterized in that The server management contract module performs the following steps: Step e1, adding and deleting server contracts: adding and deleting server contracts can only be executed by the creator of the contract. The new server sends an identity certificate to the data owner as a registration request. After successful verification, the server is authorized through the relevant function interface; if a server is to be removed from the authorized server set authorizedServers, the data owner provides the address of the server to be deleted as an input parameter to the relevant function interface; Step e2, data search contract: The server calls the data search contract and finds the corresponding {Edata, T} in the distributed storage system through the data user's identity identifier CID.

10. An electronic device, comprising a processor and a memory, wherein the memory stores a program code, the program code is used to run the system according to any one of claims 1 to 9, and the program code can be executed by the processor.

Citation Information

Cited By

  • RFID smart card security authentication method and system

    CN119067144A

  • Key management method and device based on block chain network and quantum security technology

    CN119182512A