Communication device and communication system

The communication system employs end-to-end encryption and a monitoring unit to secure data transmission between IoT and user devices, addressing vulnerabilities by ensuring encrypted communication and detecting tampering, thus enhancing security.

JP7566650B2Active Publication Date: 2024-10-15MEGACHIPS
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2021013786
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-01-29
Publication Date
2024-10-15
Estimated Expiration
2041-01-29

AI Technical Summary

Technical Problem

Existing communication technologies lack robust security measures to ensure the integrity and confidentiality of data transmitted between communication devices, particularly in environments where devices like IoT devices and user devices are vulnerable to hacking and data tampering.

Method used

Implementing a communication system with end-to-end encryption (E2EE) and a monitoring unit to verify that data transmitted over signal lines is encrypted with the appropriate keys, using a Key Management Server (KMS) to manage encryption keys and ensure secure communication between IoT devices and user devices.

Benefits of technology

Enhances the security of communication by ensuring that data is properly encrypted and detecting any tampering, thereby improving the safety and integrity of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566650000001
    Figure 0007566650000001
  • Figure 0007566650000002
    Figure 0007566650000002
  • Figure 0007566650000003
    Figure 0007566650000003
Patent Text Reader

Abstract

To provide a technique that can improve the safety of communication devices.SOLUTION: A communication device includes a signal line through which data encrypted with a first key is transmitted, a communication unit, and a monitoring unit. The communication unit accepts input of data to be transmitted through the signal line and transmits the input data to the outside of the communication device. The monitoring unit monitors the signal line and monitors whether the data to be transmitted through the signal line is encrypted with the first key.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present disclosure relates to communications technology. [Background technology]

[0002] Patent Document 1 discloses a technique relating to encrypted communication. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2004-135133 Summary of the Invention [Problem to be solved by the invention]

[0004] It is desirable to improve the security of communication devices.

[0005] Therefore, the present disclosure has been made in consideration of the above points, and aims to provide a technique that can improve the security of a communication device. [Means for solving the problem]

[0006] One aspect of the communication device includes a signal line over which data encrypted with a first key is transmitted, a communication unit, and a monitoring unit. The communication unit receives the data transmitted over the signal line and transmits the input data to an external device of the communication device. The monitoring unit monitors the signal line and determines whether the data transmitted over the signal line is encrypted with the first key. [Effects of the Invention]

[0007] The security of the communication device can be improved. [Brief explanation of the drawings]

[0008] [Figure 1] FIG. 1 illustrates an example of a configuration of a communication system. [Figure 2] FIG. 2 illustrates an example of a server configuration. [Figure 3] FIG. 2 is a diagram illustrating an example of the configuration of a user device. [Figure 4] FIG. 1 is a diagram illustrating an example of the configuration of an IoT device. [Figure 5] FIG. 2 is a diagram illustrating an example of functional blocks included in a control unit of an IoT device. [Figure 6] 10 is a flowchart illustrating an example of a packet transmission operation. [Figure 7] 10 is a flowchart illustrating an example of a packet receiving operation. [Figure 8] 10 is a flowchart illustrating an example of an operation of the communication system. [Figure 9] FIG. 1 is a diagram illustrating an example of an operation of a communication system. [Figure 10] FIG. 1 is a diagram illustrating an example of an operation of a communication system. [Figure 11] FIG. 1 is a diagram illustrating an example of an operation of a communication system. [Figure 12] 10 is a flowchart illustrating an example of an operation of a monitoring unit. [Figure 13] FIG. 1 is a diagram illustrating an example of an operation of a communication system. [Figure 14] FIG. 10 is a diagram illustrating an example of session key usage conditions. [Figure 15] FIG. 1 is a diagram illustrating an example of an operation of a communication system. [Figure 16] FIG. 1 is a diagram illustrating an example of an operation of a communication system. DETAILED DESCRIPTION OF THE INVENTION

[0009] <System Overview> Fig. 1 is a diagram showing an example of the configuration of a communication system 1. As shown in Fig. 1, the communication system 1 includes, for example, a server 2, a plurality of communication devices 3, and a communication network 10 to which the server 2 and the plurality of communication devices 3 are connected. Each communication device 3 is capable of communicating with the server 2 through the communication network 10 (also simply referred to as the network 10). Each communication device 3 is capable of communicating with other communication devices 3 through the network 10.

[0010] In the communication system 1, for example, E2EE (end-to-end encryption) communication is performed. E2EE communication is encrypted communication between multiple communication devices located at the ends of a computer network using an encryption key known only to the multiple communication devices. In this example, the communication device 3 is a communication device located at the end of a computer network including the server 2, the communication device 3, and a network 10. In this example, E2EE communication is performed between the multiple communication devices 3.

[0011] The network 10 includes at least one of a wireless network and a wired network. In this example, the network 10 includes, for example, the Internet. The network 10 may include a wireless local area network (LAN), or a mobile phone system network including base stations, etc.

[0012] The server 2 is a type of computer device, such as a cloud server. The server 2 can, for example, control the issuance to the communication device 3 of seed data that serves as the seed of an encryption key used in the communication device 3. The server 2 is also called a KMS (Key Management Server). The server 2 can improve the security of the communication device 3 against hacking, for example, by controlling the communication device 3. The server 2 performs encrypted communication with the communication device 3, for example.

[0013] The multiple communication devices 3 include, for example, IoT devices 4 and user devices 5. IoT is an abbreviation for Internet of Things. While FIG. 1 shows one IoT device 4 and one user device 5, the multiple communication devices 3 include, for example, multiple IoT devices 4 and multiple user devices 5. Hereinafter, the single IoT device 4 to be described (in other words, the single IoT device 4 of interest) will also be referred to as the target IoT device 4. In addition, the single user device 5 to be described (in other words, the single user device 5 of interest) will also be referred to as the target user device 5.

[0014] An IoT device 4 (also referred to as an IoT terminal) and a user device 5 (also referred to as a user terminal) perform, for example, E2EE communication. The IoT device 4 is used, for example, at home, in an office, in a factory, outdoors, etc. The IoT device 4 has, for example, a sensor and can transmit information detected by the sensor to the user device 5, etc.

[0015] The user device 5 is, for example, a device that is easier to operate than the IoT device 4. The user device 5 can receive more diverse inputs from the user than the IoT device 4. Furthermore, the user device 5 can perform more advanced processing than the IoT device 4. The user device 5 may be, for example, a mobile phone such as a smartphone, a tablet terminal, a personal computer, or a wearable device.

[0016] The communication system 1 may include a server other than the server 2, and the plurality of communication devices 3 may include devices other than the IoT device 4 and the user device 5.

[0017] <Server configuration example> Fig. 2 is a diagram showing an example of the configuration of the server 2. As shown in Fig. 2, the server 2 includes, for example, a control unit 20, a communication unit 21 connected to the network 10, a display unit 22, an input unit 23, and a random number generator 24.

[0018] The display unit 22 may be, for example, a liquid crystal display, an organic EL display, or other display. The display unit 22 is controlled by the control unit 20 to display various information such as characters, symbols, and figures.

[0019] The input unit 23 can accept input from a user to the server 2. The input unit 23 may include, for example, a touch panel, a mouse, or a keyboard. The input unit 23 notifies the control unit 20 of the accepted input.

[0020] The random number generator 24 generates random numbers to be used, for example, in generating a session key (described later) used in E2EE communication between the IoT device 4 and the user device 5. The random number generator 24 may generate true random numbers or pseudo-random numbers. The random number generator 24 can also be considered a random number generation circuit. The random number generator 24 inputs the generated random numbers to the control unit 20. For example, the random number generator 24 outputs a different random number each time it outputs a random number.

[0021] The control unit 20 is capable of comprehensively managing the operation of the server 2 by controlling the other components of the server 2. The control unit 20 can also be said to be a control circuit. The control unit 20 is, for example, an MCU (Micro Controller Unit) and includes a processor 200 and a storage unit 210. The processor 200 may be, for example, a CPU (Central Processing Unit) or another processor.

[0022] The storage unit 210 includes a computer-readable non-transitory recording medium such as a ROM (Read Only Memory) and a RAM (Random Access Memory). The storage unit 210 can also be considered a memory circuit. The storage unit 210 stores a program 211 for controlling the server 2. The various functions of the control unit 20 are realized by the processor 200 executing the program 211 in the storage unit 210. The storage unit 210 pre-stores service keys SAKs used by the server 2 in encrypted communication with the IoT devices 4. The service keys SAKs are a type of encryption key. The service keys SAKs are provided individually for each IoT device 4, for example. The storage unit 210 also stores an encryption key (also referred to as a user device encryption key) used by the server 2 in encrypted communication with the user devices 5. The user device encryption key is provided individually for each user device 5.

[0023] The storage unit 210 stores an initial key table 215. The initial key table 215 includes an initial key used during initial setup (also simply referred to as initial setup) of communication between the user device 5 and the IoT device 4. The initial key is a type of encryption key, and is used during initial encrypted communication between the user device 5 and the IoT device 4. Each IoT device 4 is assigned unique identification information. This identification information is also called UID (Unique Identification). In the initial key table 215, each piece of identification information is associated with an initial key used during initial encrypted communication with the IoT device 4 to which the identification information is assigned. For example, an initial key is individually provided for each IoT device 4.

[0024] The storage unit 210 stores time information 218 indicating the current time. The control unit 20 acquires the latest time information from an NTP (Network Time Protocol) server connected to the network 10, for example, via the communication unit 21. The control unit 20 then stores the acquired time information as the time information 218. Thereafter, the control unit 20 updates the time information 218 using a timer or the like included in itself so that the time information 218 always indicates the current time. The control unit 20 periodically acquires time information from, for example, the NTP server, and updates the time information 218 in the storage unit 210. Note that if the server 2 includes, for example, a GPS (Global Positioning System) receiver, the time information output from the GPS receiver may be used as the time information 218.

[0025] The communication unit 21 is connected to the network 10 via a wired or wireless connection. The communication unit 21 can also be considered a communication circuit. The communication unit 21 is capable of communicating with devices such as the communication device 3 connected to the network 10 via the network 10. The communication unit 21 is capable of inputting received data received from the network 10 to the control unit 20. The communication unit 21 is also capable of outputting transmission data input from the control unit 20 to the network 10.

[0026] The configuration of the server 2 is not limited to the example shown in FIG. 2. For example, the control unit 20 may include multiple processors 200. In this case, the control unit 20 may include, for example, at least one DSP (Digital Signal Processor). All or some of the functions of the control unit 20 may be implemented by a hardware circuit that does not require software to implement the function. The storage unit 210 may include a computer-readable non-transitory recording medium other than ROM and RAM. The storage unit 210 may include, for example, a small hard disk drive or SSD (Solid State Drive). The server 2 may include components other than the control unit 20, the communication unit 21, the display unit 22, the input unit 23, and the random number generator 24, or may not include the display unit 22.

[0027] <Example of user device configuration> Fig. 3 is a diagram showing an example of the configuration of the user device 5. As shown in Fig. 3, the user device 5 includes, for example, a control unit 50, a communication unit 51 connected to the network 10, a display unit 52, and an input unit 53. The user device 5 can be said to be a type of computer device.

[0028] The display unit 52 may be, for example, a liquid crystal display, an organic EL display, or another display. The display unit 52 is controlled by the control unit 50 to display various information such as characters, symbols, and figures.

[0029] The input unit 53 can accept input from the user to the user device 5. The input unit 53 may include, for example, a touch panel, a mouse, or a keyboard. The input unit 53 may also include a microphone that accepts voice input from the user, or a sensor that accepts gesture input from the user. The input unit 53 notifies the control unit 50 of the accepted input.

[0030] The control unit 50 can comprehensively manage the operation of the user device 5 by controlling the other components of the user device 5. The control unit 50 can also be said to be a control circuit. The control unit 50 is, for example, an MCU (Micro Controller Unit) and includes a processor 500 and a storage unit 510. The processor 500 may be, for example, a CPU or another processor.

[0031] The storage unit 510 includes a computer-readable non-transitory recording medium such as a ROM and a RAM. The storage unit 510 can also be considered a memory circuit. The storage unit 510 stores a program 511 for controlling the user device 5. Various functions of the control unit 50 are realized by the processor 500 executing the program 511 in the storage unit 510.

