A remote authentication method for devices to reconnect across domains in heterogeneous IoT networks

By introducing key configuration and autonomous authentication mechanisms into heterogeneous IoT networks, devices achieve reliable reconnection and secure connections between different network domains, solving connection stability and security challenges, and improving system performance and availability. Scalability.

CN118199892BActive Publication Date: 2024-08-23CHENGDU UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410435288.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-08-23
Estimated Expiration
2044-04-11

AI Technical Summary

Technical Problem

In heterogeneous IoT networks, it is difficult to ensure the stability and security of device connections between different network domains. Especially in the face of network heterogeneity and growing network scale, existing remote authentication solutions are difficult to effectively cope with. Problems with device switching and connection interruption in different network environments.

Method used

By introducing key configuration and domain controller ID list, the certifier randomly receives the key ring and generates the shared key. The device registers and verifies the integrity during the system initialization phase, builds the certification tree, and autonomously identifies and reconnects when offline. Domain controller uses an autonomous authentication mechanism to ensure the security and stability of the connection.

Benefits of technology

It improves the remote authentication security and initialization performance of devices in heterogeneous IoT networks, reduces communication overhead, enhances the scalability and autonomy of the system, simplifies the reconnection process of devices between different domains, and improves the overall System reliability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118199892B
    Figure CN118199892B
Patent Text Reader

Abstract

The present invention discloses a remote authentication method in which devices in a heterogeneous Internet of Things network can reconnect across domains, and relates to the technical field of network security. The method includes: a system initialization phase, a certifier registration phase, a certifier integrity verification phase, a certification tree construction phase, a certification aggregation phase, a disconnected device autonomous authentication initialization phase, a domain controller transmission request phase, a network administrator security response phase, a domain controller transmission response message phase, and a device verification and authentication response phase. The present invention improves the overall performance and reliability of the system by introducing key configuration, certification tree construction, and autonomous authentication mechanisms; mainly by inviting neighbors to build certification trees, adopting certification aggregation technology, and introducing a device autonomous cross-domain reconnection mechanism, the network security is successfully improved, while enhancing the system's autonomous adaptability to dynamic changes in devices, reducing dependence on network administrators, and thus improving the flexibility of the overall system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things security technology, and in particular to a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains. Background Art

[0002] With the rapid development of IoT technology, the widespread application of IoT devices in industries and factories has become increasingly popular. It is predicted that by 2030, the number of IoT devices may surge to 125 billion. These devices play a key role in production and operations, however, with this comes growing concerns about system security. The widespread use of IoT devices makes them potential targets for attack. Once attacked, they may have a serious impact on Internet access, so it is crucial to ensure the security of IoT devices. On the other hand, with the rapid evolution of the IoT and network communications, cross-domain reconnection technology has become crucial to cope with the movement of devices and users in different network environments. Maintaining a persistent and reliable connection is essential to ensure that devices maintain stability and security of communication while switching domains seamlessly.

[0003] Remote attestation (RA) as a solution helps improve network security by enabling devices to autonomously prove the integrity of their software configurations. However, current RA solutions still face challenges in dealing with network heterogeneity and the ever-increasing scale of networks, and a more comprehensive approach is needed to ensure the security and stability of IoT networks. This technology is committed to ensuring the integrity of device software configurations through remote verification to prevent potential security threats. However, in the face of different network environments and the growing scale of networks, further innovation and improvement are needed to better adapt to complex network challenges.

[0004] At the same time, cross-domain reconnection is to solve the technical challenge of maintaining a persistent and reliable connection when a device or user switches from one network domain to another. The automatic reconnection mechanism is an autonomous recovery strategy for intelligent network devices to deal with connection interruptions. By regularly monitoring the connection status, the device immediately starts the reconnection process after detecting a disconnection, and adopts a reasonable reconnection interval and exponential backoff mechanism to effectively avoid frequent connection attempts from causing excessive pressure on the network and devices. While the device handles connection problems autonomously, it ensures that the system can operate robustly in abnormal situations by setting limits such as the maximum number of reconnections, thereby improving overall reliability and stability. This mechanism provides an effective solution for scenarios that require devices to be online for a long time and operate continuously and stably. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a remote authentication method for devices in a heterogeneous Internet of Things network to reconnect across domains, so that devices can achieve reliable reconnection between different network domains, while ensuring the security of the connection through remote authentication, which helps to solve the connection stability and security challenges that devices may face when switching network domains in a heterogeneous Internet of Things environment.

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

[0007] A remote authentication method for devices in a heterogeneous Internet of Things network to reconnect across domains, comprising:

[0008] System initialization phase: Network administrator O is the prover Configure the first key K u and the second key K t , and for the prover Assign a unique identity; Network administrator O configures the third key K for domain controller C s And set the identity list of domain controller C; the certifier Randomly receive a key ring of size r, the network administrator O is the prover Generate the fourth key K ic ;

[0009] Certifier Registration Phase: Certifier Send a join network request jrep to domain controller C, indicating that its initialization is complete; domain controller C verifies the prover After the identity is registered, it is registered in the certifier table; after the registration is completed, the domain controller C sends the certifier Send a confirmation message jresp; after that, domain controller C periodically checks the certifier Status, if the prover If the certification is not made within the prescribed time, the certifier The status is updated to "Unhealthy";

