IoT NETWORK SYSTEM, IoT DEVICE AND UPDATE METHOD OF FIRMWARE OF IoT DEVICE
The IoT network system with a secure element and public key verification ensures secure firmware updates by authenticating and verifying the integrity of update files, addressing vulnerabilities in IoT devices.
Patent Information
- Application Number
- JP2023052415
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-10
AI Technical Summary
IoT devices with vulnerable firmware are at risk of malware or unauthorized firmware updates due to insufficient security measures during the update process.
An IoT network system and device architecture that incorporates a secure element with high tamper resistance and a public key-based verification process to authenticate and verify the integrity of firmware updates, using a server certificate and electronic signatures to ensure secure updating.
Enhances the security of firmware updates by verifying the authenticity and integrity of update files and firmware, reducing the risk of malware or unauthorized modifications.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The invention disclosed in this application relates to the technical field of updating firmware in IoT devices. [Background technology]
[0002] The Internet of Things (IoT), which is a network made up of physical objects, is becoming more widespread. The devices that make up the IoT are called IoT devices. IoT devices communicate with servers via the IoT network. For this reason, appropriate security measures are required for IoT devices.
[0003] IoT devices are often installed outdoors. For example, a smart meter, which is one type of IoT device, is installed in a location where the number of indications displayed on the smart meter can be easily visually confirmed. This increases the risk of spoofing and data tampering in IoT devices. To prevent spoofing of IoT devices, it is common for IoT devices to authenticate communication partners, and to prevent data tampering, it is common for data exchanged between the IoT device and communication partners to be encrypted (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2022-064688 A Summary of the Invention [Problem to be solved by the invention]
[0005] IoT devices are equipped with firmware that controls the IoT device. If a vulnerability is found in the firmware, the security of the IoT device will be reduced. Therefore, if a vulnerability is found in the firmware implemented in an IoT device, the firmware implemented in the IoT device will need to be updated.
[0006] However, if the security of updating firmware implemented in an IoT device is low, there is a high risk that malware or illegally modified firmware will be written to the IoT device. Therefore, an object of the present application is to improve the security of updating firmware implemented in an IoT device. [Means for solving the problem]
[0007] A first invention for solving the above-mentioned problems is an IoT network system that is composed of at least an IoT device and a host server. In the IoT network system according to the first aspect of the present invention, the IoT device includes an MCU that stores firmware, a firmware update module that manages updates to the firmware, and a secure element that has a function of verifying an electronic signature using a public key. The host server stores an update file that updates the firmware to the latest version and a server certificate issued by a certificate authority. In the IoT network system of the first invention, the MCU of the IoT device obtains the server certificate from the host server, and the secure element uses the public key of the certificate authority to verify the electronic signature of the server certificate, thereby verifying the legitimacy of the host server. Furthermore, in the IoT network system of the first invention, the firmware update module obtains the update file from the host server, and the secure element uses the public key of the server certificate to verify the hash value of the update file calculated by the firmware update module and the electronic signature of the update file, thereby verifying the authenticity of the update file. Furthermore, in the IoT network system of the first invention, in order to verify the authenticity of the updated firmware updated using the update file, it is desirable that the firmware update module obtains an electronic signature of the updated firmware from the host server in addition to the update file, and that the secure element uses the public key of the server certificate to verify the hash value of the updated firmware calculated by the firmware update module and the electronic signature of the updated firmware.
[0008] A second invention that solves the above-mentioned problem is an IoT device that includes an MCU that stores firmware, a firmware update module that manages updates to the firmware, and a secure element that has a function of verifying an electronic signature using a public key. In the IoT device of the second invention, the MCU obtains a server certificate from a host server that stores an update file for updating the firmware to the latest version, and the secure element verifies the electronic signature of the server certificate using the public key of a certificate authority. Furthermore, in the IoT device of the second invention, the firmware update module obtains the update file from the host server, and the secure element uses the public key of the server certificate to verify the hash value of the update file calculated by the firmware update module and the electronic signature of the update file. Furthermore, in the IoT device of the second invention, it is desirable that the firmware update module obtains, in addition to the update file, an electronic signature of the updated firmware updated using the update file from the host server, and the secure element uses the public key of the server certificate to verify the hash value of the updated firmware calculated by the firmware update module and the electronic signature of the updated firmware.
[0009] A third invention for solving the above-mentioned problems is a firmware update method for an IoT device executed in an IoT device and a host server. In a method according to a third aspect of the present invention, the IoT device includes an MCU that stores firmware, a firmware update module that manages updates to the firmware, and a secure element that has a function of verifying an electronic signature using a public key. A host server stores an update file that updates the firmware to the latest version and a server certificate issued by a certificate authority. The method according to the third aspect of the present invention comprises the steps of: a step in which the MCU of the IoT device acquires the server certificate from the host server; a step in which the secure element verifies the electronic signature of the server certificate using a public key of a certificate authority; a step in which the firmware update module acquires the update file from the host server; a step in which the secure element verifies the hash value of the update file calculated by the firmware update module and the electronic signature of the update file using the public key of the server certificate; and a step in which, if the verification of the electronic signature of the update file is successful, the firmware update module updates the firmware using the update file; Includes. Furthermore, in the method of the third invention, it is desirable that the firmware update module includes a step of obtaining, in addition to the update file, an electronic signature of the updated firmware updated using the update file from the host server, and the secure element using the public key of the server certificate to verify the hash value of the updated firmware calculated by the firmware update module and the electronic signature of the updated firmware. Effect of the Invention
[0010] In the invention disclosed in this application, in order to improve security related to updates of firmware implemented in an IoT device, a secure element implemented in the IoT device is made to perform a process of verifying the legitimacy of a host server that obtains an update file that updates the firmware to the latest version, and a process of verifying the legitimacy of the update file obtained from the host server. [Brief description of the drawings]
[0011] [Figure 1] A diagram showing an IoT network system. [Diagram 2] A diagram showing block diagrams of an IoT device and a host server. [Diagram 3] 1 is a block diagram of a secure element. [Figure 4] FIG. 1 explains the processing performed in the IoT network system. [Diagram 5] FIG. 2 explains the processing performed in the IoT network system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment of the present invention will be described. This embodiment is for the purpose of facilitating understanding of the present invention, and the present invention is not limited to this embodiment. Furthermore, unless otherwise specified, the drawings are schematic diagrams drawn for the purpose of facilitating understanding of the present invention.
[0013] Fig. 1 shows an IoT network system 1. The IoT network system 1 shown in Fig. 1 includes an IoT device 2 equipped with a function for digitally measuring data to be collected, and a host server 3 that manages the IoT device 2. The IoT device 2 is connected to the host server 3 via an IoT network 4 of the IoT device 2.
[0014] In this embodiment, the IoT device 2 is shown as a smart meter, but the IoT device 2 to which the invention disclosed in this application can be applied is not limited to a smart meter. The present invention can be applied to various IoT devices 2 including smart meters, such as household electrical appliances and various sensors.
[0015] FIG. 1 illustrates an AMI network (AMI: Advanced Metering Infrastructure) as an example of the IoT network 4. The IoT network 4 illustrated in FIG. 1 includes a FAN 40 (Field Area Network), a 1:N communication network 41, and a PLC network 42 (PLC: Power Line Communications). The communication method of the IoT device 2 (smart meter) included in the FAN 40 is a wireless multi-hop method. The IoT device 2 (smart meter) included in the FAN 40 connects to the host server 3 via a concentrator installed on a utility pole. The communication method of the IoT device 2 (smart meter) included in the 1:N communication network 41 is mobile communication (e.g., 5G). The communication method of the IoT device 2 (smart meter) included in the PLC network 42 is PLC. The IoT device 2 (smart meter) included in the PLC network 42 connects to the host server 3 via a concentrator installed in a building.
[0016] The IoT device 2 included in the IoT network system 1 has a sensing function that measures data collected by the IoT device 2. Naturally, the sensing function that the IoT device 2 has varies depending on the data collected by the IoT device 2. If the IoT device 2 is a smart meter, the data that the IoT device 2 collects is power, and the IoT device 2 has the sensing function required to measure power.
[0017] Firmware 200, which is software for controlling the IoT device 2, is implemented in the IoT device 2. When a vulnerability is found in the firmware 200, when a new function is added to the firmware 200, or when the performance of the IoT device 2 is improved, it becomes necessary to update the firmware 200 implemented in the IoT device 2. In the IoT network system 1 shown in FIG. 1, the host server 3 is a device that stores an update file 30 for the firmware 200. When the host server 3 stores an update file 30 for updating the firmware 200 to the latest version, the IoT device 2 obtains the update file 30 from the host server 3 and updates the firmware 200 implemented in the IoT device 2.
[0018] The update file 30 for the firmware 200 implemented in the IoT device 2 becomes data that flows through the IoT network 4, which is a public network. For this reason, it is necessary to improve security related to the update of the firmware 200 implemented in the IoT device 2. Therefore, in the invention disclosed in this application, a secure element 21, which is a semiconductor product having high tamper resistance against external decryption attacks, is implemented in the IoT device 2, and the secure element 21 is used in the process related to the update of the firmware 200, thereby improving security related to the update of the firmware 200 implemented in the IoT device 2.
[0019] From here, we will explain the IoT device 2 and the host server 3 that configure the IoT network system 1 shown in Fig. 1. Fig. 2 shows block diagrams of the IoT device 2 and the host server 3. Fig. 3 shows a block diagram of the secure element 21.
[0020] First, the IoT device 2 constituting the IoT system will be described. As shown in FIG. 2, the IoT device 2 constituting the IoT network system 1 includes an MCU 20 (Micro Controller Unit), a communication module 23, a sensing module 24, a firmware update module 22, and a secure element 21.
[0021] The MCU 20 included in the IoT device 2 is a semiconductor circuit in which a CPU 20a (Central Processing Unit), various memories, and peripheral functions 20e (Peripherals) are integrated on one chip. The MCU 20 included in the IoT device 2 includes, as memories, a ROM 20b (Read Only Memory), which is a non-volatile memory that cannot be electrically rewritten, a RAM 20c (Random Access Memory), which is a volatile memory that can be electrically rewritten, and an NVM 20d (Non-Volatile Memory), which is a non-volatile memory that can be electrically rewritten. The NVM 20d included in the MCU 20 becomes a memory that stores the firmware 200 of the IoT device 2.
[0022] The communication module is a circuit for performing a communication method compatible with the IoT network 4. The sensing module 24 is a circuit for measuring data collected by the IoT device 2. If the IoT device 2 is a smart meter, the communication module 23 is any one of a circuit for communicating using a wireless multi-hop method, a circuit for communicating using mobile communication (e.g., 5G), and a circuit for communicating using PLC. The sensing module 24 is also a circuit that includes a current sensor, a power sensor, and the like, and measures power.
[0023] The firmware update module 22 is a hardware module (IC chip) configured to perform processing related to updating the firmware 200. The firmware update module 22 cooperates with the secure element 21 to execute verification processing related to updating the firmware 200 implemented in the IoT device 2. The firmware update module 22 can be configured by software that operates the MCU 20, but it is preferable to realize the firmware update module 22 by hardware separate from the MCU 20.
[0024] The secure element 21 is an IC chip that has high tamper resistance against external decryption attacks. The secure element 21 is incorporated into the substrate of the IoT device 2. The secure element 21 in the form of an IC chip can also be incorporated into the substrate of the IoT device 2. In FIG. 3, the secure element 21 is in the form of a SIM card to facilitate issuance of the secure element 21. The secure element 21 in the form of a SIM card can be issued in the state of an IC card.
[0025] Like the MCU 20 included in the IoT device 2, the secure element 21 includes a CPU 21a, a ROM 21b, a RAM 21c, an NVM 21d, a coprocessor 21e, and a peripheral function 21f. The NVM 21d included in the secure element 21 stores secret information used in an authentication procedure related to an update of the firmware 200. A computer program for causing the CPU 21a of the secure element 21 to operate a process related to an authentication procedure related to an update of the firmware 200 of the IoT device 2 is implemented in the ROM 21b of the secure element 21.
[0026] The secure element 21 has a function of verifying an electronic signature using a public key as a function realized by a computer program for operating the CPU 21a. The function of verifying an electronic signature using a public key is generally realized by a command implemented in the secure element 21.
[0027] The host server 3 is a device realized by using a general-purpose server, and provides a predetermined service to the IoT device 2 connected to the IoT network 4. In this embodiment, the host server 3 stores a server certificate 31 of the host server 3 issued by a certificate authority as information used to update the firmware 200 implemented in the IoT device 2. When the firmware 200 implemented in the IoT device 2 needs to be updated, the host server 3 stores an update file 30 for updating the firmware 200 implemented in the IoT device 2 to the latest version.
[0028] The host server 3 transmits the information requested by the IoT device 2 to the IoT device 2. If the information requested by the IoT device 2 is a server certificate 31, the host server 3 transmits the server certificate 31 to the IoT device 2. If the information requested by the IoT device 2 is an update file 30, the host server 3 transmits to the IoT device 2 the update file 30, the digital signature of the update file 30, and the digital signature of the updated firmware 200 updated by applying the update file 30.
[0029] From here, we will explain the processing executed in the IoT network system 1 shown in Fig. 1. Fig. 4 is a first diagram explaining the processing executed in the IoT network system 1. Fig. 5 is a second diagram explaining the processing executed in the IoT network system 1. The explanation of Figs. 4 and 5 also includes an explanation of the firmware update method for the IoT device 2 disclosed in the present application.
[0030] First, the process shown in Fig. 4 will be described. In the first process of updating the firmware 200 of the IoT device 2, the MCU 20 of the IoT device 2 requests the host server 3 to transmit the server certificate 31 of the host server 3 (step S1). The server certificate 31 is data issued by a certificate authority. The server certificate 31 includes the address of the host server 3, a public key of the host server 3 in a public key cryptosystem (hereinafter referred to as a server public key), and a digital signature of the server public key generated using a private key of the certificate authority. In order that the secure element 21 implemented in the IoT device 2 can verify the authenticity of the server certificate 31, the public key of the certificate authority, which is paired with the private key of the certificate authority, is written to the NVM 21d of the secure element 21 when the secure element 21 is manufactured.
[0031] When the host server 3 receives a request for the server certificate 31 from the IoT device 2, it transmits the server certificate 31 stored in the host server 3 to the IoT device 2 that requested the transmission of the server certificate 31 (step S2). The MCU 20 of the IoT device 2 transmits the server certificate 31 received from the host server 3 to the secure element 21 (step S3).
[0032] The secure element 21 that has received the server certificate 31 from the MCU 20 of the IoT device 2 verifies the electronic signature of the server public key included in the server certificate 31 using the public key of the certificate authority stored in the secure element 21, thereby verifying the server certificate 31 received from the MCU 20 (step S4). The secure element 21 transmits the verification result of the server certificate 31 received from the MCU 20 to the firmware update module 22 (step S5). If the verification of the server certificate 31 is successful, the secure element 21 stores the server public key included in the server certificate 31 in the NVM 21d of the secure element 21.
[0033] The firmware update module 22 of the IoT device 2 checks the verification result of the server certificate 31 (step S6). If the secure element 21 fails to verify the server certificate 31, the firmware update module 22 executes a predetermined error process (step S7). The content of this error process is arbitrary, but in this embodiment, the process returns to step S1 and re-acquires the server certificate 31.
[0034] When the secure element 21 has successfully verified the server certificate 31, the firmware update module 22 of the IoT device 2 inquires of the host server 3 as to whether the firmware 200 has been updated (step S8). When inquiring of the host server 3 as to whether the firmware 200 has been updated, it is preferable to transmit the version number of the firmware 200 stored in the NVM 20d of the MCU 20 to the host server 3. The host server 3 notifies the firmware update module 22 of the IoT device 2 of a response as to whether the firmware 200 has been updated (step S9). When the update file 30 for upgrading to the latest version is not registered in the host server 3, the firmware update module 22 of the IoT device 2 is notified of the absence of the firmware 200 update as a response as to whether the firmware 200 has been updated. When the update file 30 for upgrading to the latest version is registered in the database of the host server 3, the firmware update module 22 of the IoT device 2 is notified of the presence of the firmware 200 update as a response as to whether the firmware 200 has been updated.
[0035] The firmware update module 22 checks the answer regarding the presence or absence of the firmware 200 update (step S10). When the firmware update module 22 of the IoT device 2 is notified that the firmware 200 is not updated as the answer regarding the presence or absence of the firmware 200 update, the firmware update module 22 of the IoT device 2 ends the process regarding the update of the firmware 200. When the firmware update module 22 of the IoT device 2 is notified that the firmware 200 is updated as the answer regarding the presence or absence of the firmware 200 update, the firmware update module 22 of the IoT device 2 requests the host server 3 to transmit the update file 30 and the verification data of the update file 30 (step S11). The host server 3 transmits the update file 30 and the verification data of the update file 30 for updating the firmware 200 to the latest version to the firmware update module 22 of the IoT device 2 that has requested the update file 30, etc. (step S12). The verification data of the update file 30 includes information used to verify the update file 30. In this embodiment, the information used to verify the update file 30 includes the digital signature of the update file 30 generated using the server private key paired with the server public key, and the digital signature of the updated firmware 200. The digital signature of the update file 30 is information obtained by encrypting a hash value of the update file 30 with a server private key, and is information used for verifying the update file 30. The digital signature of the updated firmware 200 is information obtained by encrypting a hash value of the updated firmware 200 with a server private key, and is information used for verifying the updated firmware 200.
[0036] When the firmware update module 22 of the IoT device 2 receives the update file 30 and the verification data of the update file 30 from the host server 3, it first calculates a hash value of the update file 30 received from the host server 3 (step S13). Next, the firmware update module 22 of the IoT device 2 transmits the hash value of the update file 30 received from the host server 3 and the digital signature of the update file 30 included in the verification data received from the host server 3 to the secure element 21, and causes the secure element 21 to verify the digital signature of the update file 30 (step S14). The secure element 21 verifies the digital signature of the update file 30 received from the firmware update module 22 using a server public key stored in the secure element 21 (step S15). Specifically, the secure element 21 decrypts the digital signature of the update file 30 using the server public key, and checks whether it matches the hash value of the update file 30 received from the firmware update module 22. If the value obtained by decrypting the digital signature of the update file 30 matches the hash value of the update file 30, the firmware update module 22 determines that the verification of the digital signature of the update file 30 has been successful.
[0037] When the secure element 21 executes the process of verifying the electronic signature of the update file 30, it transmits the verification result of the electronic signature of the update file 30 to the firmware update module 22 (step S16). The firmware update module 22 of the IoT device 2 checks the verification result of the electronic signature of the update file 30 (step S17). If the verification result of the electronic signature of the update file 30 indicates a verification failure, the firmware update module 22 of the IoT device 2 executes a predetermined error process (step S18). The content of this error process is arbitrary, but in this embodiment, the process returns to step S1 and re-acquires the server certificate 31.
[0038] Now, the process shown in Fig. 5 will be described. If the verification result of the digital signature of the update file 30 indicates successful verification, the firmware update module 22 of the IoT device 2 updates the firmware 200 stored in the NVM 20d of the MCU 20 using the update file 30 received from the host server 3 (step S19).
[0039] When the firmware update module 22 of the IoT device 2 updates the firmware 200 stored in the NVM 20d of the MCU 20, it calculates a hash value of the updated firmware 200 (step S20). Next, the firmware update module 22 of the IoT device 2 transmits the hash value of the updated firmware 200 and the digital signature of the updated firmware 200 received from the host server 3 to the secure element 21, and causes the secure element 21 to verify the digital signature of the updated firmware 200 (step S21). The secure element 21 verifies the digital signature of the updated firmware 200 received from the firmware update module 22 using a server public key stored in the secure element 21 (step S22). Specifically, the secure element 21 checks whether a value obtained by decrypting the digital signature of the updated firmware 200 using the server public key matches the hash value of the updated firmware 200 received from the firmware update module 22. If the value obtained by decrypting the digital signature of the updated firmware 200 matches the hash value of the updated firmware 200, it is determined that the digital signature of the update file 30 has been successfully verified.
[0040] After performing the process of verifying the updated firmware 200, the secure element 21 notifies the firmware update module 22 of the verification result of the updated firmware 200 (step S23). The firmware update module 22 checks the verification result of the updated firmware 200 (step S24). If the verification result of the updated firmware 200 indicates a successful verification, the firmware update module 22 notifies the host server 3 that the update of the firmware 200 has been successful (step S25) and ends the process of updating the firmware 200. If the verification result of the updated firmware 200 indicates a failed verification, the firmware update module 22 stops the MCU 20 (step S26), executes a predetermined error process (step S27), and ends the process of updating the firmware 200. The content of this error process is arbitrary, but in this embodiment, the process returns to step S1 and the server certificate 31 is reacquired. [Explanation of symbols]
[0041] 1 IoT network system 2. IoT Devices 20 MCU 21 Secure Element 22 Firmware Update Module 3 Host Server 30 Update files 31 Server Certificates 4. IoT Network
Claims
1. The system comprises at least an IoT device and a host server; The IoT device includes an MCU that stores firmware, a firmware update module that manages updates to the firmware, and a secure element that has a function of verifying an electronic signature using a public key; the host server stores an update file for updating the firmware to a latest version and a server certificate issued by a certificate authority; The MCU of the IoT device obtains the server certificate from the host server, and the secure element verifies the digital signature of the server certificate using the public key of the certificate authority; the firmware update module acquires the update file from the host server, and the secure element verifies a hash value of the update file calculated by the firmware update module and a digital signature of the update file using a public key of the server certificate; An IoT network system comprising:
2. the firmware update module acquires, in addition to the update file, a digital signature of the updated firmware updated using the update file from the host server, and when the firmware update module updates the firmware, the secure element verifies, using a public key of the server certificate, a hash value of the updated firmware calculated by the firmware update module and the digital signature of the updated firmware. The IoT network system according to claim 1 .
3. The present invention includes an MCU that stores firmware, a firmware update module that manages updates to the firmware, and a secure element that has a function of verifying an electronic signature using a public key, The MCU obtains a server certificate from a host server that stores an update file for updating the firmware to a latest version, and the secure element verifies a digital signature of the server certificate using a public key of a certificate authority; the firmware update module acquires the update file from the host server, and the secure element verifies a hash value of the update file calculated by the firmware update module and a digital signature of the update file using a public key of the server certificate; An IoT device characterized by:
4. the firmware update module acquires, in addition to the update file, a digital signature of the updated firmware updated using the update file from the host server, and when the firmware update module updates the firmware, the secure element verifies, using a public key of the server certificate, a hash value of the updated firmware calculated by the firmware update module and the digital signature of the updated firmware. An IoT device as claimed in claim 3 .
5. A method executed in an IoT device and a host server, the IoT device including an MCU that stores firmware, a firmware update module that manages updates to the firmware, and a secure element that has a function of verifying an electronic signature using a public key, the host server storing an update file that updates the firmware to a latest version and a server certificate issued by a certificate authority; The method comprises: the MCU of the IoT device obtaining the server certificate from the host server; the secure element verifying the digital signature of the server certificate using a public key of a certificate authority; the firmware update module obtaining the update file from the host server; a step of the secure element verifying a hash value of the update file calculated by the firmware update module and a digital signature of the update file using a public key of the server certificate; A method for updating firmware for an IoT device, comprising:
6. The firmware update module acquires, in addition to the update file, a digital signature of the firmware after updating using the update file from the host server; when the firmware update module updates the firmware, the secure element verifies a hash value of the updated firmware calculated by the firmware update module and a digital signature of the updated firmware using a public key of the server certificate; The method for updating firmware of an IoT device according to claim 5, comprising:
Citation Information
Patent Citations
Update controller, software update system, and update control method
JP2019036251A
Update management method, update management device, and control program
JP2022163096A
Over-the-air update validation
JP2022527904A
Secure and flexible boot firmware update for devices with a primary platform
US20220405392A1
IoT DEVICE AUTHENTICATION SYSTEM, IoT DEVICE AUTHENTICATION METHOD, KEY DISTRIBUTION SERVER, AND IC CHIP
JP2022064688A
