Method and apparatus for verifying a physical attack
By exchanging encrypted heartbeat messages and session keys between IoT devices to detect and respond to physical attacks, the security issues of IoT devices in the face of physical attacks are solved, and a fast response and low-cost detection mechanism is achieved, improving improve the security and efficiency of the system.
Patent Information
- Application Number
- CN201880098928.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2038-10-23
AI Technical Summary
It is difficult for existing technologies to effectively detect and defend against physical attacks faced by IoT devices, especially due to the limitations of these devices in terms of energy, computing power, and memory. Traditional remote verification solutions lack the ability to defend against physical attacks.
By periodically exchanging encrypted heartbeat messages between IoT devices, the session key is used to detect whether the device is physically compromised, and the key material is promptly reported and updated when damage is discovered to ensure the security of the device. The periodic interval of this scheme is set to be less than the minimum time of a physical attack, ensuring fast response and reduced memory consumption.
It achieves rapid detection and response to physical attacks on IoT devices, reduces memory consumption, reduces communication overhead, and improves system security and efficiency through distributed confirmation mode and zero-round authentication method.
Smart Images

Figure CN112889239B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate generally to information technology and, more particularly, to demonstrating physical attacks on devices in a network. Background Art
[0002] Nowadays, Internet of Things (IoT) devices are infiltrating our environment. They are widely used in industrial control, smart office, healthcare, military communication and other fields. It is estimated that by 2020, there will be 20.8 billion connected things in use worldwide. Since these devices always store a large amount of private information or control physical devices, they become attractive targets for adversaries. Compromised devices not only lead to privacy leakage, but also cause the entire network to collapse contagiously. Therefore, protecting these devices from different kinds of attacks has become an important security issue.
[0003] However, unlike other computing devices, IoT devices are usually limited in terms of energy, computing power, and memory. Therefore, IoT devices usually lack the necessary resources to defend against attacks. Therefore, researchers suggest using remote attestation to determine whether they have been compromised. Remote attestation usually follows a challenge-response mechanism. It allows a trusted party (also known as a verifier) to send a challenge to another untrusted and potentially compromised party (also known as a prover). The prover will generate a response based on the challenge and its current operating state. Finally, the verifier can determine the state of the prover via the response and some prior knowledge.
[0004] In order to have almost no impact on the normal tasks of these devices, many lightweight and effective solutions have been proposed so far. But most current remote verification schemes only consider software attacks. Physical attacks on the prover are usually excluded. However, it is certain that since these devices are deployed in an open environment, they will also be subject to physical attacks. All physical attacks exploit devices through real-life connections without network communication. There are many physical attack methods. The most common physical attack is to extract information from the device by trying to directly access internal components using complex and expensive dedicated equipment (such as focused ion beams and micro-probe stations). Recently, another physical attack has been introduced, in which the adversary can exercise the hardware of ordinary devices to obtain powerful storage capabilities. Furthermore, the device can easily bypass traditional verification. It can be seen that these physical attacks bring greater damage compared to software attacks. However, since such attacks do not require the injection of new malicious code, traditional verification schemes lack the ability to resist such attacks.
[0005] Therefore, how to verify physical attacks becomes a security issue that needs to be solved. Summary of the invention
[0006] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
[0007] According to a first aspect of the present disclosure, a method implemented at a first device is provided. The method may include receiving a first heartbeat message from an adjacent device at periodic intervals. The first heartbeat message is encrypted with a session key for the adjacent device of the current interval and includes a first key material for updating the session key for the adjacent device of the next interval. The method also includes decrypting the received first heartbeat message based at least in part on the session key for the first device of the current interval. The method also includes determining whether the adjacent device is physically compromised based at least on the first heartbeat message. The periodic interval is set to be less than a minimum time for a physical attack on the adjacent device.
[0008] In an embodiment, the method may further include obtaining first key material from the decrypted first heartbeat message, and updating a session key for the first device for a next interval based at least in part on the first key material.
[0009] In an embodiment, the method may further include obtaining a session key for the first device for the current interval from the network management device.
[0010] In an embodiment, when no first heartbeat message is received from the neighboring device within a current interval, or the received first heartbeat message is not successfully decrypted, or the decrypted first heartbeat message is invalid, it may be determined that the neighboring device is physically compromised.
[0011] In an embodiment, if it is determined that the neighboring device is physically compromised, the method may further include sending a report to the network management device indicating that the neighboring device is suspected of being physically compromised. The method may further include performing a self-measurement of software integrity at the first device, and sending the result of the self-measurement to the network management device.
[0012] In an embodiment, the method may further include generating a second heartbeat message at periodic intervals and sending it to the neighboring device. The second heartbeat message is encrypted with a session key for the first device of the current interval. The second heartbeat message includes a second key material for updating the session key for the first device of the next interval.
[0013] In this embodiment, the method may also include updating a session key for the first device for the next interval based at least in part on the second key material. Receipt of the first heartbeat message may be timed within a time period starting from the current interval, and sending of the second heartbeat message may be timed within a time period starting from the current interval. Regardless of which of decryption of the received first heartbeat message or expiration of the time period starting from the current interval occurs earlier, the session key for the first device for the next interval may be updated based at least in part on the second key material thereafter. The method may also include maintaining synchronization between the first device and an adjacent device for transmission of the first heartbeat message and the second heartbeat message.
[0014] In an embodiment, the first heartbeat message further includes an identifier of the neighboring device.
[0015] In an embodiment, the key material used to generate the session key includes a one-time random number (nonce).
[0016] In an embodiment, both the first device and the neighboring device are IoT devices.
[0017] According to a second aspect of the present disclosure, a device is provided. The device may include at least one processor, at least one memory storing a computer program code, and the memory and the computer program code are configured to work together with the at least one processor so that the device receives a first heartbeat message from an adjacent device at a periodic interval. The first heartbeat message is encrypted with a session key for the adjacent device of the current interval, and includes a first key material for updating the session key for the adjacent device of the next interval. The device is further configured to decrypt the received first heartbeat message based at least in part on the session key for the first device of the current interval, and determine whether the adjacent device is physically compromised based at least on the first heartbeat message. The periodic interval is set to be less than the minimum time of a physical attack on the adjacent device.
[0018] According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, which instructions, when executed by at least one processor, cause the at least one processor to perform the method according to the first aspect.
[0019] According to a fourth aspect of the present disclosure, there is provided a computer program product comprising instructions which, when executed by at least one processor, cause the at least one processor to perform the method according to the first aspect.
[0020] These and other objects, features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 schematically illustrates a network in which embodiments of the present disclosure may be implemented;
[0022] Figure 2 is a flowchart depicting a method according to an embodiment of the present disclosure;
[0023] Figure 3 is a flowchart depicting a method according to an embodiment of the present disclosure;
[0024] Figure 4 is a schematic diagram depicting a process for demonstrating a physical attack in a network according to some embodiments of the present disclosure;
[0025] Figure 5 A simplified block diagram of an apparatus according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure are described in detail with reference to the accompanying drawings. It should be understood that these embodiments are discussed only for the purpose of enabling those skilled in the art to better understand and thus realize the present disclosure, rather than suggesting any limitation to the scope of the present disclosure. References to features / advantages or similar language throughout the specification do not mean that all features and advantages that can be implemented with the present disclosure should be in or in any single embodiment of the present disclosure. On the contrary, the language referring to features and advantages should be understood to mean that specific features, advantages or characteristics described in conjunction with the embodiments are included in at least one embodiment of the present disclosure. In addition, in one or more embodiments, the described features, advantages and characteristics of the present disclosure can be combined in any suitable manner. Those skilled in the relevant art will recognize that the present disclosure can be practiced without one or more specific features or advantages of a specific embodiment. In other cases, additional features and advantages that may not exist in all embodiments of the present disclosure can be recognized in certain embodiments.
[0027] As used herein, the terms "network" and "communication network" refer to a wired or wireless network. For example, a wireless network may comply with any suitable communication standard, such as New Radio (NR), Long Term Evolution (LTE), Advanced LTE, Wideband Code Division Multiple Access (WCDMA), High Speed Packet Access (HSPA), etc. In addition, communications between devices in a network may be performed according to any suitable generation of communication protocols, including but not limited to first generation (1G), second generation (2G), 2.5G, 2.75G, third generation (3G), fourth generation (4G), 4.5G, fifth generation (5G) communication protocols, and / or any other protocols now known or to be developed in the future.
[0028] As used herein, the terms "first", "second", etc. refer to different elements. Unless the context clearly indicates otherwise, the singular forms "one" and "an" are also intended to include plural forms. As used herein, the terms "include", "have", "have", and / or "comprise" specify the presence of the features, elements and / or components, but do not exclude the presence or increase of one or more other features, elements, components and / or combinations thereof. The term "based on" should be understood as "based at least in part". The terms "one embodiment" and "embodiment" should be understood as "at least one embodiment". The term "another embodiment" should be understood as "at least one other embodiment". Other definitions (explicit and implicit) may be included below.
[0029] As mentioned above, most traditional attestations focus only on software attacks. Physical attacks on the attestor are usually excluded. However, physical attacks must be considered. Physical attacks have characteristics different from software attacks. They are that physical attacks must take the devices offline for a certain period of time to perform certain physical operations. Based on this characteristic, some schemes can be proposed to detect physical attacks through heartbeat messages.
[0030] For example, in the verification scheme, a lightweight protocol is proposed to identify suspicious devices using absence detection. Each device periodically sends out a heartbeat message, which needs to be received, verified, and recorded by every other device in the network. However, it has several disadvantages. First, the number of messages sent per heartbeat cycle is O(n2), where n is the total number of devices in the network. In large networks, this will lead to a lot of energy consumption and longer running time. Second, each device needs to record all the heartbeat messages of other devices, which increases the consumption of memory space.
[0031] In another confirmation scheme, the same hash value generated by the leader device is used as the heartbeat message. Each device with two correct heartbeat messages is considered to be a physically healthy device. It reduces the communication complexity from O(n2) in DARPA to O(n). However, using the same heartbeat message generated by the leader device, it may suffer from collusion attacks, in which the compromised device can request the latest heartbeat message from another device to bypass the confirmation. In addition, the current heartbeat message depends on the leader device, which leads to the so-called failed signal point problem whenever the leader device is compromised. Therefore, more time and effort must be spent to select a new leader.
[0032] Existing authentication schemes for resisting physical attacks still have many problems in terms of security and efficiency. Generally, the problems lie in the following four aspects. First, existing authentication schemes lack a quick response to potentially compromised devices. The specific compromised device can only be known after periodic authentication. When a compromised device reappears in such a periodic interval, it can perform other attacks more easily and quickly. This constitutes a serious security vulnerability. Second, existing authentication schemes may take up too much memory or suffer from single point failures. Existing authentication schemes either have each device record all heartbeat messages, which wastes too much memory, or have each device only record heartbeat messages from the leader device, which may cause a single point of failure. However, IoT devices are limited in memory, and single point failures will cause great security problems.
[0033] Third, existing authentication schemes may bring relatively high communication overhead of the heartbeat protocol. The running time will increase with the number of devices in the network, which may cause a lot of time consumption in large networks. Fourth, existing authentication schemes almost authenticate other devices through verification of signatures or challenge-response mode. This will lead to a lot of time wasted.
[0034] The present disclosure proposes an effective authentication scheme for devices that is resilient to physical attacks. As mentioned above, a physical attack on any device in the network will require the device to be offline for a certain period of time. Based on this characteristic, a authentication scheme is designed in which heartbeat messages are generated and transmitted between the verifier and the prover at periodic intervals that are less than the shortest time required for an adversary to physically connect to a device. Each device can act as a verifier and a prover. In an embodiment of the present disclosure, an adjacent device is used to act as a verifier to authenticate the prover.
[0035] Figure 1 1 shows a network in which embodiments of the present disclosure may be implemented. D1, D2, ..., D7 are devices in the network, such as IoT devices. These devices may be connected to the network through Figure 1 Each device in the network can act as a verifier to verify the existence of its neighboring devices. At the same time, each device in the network can act as a prover to be verified by its neighboring devices. For example, Figure 1 As shown in , D1 is connected to D2, D4 and D5 through a single-hop communication link, and therefore, D2, D4 and D5 are neighboring devices of D1. D1 can be configured to periodically receive heartbeat messages sent from D2, D4 and D5, and verify whether D2, D4 and D5 are damaged by physical attacks. D1 can be further configured to periodically send heartbeat messages to D2, D4 and D5, so that D2, D4 and D5 can receive heartbeat messages from D1 to verify whether D1 is damaged by physical attacks.
[0036] Despite Figure 1 , but it should be understood that the network may include more or fewer devices. In fact, in the network, each device may have at least three neighboring devices.
[0037] The network may also include equipment used for network management and operation, such as Figure 1 . In some embodiments, this device may be a device of an owner of the network. In some other embodiments, this device may be a leader device among IoT devices. Node O may be configured to manage devices in the network. In some embodiments, Node O may be configured to receive reports of physical attack confirmation from devices in the network. Figure 1 An exemplary scenario is shown, where D2 is a device that is under physical attack. Its neighboring devices D1 and D4 can detect that D2 does not exist, and then report a non-existence message to node O.
[0038] A write-protected real-time clock may be provided for each device in the network so that each device can periodically perform validation in a synchronized manner. These clocks may be loosely synchronized with a clock (such as the clock of node O, the clock of O). In this regard, there may be a small clock offset between the clocks of two devices. For example, Δt represents the maximum clock offset between any two devices in the network.
[0039] Figure 2 A flow chart depicting a process for verifying a physical attack performed by a first device according to an embodiment of the present disclosure is shown. At block 210, the first device may receive a heartbeat message from a neighboring device at periodic intervals. This periodic interval is set to be less than a minimum time for a physical attack on the neighboring device. The heartbeat message is encrypted with a session key for the neighboring device for the current interval. In this regard, the session key may be updated within a heartbeat message transmission interval between each neighboring device and the first device. The heartbeat message includes key material for updating the session key for the next interval.
[0040] At block 220, the first device may decrypt the received heartbeat message based at least in part on the first device's session key for the current interval. The session key for the current interval may be determined by a network management device such as Figure 1 Node (2) shown in . For example, when the first device or adjacent device enters the network, an initial session key can be allocated. Since confirmation is performed periodically, the heartbeat message is sent periodically. The heartbeat message sent in the last interval may include key material for updating the session key for the current interval. Therefore, the session key for the current interval can be derived from the previous heartbeat message received from the adjacent device in the previous interval.
[0041] At block 230, the first device may determine whether the neighboring device is physically compromised based on the heartbeat message. In this regard, if the heartbeat message is not received or correctly received from the neighboring device within the current interval, it may be determined that the neighboring device is physically compromised. For example, if the heartbeat message is not successfully decrypted, or the decrypted heartbeat message is invalid, it may be determined that the neighboring device is physically compromised.
[0042] At block 240, if it is determined that the neighboring device is physically compromised, the first device may notify a network management device (such as Figure 1 At block 250, the first device may also perform a self-measurement of software integrity and send the result of the self-measurement to the network management device. Self-measurement may be used to avoid false reports. In some embodiments, self-measurement may be triggered in response to a request from a network management device.
[0043] If the heartbeat message is received correctly, it can be determined that the neighboring device is healthy up to the current interval. Further, the first device can obtain key material from the decrypted heartbeat message and partially update the session key for the neighboring device for the next interval based at least in part on the key material. The first device can then wait to receive the next heartbeat message in the next interval.
[0044] At the same time, the first device can act as a prover. As shown in box 260, the first device can generate a heartbeat message and send it to its neighboring device at periodic intervals. This time interval is set to be less than the minimum time of a physical attack on the first device. This periodic interval is set to be the same as the periodic interval of the heartbeat message of the neighboring device. Preferably, the first device can be synchronized with its neighboring device so that they send the heartbeat message substantially at the same time. In addition, all devices in the network can use the same periodic interval to send the heartbeat message and perform the confirmation of the physical attack. This heartbeat message is encrypted with the session key of the first device for the current interval, and includes a key material for updating the session key of the first device for the next interval.
[0045] As described above, each device will change its session key as it sends heartbeat messages in each interval. After decryption of the heartbeat message received from its neighboring device in the current interval, the first device can update its session key for the next interval based at least in part on the key material. For example, when generating a heartbeat message for the next interval, the first device can update its session key.
[0046] Through the heartbeat message sent from the first device, its neighboring devices can verify whether the first device is physically compromised in a similar manner as discussed with respect to blocks 210 through 250 .
[0047] There are several differences between the scheme of the present disclosure and the prior art. First, the scheme of the present disclosure introduces an accusation mechanism. In the prior art, the network owner can only know such compromised devices after periodic verification. However, physically compromised devices that return to the network during the verification cycle can easily bypass this verification because such devices have better computing power. In the accusation mechanism of the scheme of the present disclosure, verification is performed at periodic intervals that are less than the minimum time of physical attack. The network owner can know the physically compromised devices as early as possible.
[0048] Secondly, the solution of the present disclosure introduces a distributed verification mode. The current verification model either requires each device to record all heartbeat messages, which will result in a large amount of memory waste, or allows one device to propagate the heartbeat message to other devices, which will result in a single point of failure. The solution of the present disclosure adopts a distributed verification model in an IoT network, for example. Adjacent devices are used to verify the prover, so that memory waste can be reduced and single point of failure can be prevented.
[0049] Third, the scheme of the present disclosure can utilize loosely synchronized clocks so that each device can perform verification at the same time. The execution time of verification for the entire network will only be affected by the number of neighboring devices. In contrast, in current verification schemes for physical attacks, some devices must wait for an event from other devices to trigger their corresponding events. This may result in a lot of time consumption in larger networks.
[0050] Fourth, the scheme of the present disclosure introduces a zero-round authentication method. In each round of verification in an interval, only one heartbeat message is required to be transmitted from the prover to the verifier. Current verification schemes usually follow a challenge-response mechanism, which results in additional energy and time consumption in communication. At the same time, the scheme of the present disclosure utilizes a session key to authenticate a device, and the session key will change as the heartbeat message is sent. This is also beneficial for preventing impersonation attacks.
[0051] Reference now Figure 3 , which shows a flowchart depicting an exemplary verification process in a device according to an embodiment of the present disclosure. In this embodiment, the verification process for physical attacks can be performed at different time points. Figure 3 As shown in , the process can be divided into four stages, including an offline stage 310 , a heartbeat stage 320 , a report stage 330 , and a check stage 340 .
[0052] In the offline phase 310, the device may be configured or initialized with initial parameters. In an embodiment, in the offline phase, the device (denoted as D i ) can be deployed into the network, for example, by the owner of the network (e.g. Figure 1 Before deployment, it can be assumed that all devices are in a healthy state. i Before joining the network, the owner (e.g. Figure 1 Node O in the device D i Distribute the symmetric key dk i , asymmetric key pair (pk i ,sk i ), and different identifiers id i . Furthermore, device D i can join the network, i.e., the new device establishes connections to all neighboring nodes. The owner's node O can notify all its neighbors of the new device D i Identifier id i , and to the new device D i The owner's node O can also distribute session keys to each pair of neighboring devices for data transmission between the two neighboring devices. The session key is a symmetric key. For example, k ij Can be used to represent D i Held for D i With D j The session key for data transmission between ji Can be used to represent D j Held for D i With D j The session key for data transmission between adjacent devices D i and D j can obtain the session key pair (k ij ,k ji ). Although different symbols are used to represent the session key in different devices, the session key between a pair of adjacent devices will represent the same value because the session key is a symmetric key. Since the session key is used for symmetric encryption. Only when k ij =k ji When D i and D j In some embodiments, each device can provide each neighboring device D i Record value D i _present, which indicates the neighboring device D i For example, when the new device D i When joining the network, its neighboring device D j You can set the value Di _present to indicate device D i In healthy condition.
[0053] by Figure 1 As an example, assume that D2 is a new device to be deployed in the network. When D2 joins the network and connects to devices D1 and D4, node O can notify D1 and D4 of D2's identifier id2, and notify D2 of D1's identifier id1 and D4's identifier id4. At the same time, node O can send a pair of initial session keys (k 12 ,k 21 ) are distributed to adjacent devices D1 and D2, and a pair of initial session keys (k 42 ,k 24 ) are assigned to neighboring devices D4 and D2. Initially, k 12 =k 21 And k 42 =k 24 In addition, D1 and D4 may set a value D2_present=1 to indicate that device D2 is in a healthy state. Meanwhile, D2 may set a value D1_present=1 and a value D4_present=1 to indicate that devices D1 and D4 are in a healthy state, respectively.
[0054] After initialization, device D2 may enter the heartbeat phase 320. In this phase, devices in the network may act as verifiers and provers by distributing heartbeat messages between neighboring devices. In this regard, each device periodically sends messages (referred to as heartbeats) to its neighboring devices. The periodic interval is T hb , T hb <T cap , T cap The minimum time required for an adversary to physically attack a device. Neighboring devices can declare that they are offline for more than T hb +Δt devices are physically damaged.
[0055] This phase can be described using a three-tuple algorithm (GenHeartbeatMsg, VerHeartbeatMsg, UpdatePartOfKey). In some embodiments, the heartbeat phase can be timed in a time period starting from each periodic heartbeat interval. The time period can be extended from the beginning of the interval until the maximum time required for the heartbeat message transmission has expired. As shown at block 321, at the current time t, the function TimeStart(t) is satisfied, i.e., T lasehb +Thb+T acc ≥t≥T lasehb +T hbEach device executes these algorithms for each neighbor. Before executing, the device can i Setting D i _present=0. T lasthb Indicates the last confirmation execution time. For example, it can be the start time of the previous heartbeat phase in the previous periodic heartbeat interval. acc Indicates the maximum time required for the transmission of a heartbeat message. Since the heartbeat message is transmitted between adjacent devices, T acc can be very small. Obviously, T acc Less than T hb .
[0056] When the current time t satisfies the function TimeStart(t), device D i Can be triggered to execute GenHeartbeatMsg(neighbors) to generate a message for each of its neighboring devices D j The heartbeat message is as shown in block 322. i A one-time random number n can be randomly selected i For each neighboring device D j , D i The session key k ij Encrypt its id i and n i The generated heartbeat message can be represented as hb ij =Enc(k ij ,(id i ||n i )). Furthermore, D i Send its heartbeat message hb ij Sent to each neighboring device D j , as shown in box 323.
[0057] Similarly, when the current time t satisfies the function TimeStart(t), device D j Can be triggered to execute GenHeartbeatMsg(neighbors) to generate a message for each of its neighboring devices D i The generated heartbeat message can be represented as hb ji =Enc(k ji ,(id j ||n j )). Furthermore, device D j The heartbeat message hb ji Send to its neighboring device D i .
[0058] At the same time, when the current time t satisfies the function TimeStart(t), device D i Can be triggered to execute VerHeartbeatMsg(hb ji ) to verify its neighboring device D j Whether it is physically damaged. As shown at block 324, device D i From its neighboring device D j Receive heartbeat message hb ji Whenever D i From device D j Receive heartbeat message hb ji When it can set Dj_present = VerHeartbeatMsg (hb ji ).
[0059] In VerHeartbeatMsg(hb ji ), as shown at block 325, device D i You can try to use its session key k ij To decrypt hb ji If the message hb ji If successfully decrypted, device D i The decrypted message hb can be checked ji is valid. For example, it can check whether the id j If the message hb ji The id in j Equal to D j The heartbeat message is valid. Therefore, the output VerHeartbeatMsg(hb ji ) result value, such as VerHeartbeatMsg(hb ji )=1. Otherwise, if the decrypted message hb ji is invalid, then device D i The heartbeat message hb can be discarded ji , and output the result value VerHeartbeatMsg(hb ji )=0.
[0060] If VerHeartbeatMsg(hb ji )=1, it means that the neighboring device D j No physical damage has been done. Then, as shown at block 327, device D i You can execute UpdatePartOfKey(k ij ,hb ji ) to partially update its session key k ij In this regard, device Di From hb ji Extract a one-time random number n from j , and updating the session key k based at least in part on the extracted one-time random number ij , for example, by As shown by the arrow from block 327 to block 321, device D i The next heartbeat cycle may be waited for at block 321 .
[0061] It is assumed that each healthy neighboring device will also update its session key based at least in part on a one-time random number sent to its neighbors. i UpdateKey(neighbors) can be executed to further update each of its session keys k ij , for example, by using its one-time random number n i pass Since UpdatePartOfKey(kij,hbji) has been used for k ij A partial update is performed, so the relationship between the session key of the current interval and the session key of the next interval can be defined as: Accordingly, the neighboring device D j It is also possible to use the i The one-time random number n in the heartbeat message i To execute UpdatePartOfKey(k ji ,hb ij ), and uses its own one-time random number n j To execute UpdateKey(neighbors) to update its session key k ji , so that the new session key for the next interval can be defined as: So, as long as D i and D j are healthy, they can hold the same symmetric key at each interval.
[0062] One-time random number n j Can be D j It generates itself, for example, when it generates a heartbeat message h for the current heartbeat period ji Alternatively, the VerHeartbeaMsg(h ji ) and then generate a one-time random number n j The updated session key from UpdateKey(neighbors) will be used to send the next heartbeat interval to D i With D jThe next heartbeat message transmitted between the two neighbors is encrypted and decrypted. In some embodiments, a session update can be performed using UpdateKey(neighbors) after the device has received heartbeat messages from all healthy neighbors.
[0063] Thus, since the session key changes with each heartbeat message, each device can use the session key to identify each other. Devices that were not present during the previous heartbeat cycle will have different session keys than their neighbors. For example, when D j When attacked physically, D j was offline during the previous interval. As a result, it cannot i Get the heartbeat message. j The session key k can only be updated within the current heartbeat interval ji Once. As a result, the two devices will not be able to communicate with each other. Session Key k ji will never be associated with the session key k ij Same. In the absence of D i The session key k ij Correctly decrypt with session key k ji Encrypted heartbeat message hb ji In the case of D i It can be determined that D j Suspected of being physically damaged. j When a correct heartbeat message is received, D i There will be no way to get a new session key for the next heartbeat cycle. As a result, the two devices will not be able to communicate with each other. j When attacked physically, D j Unable to D i Send heartbeat message or fail to send heartbeat message to D i Send the correct heartbeat message. All its neighbors will not be able to receive its heartbeat message, and then D j has a different session key from all its neighbors. Therefore, D j It will not be possible to decrypt any heartbeat messages in the network.
[0064] If VerHeartbeatMsg(hb ji )=0, it means that the neighboring device D j Suspected of being physically damaged. i It may proceed to reporting phase 330 to report a non-existence message to the network owner (such as node O). In an embodiment, after it has checked the presence of each of its neighboring devices in the network, device D i The reporting phase 330 may be advanced.
[0065] In an embodiment, when the function Timeout(t) is satisfied, that is, t ≥ T lasehb +T hb +T acc Each device can be triggered to i _present value to check the existence of all its neighbors. If there is no neighbor D j If a valid heartbeat message is received, i From the perspective of D j Not present, that is, Dj_present = 0. The authenticator device may execute the AbsenceReport(neighbors) function to send an absence message including the identifiers of all absent devices to node O.
[0066] For example, in D i The AbsenceReport(neighbors) function executed in can first initialize the bit string sus_id p = NULL, the bit string contains the identifier of the device suspected of being physically compromised during the pth heartbeat cycle. j , the function can check the value of Dj_present. If the value of Dj_present is equal to 0, the function can set sus_id p =sus_id p ||id j Otherwise, if the value of Dj_present is equal to 1, the function will skip to check the next neighboring device. Finally, if sus_id is not equal to NULL, the function can use the key dk i For the string "absence" and sus_id p , and encrypt at the current time t. The final non-existence message can be defined as ab i =Enc(dk i ,(“absence”||t||sus_id p )). Then, D i The non-existent message ab i Sent to node O. To prevent the non-existence message from being intercepted, each device can record such sus_id p , and add these messages to the periodic confirmation results.
[0067] In some embodiments, D i UpdateKey(neighbors) may be executed in the reporting phase 330 to update its session key k ijEach of them. When the time period of the heartbeat phase expires, or when a heartbeat message from a neighboring device is received and decrypted (whichever occurs earlier), the device can update its session key with its one-time random number. For example, when the function Timeout(t) is satisfied, that is, t ≥ T lasehb +T hb +T acc When D i It can use the one-time random number n generated by itself i To update its session key k ij For example, the new session key k ij Generated as k ij =k ij ⊕n i The new session key k ij Will be used for encryption and will be sent to D in the next heartbeat cycle j The heartbeat message, and the decryption will be sent from D in the next heartbeat cycle j Received heartbeat messages.
[0068] In response to the report of the absence of the message, node O can send a confirmation request confirmation to all suspicious devices and corresponding verifier devices to prevent malicious reporting. In response to the confirmation request, the suspicious device and the corresponding verifier device will perform a self-measurement of software integrity and respond to the results.
[0069] For example, if node O is from D i Received a non-existent message (the non-existent message accuses D j is a suspicious device), then D i and D j Each can be asked to perform self-measurement of software integrity and respond to the results. Since the heartbeat message is sent in only one hop, network delays can be ignored. Then, the verification result will indicate three situations.
[0070] 1) Node O does not receive D j The response of D i Displays healthy results. Then, node O can be removed from the network topology. j , and inform all other devices in the network j Being physically attacked;
[0071] 2) D j Showing healthy results while D i Therefore, node O can treat the non-existence message as a false report and delete D i ;
[0072] 3) D i and D jBoth show damaged results. Then, node O can delete D i and D j .
[0073] In some embodiments, node O can also perform some repairs on these damaged devices.
[0074] Figure 4 A process for distributed validation in a network is shown according to some embodiments. At 410a and 410b, each device in the network enters the heartbeat phase in a loosely synchronized manner. i and D j Heartbeat messages hb can be generated separately in each heartbeat cycle ij and hb ji . As shown at 420a and 420b, these heartbeat messages can be sent to the corresponding neighboring devices. Correspondingly, as shown at 430a and 430b, these heartbeat messages can be received by the corresponding neighboring devices. In 430a and 430b, as described above, each device can check the existence of its neighboring devices through the function VerHeartbeatMsg() and update the session key to be used in the next heartbeat cycle through the function UpdatePartOfKey(). Furthermore, as shown at 440a and 440b, each device can report the absence of the suspicious device. At the same time, the device can update its session key for the next round of heartbeat message transmission with the neighboring device. For example, as shown at 450, if D j If physically damaged, D i A report message ab can be sent to node O i . Message ab i You can use D i The symmetric key dk i At 460, node O can use the symmetric key dk i About the message ab i Decrypt and send to the suspicious device D j and reporting device D i Send a self-measurement request.
[0075] The present disclosure introduces an accusation mechanism to ensure a rapid response to a suspicious device under physical attack. In addition, by utilizing a distributed verification mode (in which each device is verified by its neighbors), the accusation mechanism can prevent single point failures and reduce memory consumption. By triggering the verification protocol using a loosely synchronized clock equipped in each device, each device can execute the protocol at the same time. This reduces the running time to a fixed value. In addition, by designing an authentication scheme based on zero-round identification, each device can authenticate other devices with a session key that changes as the heartbeat message is sent. This can ensure the refresh of each heartbeat message and quickly disconnect the connection with the suspicious device.
[0076] Figure 5 500 is a simplified block diagram of an apparatus according to an embodiment of the present disclosure. Figure 1 and Figure 4 The device D shown in i or its modules. Figure 5 As shown in FIG. 5 , the apparatus 500 includes a processor 504, a memory 505, and a transceiver 501 in operable communication with the processor 504. The transceiver 501 includes at least one transmitter 502 and at least one receiver 503. Figure 5 Only one processor is shown in FIG. 5 , but the processor 504 may include multiple processors or one or more multi-core processors. In addition, the processor 504 may also include a cache to facilitate processing operations. Figure 1-4 For the sake of brevity, descriptions of some identical or similar parts described herein are omitted.
[0077] Computer executable instructions may be loaded into the memory 505 and, when executed by the processor 504 , cause the apparatus 500 to implement the above-described methods.
[0078] In addition, one aspect of the present disclosure can utilize software running on a computing device. This implementation can use, for example, a processor, a memory, and an input / output interface such as a display and a keyboard. As used herein, the term "processor" is intended to include any processing device, such as, for example, a processing device including a CPU (central processing unit) and / or other forms of processing circuits. In addition, the term "processor" can refer to more than one separate processor. The term "memory" is intended to include a memory associated with a processor or CPU, such as, for example, a random access memory (RAM), a read-only memory (ROM), a fixed memory device (e.g., a hard disk drive), a removable storage device (e.g., a floppy disk), a flash memory, etc. The processor, the memory, and the input / output interface such as a display and a keyboard can be interconnected, for example, via a bus that is part of a data processing unit. Suitable interconnections (e.g., via a bus) can also be provided to a network interface such as a network card (the network interface can be provided to be connected to a computer network interface), and a media interface such as a floppy disk or a CD-ROM drive, which can be provided to be connected to a media interface.
[0079] Thus, as described herein, computer software including instructions or codes for executing the methods of the present disclosure may be stored in an associated memory device (e.g., ROM, fixed or removable memory), and partially or fully loaded (e.g., loaded into RAM) and executed by a CPU when ready for use. Such software may include, but is not limited to, firmware, resident software, microcode, etc.
[0080] As noted, aspects of the present disclosure may take the form of a computer program product embodied in a computer-readable medium having a computer-readable program code embodied thereon. In addition, any combination of computer-readable media may be utilized. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer-readable storage media will include the following: an electrical connection with one or more wires, a portable computer floppy disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above storage media. In the context of this article, a computer-readable storage medium may be any tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment.
[0081] Computer program code for performing operations of various aspects of the present disclosure may be written in any combination of at least one programming language, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
[0082] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, component, code segment or portion, which includes at least one executable instruction for implementing a specified logical function. It should also be noted that in some alternative embodiments, the functions indicated in the box may not occur in the order indicated in the figure. For example, depending on the functions involved, two boxes shown in succession may actually be executed substantially simultaneously, or sometimes the boxes may be executed in reverse order. It should also be noted that each box illustrated in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs a specified function or action, or by a combination of dedicated hardware and computer instructions.
[0083] In any case, it should be understood that the components shown in the present disclosure may be implemented in various forms of hardware, software, or a combination thereof, such as an application specific integrated circuit (ASIC), a functional circuit, a properly programmed general-purpose digital computer with associated memory, etc. Given the teachings of the disclosure provided herein, a person of ordinary skill in the relevant art will be able to contemplate other implementations of the components of the present disclosure.
[0084] The terms used herein are only for the purpose of describing a particular embodiment, and are not intended to limit the present disclosure. As used herein, the singular forms "one", "an" and "the" are also intended to include plural forms, unless the context clearly indicates otherwise. It will be understood that although the terms first, second, etc. can be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish an element from another element. For example, without departing from the scope of exemplary embodiments, the first element can be referred to as the second element, and similarly, the second element can be referred to as the first element. It will also be understood that when used in this specification, the terms "include" and / or "comprise" specify the presence of the features, integers, steps, operations, elements and / or components, but do not exclude the presence or increase of another feature, integer, step, operation, element, component and / or its group.
[0085] The description of the various embodiments has been given for purposes of illustration, but is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.
Claims
1. A method implemented at a first device, comprising: receiving a first heartbeat message from a neighboring device at periodic intervals, wherein the first heartbeat message is encrypted with a session key of the neighboring device for a current interval and includes a first key material for updating the session key of the neighboring device for a next interval; decrypting the received first heartbeat message based at least in part on a session key for the first device for the current interval; determining, based at least on the first heartbeat message, whether the neighboring device is physically compromised; Obtaining the first key material from the decrypted first heartbeat message; and updating a session key for the first device for the next interval based at least in part on the first key material, wherein the periodic interval is set to be less than a minimum time of a physical attack on the neighboring device, The method further comprises: A second heartbeat message is generated and sent to the neighboring device at the periodic interval, wherein the second heartbeat message is encrypted with a session key of the first device for the current interval and includes a second key material for updating the session key of the first device for the next interval.
2. The method according to claim 1, further comprising: A session key for the first device for the current interval is obtained from a network management device.
3. The method according to claim 1, wherein: Determining whether the neighboring device is physically compromised includes: Under any of the following conditions, it is determined that the adjacent device is physically damaged: not receiving a first heartbeat message from the neighboring device within the current interval; The received first heartbeat message was not successfully decrypted; and The first heartbeat message that is decrypted is invalid.
4. The method according to claim 3, wherein: If it is determined that the neighboring device is physically compromised, the method further includes: A report is sent to a network management device, the report indicating that the neighboring device is suspected of being physically compromised.
5. The method according to claim 4, further comprising: performing a self-measurement of software integrity at the first device; as well as The self-measurement result is sent to the network management device.
6. The method according to claim 1, further comprising: A session key for the first device for the next interval is updated based at least in part on the second keying material.
7. The method according to claim 6, wherein: The reception of the first heartbeat message is timed within a time period starting from the current interval, and the sending of the second heartbeat message is timed within a time period starting from the current interval.
8. The method according to claim 7, wherein: Regardless of which occurs earlier, decryption of the received first heartbeat message or expiration of a time period from the current interval, a session key for the first device for the next interval is thereafter updated based at least in part on the second key material.
9. The method according to any one of claims 1 to 8, further comprising: For the transmission of the first heartbeat message and the second heartbeat message, synchronization between the first device and the neighboring device is maintained.
10. The method according to any one of claims 1 to 8, wherein: The first heartbeat message also includes an identifier of the neighboring device.
11. The method according to any one of claims 1 to 8, wherein: The key material used to generate the session key includes a one-time random number.
12. The method according to any one of claims 1 to 8, wherein: The first device and the adjacent device are both Internet of Things devices.
13. An apparatus at a first device, comprising: at least one processor; at least one memory storing computer program code, the memory and the computer program code being configured to work with the at least one processor so that the apparatus: receiving a first heartbeat message from a neighboring device at periodic intervals, wherein the first heartbeat message is encrypted with a session key of the neighboring device for a current interval and includes a first key material for updating the session key of the neighboring device for a next interval; decrypting the received first heartbeat message based at least in part on a session key for the first device for the current interval; and determining, based at least on the first heartbeat message, whether the neighboring device is physically compromised; Obtaining the first key material from the decrypted first heartbeat message; and updating a session key for the first device for the next interval based at least in part on the first key material, wherein the periodic interval is set to be less than a minimum time of a physical attack on the neighboring device, The memory and the computer program code are configured to work with the at least one processor to further cause the apparatus to: A second heartbeat message is generated and sent to the neighboring device at the periodic interval, wherein the second heartbeat message is encrypted with a session key of the first device for a current interval and includes a second key material for updating the session key of the first device for a next interval.
14. The device according to claim 13, wherein: The memory and the computer program code are configured to work with the at least one processor to further cause the apparatus to: A session key for the first device for the current interval is obtained from a network management device.
15. The device according to claim 13, wherein: The memory and the computer program code are configured to work with the at least one processor to further cause the apparatus to: Under any of the following conditions, it is determined that the adjacent device is physically damaged: not receiving a first heartbeat message from the neighboring device within the current interval; The received first heartbeat message was not successfully decrypted; as well as The first heartbeat message that is decrypted is invalid.
16. The device according to claim 15, wherein: If it is determined that the neighboring device is physically compromised, the memory and the computer program code are configured to work with the at least one processor to further cause the apparatus to: A report is sent to a network management device, the report indicating that the neighboring device is suspected of being physically compromised.
17. The device according to claim 16, wherein: The memory and the computer program code are configured to work with the at least one processor to further cause the apparatus to: performing a self-measurement of software integrity at the first device; and The self-measurement result is sent to the network management device.
18. The device according to claim 13, wherein: The memory and the computer program code are configured to work with the at least one processor to further cause the apparatus to: A session key for the first device for the next interval is updated based at least in part on the second keying material.
19. The device according to claim 18, wherein: The reception of the first heartbeat message is timed within a time period starting from the current interval, and the sending of the second heartbeat message is timed within a time period starting from the current interval.
20. The device according to claim 19, wherein Regardless of which occurs earlier, decryption of the received first heartbeat message or expiration of a time period from the current interval, a session key for the first device for the next interval is thereafter updated based at least in part on the second key material.
21. The device according to any one of claims 13 to 20, wherein: The memory and the computer program code are configured to work with the at least one processor to further cause the apparatus to: For the transmission of the first heartbeat message and the second heartbeat message, synchronization between the first device and the neighboring device is maintained.
22. A computer-readable storage medium having stored thereon instructions which, when executed by at least one processor, cause the at least one processor to perform the method according to any one of claims 1 to 12.