[0010] Prover integrity verification phase: for the data stored in the prover Software configuration hash sch in the prover In each The integrity of the software configuration is verified during the period, h The maximum time that the prover can remain active without proving; if the verification fails, the prover Exit this stage; after successful verification, the prover Participate in the construction of proof trees;

[0011] Proof tree construction phase: the prover as the initiator To the neighbors Send an invitation message invite to neighbors The initiator's identity is verified through the shared key, and then the neighbor responds to the initiator's invitation acceptance message iaccept. Acting as an intermediate attestor or leaf attestor and as an initiator attestor Build a proof tree together;

[0012] Attestation aggregation phase: child nodes send attestation messages to their parent nodes; the parent node uses the aggregation function aggregateAttestation() to aggregate the attestation of child nodes; the granularity of attestation aggregation is determined by the parameter α g Control; the aggregated proof message is sent to the higher-level parent node until the initiator prover receives all the aggregated proof messages, and then sends the final proof message to the controller; the controller verifies the aggregated proof and updates the status of each prover;

[0013] Offline device self-authentication initialization phase: Normal devices after δ c If no network message is received within a certain period of time, it can be judged as offline; offline device Find the domain that suits you through the Cid.list list and obtain the new domain controller identity Cid new , by Cid new Generate a request message jfind, and then send the request message jfind to all domain controllers;

[0014] Domain controller transfer request stage: Domain controller C decrypts the request message jfind; Domain controller C compares it with its own identity. If it is the same as Cid new If they are not equal, it means that the domain identity of the device does not match the domain identity in the request message, then the request is ignored; if the device is not allowed to be accepted, the message jfind is returned unacc ;Domain controller C generates a query message OCask and sends it to network administrator O;

[0015] Network administrator security response phase: Network administrator O decrypts the received query message OC k, generates a response device message JOrep and a query response message OCrep, and sends the query response message OCrep to the domain controller C;

[0016] Domain controller transmits response message stage: Domain controller C decrypts the query response message OCrep, verifies the authenticity of the message, sets the acceptance flag and generates an authentication response message JCrep, and sends the authentication response message JCrep to the offline device

[0017] Device Verification and Authentication Response Phase: Offline Device Decrypt the authentication response message JCrep, the offline device Verify the authenticity of the message and the acceptance flag; if passed, the device is disconnected Get new domain controller and offline device After that, the offline device A join request may be resent to domain controller C to indicate that its initialization is complete and to rejoin the network.

[0018] Furthermore, the system initialization phase specifically includes:

[0019] Network administrator O is the certifier Configure the first key K u , the first key K u It is a symmetric key shared by all devices in a network;

[0020] Network administrator O is the certifier Configure the second key K t , the second key K t Is a network administrator and certifier A shared symmetric key;

[0021] Network administrator O configures the third key K for domain controller C s , the third key K s It is a symmetric key shared by network administrator O and domain controller C;

[0022] The network administrator O sets the identity list Cid.list of all domain controllers C: specifically, Cid.list = {Cid1, Cid2, Cid3, ..., Cid n}, n is the total number of domain controllers, and the network administrator O is the certifier Assign a unique identity, denoted as Uid;

[0023] Prover A key ring of size r is randomly received from the key pool, where the key pool contains a set of device symmetric keys and their key identities {(K ID ,K)}, the key ring is represented as:

[0024]

[0025] The network administrator O uses the key derivation function KDF as the prover Derive the fourth key K ic , specifically: The fourth key K ic For domain controller C and certifier A shared symmetric key.

[0026] Furthermore, the certifier registration stage specifically includes: First, synthesize your own key ring into key identity keyids: Then the key identity keyids, the identity of the domain controller C Cid and the prover The unique identity identifier Uid is synthesized into the second message jrep: jrep←Uid||keyids||Cid, and finally the second message jrep and the fourth key K ic The message authentication code value MAC(K ic ) is sent to the domain controller C, expressed as: authSend(MAC(K ic ),jrep);

[0027] The domain controller C obtains the key identity keyids, the identity Cid of the domain controller C and the prover according to the second message jrep The unique identity Uid of the domain controller C is then used to derive the fourth key K through the key derivation function KDF. ic , specifically:

[0028] Finally, domain controller C uses the fourth key K ic The calculated message authentication code MAC is used for identity authentication. After the authentication is passed, the prover Registering in a prover table, which records each prover's current status and the time of the last proof;

[0029] The domain controller C sends a Send a confirmation message jresp, which includes the identity Cid of the domain controller C, the maximum time δ during which the prover remains active without proving h , the maximum number of proofs that can be aggregated α g , and the maximum number of children c that a prover can have max .

[0030] Furthermore, the proof tree construction stage specifically includes:

[0031] As the initiator's prover To the neighbors Send an invitation message invite, the invitation message invite includes the prover The unique identifier Uid, the tree identifier treeid, and the key identifier keyids, wherein the tree identifier treeid is randomly generated by calling a function that generates a random integer, and the key identifier Keyids is the prover A set of key identities stored in its keyring;

[0032] Be a Neighbor When receiving the invite message, first check the initiator's certifier Is it recently The integrity is verified in time, and then checked whether it is consistent with the prover as the initiator sharing at least one secret key;

[0033] If with Share at least one key, neighbors The key ring is generated and the prover Shared Extract the key ring Form a set of keys K ik , generate a random number r, and finally construct the receiving message iaccept to respond to the initiator's invitation. The receiving message iaccept includes the source device identity src, the target device identity dst, the key identity keyids, the tree identity treeid, the random number r, and the shared key K ik Calculate the message authentication code MAC;