[0032] The storage unit 510 stores an initial key IKu and a session key SEKu that the user device 5 uses when performing encrypted communication with the IoT device 4. The initial key IKu matches one of multiple initial keys included in the initial key table 215 stored in the server 2. When the user device 5 communicates with the target IoT device 4, as described below, the server 2 transmits to the user device 5 an initial key that corresponds to the target IoT device 4 and is included in the initial key table 215. The user device 5 stores the initial key received from the server 2 in the storage unit 510 as the initial key IKu that corresponds to the target IoT device 4. The session key SEKu is an encryption key that the user device 5 uses in encrypted communication with the IoT device 4 after initial setting. As described below, the user device 5 generates the session key SEKu and stores it in the storage unit 510. The session key SEKu is updated as appropriate.

[0033] The storage unit 510 also stores an E2EE encryption key EKu used to generate the session key SEKu. As will be described later, the user device 5 generates the E2EE encryption key EKu and stores it in the storage unit 510. The user device 5 then generates the session key SEKu based on the generated E2EE encryption key EKu. The E2EE encryption key EKu is an encryption key that is the basis of the session key SEKu. The storage unit 510 also stores an encryption key (also referred to as a server encryption key) that the user device 5 uses in encrypted communication with the server 2. The server encryption key stored in the target user device 5 matches the user device encryption key stored in the server 2 and corresponding to the target user device 5.

[0034] The storage unit 510 stores time information 518 indicating the current time. The time information 518 is synchronized with the time information 218 stored in the server 2. The control unit 50 acquires the time information 218 from the server 2, for example, via the communication unit 51. The control unit 50 then stores the acquired time information 218 as the time information 518. The control unit 50 then updates the time information 518 using a timer or the like included in the control unit 50 so that the time information 518 always indicates the current time. This synchronizes the time information 518 in the user device 5 with the time information 218 in the server 2. The control unit 50, for example, periodically acquires the time information 218 from the server 2 and updates the time information 518 in the storage unit 510. Note that if the user device 5 includes a GPS receiver, for example, the time information output from the GPS receiver may be used as the time information 518.

[0035] The communication unit 51 is connected to the network 10 via a wired or wireless connection. The communication unit 51 can also be considered a communication circuit. The communication unit 51 can communicate with the IoT devices 4 and the server 2 connected to the network 10 via the network 10. The communication unit 51 can input received data to the control unit 50. The communication unit 51 can also transmit transmission data input from the control unit 50.

[0036] Furthermore, the communication unit 51 can directly communicate with the IoT device 4. The communication unit 51 can perform short-range wireless communication with the IoT device 4, for example. The communication unit 51 can perform direct wireless communication with the IoT device 4, for example, in accordance with Wi-Fi Direct. The communication unit 51 may be compliant with Bluetooth (registered trademark), ZigBee (registered trademark), or NFC (Near Field Communication). The communication unit 51 may be compliant with Wi-Fi ad hoc mode, for example. The communication unit 51 may be connected to the IoT device 4 via a wired connection and perform wired communication with the IoT device 4. In this case, the communication unit 51 may be compliant with USB (Universal Serial Bus).

[0037] Note that the configuration of the user device 5 is not limited to the example in FIG. 3. For example, the control unit 50 may include a plurality of processors 500. In this case, the control unit 50 may include, for example, at least one DSP. Also, all or some of the functions of the control unit 50 may be realized by a hardware circuit that does not require software to realize the function. Further, the storage unit 510 may include a non-transitory computer-readable recording medium other than ROM and RAM. The storage unit 510 may include, for example, a small hard disk drive and SSD, etc. Also, the user device 5 may include components other than the control unit 50, the communication unit 51, the display unit 52, and the input unit 53, or may not include the display unit 52.

[0038] <Configuration Example of IoT Device> FIG. 4 is a diagram showing an example of the configuration of the IoT device 4. As shown in FIG. 4, the IoT device 4 includes, for example, a control unit 40, a communication unit 41 connected to the network 10, a reset button 42 operated by the user, a sensor device 43, and a monitoring unit 45. It can be said that the IoT device 4 is a kind of computer device. In this example, the main function of the IoT device 4 is, for example, to detect information with the sensor device 43, perform predetermined processing on the detected information, and transmit the processed information to the outside. The main function of the IoT device 4 is realized by, for example, the control unit 40, the communication unit 41, and the sensor device 43. The main function of the IoT device 4 is not limited to this, and may be other functions.

[0039] The control unit 40 can control the communication unit 41 and the sensor device 43 to control the main function of the IoT device 4. It can also be said that the control unit 40 is a control circuit. The control unit 40 is, for example, an MCU (Micro Controller Unit) and includes a processor 400 and a storage unit 410. The processor 400 may be, for example, a CPU or other processor.

[0040] The storage unit 410 includes a computer-readable non-transitory recording medium such as a ROM and a RAM. The storage unit 410 can also be referred to as a memory circuit. A program 411 is stored in the storage unit 410. The program 411 includes a driver for the control unit 40 to control the communication unit 41. Various functions of the control unit 40 are realized by the processor 400 executing the program 411 in the storage unit 410. The storage unit 410 also stores a session key SEKi used when the IoT device 4 performs encrypted communication with the user device 5. The session key SEKi is generated by the monitoring unit 45, as described below, and input from the monitoring unit 45 to the control unit 40.

[0041] 5, the processor 400 executes the program 411 in the storage unit 410, thereby configuring the control unit 40 with, for example, a cryptographic processing unit 420 as a functional block. The cryptographic processing unit 420 can encrypt data to be transmitted by the communication unit 41. The cryptographic processing unit 420 can also decrypt encrypted data received by the communication unit 41. The session key SEKi in the storage unit 410 is used by the cryptographic processing unit 420.

[0042] The communication unit 41 is connected to the network 10 via a wired or wireless connection. The communication unit 41 can also be considered a communication circuit. The communication unit 41 can communicate with the user device 5, the server 2, and the like connected to the network 10 via the network 10.

[0043] Furthermore, the communication unit 41 can directly communicate with the communication unit 51 of the user device 5. The communication unit 41 can perform short-range wireless communication with the communication unit 51, for example. The communication unit 41 can perform direct wireless communication with the communication unit 51, for example, in accordance with Wi-Fi Direct. The communication unit 41 may be in accordance with Bluetooth (registered trademark), ZigBee (registered trademark), or NFC (Near Field Communication). The communication unit 41 may be in accordance with Wi-Fi ad hoc mode, for example. The communication unit 41 may be connected to the communication unit 51 via a wire and perform wired communication with the communication unit 51. In this case, the communication unit 41 may be in accordance with USB.

[0044] The communication unit 41 and the control unit 40 are connected by, for example, a signal line 140. The communication unit 41 can communicate with the control unit 40 through the signal line 140. The signal line 140 can also be called a communication line. The communication unit 41 outputs received data received from outside the IoT device 4 to the signal line 140. The received data propagating through the signal line 140 is input to the control unit 40. The control unit 40 also inputs transmission data to the signal line 140. The transmission data propagating through the signal line 140 is input to the communication unit 41. The communication unit 41 transmits the input transmission data to outside the IoT device 4.

[0045] The communication unit 41 and the control unit 40 can communicate with each other based on, for example, UART (Universal Asynchronous Receiver / Transmitter), SPI (Serial Peripheral Interface), or I2C (Inter-Integrated Circuit). The communication method between the communication unit 41 and the control unit 40 is not limited to these.

[0046] The communication unit 41 stores software in which a protocol stack including, for example, TCP / IP (Transmission Control Protocol / Internet Protocol) is implemented. The communication unit 41 also includes a processor such as a CPU. In the communication unit 41, the processor executes the software in which the protocol stack is implemented, thereby realizing a function of communication with the control unit 40, a function of communication with the network 10, and a function of direct communication with the user device 5.

[0047] In addition, the control unit 50 and the communication unit 51 in the user device 5 may be connected in the same manner as the control unit 40 and the communication unit 41 in the IoT device 4. In addition, the communication unit 51 may be configured in the same manner as the communication unit 41.

[0048] The reset button 42 is provided on the IoT device 4 so as to be exposed from the exterior case (also referred to as housing) of the IoT device 4 so that it can be operated by the user. When the reset button 42 is operated (for example, pressed), a reset signal is asserted and input to various circuits included in the IoT device 4. This initializes the operation of the IoT device 4.

[0049] The sensor device 43 includes, for example, at least one sensor. The sensor device 43 may include, for example, an image sensor including a camera or the like. The sensor device 43 may also include a weather observation sensor. The sensor device 43 may also include, for example, at least one of a temperature sensor, an acceleration sensor, a geomagnetic sensor, a gyro sensor, and a pressure sensor. The sensor device 43 inputs data indicating the detected information (for example, image data indicating information within the field of view of the camera) to the control unit 40. Hereinafter, the data output by the sensor device 43 will also be referred to as sensor data.

[0050] The control unit 40 stores the sensor data input from the sensor device 43 in the storage unit 410. The control unit 40 reads out the sensor data from the storage unit 410 and performs processing, including, for example, filtering, on the read sensor data. The control unit 40 stores the processed sensor data in the storage unit 410 as processed sensor data. As will be described later, the processed sensor data in the storage unit 410 is transmitted from the communication unit 41 through the network 10 to, for example, the user device 5.

[0051] The monitoring unit 45 monitors the signal line 140 to monitor whether the data transmitted through the signal line 140 is encrypted. The monitoring unit 45 can also be called a monitoring circuit. The monitoring unit 45 is connected to the signal line 140 through a signal line 141. The monitoring unit 45 can monitor the signal line 140 through the signal line 141. The data transmitted through the signal line 140 is input to the monitoring unit 45 through the signal line 141. The monitoring unit 45 also manages the encryption key used in the IoT device 4.

[0052] The monitoring unit 45 includes, for example, a processor 450 and a storage unit 460. The processor 450 may be, for example, a CPU or another processor. The storage unit 460 includes a computer-readable non-transitory recording medium such as a ROM and a RAM. The storage unit 460 can also be considered a memory circuit. A program 461 is stored in the storage unit 460. Various functions of the monitoring unit 45 are realized by the processor 450 executing the program 461 in the storage unit 460.

[0053] The storage unit 460 stores an initial key IKi, an E2EE encryption key EKi, a session key SEKi, and a service key SAKi. The initial key IKi and the service key SAKi are stored in advance in the storage unit 460. The initial key IKi stored in the storage unit 460 of the target IoT device 4 matches the initial key IKu stored in the user device 5 with which the target IoT device 4 communicates. The service key SAKi stored in the storage unit 460 of the target IoT device 4 matches the service key SAKs corresponding to the target IoT device 4, which is stored in the server 2. The E2EE encryption key EKi stored in the storage unit 460 of the target IoT device 4 matches the E2EE encryption key EKu stored in the user device 5 with which the target IoT device 4 communicates. As will be described later, the user device 5 transmits the generated E2EE encryption key EKu to the IoT device 4, and the E2EE encryption key EKu received by the IoT device 4 is stored in the storage unit 460 as the E2EE encryption key EKi. The monitoring unit 45 generates a session key SEKi based on the E2EE encryption key EKi and stores it in the storage unit 460. The monitoring unit 45 also inputs the session key SEKi in the storage unit 460 to the control unit 40. The encryption processing unit 420 encrypts and decrypts data using the session key SEKi input to the control unit 40. The session key SEKi is updated as appropriate.

[0054] The storage unit 460 included in the target IoT device 4 stores identification information 465 unique to the target IoT device 4. The storage unit 460 also stores history data 466 indicating the history of the monitoring results of the signal line 140 by the monitoring unit 45. The history data 466 is updated sequentially. The storage unit 460 also stores time information 468 indicating the current time. The time information 468 is synchronized with the time information 218 stored in the server 2 and the time information 518 stored in the user device 5. As will be described later, the IoT device 4 acquires the time information 518 from the user device 5. The IoT device 4 then stores the acquired time information 518 as the time information 468. Thereafter, the IoT device 4 updates the time information 468 using a timer or the like provided within itself so that the time information 468 always indicates the current time.