[0034] Prover Determine whether to continue processing neighbors by checking whether the number of child nodes has reached the preset upper limit Response: If the number of child nodes does not reach the upper limit, the message authentication code MAC is verified by extracting the corresponding key from the key ring. If the verification passes, the child node set is updated; then the child node acceptance message cacccept is constructed, and the child node acceptance message cacccept includes the source device identity src, the key identity keyids, the random number r and the tree identity treeid, and finally the shared key K ik , random number r and child node acceptance message caccept sent to neighbors

[0035] Neighbor After receiving the child node acceptance message cacccept, verify whether the message authentication code MAC is consistent with the key K ik If the verification is successful, a certificate containing the prover will be created. The device identity, tree identity treeid and key K ik The parent collection; check whether the upper limit of the number of child nodes is zero, and decide whether to send authentication information or broadcast invitation messages: if the upper limit is not zero, create a key ring (K ID,K) set kids, construct the invitation message invite and broadcast it to other potential child nodes; finally, use the secure channel established between the parent node and the child node in the tree to transmit the proof message.

[0036] Furthermore, the proof aggregation stage specifically includes:

[0037] First, the child node constructs a new authentication information a', which contains the proof generated by generateProof(): generateProof():proof←MAC(K ic ,uid||cntr||treeid), where cntr is a counter, each time The authentication information a' also contains the sub-device identity. Then the aggregateAttestation() algorithm is called to merge the newly generated authentication information a' into the original authentication information a. The granularity of the authentication aggregation is determined by the parameter α. g Control; finally, the child node generates a proof message attst by combining the child node device identity src, the parent node device identity dst and the merged authentication information a, and sends the proof message attst and the message verification code MAC of the proof message attst to the parent node device;

[0038] The parent node device checks the child node attst.src in the proof message attst and determines the key K of the corresponding child node jk Specifically, we traverse the child nodes children to find the child node that matches attst.src, and then get its key K jk ; Use the obtained child node key K jk , calculate the message verification code MAC of the proof message attst, and compare it with the MAC line transmitted by the child node: if the two match, it means that the proof message attst is valid and can continue to be processed; after the verification is passed, the authentication information a in the proof message attst is aggregated into the previous proof a, and the child node list children is updated, and attst.src and the corresponding key K are added to the authentication information a in the proof message attst. jk Remove from the list; check whether the child node list is empty: if it is empty, it means that all child nodes have been processed, and call the sendAttestation function to send the final aggregate proof a; finally set attested to True, indicating that the attestation has been successfully processed;

[0039] The domain controller C determines the corresponding prover's key K by checking the source node attst.src in the proof message attst icSpecifically, we traverse the registry reg to find the prover that matches attst.src, and then obtain its key K ic ; Use the obtained prover key K ic , calculate the MAC of the attestation message attst and compare it with the received MAC: if the two match, it means that attestation is valid and can continue to be processed; after verification, call getValidProvers(attst.a) to obtain the valid prover list pvalid in prover a in attst; finally, call update(uid) to update the status of all provers in pvalid.

[0040] Furthermore, in the offline device autonomous authentication initialization phase, the process of generating the request message jfind is:

[0041] Generate a secure random number r1 through the randomINT() function, using the first key K u , New domain controller identity Cid new , the device identity Uid and the random number r1 are combined to generate a secure request message jfind:

[0042] Furthermore, in the stage where the domain controller transmits the request, the process in which the domain controller C decrypts the request message jfind is specifically as follows: Domain controller C obtains the new domain controller identity Cid new , device identity Uid and random number r1;

[0043] The process of domain controller C generating the query message OCask is as follows:

[0044] Domain controller C takes the device identity Uid, the secure random number r2 generated by the randomINT() function, and the key identity K ID and the new domain controller identity Cid new Combined into a secure query message OCask, using the third key K shared by domain controller C and network administrator O s The query message OCask is obtained by encryption, which is expressed as:

[0045] Furthermore, in the network administrator security response phase, the process of the network administrator O decrypting the received query message OCask is specifically as follows: The network administrator O decrypts and obtains the new domain controller identity Cid new , device identity Uid, random number r2 and key identity K ID ;

[0046] The specific process of the network administrator O generating the response device message JOrep and the inquiry response message OCrep is as follows:

[0047] The network administrator O finds the key Ki through the device identity Uid: Database[Uid] = K i ;

[0048] Network administrator O uses the new domain controller identity Cid new Generate K icnew :

[0049] Network administrator O uses key K i and Cid new Generate response device message JOrep:

[0050] Using the third key K s , K icnew , random number r2 and random number r3 are combined into a secure query response message OCrep, which is specifically expressed as:

[0051] Furthermore, the domain controller transmitting the response message stage specifically includes:

[0052] Domain controller C decrypts the query response message OCrep, and the specific process is as follows:

[0053] Domain controller C verifies the authenticity of the message by comparing the secure random number r2. If the random number r2 contained in OCrep is equal to the secure random number r2 generated in the prover integrity verification phase, the verification is successful.

[0054] Domain controller C sets the accept flag: acc = 1 and generates an authentication response message JCrep:

[0055]

[0056] Send the authentication response message JCrep to the offline device

[0057] Furthermore, the device verification and authentication response phase specifically includes:

[0058] Offline device Decrypt the authentication response message JCrep to obtain the response device message JOrep, the random number r1 and the acceptance flag acc, expressed as:

[0059] Offline device By comparing the secure random number in the device message JOrep to see if it is r1, and judging whether the acceptance flag acc is equal to 1, the authenticity of the message and the acceptance flag are verified;

[0060] Offline device Get new domain controller and devices The shared key K icnew , expressed as:

[0061] The beneficial effects of the present invention are:

[0062] 1) In the remote authentication method for devices in heterogeneous Internet of Things networks that can reconnect across domains of the present invention, key configuration and domain controller ID list are introduced through the process of initialization of the prover by the network administrator, and the prover randomly receives the key ring and generates a shared key, which provides a novel starting stage for the remote authentication of devices in heterogeneous Internet of Things networks and enhances the security and initialization performance of the system.

[0063] 2) In the device cross-domain reconnection remote authentication method in the heterogeneous Internet of Things network of the present invention, the prover invites neighbors to build a proof tree and adopts proof aggregation technology, which effectively reduces communication overhead and improves the communication performance of the network. This innovative method helps to improve the construction and verification process of the proof tree and enhances the performance and scalability of the overall system.

[0064] 3) In the remote authentication method for cross-domain reconnection of devices in the heterogeneous Internet of Things network of the present invention, a mechanism for autonomous cross-domain reconnection of offline devices is introduced, so that the devices can independently authenticate and adapt to different domain controllers, thereby improving the autonomy and dynamic adaptability of the system. This innovative processing method helps to reduce dependence on network administrators and make the system more flexible. After a certain period of time without receiving a network message, the device can be judged as offline, and then generate a request message by finding a domain controller ID suitable for itself, and independently pass it to the domain controller in the network. This autonomous authentication mechanism not only simplifies the process, but also enables the system to respond to device status changes more intelligently, improving the scalability and reliability of the overall system. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A flowchart of a remote authentication method for enabling cross-domain reconnection of devices in a heterogeneous Internet of Things network provided by an embodiment of the present invention;

[0066] Figure 2 A heterogeneous Internet of Things network structure topology diagram provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0067] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0068] See also Figure 1-Figure 2 , the present invention provides a technical solution:

[0069] A remote authentication method for devices in a heterogeneous Internet of Things network to reconnect across domains, comprising:

[0070] S1 System initialization phase: Network administrator O is the prover Configure the first key K u and the second key K t , and for the prover Assign a unique identity; Network administrator O configures the third key K for domain controller C s And set the identity list of domain controller C; the certifier Randomly receive a key ring of size r, the network administrator O is the prover Generate the fourth key K ic ;

[0071] Preferably, the system initialization stage specifically includes:

[0072] Network administrator O is the certifier Configure the first key K u , the first key K u It is a symmetric key shared by all devices in a network;

[0073] Network administrator O is the certifier Configure the second key K t , the second key K t Is a network administrator and certifier A shared symmetric key;

[0074] Network administrator O configures the third key K for domain controller C s , the third key K s It is a symmetric key shared by network administrator O and domain controller C;

[0075] The network administrator O sets the identity list Cid.list of all domain controllers C: specifically, Cid.list = {Cid1, Cid2, Cid3, ..., Cid n}, n is the total number of domain controllers, and the network administrator O is the certifier Assign a unique identity, denoted as Uid;

[0076] Prover A key ring of size r is randomly received from the key pool, where the key pool contains a set of device symmetric keys and their key identities {(K ID ,K)}, the key ring is represented as:

[0077]

[0078] The network administrator O uses the key derivation function KDF as the prover Derive the fourth key K ic , specifically: The fourth key K ic For domain controller C and certifier A shared symmetric key.

[0079] Through the process of initializing the prover by the network administrator, key configuration and domain controller ID list are introduced, and the prover randomly receives the key ring and generates shared keys, which provides a novel starting stage for remote authentication of devices in heterogeneous IoT networks and enhances the security and initialization performance of the system.

[0080] S2 Prover Registration Phase: Prover Send a join network request jrep to domain controller C, indicating that its initialization is complete; domain controller C verifies the prover After the identity is registered, it is registered in the certifier table; after the registration is completed, the domain controller C sends the certifier Send a confirmation message jresp; after that, domain controller C periodically checks the certifier Status, if the prover If the certification is not made within the prescribed time, the certifier The status is updated to "Unhealthy";

[0081] Preferably, the certifier registration stage specifically includes: First, synthesize your own key ring into key identity keyids: Then the key identity keyids, the identity of the domain controller C Cid and the prover The unique identity identifier Uid is synthesized into the second message jrep: jrep←Uid||keyids||Cid, and finally the second message jrep and the fourth key K ic The message authentication code value MAC(K ic ) is sent to the domain controller C, expressed as: authSend(MAC(K ic ),jrep);

[0082] The domain controller C obtains the key identity keyids, the identity Cid of the domain controller C and the prover according to the second message jrep The unique identity Uid of the domain controller C is then used to derive the fourth key K through the key derivation function KDF. ic , specifically:

[0083] Finally, domain controller C uses the fourth key K ic The calculated message authentication code MAC is used for identity authentication. After the authentication is passed, the prover Registering in a prover table, which records each prover's current status and the time of the last proof;

[0084] The domain controller C sends a Send a confirmation message jresp, which includes the identity Cid of the domain controller C, the maximum time δ during which the prover remains active without proving h , the maximum number of proofs that can be aggregated α g , and the maximum number of children c that a prover can have max .