[0055] The circuit including the control unit 40, the communication unit 41, and the monitoring unit 45 may be configured on a single die (also called a wafer chip), for example. Alternatively, the circuit including the control unit 40, the communication unit 41, and the monitoring unit 45 may be configured on a plurality of dies. In this case, the plurality of dies may be housed in a single package made of resin or the like, or may be housed separately in a plurality of packages.

[0056] The configuration of the IoT device 4 is not limited to the example shown in FIG. 4 . For example, the control unit 40 may include multiple processors 400. In this case, the control unit 40 may include, for example, at least one DSP. All or some of the functions of the control unit 40 may be implemented by a hardware circuit that does not require software to implement the function. The storage unit 410 may include a computer-readable non-transitory recording medium other than ROM and RAM. The storage unit 410 may include, for example, a small hard disk drive or SSD. The monitoring unit 45 may include multiple processors 450. All or some of the functions of the monitoring unit 45 may be implemented by a hardware circuit that does not require software to implement the function. The storage unit 460 may include a computer-readable non-transitory recording medium other than ROM and RAM. The IoT device 4 may include components other than the control unit 40, the communication unit 41, the reset button 42, the sensor device 43, and the monitoring unit 45, or may not include the reset button 42.

[0057] <Example of transmission and reception operations> Fig. 6 is a flowchart showing an example of basic transmission operations of the server, user device, and IoT device. Fig. 7 is a flowchart showing an example of basic reception operations of the server, user device, and IoT device. Below, the basic transmission operations and reception operations of the server 2, user device 5, and IoT device 4 will be explained using Figs. 6 and 7.

[0058] <An example of server transmission behavior> When the server 2 transmits data to the target IoT device 4, the control unit 20 prepares a message addressed to the target IoT device 4 (step s101 in FIG. 6). Furthermore, to enable tampering detection on the receiving side, the control unit 20 generates, for example, a checksum from the message (step s102). Then, the control unit 20 encrypts the message addressed to the target IoT device 4 and the checksum generated from it using the service key SAKs corresponding to the target IoT device 4 in the storage unit 210 (step s103). Hereinafter, the message and the checksum generated from it may be collectively referred to as a message with checksum.

[0059] Next, the control unit 20 generates a packet including an encrypted message with a checksum and a header (step s104). Then, the control unit 20 causes the communication unit 21 to transmit the generated packet to the target IoT device 4 (step s105). If the message addressed to the IoT device 4 does not need to be kept confidential and does not need to be encrypted, the control unit 20 causes the communication unit 21 to transmit a packet including a plaintext message with a checksum and a header addressed to the IoT device 4. The server 2 transmits an encrypted message with a checksum or a plaintext message with a checksum to the IoT device 4.

[0060] When the server 2 transmits data to the target user equipment 5, the control unit 20 prepares a message addressed to the target user equipment 5 (step s101). The message addressed to the target user equipment 5 includes, for example, an initial key included in the initial key table 215. The control unit 20 generates a checksum from the prepared message (step s102). As a result, a message with the checksum addressed to the target user equipment 5 is generated. Next, the control unit 20 encrypts the message with the checksum addressed to the target user equipment 5 with the user equipment encryption key stored in the storage unit 210 (step s103). Next, the control unit 20 generates a packet including the encrypted message with the checksum and a header (step s104). Then, the control unit 20 causes the communication unit 21 to transmit the generated packet to the target user equipment 5 (step s105). When the message addressed to the user equipment 5 does not need to be kept confidential and therefore does not need to be encrypted, the control unit 20 causes the communication unit 21 to transmit a packet including the plaintext message with the checksum addressed to the user equipment 5 and a header.

[0061] <Example of user equipment transmission operation> When the user equipment 5 transmits data to the server 2, the control unit 50 prepares a message addressed to the server 2 (step s101). Next, the control unit 50 generates a checksum from the prepared message (step s102). As a result, a message with the checksum addressed to the server 2 is generated. Next, the control unit 50 encrypts the message with the checksum addressed to the server 2 using the server encryption key stored in the storage unit 510 (step s103). Next, the control unit 50 generates a packet including the encrypted message with the checksum and a header (step s104). Then, the control unit 50 causes the communication unit 51 to transmit the generated packet to the server 2 (step s105). If the message addressed to the server 2 does not need to be kept confidential and therefore does not need to be encrypted, the control unit 50 causes the communication unit 51 to transmit a packet including the plaintext message with the checksum addressed to the server 2 and a header.

[0062] After the initial setting, when the user device 5 transmits data to the IoT device 4, the control unit 50 prepares a message addressed to the IoT device 4 (step s101). Next, the control unit 50 generates a checksum from the prepared message (step s102). As a result, a message with a checksum addressed to the IoT device 4 is generated. Next, the control unit 50 encrypts the message with the checksum addressed to the IoT device 4 using the session key SEKu in the storage unit 510 (step s103). Next, the control unit 50 generates a packet including the encrypted message with the checksum and a header (step s104). Then, the control unit 50 causes the communication unit 51 to transmit the generated packet to the IoT device 4 (step s105). When the control unit 50 does not need to conceal the message addressed to the IoT device 4 and does not need to encrypt it, the control unit 50 causes the communication unit 51 to transmit a packet including a plaintext message with a checksum addressed to the IoT device 4 and a header.

[0063] [[ID=,4]]<An example of the transmission operation of the IoT device> When the IoT device 4 transmits data to the server 2, the monitoring unit 45 prepares a message addressed to the server 2 (step s101). Next, the monitoring unit 45 generates a checksum from the prepared message (step s102). As a result, a message with the checksum addressed to the server 2 is generated. Next, the monitoring unit 45 encrypts the message with the checksum addressed to the server 2 using the service key SAKi stored in the storage unit 460 (step s103). The encrypted message addressed to the server 2 includes, for example, history data 466. The monitoring unit 45 outputs the encrypted message with the checksum to the control unit 40. The control unit 40 generates a packet including the input message with the checksum and a header (step s104). Then, the control unit 40 inputs the generated packet to the communication unit 41 via the signal line 140. The communication unit 41 transmits the input packet to the server 2 (step s105). If the message addressed to server 2 does not need to be kept secret and does not need to be encrypted, monitoring unit 45 outputs the plaintext message addressed to server 2 with a checksum to control unit 40. Control unit 40 causes communication unit 41 to transmit a packet including the input plaintext message addressed to server 2 with a checksum and a header.

[0064] After the initial setting, when the IoT device 4 transmits data to the user device 5, the control unit 40 prepares a message addressed to the user device 5 (step s101). Next, the control unit 40 generates a checksum from the prepared message (step s102). As a result, a message with the checksum addressed to the user device 5 is generated. Next, the cryptographic processing unit 420 of the control unit 40 encrypts the message with the checksum addressed to the user device 5 with the session key SEKi from the monitoring unit 45 (step s103). The encrypted message addressed to the user device 5 includes, for example, processed sensor data. Next, the control unit 40 generates a packet including the message with the checksum encrypted by the cryptographic processing unit 420 and a header (step s104). Then, the control unit 40 inputs the generated packet to the communication unit 41 via the signal line 140. The communication unit 41 transmits the input packet to the user device 5 (step s105). If the message addressed to the user device 5 does not need to be kept secret and does not need to be encrypted, the control unit 40 causes the communication unit 41 to transmit a packet including the plaintext message addressed to the user device 5 with a checksum and a header.

[0065] <An example of server reception behavior> When the communication unit 21 of the server 2 receives a packet from the target IoT device 4 via the network 10 (step s111 in FIG. 7 ), it inputs the received packet to the control unit 20. If the input received packet includes an encrypted message with a checksum, the control unit 20 decrypts the encrypted message with a checksum using the service key SAKs corresponding to the target IoT device 4 stored in the storage unit 210 (step s112). This allows the control unit 20 to acquire the plaintext message with a checksum addressed to the server 2, which was prepared by the target IoT device 4. In other words, the control unit 20 can acquire the plaintext message addressed to the server 2, which was prepared by the target IoT device 4, and the plaintext checksum generated from it. Note that if the received packet includes a message with a checksum, the control unit 20 can acquire the plaintext message with a checksum without performing a decryption process. Hereinafter, the plaintext message and plaintext checksum acquired on the receiving side may be referred to as the received message and the received checksum, respectively.

[0066] When the control unit 20 acquires the plaintext message with the checksum, it checks whether the message contained therein (i.e., the received message) has been tampered with (step s113). For example, the control unit 20 generates a checksum from the received message. This checksum is called a generated checksum. The control unit 20 compares the received checksum with the generated checksum, and if the two match, it determines that the received message has not been tampered with. On the other hand, if the two do not match, the control unit 20 determines that the received message has been tampered with. If the control unit 20 determines that the received message has been tampered with, it discards the received message, for example.

[0067] The received message acquired by the control unit 20 includes, for example, history data 466 generated by the target IoT device 4. The control unit 20 controls, for example, the target IoT device 4 based on the history data 466 included in the message. This will be described in detail later.

[0068] When the communication unit 21 receives a packet from the target user equipment 5 via the network 10 (step s111), it inputs the received packet to the control unit 20. If the received packet includes an encrypted message with a checksum, the control unit 20 decrypts the encrypted message with the checksum using the user equipment encryption key corresponding to the target user equipment 5 in the storage unit 210 (step s112). This allows the control unit 20 to obtain the plaintext message with the checksum prepared by the target user equipment 5. The control unit 20 then performs tampering detection on the obtained received message in the same manner as described above (step s113). If the control unit 20 determines that the received message has been tampered with, it discards the received message, for example.

[0069] <An example of reception operation of user equipment> When the communication unit 51 of the user device 5 receives a packet from the server 2 via the network 10 (step s111), it inputs the received packet to the control unit 50. If the input received packet includes an encrypted message with a checksum, the control unit 50 decrypts the encrypted message with the checksum using the encryption key for server communication stored in the storage unit 510 (step s112). This allows the control unit 50 to obtain the plaintext message with the checksum addressed to the user device 5, which has been prepared by the server 2. The received message obtained by the control unit 50 includes, for example, an initial key. The control unit 50 performs tampering detection on the obtained received message in the same manner as the control unit 20 (step s113). If the control unit 50 determines that the received message has been tampered with, it discards the received message, for example.

[0070] When the communication unit 51 receives a packet from the IoT device 4 through the network 10 (step s111), it inputs the received packet to the control unit 50. When the received packet contains an encrypted message with a checksum, the control unit 50 decrypts the encrypted message with the checksum using the session key SEKu in the storage unit 510 (step s112). As a result, the control unit 50 can obtain the plaintext message with a checksum addressed to the user device 5 prepared by the IoT device 4. The control unit 50 performs tampering detection of the received message in the same manner as the control unit 20 (step s113). When the control unit 50 determines that the received message has been tampered with, for example, it discards the received message.

[0071] The received message obtained by the control unit 50 includes, for example, processed sensor data generated by the IoT device 4. The control unit 50 performs predetermined processing based on the obtained processed sensor data, for example. The control unit 50 may display the processed sensor data on the display unit 52. Further, the control unit 50 may cause the communication unit 5l to transmit the processed sensor data to a specific device connected to the network 10.

[0072] <An example of the receiving operation of the IoT device> When the communication unit 41 of the IoT device 4 receives a packet from the server 2 through the network 10 (step s111), it inputs the received packet to the control unit 40 through the signal line 140. The control unit 40 outputs the input received packet to the monitoring unit 45. When the input received packet contains an encrypted message with a checksum, the monitoring unit 45 decrypts the encrypted message with the checksum using the service key SAKi in the storage unit 460 (step s112). As a result, the monitoring unit 45 can obtain the plaintext message with a checksum addressed to the IoT device 4 prepared by the server 2. The monitoring unit 45 performs tampering detection of the received message in the same manner as the control unit 20 (step s113). When the monitoring unit 45 determines that the received message has been tampered with, for example, it discards the received message.

[0073] When the communication unit 41 receives a packet from the user device 5 through the network 10 (step s111), it inputs the received packet to the control unit 40 through the signal line 140. When the input received packet contains a message with an encrypted checksum, the encryption processing unit 420 of the control unit 40 decrypts the message with the encrypted checksum using the session key SEKi from the monitoring unit 45 (step s112). As a result, the control unit 40 can obtain the plaintext message with checksum addressed to the IoT device 4 prepared by the user device 5. Similar to the control unit 20, the control unit 40 detects tampering of the received message (step s113). If the control unit 40 determines that the received message has been tampered with, for example, it discards the received message.