[0085] S3 prover integrity verification phase: for the data stored in the prover Software configuration hash sch in the prover In each The integrity of the software configuration is verified during the period, h The maximum time that the prover can remain active without proving; if the verification fails, the prover Exit this stage; after successful verification, the prover Participate in the construction of proof trees;

[0086] S4 Proof Tree Construction Phase: Prover as Initiator To the neighbors Send an invitation message invite to neighbors The initiator's identity is verified through the shared key, and then the neighbor responds to the initiator's invitation acceptance message iaccept. Acting as an intermediate attestor or leaf attestor and as an initiator attestor Build a proof tree together;

[0087] Preferably, the proof tree construction stage specifically includes:

[0088] As the initiator's prover To the neighbors Send an invitation message invite, the invitation message invite includes the prover Unique identity Uid, tree identity treeid, key identity Keyids, the tree identity treeid is randomly generated by calling a function that generates a random integer, the key identity Keyids is the prover A set of key identities stored in its keyring;

[0089] Be a Neighbor When receiving the invite message, first check the initiator's certifier Is it recently The integrity is verified in time, and then checked whether it is consistent with the prover as the initiator sharing at least one secret key;

[0090] If with Share at least one key, neighbors The key ring is generated and the prover Shared Extract the key ring Form a set of keys K ik , generate a random number r, and finally construct the receiving message iaccept to respond to the initiator's invitation. The receiving message iaccept includes the source device identity src, the target device identity dst, the key identity keyids, the tree identity treeid, the random number r, and the shared key K ik Calculate the message authentication code MAC;

[0091] Prover Determine whether to continue processing neighbors by checking whether the number of child nodes has reached the preset upper limit Response: If the number of child nodes does not reach the upper limit, the message authentication code MAC is verified by extracting the corresponding key from the key ring. If the verification passes, the child node set is updated; then the child node acceptance message cacccept is constructed, and the child node acceptance message cacccept includes the source device identity src, the key identity keyids, the random number r and the tree identity treeid, and finally the shared key K ik , random number r and child node acceptance message caccept sent to neighbors

[0092] Neighbor After receiving the child node acceptance message cacccept, verify whether the message authentication code MAC is consistent with the key K ik If the verification is successful, a certificate containing the prover will be created. The device identity, tree identity treeid and key K ik The parent collection; check whether the upper limit of the number of child nodes is zero, and decide whether to send authentication information or broadcast invitation messages: if the upper limit is not zero, create a key ring (K ID ,K) set kids, construct the invitation message invite and broadcast it to other potential child nodes; finally, use the secure channel established between the parent node and the child node in the tree to transmit the proof message.

[0093] S5 proof aggregation phase: the child node sends a proof message attst to its parent node; the parent node uses the aggregation function aggregateAttesation() to aggregate the proofs of the child nodes; the granularity of proof aggregation is determined by the parameter α g Control; the aggregated proof message is sent to the higher-level parent node until the initiator prover receives all the aggregated proof messages, and then sends the final proof message to the controller; the controller verifies the aggregated proof and updates the status of each prover;

[0094] Preferably, the proof aggregation stage specifically includes:

[0095] First, the child node constructs a new authentication information a', which contains the proof generated by generateProof(): generateProof():proof←MAC(K ic ,uid||cntr||treeid), where cntr is a counter, each time The authentication information a' also contains the sub-device identity. Then the aggregateAttestation() algorithm is called to merge the newly generated authentication information a' into the original authentication information a. The granularity of the authentication aggregation is determined by the parameter α. g Control; finally, the child node generates a proof message attst by combining the child node device identity src, the parent node device identity dst and the merged authentication information a, and sends the proof message attst and the message verification code MAC of the proof message attst to the parent node device;

[0096] The parent node device checks the child node attst.src in the proof message attst and determines the key K of the corresponding child node jk Specifically, we traverse the child nodes children to find the child node that matches attst.src, and then get its key K jk ; Use the obtained child node key K jk, calculate the message verification code MAC of the proof message attst, and compare it with the MAC line transmitted by the child node: if the two match, it means that the proof message attst is valid and can continue to be processed; after the verification is passed, the authentication information a in the proof message attst is aggregated into the previous proof a, and the child node list children is updated, and attst.src and the corresponding key K are added to the authentication information a in the proof message attst. jk Remove from the list; check whether the child node list is empty: if it is empty, it means that all child nodes have been processed, and call the sendAttestation function to send the final aggregate proof a; finally set attested to True, indicating that the attestation has been successfully processed;

[0097] The domain controller C determines the corresponding prover's key K by checking the source node attst.src in the proof message attst ic Specifically, we traverse the registry reg to find the prover that matches attst.src, and then obtain its key K ic ; Use the obtained prover key K ic , calculate the MAC of the attestation message attst and compare it with the received MAC: if the two match, it means that attestation is valid and can continue to be processed; after verification, call getValidProvers(attst.a) to obtain the valid prover list pvalid in prover a in attst; finally, call update(uid) to update the status of all provers in pvalid.

[0098] By inviting neighbors to build a proof tree and using proof aggregation technology, the communication overhead is effectively reduced and the communication performance of the network is improved. This innovative method helps improve the construction and verification process of the proof tree and enhances the performance and scalability of the overall system.

[0099] S6 Offline Device Self-Authentication Initialization Phase: A normal device can be judged as offline if it does not receive network messages after δc time; Find the domain that suits you through the Cid.list list and obtain the new domain controller identity Cid new , by Cid new Generate a request message jfind, and then send the request message jfind to all domain controllers;

[0100] Furthermore, in the offline device autonomous authentication initialization phase, the process of generating the request message jfind is:

[0101] Generate a secure random number r1 through the randomINT() function, using the first key K u , New domain controller identity Cid new , the device identity Uid and the random number r1 are combined to generate a secure request message jfind:

[0102] S7 Domain controller transfer request stage: Domain controller C decrypts the request message jfind; Domain controller C compares it with its own identity. If it is the same as Cid new If they are not equal, it means that the domain identity of the device does not match the domain identity in the request message, then the request is ignored; if the device is not allowed to be accepted, the message jfind is returned unacc ;Domain controller C generates a query message OCask and sends it to network administrator O;

[0103] Furthermore, in the stage where the domain controller transmits the request, the process in which the domain controller C decrypts the request message jfind is specifically as follows: Domain controller C obtains the new domain controller identity CId new , device identity Uid and random number r1;

[0104] The process of domain controller C generating the query message OCask is as follows:

[0105] Domain controller C takes the device identity Uid, the secure random number r2 generated by the randomINT() function, and the key identity K ID and the new domain controller identity Cid new Combined into a secure query message OCask, using the third key K shared by domain controller C and network administrator O s The query message OCask is obtained by encryption, which is expressed as:

[0106] S8 Network administrator security response phase: Network administrator O decrypts the received query message OCask, generates a response device message JOrep and a query response message OCrep, and sends the query response message OCrep to the domain controller C;

[0107] Furthermore, in the network administrator security response phase, the process of the network administrator O decrypting the received query message OCask is specifically as follows: The network administrator O decrypts and obtains the new domain controller identity Cid new , device identity Uid, random number r2 and key identity K ID ;

[0108] The specific process of the network administrator O generating the response device message JOrep and the inquiry response message OCrep is as follows:

[0109] The network administrator O finds the key K through the device identity Uid i :Database[Uid]=K i ;

[0110] Network administrator O uses the new domain controller identity Cid new Generate K icnew :

[0111] Network administrator O uses key K i and Cid new Generate response device message JOrep:

[0112] Using the third key K s , K icnew , random number r2 and random number r3 are combined into a secure query response message OCrep, which is specifically expressed as:

[0113] S9 Domain controller transmits response message stage: Domain controller C decrypts the query response message OCrep, verifies the authenticity of the message, sets the acceptance flag and generates an authentication response message JCrep, and sends the authentication response message JCrep to the offline device

[0114] Furthermore, the domain controller transmitting the response message stage specifically includes:

[0115] Domain controller C decrypts the query response message OCrep, and the specific process is as follows:

[0116] Domain controller C verifies the authenticity of the message by comparing the secure random number r2. If the random number r2 contained in OCrep is equal to the secure random number r2 generated in the prover integrity verification phase, the verification is successful.

[0117] Domain controller C sets the accept flag: acc = 1 and generates an authentication response message JCrep:

[0118] Send the authentication response message JCrep to the offline device

[0119] S10 Device Verification Response Phase: Offline Device Decrypt the authentication response message JCrep, the offline device Verify the authenticity of the message and the acceptance flag; if passed, the device is disconnected Get new domain controller and offline device After that, the offline device A join request may be resent to domain controller C to indicate that its initialization is complete and to rejoin the network.

[0120] Furthermore, the device verification and authentication response phase specifically includes:

[0121] Offline device Decrypt the authentication response message JCrep to obtain the response device message JOrep, the random number r1 and the acceptance flag acc, expressed as:

[0122] Offline device By comparing the secure random number in the device message JOrep to see if it is r1, and judging whether the acceptance flag acc is equal to 1, the authenticity of the message and the acceptance flag are verified;

[0123] Offline device Get new domain controller and devices The shared key K icne w, expressed as:

[0124] like Figure 2 In the remote authentication method for cross-domain reconnection of devices in the heterogeneous Internet of Things network of the present invention, a mechanism for autonomous cross-domain reconnection of offline devices is introduced, so that the devices can independently authenticate and adapt to different domain controllers, thereby improving the autonomy and dynamic adaptability of the system. This innovative processing method helps to reduce dependence on network administrators and make the system more flexible. After a certain period of time without receiving a network message, the device can be judged as offline, and then generate a request message by looking for a domain controller ID suitable for itself, and independently pass it to the domain controller in the network. This autonomous authentication mechanism not only simplifies the process, but also enables the system to respond to device status changes more intelligently, improving the scalability and reliability of the overall system.