[0074] In the above example, the checksum method is adopted as a method for the receiving device to detect tampering of the received message, but other tampering detection methods may be adopted. For example, other tampering detection methods such as AES-GCM may be adopted. AES is an abbreviation for Advanced Encryption Standard, and GCM is an abbreviation for Galois Counter Mode.

[0075] [[ID=X]] In the following description, unless otherwise specified, the transmission and reception of messages (specifically, packets including messages) between the server 2 and the user device 5, the transmission and reception of messages between the server 2 and the IoT device 4, and the transmission and reception of messages between the IoT device 4 and the user device 5 are assumed to be performed as described above without detailed explanation.

[0076] > <Example of Initial Setting of Communication between IoT Device and User Device> 8 is a flowchart showing an example of the operation of the communication system 1 when initial setting of communication between the IoT device 4 and the user device 5 is performed. As shown in FIG. 8, in the communication system 1, in step s1, an initial key sharing process is performed in which an initial key is shared between the IoT device 4 and the user device 5. Next, in step s2, an E2EE encryption key sharing process is performed in which an E2EE encryption key is shared between the IoT device 4 and the user device 5. When step s2 is performed, the initial setting is completed. In the initial setting, for example, the IoT device 4 communicates directly with the user device 5 rather than communicating with the user device 5 via the network 10. Furthermore, the IoT device 4 and the user device 5 are operated by, for example, the same user.

[0077] FIG. 9 is a diagram illustrating the initial key sharing process in step s1. In the initial key sharing process, first, in step s11, when the reset button 42 of the IoT device 4 detects an operation on itself, the operation of the IoT device 4 is initialized. After initialization, the IoT device 4 first operates in the initial setting mode. In the IoT device 4 in the initial setting mode, the communication unit 41 functions as, for example, a Wi-Fi access point under the control of the control unit 40. This enables the communication unit 51 of the user device 5 to communicate directly with the communication unit 41 of the IoT device 4.

[0078] Next, in step s12, the input unit 53 of the user device 5 accepts a predetermined input from the user. In step s13, the user device 5 transmits a message (also referred to as an ID request message) to the IoT device 4 requesting transmission of the identification information 465. At this time, the ID request message is transmitted directly from the user device 5 to the IoT device 4 without being encrypted. In step s14, the IoT device 4 that has received the ID request message transmits a message indicating the identification information 465 stored therein to the user device 5. In step s14, upon receiving the ID request message from the communication unit 41, the control unit 40 acquires the identification information 465 from the monitoring unit 45. Then, the control unit 40 inputs a packet including a message indicating the acquired identification information 465 to the communication unit 41. The communication unit 41 transmits the input packet to the user device 5. At this time, the message including the identification information 465 is transmitted from the IoT device 4 to the user device 5 without being encrypted.

[0079] Upon receiving the identification information 465 from the IoT device 4, the user device 5 transmits, in step s15, a message requesting approval for pairing with the IoT device 4 (also referred to as an approval request message) to the server 2 via the network 10. The approval request message includes the identification information 465. The approval request message is, for example, encrypted and transmitted from the user device 5 to the server 2.

[0080] When the server 2 receives the authorization request message from the user device 5, in step s16, it authenticates the user device 5 using a predetermined method. If the server 2 determines that the user device 5 is legitimate as a result of the authentication, in step s17, it obtains from the initial key table 215 the initial key that corresponds to the identification information 465 received from the user device 5. The server 2 then transmits a message indicating the obtained initial key to the user device 5. This allows the user device 5 to obtain the initial key that corresponds to the identification information 465. The initial key is, for example, encrypted and transmitted from the server 2 to the user device 5. On the other hand, if the server 2 determines that the user device 5 is not legitimate as a result of the authentication, it notifies the user device 5 of that fact, for example.

[0081] When the user device 5 acquires the initial key corresponding to the identification information 465 from the server 2, it stores the acquired initial key as the initial key IKu in the storage unit 510. This initial key IKu matches the initial key IKi stored in the IoT device 4. As a result, the initial key is shared between the IoT device 4 and the user device 5, and the initial key sharing process ends. With the end of the initial key sharing process, pairing between the IoT device 4 and the user device 5 is completed.

[0082] 10 is a diagram for explaining the E2EE encryption key sharing process in step s2. As soon as the initial key sharing process is completed, the E2EE encryption key sharing process starts. In the E2EE encryption key sharing process, first, in step s21, the control unit 50 of the user device 5 generates an E2EE encryption key EKu and stores it in the storage unit 510. Next, in step s22, the control unit 50 encrypts the generated E2EE encryption key EKu and time information 518 in the storage unit 510 with the initial key IKu in the storage unit 510. Next, in step s23, the user device 5 directly transmits the E2EE encryption key EKu encrypted with the initial key IKu and the time information 518 to the IoT device 4 as an encrypted message.

[0083] Upon receiving the E2EE encryption key EKu and the time information 518 encrypted with the initial key IKu, the IoT device 4 decrypts the E2EE encryption key EKu and the time information 518 with the initial key IKi in step s24. As a result, the IoT device 4 can acquire the plaintext E2EE encryption key EKu and the time information 518. In step s24, the control unit 40 outputs the encrypted E2EE encryption key EKu and the time information 518 received from the communication unit 41 to the monitoring unit 45. The monitoring unit 45 decrypts the input encrypted E2EE encryption key EKu and time information 518 with the initial key IKi in the storage unit 460. As a result, the monitoring unit 45 can acquire the plaintext E2EE encryption key EKu and the time information 518.

[0084] When the monitoring unit 45 acquires the plaintext E2EE encryption key EKu, in step s25, the monitoring unit 45 stores the acquired plaintext E2EE encryption key EKu as the E2EE encryption key EKi in the storage unit 460. As a result, the E2EE encryption key is shared between the IoT device 4 and the user device 5. Also, in step s25, the monitoring unit 45 stores the acquired plaintext time information 518 as time information 468 in the storage unit 460. Thereafter, the monitoring unit 45 updates the time information 468 using a timer or the like included in itself so that the time information 468 always indicates the current time. As a result, the time information in the server 2, the user device 5, and the IoT device 4 is synchronized with each other. Note that if the IoT device 4 is equipped with a GPS receiver, for example, the time information output from the GPS receiver may be used as the time information 468.

[0085] When step s25 is executed, the E2EE encryption key sharing process ends. The E2EE encryption key is shared between the IoT device 4 and the user device 5 without going through the server 2, so the server 2 does not recognize the E2EE encryption key. Sharing the E2EE encryption key between the IoT device 4 and the user device 5 enables E2EE communication between the IoT device 4 and the user device 5. When the E2EE encryption key sharing process ends, the initial settings are completed and the initial setting mode is released in the IoT device 4. When the initial setting mode is released, the IoT device 4 communicates with the user device 5 via the network 10.

[0086] As described above, in this example, in order for the user device 5 to obtain the initial key, authentication by the server 2 must be established. This makes it difficult for a hacker's device to obtain the initial key. As a result, even if a hacker is able to operate, for example, the reset button 42 of the IoT device 4, it will be difficult for the hacker's device to obtain the E2EE encryption key.

[0087] By executing the initial key sharing process and the E2EE encryption sharing process between the target IoT device 4 and the plurality of user devices 5, the target IoT device 4 is paired with the plurality of user devices 5, and the same initial key and the same E2EE encryption key are shared between the target IoT device 4 and the plurality of user devices 5. The plurality of user devices 5 may transmit and receive the E2EE encryption key among themselves to share it.

[0088] <Example of how to generate a session key> 11 is a flowchart showing an example of a session key generation process in the communication system 1. A session key is a cryptographic key that is used temporarily, and is newly generated and updated based on predetermined conditions. The session key is generated independently by each of the IoT device 4 and the user device 5.

[0089] 11, when the IoT device 4 generates the session key SEKi, in step s31, the IoT device 4 transmits a seed request message to the server 2 requesting transmission of seed data that will be the seed of the session key SEKi. In step s31, the monitoring unit 45 generates the seed request message. The seed request message generated by the monitoring unit 45 is encrypted with the service key SAKi and transmitted from the communication unit 41 to the server 2 via the control unit 40.

[0090] Furthermore, when generating a session key SEKu, the user device 5 transmits a seed request message in step s32, as shown in Fig. 11. In step s32, the control unit 50 generates a seed request message and encrypts the generated seed request message with a server encryption key. The encrypted seed request message is transmitted from the communication unit 51 to the server 2.

[0091] In the server 2 that has received the seed request message, the control unit 20 acquires a random number from the random number generator 24 and sets the acquired random number as seed data. Every time the server 2 receives a seed request message, the control unit 20 acquires a different random number from the random number generator 24. Therefore, the seed data is different every time a seed request message is issued.

[0092] The control unit 20 encrypts the acquired seed data as a message using the service key SAKs. The server 2 transmits the encrypted seed data to the IoT device 4 in step s33. The server 2 also encrypts the acquired seed data using the user device encryption key. The server 2 transmits the encrypted seed data to the user device 5 in step s34. When the server 2 receives a seed request message from the target IoT device 4 (i.e., when step s31 is executed), the server 2 transmits the encrypted seed data to the target IoT device 4 in step s33, and also transmits the encrypted seed data to the user device 5 paired with the target IoT device 4 in step s34. When the server 2 receives a seed request message from the target user device 5 (i.e., when step s32 is executed), the server 2 transmits the encrypted seed data to the IoT device 4 paired with the target user device 5 in step s33, and also transmits the encrypted seed data to the target user device 5 in step s34.

[0093] In the IoT device 4 that has received encrypted seed data (random numbers in this example) from the server 2, the encrypted seed data is input to the monitoring unit 45. The monitoring unit 45 decrypts the encrypted seed data with the service key SAKi to obtain plaintext seed data. Upon obtaining the plaintext seed data, the monitoring unit 45 generates a session key SEKi based on the obtained seed data and the E2EE encryption key EKi stored in the storage unit 460 in step s35. For example, the monitoring unit 45 substitutes the E2EE encryption key EKi and the seed data into a function for generating a session key, and sets the output of the function as the session key SEKi. Next, in step s36, the monitoring unit 45 stores the generated session key SEKi in the storage unit 460. The monitoring unit 45 also outputs the session key SEKi to the control unit 40, and the control unit 40 stores the input session key SEKi in the storage unit 410. The control unit 40 uses the session key SEKi in the storage unit 410 to encrypt and decrypt the message.

[0094] Furthermore, in the user device 5 that has received the encrypted seed data, the control unit 50 decrypts the encrypted seed data with the server encryption key to obtain plaintext seed data. Upon obtaining the plaintext seed data, the control unit 50 generates a session key SEKu based on the obtained seed data and the E2EE encryption key EKu stored in the storage unit 460 in step s37. For example, the control unit 50 substitutes the E2EE encryption key EKu and the seed data into the same function as the function used in the IoT device 4 for generating the session key, and sets the output of the function as the session key SEKu. Next, in step s38, the control unit 50 stores the generated session key SEKu in the storage unit 510. The session key SEKu generated in step s37 and the session key SEKi generated in step s35 match each other.

[0095] As described above, the seed data issued by the server 2 changes every time a seed request message is issued. Therefore, regardless of whether the seed request message is issued by the IoT device 4 or the user device 5, the session keys generated by the IoT device 4 and the user device 5 are updated every time a seed request message is issued.

[0096] In this example, seed data issued by the server 2 is required to generate a session key used in E2EE communication between the IoT device 4 and the user device 5. Therefore, the server 2 can control E2EE communication between the IoT device 4 and the user device 5 by controlling the issuance of the seed data.

[0097] There are various possible conditions for updating the session key. For example, the IoT device 4 and the user device 5 may issue a seed request message at a predetermined time, generate a new session key based on new seed data received from the server 2, and update the session key.

[0098] As another example, the IoT device 4 and the user device 5 may update the session key based on session key usage conditions (also referred to as session key usage conditions). In this case, for example, if the current situation is within the session key usage conditions, the IoT device 4 and the user device 5 can use the current session key. On the other hand, if the current situation is outside the session key usage conditions, the IoT device 4 and the user device 5 issue a seed request message and generate a new session key to update the session key.

[0099] The session key usage conditions may be managed by, for example, the server 2. For example, the session key usage conditions may be stored in the storage unit 210 of the server 2. For example, in response to receiving a seed request message, the server 2 may transmit seed data and usage conditions of a session key generated based on the seed data. In this case, in the above-mentioned step s33, the server 2 encrypts a message including the seed data and the session key usage conditions and transmits it to the IoT device 4. Also, in step s34, the server 2 encrypts a message including the seed data and the session key usage conditions and transmits it to the user device 5. In the IoT device 4, in the above-mentioned step s36, the monitoring unit 45 associates the generated session key SEKi with the session key usage conditions from the server 2 and stores them in the storage unit 460. Also, the monitoring unit 45 outputs the session key SEKi and the session key usage conditions to the control unit 40. The control unit 40 associates the input session key SEKi and the session key usage conditions with each other and stores them in the storage unit 410. Control unit 40 uses session key SEKi in storage unit 410 in accordance with the session key usage conditions in storage unit 410. In user device 5, in step s38, control unit 50 associates the generated session key SEKu with the session key usage conditions from server 2 and stores them in storage unit 510. Control unit 50 uses session key SEKi in storage unit 510 in accordance with the session key usage conditions in storage unit 510.

[0100] In the IoT device 4, when the current situation falls outside the session key usage conditions stored in the storage unit 410, the control unit 40 requests the monitoring unit 45 to issue a new session key SEKi. Upon receiving this request, the monitoring unit 45 generates a seed request message, encrypts the generated seed request message with the service key SAKi, and inputs the encrypted seed request message to the control unit 40. The control unit 40 then causes the communication unit 41 to transmit the encrypted seed request message to the server 2. As a result, new seed data and session key usage conditions are transmitted from the server 2 to the IoT device 4 and the user device 5, and the session key and session key usage conditions are updated in the IoT device 4 and the user device 5.

[0101] For example, consider a case where the session key usage condition is an upper limit value for the usage time of the session key. In this case, when the elapsed time since the start of use of the current session key SEKi (i.e., the usage time of the current session key SEKi) exceeds the upper limit value of the usage time, control unit 40 requests monitoring unit 45 to issue a new session key SEKi. In other words, when the elapsed time since the current session key SEKi was stored in memory unit 410 exceeds the upper limit value of the usage time, control unit 40 requests monitoring unit 45 to issue a new session key SEKi. Control unit 40 can measure the elapsed time (i.e., the usage time of the current session key SEKi) using a timer or the like provided within itself.

[0102] As another example, consider a case where the session key usage condition is an upper limit on the amount of data that can be transmitted for a message encrypted with the session key. In this case, when the amount of data that can be transmitted for a message encrypted with the current session key SEKi reaches the upper limit, control unit 40 requests monitoring unit 45 to issue a new session key SEKi.

[0103] The session key usage conditions may include an upper limit on the usage time and the upper limit on the amount of data to be transmitted, or may include other conditions. For example, the session key usage conditions may include the destination or source of the transmission.

[0104] In the user device 5, when the current situation falls outside the session key usage conditions stored in the storage unit 410, the control unit 50 generates a seed request message and encrypts it with the server encryption key. Then, the control unit 50 causes the communication unit 51 to transmit the encrypted seed request message to the server 2. As a result, new seed data and session key usage conditions are transmitted from the server 2 to the IoT device 4 and the user device 5, and the session key and session key usage conditions are updated in the IoT device 4 and the user device 5.

[0105] <Example of monitoring operation of the monitoring unit's signal line> The monitoring unit 45 monitors the signal line 140. The monitoring unit 45 starts monitoring the signal line 140, for example, when the above-described initial setting is completed (in other words, when the E2EE encryption key sharing process is completed).

[0106] Here, for example, if at least one of the control unit 40 and the communication unit 41 of the IoT device 4 is hacked, it is possible that data propagating along the signal line 140 may not be encrypted even though it should be.

[0107] Therefore, the monitoring unit 45 monitors the signal line 140 to monitor whether data that should be encrypted with the session key and that is transmitted over the signal line 140 has been encrypted with the session key. Specifically, the monitoring unit 45 monitors the signal line 140 to monitor whether a message with a checksum that is transmitted over the signal line 140 and that is addressed to the user equipment 5 and that should be encrypted with the session key has been encrypted with the session key. The monitoring unit 45 also monitors the signal line 140 to monitor whether a message with a checksum from the user equipment 5 that is transmitted over the signal line 140 and that should be encrypted with the session key has been encrypted with the session key.

[0108] The monitoring unit 45 also monitors the signal line 140 to monitor whether data that should be encrypted with the service key and that is transmitted over the signal line 140 has been encrypted with the service key. Specifically, the monitoring unit 45 monitors the signal line 140 to monitor whether a message with a checksum that is transmitted over the signal line 140 and that is addressed to the server 2 and that should be encrypted with the service key has been encrypted with the service key. The monitoring unit 45 also monitors the signal line 140 to monitor whether a message with a checksum from the server 2 that is transmitted over the signal line 140 and that should be encrypted with the service key has been encrypted with the service key.

[0109] 12 is a flowchart showing an example of the monitoring operation of the monitoring unit 45 on the signal line 140. The monitoring unit 45 repeatedly executes encryption confirmation processing consisting of steps s51 to s56 shown in FIG.

[0110] In the encryption confirmation process, when a packet transmitted on the signal line 140 is input from the signal line 140 through the signal line 141 (step s51), the monitoring unit 45 executes step s52. The packet input to the monitoring unit 45 in step s51 may be called a target packet.

[0111] In step s52, the monitoring unit 45 determines whether or not a message with a checksum included in the target packet (also referred to as a target checksum-attached message) should be encrypted based on a header included in the target packet (also referred to as a target header). The header included in the packet contains, for example, information indicating whether or not the message with a checksum included in the packet should be encrypted. The monitoring unit 45 can determine whether or not the message with a checksum included in the target packet should be encrypted based on the information included in the target header.

[0112] If the determination in step s52 is YES, then in step s53, the monitoring unit 45 determines whether the encryption key that should have been used to encrypt the message with the target checksum is a session key or a service key.

[0113] Here, the header included in a packet (also called a transmitted packet) transmitted by the IoT device 4 includes destination information indicating the destination of the packet. Also, the header included in a packet (also called a received packet) received by the IoT device 4 includes source information indicating the source of the packet.

[0114] If the target packet is a transmission packet, the monitoring unit 45 identifies the destination of the target packet based on destination information included in the header of the target packet. If the destination is the user device 5, the monitoring unit 45 determines that the encryption key that should have been used to encrypt the message with the target checksum is a session key. On the other hand, if the destination is the server 2, the monitoring unit 45 determines that the encryption key that should have been used to encrypt the message with the target checksum is a service key. Note that the header included in the packet may include information indicating which encryption key the packet is encrypted with. In this case, the monitoring unit 45 may determine the encryption key that should have been used to encrypt the packet based on that information.

[0115] Furthermore, if the target packet is a received packet, the monitoring unit 45 identifies the sender of the target packet based on sender information included in the header of the target packet. If the sender is the user device 5, the monitoring unit 45 determines that the encryption key that should have been used to encrypt the message with the target checksum is a session key. On the other hand, if the sender is the server 2, the monitoring unit 45 determines that the encryption key that should have been used to encrypt the message with the target checksum is a service key.

[0116] If it is determined in step s53 that the encryption key that should have been used to encrypt the message with the target checksum is a session key, then in step s54 the monitoring unit 45 determines whether the message with the target checksum is encrypted with the session key.On the other hand, if it is determined in step s53 that the encryption key that should have been used to encrypt the message with the target checksum is a service key, then in step s55 the monitoring unit 45 determines whether the message with the target checksum is encrypted with the service key.

[0117] In step s54, the monitoring unit 45 first performs a decryption process on the message with the target checksum using the session key SEKi stored in the storage unit 460. Next, the monitoring unit 45 generates a checksum from the data equivalent to the plaintext message obtained in the decryption process. Next, the monitoring unit 45 compares the generated checksum with the data equivalent to the plaintext checksum obtained in the decryption process. If the two match, the monitoring unit 45 determines that the message with the target checksum has been encrypted with the session key. On the other hand, if the two do not match, the monitoring unit 45 determines that the message with the target checksum has not been encrypted with the session key.

[0118] Here, even if the target data is not encrypted with the predetermined encryption key, if the target data is decrypted using the predetermined encryption key, the plaintext of the target data cannot be correctly obtained. Thus, by performing the above-mentioned process, the monitoring unit 45 can determine whether the message with the target checksum has been encrypted with the session key.

[0119] As in step s54, in step s55, the monitoring unit 45 first decrypts the message with the target checksum using the service key SAKi in the storage unit 460. Next, the monitoring unit 45 generates a checksum from the data obtained by decryption that corresponds to the plaintext message. Next, the monitoring unit 45 compares the generated checksum with the data obtained by decryption that corresponds to the plaintext checksum. If the two match, the monitoring unit 45 determines that the message with the target checksum has been encrypted with the service key. On the other hand, if the two do not match, the monitoring unit 45 determines that the message with the target checksum has not been encrypted with the service key.

[0120] When step s54 is executed, step s56 is executed. Also, when step s55 is executed, step s56 is executed. In step s56 after step s54, the monitoring unit 45 updates the history data 466 based on the determination result of step s54. For example, the monitoring unit 45 sets the determination result of step s54 as an encryption confirmation result, and associates the encryption confirmation result with current time information 468 and registers it in the history data 466. In step s56 after step s55, the monitoring unit 45 updates the history data 466 based on the determination result of step s55. For example, the monitoring unit 45 sets the determination result of step s55 as an encryption confirmation result, and associates the encryption confirmation result with current time information 468 and registers it in the history data 466. In the history data 466, the time information 468 and the encryption confirmation result at the time indicated by the time information 468 are associated with each other.

[0121] After step s56, when a new packet is input to the monitoring unit 45 (step s51), step s52 is executed. Thereafter, the monitoring unit 45 operates in the same manner. Also, when the determination in step s52 is No and a new packet is subsequently input to the monitoring unit 45 (step s51), step s52 is executed. Thereafter, the monitoring unit 45 operates in the same manner. The monitoring unit 45 executes encryption confirmation processing every time a packet is input, regardless of whether the input packet is a transmission packet or a reception packet. By repeatedly executing the encryption confirmation processing, the history data 466 includes an encryption monitoring history in which multiple pairs of encryption confirmation results and time information 468 are registered.

[0122] When monitor 45 stores session key SEKi and session key use conditions in association with each other as described above, monitor 45 may monitor signal line 140 to determine whether the session key use conditions are satisfied.

[0123] For example, consider a case where the session key use condition is an upper limit value for the usage time of the session key. Here, in step s54 of the encryption confirmation process, the monitoring unit 45 determines whether the message with the target checksum is encrypted with the session key SEKi. The fact that the message with the target checksum is encrypted with the session key SEKi means that the session key SEKi is being used. Therefore, the monitoring unit 45 can identify the usage time of the current session key SEKi based on the determination result in step s54 and the time information 468. The monitoring unit 45, for example, repeatedly executes the usage condition satisfaction confirmation process to determine whether the usage time of the current session key SEKi is equal to or less than the upper limit value. Then, each time the monitoring unit 45 executes the usage condition satisfaction confirmation process, the monitoring unit 45 associates the result with the time information 468 at that time in the history data 466. In the history data 466, the result of the usage condition satisfaction confirmation process (also referred to as the usage condition satisfaction confirmation result) and the time information 468 at which the result was obtained are associated with each other. The history data 466 includes a usage condition fulfillment monitoring history in which a plurality of pairs of usage condition fulfillment confirmation results and time information 468 are registered.

[0124] As another example, consider a case where the session key usage condition is an upper limit value for the amount of transmission data of a message encrypted with the session key. The header included in the packet contains information indicating the amount of data of the message included in the packet. When the monitoring unit 45 determines in step s54 of the encryption confirmation process that the message with the target checksum has been encrypted with the session key SEKi, it can identify the amount of data of the message with the target checksum based on the target header. This allows the monitoring unit 45 to identify the amount of transmission data of data encrypted with the current session key SEKi. The monitoring unit 45, for example, repeatedly executes the usage condition satisfaction confirmation process to determine whether the amount of transmission data of data encrypted with the current session key SEKi is equal to or less than the upper limit value. Then, each time the monitoring unit 45 executes the usage condition satisfaction confirmation process, it associates the result with time information 468 at that time and registers them in the history data 466.

[0125] In the above example, the monitoring unit 45 starts monitoring the signal line 140 after the initial setting. However, the monitoring unit 45 may also monitor the signal line 140 from the initialization of the IoT device 4 until the completion of the initial setting. In this case, the monitoring unit 45 may monitor the signal line 140 to monitor, for example, whether information identical to the identification information 465 in the storage unit 460 is actually output from the control unit 40 to the communication unit 41 in step s14. The monitoring unit 45 may also monitor the signal line 140 to monitor whether the E2EE encryption key EKu and time information 518 from the user device 5 flowing through the signal line 140 are actually encrypted with the initial key. The monitoring unit 45 may register the monitoring result of the signal line 140 from the initialization of the IoT device 4 until the completion of the initial setting in the history data 466. In this case, the initial monitoring result may include a mutually associated registered determination result as to whether or not the same information as the identification information 465 in the storage unit 460 is actually output from the control unit 40 to the communication unit 41 in step s14, and time information 468 at which the determination is made. Also, the initial monitoring result may include a mutually associated registered determination result as to whether or not the E2EE encryption key EKu and time information 518 from the user device 5 flowing over the signal line 140 are actually encrypted with the initial key, and time information 468 at which the determination is made.

[0126] <Example of IoT device control based on historical data from a server> The IoT device 4, for example, periodically transmits history data 466 to the server 2. The server 2 controls the target IoT device 4 based on the history data 466 received from the target IoT device 4. As a result, if the target IoT device 4 is hacked and the target IoT device 4 begins to operate abnormally, the server 2 can control the target IoT device 4 to improve the security of the target IoT device 4. An example of control of the IoT device 4 by the server 2 based on the history data 466 will be described in detail below.

[0127] The control unit 20 of the server 2 determines whether the target IoT device 4 is abnormal based on the history data 466 from the target IoT device 4. If the control unit 20 determines that the target IoT device 4 is abnormal, it generates a message (also called a control message) for controlling the target IoT device 4. Then, the control unit 20 causes the communication unit 21 to transmit the encrypted control message to the target IoT device 4.

[0128] The control unit 20 may determine whether the IoT device 4 is abnormal based on the encryption monitoring history included in the history data 466. In this case, the control unit 20 refers to the encryption monitoring history and determines that the target IoT device 4 is abnormal if, for example, it is determined that a message with a checksum that should have been encrypted with a session key has not been encrypted with the session key a predetermined number of times in succession. The control unit 20 may also refer to the encryption monitoring history and determine that the target IoT device 4 is abnormal if, for example, it is determined that a message with a checksum that should have been encrypted with a service key has not been encrypted with the service key a predetermined number of times in succession.

[0129] If the history data 466 includes a usage condition fulfillment monitoring history, the server 2 may determine whether the IoT device 4 is abnormal based on the usage condition fulfillment monitoring history. In this case, the server 2 refers to the usage condition fulfillment monitoring history, and when it determines that the session key usage conditions are not fulfilled, it determines that the target IoT device 4 is abnormal.

[0130] When the history data 466 includes an initial monitoring result, the server 2 may determine whether or not the target IoT device 4 is abnormal based on the initial monitoring result. In this case, the server 2 may refer to the initial monitoring result and determine that, for example, the E2EE encryption key EKu and time information 518 from the user device 5 flowing through the signal line 140 in the E2EE encryption key sharing process have been determined not to be encrypted with the initial key, and may determine that the target IoT device 4 is abnormal.

[0131] In the IoT device 4, the received control message is decrypted by the monitoring unit 45. The monitoring unit 45 controls the IoT device 4 based on the obtained plaintext control message. For example, if the control message includes data instructing the IoT device 4 to stop its main functions, the monitoring unit 45 stops the operation of the control unit 40, the communication unit 41, and the sensor device 43, which are required to realize the main functions. In this case, the monitoring unit 45 may stop the operation of the control unit 40, the communication unit 41, and the sensor device 43, for example, by stopping the supply of clock signals to the control unit 40, the communication unit 41, and the sensor device 43. Alternatively, the monitoring unit 45 may stop the operation of the control unit 40, the communication unit 41, and the sensor device 43 by keeping reset signals supplied to the control unit 40, the communication unit 41, and the sensor device 43 in an asserted state. The method of stopping the operation of the control unit 40, the communication unit 41, and the sensor device 43 is not limited to this.

[0132] When the operations of the control unit 40, the communication unit 41, and the sensor device 43 are stopped, for example, when the reset button 42 is operated, the operations of the control unit 40, the communication unit 41, and the sensor device 43 are restored.

[0133] Note that the control of the IoT device 4 instructed by the control message may be something other than stopping the main functions. For example, the control message may include data instructing the control unit 40, the communication unit 41, and the sensor device 43 to stop only part of their operations. The control message may also include data instructing the control unit 40 to slow down its processing speed. In this case, the monitoring unit 45 may slow down the processing speed of the control unit 40 by, for example, lowering the frequency of the clock signal supplied to the control unit 40.

[0134] In the above example, the server 2 controls the IoT device 4 by sending a control message to the IoT device 4, but the method by which the server 2 controls the IoT device 4 based on the history data 466 is not limited to this. Other examples of the method by which the server 2 controls the IoT device 4 will be described below.

[0135] In this example, the IoT device 4 receives operation permission information from the server 2, indicating that the IoT device 4 is permitted to operate. The operation permission information includes, for example, information indicating a period during which the main functions of the IoT device 4 are permitted to operate (also referred to as an operable period). The IoT device 4 is permitted to operate its main functions only during the operable period indicated by the operation permission information after receiving the operation permission information. In this example, the IoT device 4 transmits history data 466 to the server 2 during the operable period. After transmitting the history data 466 to the server 2 during the operable period, the IoT device 4 receives new operation permission information from the server 2 during that operation period. When the IoT device 4 receives new operation permission information during the operable period, the IoT device 4 can operate only during the operable period indicated by the new operation permission information. Therefore, as long as the IoT device 4 transmits history data 466 within the operable period, new operable periods are continuously set, allowing the IoT device 4 to operate continuously. In this case, if the server 2 determines that the target IoT device 4 is abnormal based on the history data 466, it does not transmit new operation permission information to the target IoT device 4 even if it subsequently receives the history data 466. As a result, the target IoT device 4 stops its main functions after the current operable period has elapsed.

[0136] Furthermore, when the server 2 receives a seed request message from the target IoT device 4 or from the user device 5 paired with the target IoT device 4, the server 2 may determine whether the target IoT device 4 is abnormal based on the history data 466 from the target IoT device 4. If the server 2 determines that the target IoT device 4 is abnormal, it may not issue seed data. In this case, the target IoT device 4 will not be able to generate the session key SEKi, and therefore will not be able to perform E2EE communication with the user device 5.

[0137] Note that the server 2 does not have to control the IoT device 4 based on the history data 466. In this case, for example, the monitoring unit 45 may control the IoT device 4 based on the history data 466. The monitoring unit 45 may control the IoT device 4 based on the history data 466, for example, in the same way as when the server 2 controls the IoT device 4 based on the history data 466. For example, the monitoring unit 45 may refer to the encryption monitoring history included in the history data 466 and, when it is determined that a message with a checksum that should have been encrypted with a service key has not been encrypted with the service key a predetermined number of times in succession, stop the operation of the control unit 40, the communication unit 41, and the sensor device 43, and stop the main functions of the IoT device 4. Furthermore, the monitoring unit 45 may control the IoT device 4 based on the usage condition fulfillment monitoring history included in the history data 466, or may control the IoT device 4 based on the initial monitoring result included in the history data 466.

[0138] As described above, in this example, the monitoring unit 45 monitors the signal line 140 to monitor whether the data transmitted over the signal line 140 is encrypted with an appropriate encryption key. As a result, the monitoring result (e.g., the history data 466) by the monitoring unit 45 is used to control the IoT device 4, thereby improving the security of the IoT device 4. For example, if at least one of the control unit 40 and the communication unit 41 of the IoT device 4 is hacked and the data transmitted over the signal line 140 is no longer encrypted with an appropriate encryption key, the security of the IoT device 4 can be improved by controlling the IoT device 4 by the server 2 or the like as described above.

[0139] Furthermore, the monitoring unit 45 monitors the signal line 140 to monitor whether the usage conditions of the session key are satisfied, and the monitoring result is used to control the IoT device 4, thereby improving the security of the IoT device 4. For example, if at least one of the control unit 40 and the communication unit 41 of the IoT device 4 is hacked and the usage conditions of the session key are no longer satisfied, the IoT device 4 can be controlled by the server 2 or the like as described above, thereby improving the security of the IoT device 4.

[0140] In the above example, the session key is generated based on the E2EE encryption key and seed data from the server 2. However, the method for generating the session key is not limited to this. For example, the monitoring unit 45, rather than the server 2, may generate the seed data, and the session key may be generated based on the E2EE encryption key and the seed data generated by the monitoring unit 45. The seed data generated by the monitoring unit 45 may be, for example, a random number, and the monitoring unit 45 generates the random number so that a random number used once in the past is not reused. The session key may also be generated based on the E2EE encryption key and time information. Below, an example of the operation of the communication system 1 when the session key is generated based on the E2EE encryption key and time information will be described. Hereinafter, for convenience of explanation, the transmission of data from the IoT device 4 to the user device 5 may be referred to as upstream communication. The transmission of data from the user device 5 to the IoT device 4, in other words, the reception of data from the user device 5 by the IoT device 4 may be referred to as downstream communication.

[0141] In this example, the session key used for upstream communication is different from the session key used for downstream communication. The former session key is sometimes called the upstream session key, and the latter session key is sometimes called the downstream session key.

[0142] In the IoT device 4, the monitoring unit 45 generates an upstream session key SEKi based on the E2EE encryption key EKi and time information 468 stored in the storage unit 460. For example, the monitoring unit 45 substitutes the E2EE encryption key EKi and the current time information 468 into a function for generating a session key, and sets the output of the function as the upstream session key SEKi. The monitoring unit 45 associates the generated upstream session key SEKi with the time information 468 (also referred to as first specific time information 468) used in its generation, stores them in the storage unit 460, and outputs them to the control unit 40. The control unit 40 stores the upstream session key SEKi and the first specific time information 468 received from the monitoring unit 45 in the storage unit 410, associates them with each other.

[0143] When the IoT device 4 sends a message addressed to the user device 5 (i.e., when upstream communication is performed), the control unit 40 obtains the upstream session key SEKi and the first specific time information 468 from the storage unit 410. Next, the control unit 40 generates a message with a checksum addressed to the user device 5 and encrypts it with the upstream session key SEKi stored in the storage unit 410. Next, the control unit 40 generates a packet including the encrypted message with the checksum and the first specific time information 468 in plaintext. The control unit 40 then causes the communication unit 41 to transmit the generated packet to the user device 5. Whenever the IoT device 4 transmits a packet including an encrypted message with a checksum to the user device 5, the IoT device 4 transmits a packet including the first specific time information 468.

[0144] In the user device 5 that receives a packet from the IoT device 4, the control unit 50 generates an upstream session key SEKu based on the first specific time information 468 in the received packet and the E2EE encryption key EKu in the storage unit 410. For example, the control unit 50 substitutes the E2EE encryption key EKu and the first specific time information 468 into the same session key generation function as that used by the IoT device 4, and sets the output of the function as the upstream session key SEKu. The control unit 50 then decrypts the message with the checksum in the received packet using the generated upstream session key SEKu. This allows the control unit 50 to obtain the plaintext message with the checksum. In this example, the user device 5 generates an upstream session key SEKu every time it receives a packet including an encrypted message with a checksum from the IoT device 4, and decrypts the message with the checksum using the generated upstream session key SEKu.

[0145] Like the IoT device 4, the user device 5 generates a downstream session key SEKu based on the E2EE encryption key EKu and time information 518. For example, the control unit 50 of the user device 5 substitutes the E2EE encryption key EKu and current time information 518 into a function for generating a session key, and sets the output of the function as the downstream session key SEKu. The control unit 50 stores the generated downstream session key SEKu and the time information 518 (also referred to as second specific time information 518) used in its generation in the storage unit 510 in association with each other.

[0146] When the user device 5 transmits a message addressed to the IoT device 4 (that is, when downstream communication is performed), the control unit 50 acquires the downstream session key SEKu and second specific time information 518 from the storage unit 510. Next, the control unit 50 generates a message with a checksum addressed to the IoT device 4 and encrypts it with the downstream session key SEKu. Next, the control unit 50 generates a packet including the encrypted message with the checksum and the second specific time information 518 in plaintext. The control unit 50 then causes the communication unit 51 to transmit the generated packet to the IoT device 4. Whenever the user device 5 transmits a packet including an encrypted message with a checksum to the IoT device 4, the user device 5 transmits a packet including the second specific time information 518.

[0147] In the IoT device 4 that receives a packet from the user device 5, the received packet is input to the monitoring unit 45. The monitoring unit 45 generates a downstream session key SEKi based on the second specific time information 518 in the received packet and the E2EE encryption key EKi in the storage unit 460. For example, the monitoring unit 45 substitutes the E2EE encryption key EKi and the second specific time information 518 into a function for generating a session key, and sets the output of the function as the downstream session key SEKi. The monitoring unit 45 stores the generated downstream session key SEKi in the storage unit 460 and outputs it to the control unit 40. The control unit 40 stores the received downstream session key SEKi in the storage unit 410. The encryption processing unit 420 of the control unit 40 decrypts the message with the checksum included in the received packet using the downstream session key SEKi. This allows the control unit 40 to obtain the plaintext message with the checksum. In this example, each time the IoT device 4 receives a packet containing an encrypted message with a checksum from the user device 5, it generates a downstream session key SEKi and decrypts the message with the checksum using the generated downstream session key SEKi.

[0148] The header of an upstream communication packet containing an encrypted checksum-attached message contains information indicating that an upstream session key is used to encrypt the checksum-attached message. Furthermore, the header of a downstream communication packet containing an encrypted checksum-attached message contains information indicating that a downstream session key is used to encrypt the checksum-attached message. This allows the monitoring unit 45 to analyze the header of a packet flowing on the signal line 140 and determine whether the checksum-attached message contained in the packet should be encrypted with the upstream session key or the downstream session key. Therefore, the monitoring unit 45 can monitor whether a checksum-attached message that should be encrypted with the upstream session key is actually encrypted with the upstream session key. Furthermore, the monitoring unit 45 can monitor whether a checksum-attached message that should be encrypted with the downstream session key is actually encrypted with the downstream session key.

[0149] In this way, when a packet including first specific time information 468 is transmitted from the IoT device 4, the monitoring unit 45 monitors the signal line 140 and can determine whether the usage time of the upstream session key is equal to or less than the upper limit value included in the session key usage conditions, based on the first specific time information 468. The monitoring unit 45 receives the first specific time information 468 from the signal line 140 via the signal line 141. The first specific time information 468 indicates the time when the current upstream session key was generated, that is, the usage start time of the upstream session key. The monitoring unit 45 compares the time indicated by the first specific time information 468 with the current time indicated by the current time information 468 in the storage unit 460, and determines the difference between them. If the determined difference is equal to or less than the upper limit value included in the session key usage conditions, the monitoring unit 45 determines that the usage time of the upstream session key is equal to or less than the upper limit value. On the other hand, if the calculated difference is greater than the upper limit value included in the session key usage conditions, monitor 45 determines that the usage time of the upstream session key exceeds the upper limit value.

[0150] When a packet including the second specific time information 518 is sent from the user device 5, the IoT device 4 can similarly monitor the signal line 140 and determine based on the second specific time information 518 whether the usage time of the downstream session key is below the upper limit value.

[0151] The IoT device 4 may use multiple session keys separately. The IoT device 4 may use multiple session keys separately, for example, depending on the content of the message, the communication partner, or whether it is sending or receiving. An example of the operation of the communication system 1 when the IoT device 4 uses multiple session keys separately will be described below.

[0152] Fig. 13 is a diagram showing an example of the configuration of a communication system 1 according to this example. As shown in Fig. 13, in this example, a plurality of user devices 5 paired with an IoT device 4 are divided into a plurality of groups. The plurality of user devices 5 are divided into, for example, a first group G1, a second group G2, and a third group G3. Each group includes, for example, at least one user device 5. The same user device 5 may belong to multiple groups.

[0153] In this example, the sensor device 43 of the IoT device 4 has an image sensor and a weather observation sensor. The image sensor outputs, for example, image data showing an image of the surroundings of the IoT device 4. The weather observation sensor outputs, for example, weather data showing the weather around the IoT device 4.

[0154] FIG. 14 shows an example of multiple session key use conditions stored in the storage unit 210 by the server 2. The multiple session key use conditions stored in the storage unit 210 include, for example, session key use conditions 601, 602, and 603. Session key use condition 601 indicates that a session key is used for only five minutes of image data transmission at a transmission rate of 5 MB / s in upstream communication between the IoT device 4 and the user device 5 of the first group G1. Session key use condition 602 indicates that a session key is used for only one transmission of 128 bytes of weather data in upstream communication between the IoT device 4 and the user device 5 of the second group G2. Session key use condition 603 indicates that a session key is used for only one transmission of a 4 KB message indicating a maintenance instruction in downstream communication between the IoT device 4 and the user device 5 of the third group G3. 14, the session key is used only in either the upstream communication or the downstream communication between the IoT device 4 and the user device 5, but the same session key may be used for both the upstream communication and the downstream communication. In this case, different session key usage conditions may be set for the upstream communication and the downstream communication.

[0155] An example of the operation of the communication system 1 when the IoT device 4 transmits image data will be described below with reference to Fig. 13. When the IoT device 4 transmits image data to the user device 5, it transmits a packet (also referred to as a first packet) including a message notifying that it wishes to transmit image data to the server 2, as shown in step s61 of Fig. 13.

[0156] In step s62, the server 2 receives the first packet and generates a message including the session key usage conditions 601 related to the image data and the random number (also referred to as the first random number) obtained from the random number generator 24. Then, the server 2 transmits a packet (also referred to as the second packet) including the generated message to the IoT device 4. In step s63, the server 2 transmits the second packet to each user device 5 in the first group G1.

[0157] Each user device 5 in the first group G1 stores the session key use conditions 601 included in the second packet received from the server 2 in the storage unit 210. Furthermore, each user device 5 in the first group G1 generates a session key SEKu as described above based on the first random number included in the second packet and stores the session key SEKu in the storage unit 210. The session key generated based on the first random number may be referred to as the first session key.

[0158] Similarly, the IoT device 4 stores the session key use conditions 601 included in the second packet received from the server 2 in the storage unit 460. Furthermore, the IoT device 4 generates a first session key SEKi as described above based on the first random number included in the second packet and stores the generated session key in the storage unit 460. The IoT device 4 encrypts a message including a portion of the image data to be transmitted and its corresponding checksum using the first session key SEKi. The IoT device 4 then transmits a packet (also referred to as a third packet) including the encrypted message with the checksum to each user device 5 in the first group G1. In this example, the IoT device 4 can transmit all of the image data to be transmitted to the user device 5 by transmitting a message including a portion of the image data to be transmitted multiple times to the user device 5 (in other words, by transmitting the third packet to the user device 5 multiple times). The IoT device 4 uses the first session key SEKi so as to satisfy the session key use conditions 601. As a result, the image data is transmitted from the IoT device 4 to each user device 5 in the first group G1 at a transmission rate of 5 Mbytes / second for only five minutes. The IoT device 4 may notify the server 2 that the image data has been transmitted to each of the user devices 5 in the first group G1.

[0159] Each time each user device 5 in the first group G1 receives a third packet from the IoT device 4, it decrypts the encrypted message with the checksum included in the received third packet using the first session key SEKu. This allows each user device 5 in the first group G1 to obtain the plaintext of the image data generated by the IoT device 4. Each user device 5 in the first group G1 may notify the server 2 that it has obtained the plaintext of the image data.

[0160] FIG. 15 is a diagram showing an example of the operation of the communication system 1 when the IoT device 4 transmits weather data to the user devices 5 in the second group G2.

[0161] When the IoT device 4 sends weather data to the user device 5, it sends a packet (also called the fourth packet) to the server 2 containing a message notifying that it wishes to send weather data, as shown in step s71 of Figure 15.

[0162] In step s72, the server 2 receives the fourth packet and generates a message including the session key usage conditions 602 related to the weather data and the random number (also referred to as the second random number) obtained from the random number generator 24. Then, the server 2 transmits a packet (also referred to as the fifth packet) including the generated message to the IoT device 4. In step s73, the server 2 transmits the fifth packet to each user device 5 in the second group G2.

[0163] Each user device 5 in the second group G2 stores the session key use conditions 602 included in the fifth packet received from the server 2 in the storage unit 210. Each user device 5 in the second group G2 also generates a session key SEKu based on the second random number included in the fifth packet and stores the session key SEKu in the storage unit 210. The session key generated based on the second random number may be referred to as the second session key.

[0164] Similarly, the IoT device 4 stores the session key usage conditions 602 included in the fifth packet received from the server 2 in the storage unit 460. The IoT device 4 also generates a second session key SEKi based on the second random number included in the fifth packet and stores the second session key SEKi in the storage unit 460. The IoT device 4 encrypts a message with a checksum that contains weather data to be transmitted as a message using the second session key SEKi. The IoT device 4 then transmits a packet (also referred to as a sixth packet) containing the encrypted message with the checksum to each user device 5 in the second group G2. The IoT device 4 uses the second session key SEKi so as to satisfy the session key usage conditions 602. As a result, the IoT device 4 transmits a 128-byte message as weather data only once to each user device 5 in the second group G2. The IoT device 4 may notify the server 2 that the weather data has been transmitted to each user device 5 in the second group G2.

[0165] Each user device 5 in the second group G2 decrypts the encrypted message with checksum included in the sixth packet received from the IoT device 4 using the second session key SEKu. This allows each user device 5 in the second group G2 to obtain the plaintext of the weather data generated by the IoT device 4. Each user device 5 in the second group G2 may notify the server 2 that it has obtained the plaintext of the weather data.

[0166] FIG. 16 is a diagram illustrating an example of the operation of the communication system 1 when the user device 5 in the third group G3 transmits a message indicating a maintenance instruction to the IoT device 4.

[0167] When a target user device 5 of the third group G3 issues a maintenance instruction to an IoT device 4, as shown in step s81 of Figure 16, it sends a packet (also called the seventh packet) to the server 2 containing a message notifying the IoT device 4 that it wishes to issue a maintenance instruction to the IoT device 4.

[0168] In step s82, the server 2 receives the seventh packet from the user device 5 of the third group G3 and generates a message including the session key usage conditions 603 related to maintenance and a random number (also referred to as the third random number) obtained from the random number generator 24. The server 2 then transmits a packet (also referred to as the eighth packet) including the generated message to the target user device 5 of the third group G3. In addition, in step s83, the server 2 transmits the eighth packet to the IoT device 4. When the server 2 receives the seventh packet from a user device 5 of a group other than the third group G3, the server 2 does not generate the eighth packet. At this time, the server 2 may notify the user device 5 of a group other than the third group G3 that it is unable to issue a maintenance instruction.

[0169] The target user device 5 of the third group G3 stores the session key use condition 603 included in the eighth packet received from the server 2 in the storage unit 210. The target user device 5 of the third group G3 also generates a session key SEKu based on the third random number included in the eighth packet and stores the session key in the storage unit 210. A session key generated based on the third random number is sometimes referred to as the third session key. The target user device 5 of the third group G3 encrypts a message with a checksum including a message indicating a maintenance instruction using the third session key SEKu. The target user device 5 then transmits a packet (also referred to as the ninth packet) including the encrypted message with the checksum to the IoT device 4. The target user device 5 uses the third session key SEKu so as to satisfy the session key use condition 603. As a result, a 4-Kbyte message indicating a maintenance instruction is transmitted only once from the target user device 5 to the IoT device 4. The target user device 5 may notify the server 2 that a maintenance instruction has been issued to the IoT device 4.

[0170] Similarly, the IoT device 4 stores the session key use conditions 603 included in the eighth packet received from the server 2 in the storage unit 460. Furthermore, the IoT device 4 generates a third session key SEKi based on the third random number included in the eighth packet and stores the third session key SEKi in the storage unit 460. After that, when the IoT device 4 receives a ninth packet from the target user device 5, it decrypts the encrypted message with the checksum included in the ninth packet using the third session key SEKi. This allows the IoT device 4 to obtain the plaintext of the message indicating a maintenance instruction generated by the user device 5. Upon receiving the message indicating a maintenance instruction, the IoT device 4 may, for example, initialize and restart the IoT device 4. Upon receiving the maintenance instruction from the target user device 5, the IoT device 4 may notify the server 2 of this.

[0171] 13 to 16, the IoT device 4 uses the first session key, the second session key, and the third session key depending on the message content, the communication partner, and whether the message is being sent or received. In this example, when the first session key is being used, the monitoring unit 45 of the IoT device 4 monitors the signal line 140 to monitor whether a session key use condition 601 is satisfied. When the second session key is being used, the monitoring unit 45 of the IoT device 4 monitors the signal line 140 to monitor whether a session key use condition 602 is satisfied. When the third session key is being used, the monitoring unit 45 of the IoT device 4 monitors the signal line 140 to monitor whether a session key use condition 603 is satisfied. In this example, the header included in a packet used in E2EE communication between the IoT device 4 and the user device 5 includes information indicating which of the first, second, and third session keys the message with the checksum included in the packet is encrypted with. Therefore, by analyzing the header flowing on the signal line 140, the monitoring unit 45 can identify the session key used to encrypt the message with the checksum flowing on the signal line 140.

[0172] In the above-described encrypted communication, a packet containing an encrypted message with a checksum is used, but a packet containing an encrypted message and a checksum of the plaintext may also be used.

[0173] Similarly to the IoT device 4, the user device 5 may include a monitoring unit that monitors the signal line between the control unit 50 and the communication unit 51 and generates history data indicating the history of the monitoring results. In this case, the user device 5 may transmit the history data to the server 2.

[0174] Furthermore, in the above example, the same server 2 issues seed data and controls IoT devices 4 based on history data 466, but a server that issues seed data and a server that controls IoT devices 4 based on history data 466 may be provided separately.

[0175] In the above example, the seed request message and seed data exchanged between the server 2 and the IoT device 4 are encrypted using a service key, which is a common key. However, public key cryptography may be used instead to exchange the seed request message and seed data between the server 2 and the IoT device 4. In this case, the server 2 encrypts the session key usage conditions using public key cryptography. The server 2 then transmits the encrypted seed data and session key usage conditions to the IoT device 4. Alternatively, the service key may be shared between the server 2 and the IoT device 4 using public key cryptography.

[0176] In cryptographic communication using public key cryptography, protocols such as TLS (Transport Layer Security) or DTLS (Datagram Transport Layer Security) may be used. TLS is a system that uses TCP / IP to authenticate a communication partner (generally a server) using a public key certificate (digital certificate), exchange a common key using public key cryptography, and then use the exchanged common key to exchange using common key cryptography (in other words, private key cryptography), thereby enabling the use of a safe (secure) communication path. DTLS is a system that uses UDP (User Datagram Protocol) instead of TCP / IP in TLS. When public key cryptography is used, the storage unit 210 and the storage unit 460 store public key certificates and private keys required for the public key cryptography.

[0177] In the above example, in the IoT device 4, the message addressed to the user device 5 is encrypted by the control unit 40, but it may also be encrypted by the monitoring unit 45. In other words, the monitoring unit 45 may encrypt both the message addressed to the server 2 and the message addressed to the user device 5 and input them to the control unit 40.

[0178] In the above example, it can be said that the monitoring unit 45 communicates with the server 2 via the control unit 40 and the communication unit 41. The monitoring unit 45 may monitor the signal line 140 to monitor whether the message transmitted from the control unit 40 to the communication unit 41 is the same as the message transmitted from the monitoring unit 45 to the control unit 40, regardless of whether the message transmitted through the signal line 140 is encrypted. In other words, the monitoring unit 45 may monitor the signal line 140 to monitor whether the same message as the message transmitted from the monitoring unit 45 to the control unit 40 is correctly input to the communication unit 41 (in other words, whether the message is transmitted through the signal line 140). Furthermore, the monitoring unit 45 may monitor the signal line 140 to monitor whether the message transmitted from the communication unit 41 to the control unit 40 is the same as the message received from the control unit 40 by the monitoring unit 45, regardless of whether the message transmitted through the signal line 140 is encrypted. That is, the monitor 45 may monitor the signal line 140 to monitor whether a message identical to the message passed by the communication unit 41 to the control unit 40 (in other words, the message flowing through the signal line 140) is correctly input to the monitor 45. In such a case, the header (target header) of a packet (target packet) transmitted and received between the monitor 45 and the server 2 includes information indicating what processing should be performed on the message (target message) included in the target packet. Therefore, based on the target header, the monitor 45 can determine whether it should check whether the target message is encrypted, whether it should check whether the target message matches the message sent or received by the monitor 45, or whether it should perform neither of the above checks. Note that such a determination may be made by protocol analysis rather than based on the information included in the target header. This protocol analysis may also include analysis of a series of packets (sequence analysis).

[0179] The session key used in the encrypted communication between the IoT device 4 and the user device 5 described above may be shared using a known public key cryptosystem via the server 2. The session key may also be shared between the server 2 and the IoT device 4 and between the server 2 and the user device 5 using a public key cryptosystem, resulting in the session key being shared among the three parties.

[0180] In the above example, the communication system 1 is a communication system consisting of three elements: a server 2, an IoT device 4, and a user device 5, but the communication system may not include the server 2. In the communication system 1 that does not include the server 2, for example, the IoT device 4 and the user device 5 share an E2EE encryption key without going through the server 2, and perform encrypted communication using a session key generated from the shared E2EE encryption key, or the shared E2EE encryption key itself.

[0181] In the above example, the communication system 1 is a communication system in which the server 2, the IoT device 4, and the user device 5 are connected to one another via the communication network 10, but it may also be a communication system in which the other two elements communicate via one of the elements: the server 2, the IoT device 4, and the user device 5. For example, when the server 2 and the IoT device 4 communicate via the user device 5, the IoT device 4 and the server 2 do not communicate directly, but always communicate indirectly via the user device 5. In this case, by encrypting the communication between the IoT device 4 and the server 2 with a service key or a public key, it is possible to prevent information leakage to the outside even when the communication passes through the user device 5.

[0182] Furthermore, in the above example, the session key usage conditions are notified from the server to the IoT device 4 and the user device 5, but the session key usage conditions may be shared between the IoT device 4 and the user device 5 in advance.

[0183] Furthermore, in the above example, the cryptographic processing unit 420 is functionally realized by the processor 400 executing the program 411 in the control unit 40, but it may also be realized by a hardware circuit separate from the control unit 40. In this case, the cryptographic processing unit 420 may be functionally realized, for example, by a processor such as a CPU executing a program in an MCU (Micro Controller Unit) provided separately from the control unit 40. Furthermore, the cryptographic processing unit 420 may be provided separately from the control unit 40 and realized by a hardware circuit that does not require software to realize its functions. Furthermore, the cryptographic processing unit 420 may be functionally realized by the processor 450 of the monitoring unit 45 executing the program 461.

[0184] The functions of the elements disclosed herein may be implemented using circuitry or processing circuitry, including general-purpose processors, special-purpose processors, integrated circuits, ASICs ("application-specific integrated circuits"), conventional circuitry, and / or combinations thereof, configured to perform the disclosed elements or programmed to perform the disclosed functions. A processor is considered to be processing circuitry or circuitry when it includes transistors and other circuitry therein. In this disclosure, a circuitry, unit, or means is hardware that performs the recited function or hardware programmed to perform the function. The hardware may be any hardware disclosed herein or other known hardware that is programmed to perform or configured to perform the recited function. When the hardware is a processor, which may be considered as a type of circuitry, the circuitry, means, or unit is a combination of hardware and software, software used to configure the hardware, and / or processor.

[0185] Although the communication system 1 has been described in detail above, the above description is merely an example in all respects and does not limit the present invention. Furthermore, the various modifications described above can be combined and applied as long as they are not mutually inconsistent. It is understood that countless modifications not illustrated can be envisioned without departing from the scope of the present invention. [Explanation of symbols]

[0186] 1. Communication Systems 2 Server 3. Communications equipment 4 IoT devices 5. User Equipment 41,51 Communications Department 45 Monitoring Department 140 Signal Line

Claims

1. 1. A communication device, comprising: a signal line for transmitting data encrypted with a first key; a communication unit which receives data transmitted through the signal line and transmits the received data to an outside of the communication device; a monitoring unit that monitors the signal line and monitors whether or not data that should be encrypted with the first key and is transmitted through the signal line is encrypted with the first key; A communication device comprising:

2. 2. The communication device according to claim 1, further comprising an encryption processing unit that encrypts data with the first key and outputs the data; The signal line transmits data output from the encryption processing unit.

3. 3. The communication device according to claim 2, The monitoring unit is storing a usage condition of the first key; A communication device that monitors the signal line to monitor whether the usage conditions are satisfied.

4. 3. The communication device according to claim 2, The encryption processing unit encrypts data with a second key and outputs the encrypted data; The monitoring unit is monitoring the signal line to monitor whether data transmitted through the signal line that should be encrypted with the first key is encrypted with the first key; A communication device that monitors the signal line to monitor whether data that should be encrypted with the second key and is transmitted over the signal line is encrypted with the second key.

5. 5. The communication device according to claim 4, the monitoring unit stores a first use condition for the first key and a second use condition for the second key; The monitoring unit is monitoring the signal line to monitor whether the first use condition is satisfied; A communication device that monitors the signal line to monitor whether the second use condition is satisfied.

6. A communication device according to any one of claims 2 to 5, The communication unit receives seed data from a server, The monitoring unit generates the first key based on the seed data; The encryption processing unit encrypts data with the first key generated by the monitoring unit.

7. A communication device according to any one of claims 2 to 5, The monitoring unit generates the first key based on time information; The encryption processing unit encrypts data with the first key generated by the monitoring unit.

8. A communication device according to any one of claims 2 to 7, The monitoring unit generates history data indicating a history of monitoring results, The communication unit transmits the history data to a server.

9. A communication device according to any one of claims 2 to 7, a control unit connected to the communication unit by the signal line and controlling the communication unit; the monitoring unit generates history data indicating a history of monitoring results, encrypts the generated history data with a third key, and inputs the encrypted history data to the control unit; The control unit outputs data input from the monitoring unit, the signal line transmits data output from the control unit, The monitoring unit is monitoring the signal line and monitoring whether data that should be encrypted with the first key and is transmitted on the signal line is encrypted with the first key; A communication device that monitors the signal line and monitors whether data that should be encrypted with the third key and is transmitted on the signal line is encrypted with the third key.

10. A communication device according to any one of claims 1 to 9, The communication unit receives data encrypted with the first key, the signal line transmits reception data received by the communication unit, The monitoring unit monitors whether the received data transmitted over the signal line is encrypted with the first key.

11. A communication device according to claim 6; a server that transmits the seed data to the communication device; A communication system comprising:

12. A communication device according to claim 8 or claim 9; a server that receives the history data transmitted by the communication device; A communication system comprising:

13. 13. A communication system according to claim 12, comprising: The server controls the communication device based on the received history data.

14. A communication device, comprising: an encryption processing unit that encrypts data using a first key and outputs the encrypted data; a signal line for transmitting data output from the encryption processing unit; a communication unit which receives data transmitted through the signal line and transmits the received data to an outside of the communication device; a monitoring unit that monitors the signal line and monitors whether data transmitted through the signal line is encrypted with the first key; Equipped with The monitoring unit is storing a usage condition of the first key; A communication device that monitors the signal line to monitor whether the usage conditions are satisfied.

Citation Information

Patent Citations

  • Radio communication method, equipment, wireless LAN adapter and computer program

    JP2004135133A

  • System and method for file encryption

    JP2008228033A

  • Information processor, information processing system, program, and recording medium

    JP2010009187A

  • Apparatus and method for processing information

    JP2011175464A

  • Image formation apparatus, management server and image formation system

    JP2012163805A