[0125] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains, characterized in that: include: System initialization phase: Network administrator O is the prover Configure the first key K u and the second key K t , and for the prover Assign a unique identity; Network administrator O configures the third key K for domain controller C s And set the identity list of domain controller C; the certifier Randomly receive a key ring of size r, the network administrator O is the prover Generate the fourth key K ic ; Certifier Registration Phase: Certifier Send a network join request jrep to domain controller C, indicating that its initialization is complete; Domain Controller C Verifies the Certifier After the identity is registered, it is registered in the certifier table; after the registration is completed, the domain controller C sends Send a confirmation message jresp; after that, domain controller C periodically checks the prover Status, if the prover If the certification is not made within the prescribed time, the certifier The status is updated to "unhealthy"; Prover integrity verification phase: for the data stored in the prover Software configuration hash sch in the prover In each The integrity of the software configuration is verified during the period, h The maximum time a prover can remain active without having to prove; If verification fails, the prover Exit this stage; after successful verification, the prover Participate in the construction of proof trees; Proof tree construction phase: the prover as the initiator To the neighbors Send an invitation message invite to neighbors The initiator's identity is verified through the shared key, and then the neighbor responds to the initiator's invitation acceptance message iaccept. Acting as an intermediate attestor or leaf attestor and as an initiator attestor Build a proof tree together; Attestation aggregation phase: child nodes send attestation messages to their parent nodes; the parent node uses the aggregation function aggregateAttestation() to aggregate the attestation of child nodes; the granularity of attestation aggregation is determined by the parameter α g Control; the aggregated proof message is sent to the higher-level parent node until the initiator prover receives all the aggregated proof messages, and then sends the final proof message to the controller; the controller verifies the aggregated proof and updates the status of each prover; Self-authentication initialization phase of offline devices: Normal devices go through δ c If no network message is received within a certain period of time, it can be judged as offline; offline device Find the domain that suits you through the Cid.list list and obtain the new domain controller identity Cid new , by Cid new Generate a request message jfind, and then send the request message jfind to all domain controllers; Domain controller transfer request stage: Domain controller C decrypts the request message jfind; Domain controller C compares it with its own identity. If it is the same as Cid new If they are not equal, it means that the domain identity of the device does not match the domain identity in the request message, then the request is ignored; if the device is not allowed to be accepted, the message jfind is returned unacc ;Domain controller C generates a query message OCask and sends it to network administrator O; Network administrator security response phase: Network administrator O decrypts the received query message OCask, generates a response device message JOrep and a query response message OCrep, and sends the query response message OCrep to the domain controller C; Domain controller transmits response message stage: Domain controller C decrypts the query response message OCrep, verifies the authenticity of the message, sets the acceptance flag and generates an authentication response message JCrep, and sends the authentication response message JCrep to the offline device Device Verification and Authentication Response Phase: Offline Device Decrypt the authentication response message JCrep, the offline device Verify the authenticity of the message and the acceptance flag; if passed, the device is disconnected Get new domain controller and offline device After that, the offline device A join request may be resent to domain controller C to indicate that its initialization is complete and to rejoin the network.

2. According to claim 1, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized by: The system initialization phase specifically includes: Network administrator O is the certifier Configure the first key K u , the first key K u It is a symmetric key shared by all devices in a network; Network administrator O is the certifier Configure the second key K t , the second key K t Is a network administrator and certifier A shared symmetric key; Network administrator O configures the third key K for domain controller C s , the third key K s It is a symmetric key shared by network administrator O and domain controller C; The network administrator O sets the identity list Cid.list of all domain controllers C: specifically, Cid.list = {Cid1, Cid2, Cid3, ..., Cid n }, n is the total number of domain controllers, and the network administrator O is the certifier Assign a unique identity, denoted as Uid; Prover A key ring of size r is randomly received from the key pool, where the key pool contains a set of device symmetric keys and their key identities {(K ID ,K)}, the key ring is represented as: The network administrator O uses the key derivation function KDF as the prover Derive the fourth key K ic , specifically: The fourth key K ic For domain controller C and certifier A shared symmetric key.

3. According to claim 2, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized by: The certifier registration stage specifically includes: First, synthesize your own key ring into a key identity Then the key identity keyids, the identity of the domain controller C Cid and the prover The unique identity identifier Uid is synthesized into the second message jrep: jrep←Uid∥keyids∥Cid, and finally the second message jrep and the fourth key K ic The message authentication code value MAC(K ic ) is sent to the domain controller C, expressed as: authSend(MAC(K ic ),jrep); The domain controller C obtains the key identity keyids, the identity Cid of the domain controller C and the prover according to the second message jrep The unique identity Uid of the domain controller C is then used to derive the fourth key K through the key derivation function KDF. ic , specifically: Finally, domain controller C uses the fourth key K ic The calculated message authentication code MAC is used for identity authentication. After the authentication is passed, the prover Registering in a prover table, which records each prover's current status and the time of the last proof; The domain controller C sends a Send a confirmation message jresp, which includes the identity Cid of the domain controller C, the maximum time δ during which the prover remains active without proving h , the maximum number of proofs that can be aggregated α g , and the maximum number of children c that a prover can have max .

4. According to claim 3, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized by: The proof tree construction stage specifically includes: As the initiator's prover To the neighbors Send an invitation message invite, the invitation message invite includes the prover The unique identifier Uid, the tree identifier treeid, and the key identifier keyids, wherein the tree identifier treeid is randomly generated by calling a function that generates a random integer, and the key identifier Keyids is the prover A set of key identities stored in its keyring; Be a Neighbor When receiving the invite message, first check the initiator's certifier Is it recently The integrity is verified in time, and then checked whether it is consistent with the prover as the initiator sharing at least one secret key; If with Share at least one key, neighbors The key ring is generated and the prover Shared Extract the key ring Form a set of keys K ik , generate a random number r, and finally construct the receiving message iaccept to respond to the initiator's invitation. The receiving message iaccpet includes the source device identity src, the target device identity dst, the key identity keyids, the tree identity treeid, the random number r, and the shared key K ik Calculate the message authentication code MAC; Prover Determine whether to continue processing neighbors by checking whether the number of child nodes has reached the preset upper limit Response: If the number of child nodes does not reach the upper limit, the message authentication code MAC is verified by extracting the corresponding key from the key ring. If the verification passes, the child node set is updated; then the child node acceptance message cacccept is constructed, and the child node acceptance message cacccept includes the source device identity src, the key identity keyids, the random number r and the tree identity treeid, and finally the shared key K ik , random number r and child node acceptance message caccept sent to neighbors Neighbor After receiving the child node acceptance message cacccept, verify whether the message authentication code MAC is consistent with the key K ik If the verification is successful, a certificate containing the prover will be created. The device identity, tree identity treeid and key K ik The parent collection; check whether the upper limit of the number of child nodes is zero, and decide whether to send authentication information or broadcast invitation messages: if the upper limit is not zero, create a key ring (K ID ,K) set kids, construct the invitation message invite and broadcast it to other potential child nodes; finally, use the secure channel established between the parent node and the child node in the tree to transmit the proof message.

5. According to claim 4, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized in that: The proof aggregation stage specifically includes: First, the child node constructs a new authentication information a', which contains the proof generated by generateProof(): generateProof():proof←MAC(K ic ,uid∥cntr∥treeid), where cntr is a counter, each time The authentication information a' also contains the sub-device identity. Then the aggregateAttestation() algorithm is called to merge the newly generated authentication information a' into the original authentication information a. The granularity of the authentication aggregation is determined by the parameter α. g Control; finally, the child node generates a proof message attst by combining the child node device identity src, the parent node device identity dst and the merged authentication information a, and sends the proof message attst and the message verification code MAC of the proof message attst to the parent node device; The parent node device checks the child node attst.src in the proof message attst and determines the key K of the corresponding child node jk Specifically, we traverse the child nodes children to find the child node that matches attst.src, and then get its key K jk ; Use the obtained child node key K jk , calculate the message verification code MAC of the proof message attst, and compare it with the MAC line transmitted by the child node: if the two match, it means that the proof message attst is valid and can continue to be processed; after the verification is passed, the authentication information a in the proof message attst is aggregated into the previous proof a, and the child node list children is updated, and attst.src and the corresponding key K are added to the authentication information a in the proof message attst. jk Remove from the list; check whether the child node list is empty: if it is empty, it means that all child nodes have been processed, and call the sendAttestation function to send the final aggregate proof a; finally set attested to True, indicating that the attestation has been successfully processed; The domain controller C determines the corresponding prover's key K by checking the source node attst.src in the proof message attst ic Specifically, we traverse the registry reg to find the prover that matches attst.src, and then obtain its key K ic ; Use the obtained prover key K ic , calculate the MAC of the attestation message attst and compare it with the received MAC: if the two match, it means that attestation is valid and can continue to be processed; after verification, call getValidProvers(attst.a) to obtain the valid prover list pvalid in prover a in attst; finally, call update(uid) to update the status of all provers in pvalid.

6. According to claim 5, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized in that: In the offline device autonomous authentication initialization phase, the process of generating the request message jfind is as follows: Generate a secure random number r1 through the randomINT() function, using the first key K u , New domain controller identity Cid new , the device identity Uid and the random number r1 are combined to generate a secure request message 7. According to claim 6, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized in that: In the stage of the domain controller transmitting the request, the process of the domain controller C decrypting the request message jfind is specifically as follows: Domain controller C obtains the new domain controller identity Cid new , device identity Uid and random number r1; The process of domain controller C generating the query message OCask is as follows: Domain controller C takes the device identity Uid, the secure random number r2 generated by the randomINT() function, and the key identity K ID and the new domain controller identity Cid new Combined into a secure query message OCask, using the third key K shared by domain controller C and network administrator O s The query message OCask is obtained by encryption, which is expressed as:

8. According to claim 7, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized in that: In the network administrator security response phase, the process of the network administrator O decrypting the received query message OCask is specifically as follows: The network administrator O decrypts and obtains the new domain controller identity Cid new , device identity Uid, random number r2 and key identity K ID ; The specific process of the network administrator O generating the response device message JOrep and the inquiry response message OCrep is as follows: The network administrator O finds the key K through the device identity Uid i :Database[Uid]=K i ; Network administrator O uses the new domain controller identity Cid new generate Network administrator O uses key K i and Cid new Generate response device message Using the third key K s , K icnew , random number r2 and random number r3 are combined into a secure query response message OCrep, which is specifically expressed as:

9. According to claim 8, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized by: The domain controller transmitting the response message stage specifically includes: Domain controller C decrypts the query response message OCrep, and the specific process is as follows: Domain controller C verifies the authenticity of the message by comparing the secure random number r2. If the random number r2 contained in OCrep is equal to the secure random number r2 generated in the prover integrity verification phase, the verification is successful. Domain controller C sets the accept flag bit: acc=1 and generates an authentication response message Send the authentication response message JCrep to the offline device 10. According to claim 9, a remote authentication method for devices in a heterogeneous Internet of Things network that can reconnect across domains is characterized by: The device verification and authentication response phase specifically includes: Offline device Decrypt the authentication response message JCrep to obtain the response device message JOrep, the random number r1 and the acceptance flag acc, expressed as: Offline device By comparing the secure random number in the device message JOrep to see if it is r1, and judging whether the acceptance flag acc is equal to 1, the authenticity of the message and the acceptance flag are verified; Offline device Get new domain controller and devices The shared key K icnew , expressed as: