Authentication system, authentication method, and program

The authentication system uses multi-factor authentication based on executable and configuration file information to verify device integrity and correct program execution, addressing security vulnerabilities in device communications.

JP2024113752AInactive Publication Date: 2024-08-23MITSUBISHI HEAVY IND LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023018897
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing authentication methods between devices lack sufficient security, particularly when hardware or software configuration information is compromised, leading to potential impersonation attacks.

Method used

An authentication system that utilizes information from executable and configuration files, combined with processing results, to perform multi-factor authentication between devices, including hash values and execution history CRCs to verify the integrity and correctness of applications.

Benefits of technology

Enhances security by ensuring that only authorized devices can communicate, preventing unauthorized access and ensuring correct program execution, thus improving the integrity of device communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024113752000001_ABST
    Figure 2024113752000001_ABST
Patent Text Reader

Abstract

To provide a system capable of improving the security of authentication between devices.SOLUTION: An authentication system is an authentication system that performs authentication between a first device and a second device, and includes means that performs authentication on the basis of first authentication information calculated on the basis of information of an executable file and / or a configuration file of a first program executed on the first device, and second authentication information calculated on the basis of a processing result of the first program.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an authentication system, an authentication method, and a program. [Background technology]

[0002] In order to improve the security of authentication, multi-factor authentication is performed for user authentication, combining multiple authentication information such as password authentication and fingerprint authentication. Meanwhile, authentication between devices often remains single-factor authentication that relies only on key information stored in a storage medium. In response to this, Patent Document 1 discloses an invention in which, when a first data processing device requests authentication from a second data processing device, the second data processing device generates a device-specific authentication message that depends on a device-specific key, the hardware configuration of the second data processing device, and the software configuration of software running on the second data processing device, and performs authentication based on this message. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Special Publication No. 2021-527342 Summary of the Invention [Problem to be solved by the invention]

[0004] As disclosed in Patent Document 1, security can be improved by using not only key information but also information on the hardware and software configurations of a device for authentication. However, for example, if a third party obtains information on the hardware or software configuration, authentication can be established by the third party impersonating the device. There is a demand for a more secure authentication method that can be used for authentication between devices.

[0005] The present disclosure provides an authentication system, an authentication method, and a program that can solve the above problems. [Means for solving the problem]

[0006] The authentication system of the present disclosure includes a means for performing authentication between a first device and a second device based on first authentication information calculated based on information of an executable file and / or a configuration file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program.

[0007] In addition, the authentication method disclosed herein includes a step of performing authentication between a first device and a second device based on first authentication information calculated based on information of an executable file and / or a configuration file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program.

[0008] In addition, the program disclosed herein causes a computer to execute a process including a step of performing authentication between a first device and a second device based on first authentication information calculated based on information of an executable file and / or a configuration file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program. Effect of the Invention

[0009] According to the above-described authentication system, authentication method, and program, it is possible to improve the security of authentication between devices. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram illustrating an example of a system according to an embodiment. [Diagram 2] FIG. 1 is a diagram illustrating an example of an authentication system according to an embodiment. [Diagram 3]FIG. 1 is a first diagram illustrating a process for generating authentication information according to an embodiment. [Figure 4] FIG. 2 is a second diagram illustrating the generation process of authentication information according to the embodiment. [Diagram 5] 11 is a flowchart illustrating an example of a multi-factor authentication process according to the embodiment. [Figure 6] FIG. 11 is a diagram illustrating an application example of multi-factor authentication processing according to an embodiment. [Figure 7] FIG. 2 is a diagram illustrating an example of a hardware configuration of a device according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] <Embodiment> Hereinafter, the authentication method according to each embodiment will be described with reference to FIGS. (composition) FIG. 1 is a diagram showing an example of a system according to an embodiment of the present disclosure. The system to which the multi-factor authentication method of the present embodiment is applied includes, for example, device 1 and device 2 configured with a computer. Application programs A, B, and C (hereinafter, may be abbreviated to app A) run on device 1, and apps D, E, and F run on device 2, and authentication is required, for example, when app B and app E communicate with each other. App B and app E perform processing required for the operation of device 1 and device 2 while communicating with each other, or app B controls the operation of device 2 through app E. For example, device 1 and device 2 may both be equipment or mobile objects installed in a plant or the like, and may be a system that executes processing while exchanging information required for the operation of the device itself. Alternatively, device 1 may be a control device, and device 2 may be a controlled device, for example, a mobile object such as an unmanned vehicle, an unmanned aerial vehicle, or a transportation system (train), or a machine such as a turbine, a machine tool, or a boiler. When applications running on devices communicate with each other, there is a possibility that the applications may be attacked by a third party from the outside or may receive an unexpected control signal due to disturbances, etc., and it is therefore necessary to verify that the communication partner device, program, and processing content of the program are appropriate. The multi-factor authentication method of this embodiment provides a function for verifying that the application running on the communication partner device is the correct communication partner and that the processing content of the application is correct when application B of device 1 and application E of device 2 communicate with each other to perform control, etc. Hereinafter, the authentication method of this embodiment will be described by taking as an example a case where device 1 is a computer in a control room that controls a vehicle, and device 2 is a computer (on-board device) mounted on the vehicle.

[0012] 2 is a diagram showing an example of an authentication system 100 according to an embodiment. The authentication system 100 includes a device 1 and a device 2. The device 1 is a computer in a control room, and the device 2 is a computer in a vehicle.

[0013] (Device 1 configuration) The device 1 includes a control room side application 101 , a communication middleware 102 , a session connection determination program 103 , key information 104 , a file authentication program 106 , an execution history authentication program 108 , a virtualization application 109 , and a vehicle side application 110 . The control room side application 101 is an application program that controls and monitors the vehicle or the device 2 mounted on the vehicle. The control room side application 101 is, for example, an upper OTA program (described later). The control room side application 101 corresponds to program B in FIG. 1. The communication middleware 102 is a program that communicates with the device 2. For example, the communication middleware 102 communicates using HIP (Host Identity Protocol). The session connection judgment program 103 judges whether the device or program of the communication partner is correct and whether the processing content is correct, and controls the session based on the judgment. For example, if the authentication is successful, the session connection judgment program 103 starts and maintains the session, and if the authentication is unsuccessful, it ends (cuts off) the session. The session connection judgment program 103 has a shared key (a key used for encryption) with the session connection judgment program 203 on the vehicle side.

[0014] Key information 104 is information that is sent to the other party at the start of a session and is used to prove to the other party (device 2) that the own device (device 1) is a valid party. The file authentication program 106 is a program that calculates a hash value 105 of an executable file / setting file 111 (the executable file / setting file 111 refers to the executable file and / or setting file of the vehicle-side application 110) of a program to be authenticated (vehicle-side application 110). The execution history authentication program 108 is a program that calculates a CRC (Cyclic Redundancy Check) of the execution history 112 of the program to be authenticated.

[0015] The virtualization application 109 is a program that provides a virtual environment. In this embodiment, the vehicle-side application 110 runs on the virtual environment provided by the virtualization application 109. The vehicle-side application 110 is the same application as the authentication target program (vehicle-side application 201) that runs on the device 2. The vehicle-side application 110 corresponds to the program E in FIG. 1 and is configured to run in the virtual environment of the vehicle's own device. The authentication target program is, for example, an OTA (Over the Air) program. The OTA program includes a function for updating a program installed in the vehicle-mounted device to a new program or updating data, a function for downloading new programs and data, a function for backing up data, and the like. For example, the above-mentioned control room side application 101 is an OTA upper system that instructs the device 2 to update, download, and back up programs and data. The vehicle-side application 110 is an OTA program that executes downloading, updating, and backing up new programs and the like based on instructions from the OTA upper system.

[0016] (Device 2 configuration) The device 2 includes a vehicle-side application 201 , a communication middleware 202 , a session connection determination program 203 , key information 204 , a file authentication program 206 , and an execution history authentication program 208 . The vehicle-side application 201 is a program to be authenticated. For example, the vehicle-side application 201 is an OTA program (a program that updates and downloads various programs running on the device 2 and backs up data). The communication middleware 202 is a program that communicates with the device 1. For example, the communication middleware 202 communicates using HIP (Host Identity Protocol). The session connection judgment program 203 judges whether the communication partner device 1 and program are correct and whether the processing content of the program is correct, and controls the session based on the judgment. For example, if the authentication is successful, the session connection judgment program 203 starts or maintains the session. If the authentication is unsuccessful, the session connection judgment program 203 ends (cuts off) the session. The session connection judgment program 203 has a shared key (a key used for encryption) with the session connection judgment program 103 on the control room side.

[0017] The key information 204 is information that is sent to the communication partner at the start of a session and is used to prove to the communication partner (device 1) that the device itself (device 2) is a valid communication partner. The file authentication program 206 is a program that calculates a hash value 205 of an executable file / setting file 209 (the executable file / setting file 209 indicates the executable file and / or the setting file of the vehicle-side application 201) of a program to be authenticated (the vehicle-side application 201). In this embodiment, the hash value 205 and an execution history CRC 207 described next are used for authentication. The execution history authentication program 208 is a program that calculates the CRC (execution history CRC 207) of the execution history 210 of the program to be authenticated.

[0018] For example, a secure execution environment (SecureWorld) such as a TEE (Trusted Execution Environment) may be constructed in the hardware (processor) of the device 2. In the above configuration, for example, the vehicle-side application 201, the communication middleware 202, and the session connection determination program 203 may be implemented in NormalWorld (normal OS (Operating System)), the key information 204, the file authentication program 206, and the execution history authentication program 208 may be implemented in SecureWorld (TEE), and the hash value 205 and the execution history CRC 207 may be generated in SecureWorld. Note that, although FIG. 2 shows that the control room device 1 has each application and the like implemented on a normal OS, the device 1 may also be equipped with a TEE. The TEE of the device 2 is not essential, and the vehicle-side application 201, the communication middleware 202, the session connection determination program 203, the key information 204, the file authentication program 206, and the execution history authentication program 208 may also be implemented on a normal OS in the device 2.

[0019] (Generating a hash value) FIG. 3 shows an example of a method for generating the hash value 205. When the vehicle-side application 201 of the device 2 and the control room-side application 101 of the device 1 are communicating with each other, the file authentication program 206 reads the execution code of the vehicle-side application 201 deployed on the memory of the device 2 and the setting information of the setting file of the vehicle-side application 201, and extracts a part of the read data as target data for hash value generation processing. The file authentication program 206 divides the extracted target data into blocks of a predetermined length. For example, the divided blocks are blocks 1 to 3. The file authentication program 206 performs bit operations on blocks 1 to 3 to generate blocks 1' to 3'. In parallel with this, the file authentication program 206 generates a random number (challenge) and generates the hash value 205 by inputting data obtained by combining the generated random number and blocks 1' to 3' into a predetermined hash function. Since the random number is generated, the value of the hash value 205 is different each time. The random number generated by the file authentication program 206 is also shared by the device 1. In the device 1, the file authentication program 106 performs similar processing using the shared random number and executable file / setting file 111 to generate the hash value 105. In this embodiment, the hash values ​​105 and 205 are used for authentication as one element of multi-factor authentication. If the hash value 105 and the hash value 205 match, it can be confirmed that the vehicle-side application 110 and the vehicle-side application 201 are the same and that the vehicle-side application 201 has not been tampered with.

[0020] (Generate execution history CRC) FIG. 4 shows an example of a method for generating the execution history CRC 207. When the vehicle-side application 201 of the device 2 and the control room-side application 101 of the device 1 are communicating with each other, the vehicle-side application 201 executes the processes, for example, in the order of process A, process B, and process C. Each of the processes A, B, and C is, for example, a set of process blocks, and a checkpoint is set after the execution of the processes A, B, and C. The vehicle-side application 201 executes the process A using the input signal a as input, and outputs the calculation result of the process A to the execution history authentication program 208. Here, the input signal a is, for example, a value measured by a sensor mounted on the vehicle. The same applies to the input signals b and c described later. The execution history authentication program 208 calculates a CRC from data that combines the execution history CRC 207 of the previous cycle and the calculation result of the process A (2081). Next, the vehicle-side application 201 executes the process B using the input signal b as input, and outputs the calculation result of the process B to the execution history authentication program 208. The execution history authentication program 208 calculates a CRC from data that combines the CRC calculated from the calculation result of the process A and the calculation result of the process B (2082). Next, the vehicle-side application 201 executes the process C using the input signal c as input, and outputs the calculation result of the process C to the execution history authentication program 208. The execution history authentication program 208 calculates a CRC from data that combines the CRC calculated from the calculation result of the process B and the calculation result of the process C (2083). Next, the execution history authentication program 208 calculates a hash value from the CRC calculated from the processing result of the process C and the like (2084). The calculated hash value is the execution history CRC 207. In the device 1, the execution history authentication program 108 performs a similar process to generate the execution history CRC 107. In this embodiment, in addition to the hash values ​​105 and 205, the execution history CRCs 107 and 207 are used for authentication. If the values ​​of the execution history CRC 107 and the execution history CRC 207 match, it can be confirmed that the processing results of the vehicle-side application 110 and the vehicle-side application 201 are the same, and the vehicle-side application 201 is operating normally.

[0021] (operation) Next, the flow of the multi-factor authentication process of this embodiment will be described with reference to FIG. FIG. 5 is a flowchart illustrating an example of a multi-factor authentication process according to the embodiment. First, a session is established between device 1 in the control room and device 2 in the vehicle. When device 1 and device 2 communicate for the first time (=when establishing a session), mutual authentication is performed using key information 104, 204. Specifically, device 1 transmits key information 104 to device 2 (step S1). The communication middleware 202 of device 2 transmits key information 204 to the communication middleware 102 of device 1 (step S1'). In device 1, session connection determination program 103 receives key information 204 transmitted from device 2 and performs authentication (step S2). For example, if the communication partner with which a session should be established is device 2 and the key information 204 is that of device 2, the session connection determination program 103 determines that the authentication is successful, and if the key information 204 is not that of device 2, it determines that the authentication is unsuccessful. Alternatively, the key information 104 and the key information 204 are the same information, and the session connection judgment program 103 judges that the authentication is successful if the key information 104 and the key information 204 match, and judges that the authentication is unsuccessful if they do not match. If it judges that the authentication is successful, the session connection judgment program 103 starts the session (step S3). If it judges that the authentication is unsuccessful, the session connection judgment program 103 does not start the session and notifies the controller of the authentication failure. Meanwhile, in the device 2, the session connection judgment program 203 receives the key information 104 transmitted from the device 1 and performs authentication (step S2'). For example, if the communication partner with which the session should be established is the device 1 and the key information 104 is that of the device 1, the session connection judgment program 203 judges that the authentication is successful, and if the key information 104 is not the key information of the device 1, it judges that the authentication is unsuccessful. Alternatively, the session connection determination program 203 determines that the authentication is successful if the key information 104 and the key information 204 match, and determines that the authentication is unsuccessful if they do not match. If it is determined that the authentication is successful, the session connection determination program 203 starts a session (step S3'). If it is determined that the authentication is unsuccessful, the session connection determination program 203 does not start a session, and the device 2 transitions to a degenerate operation (for example, stopping the vehicle-side application 201, executing only a part of the processing of the vehicle-side application 201, etc.).

[0022] If authentication using the key information 204 fails, the communication middleware 102 may request the communication middleware 102 to resend the key information 204, and if authentication is unsuccessful even after performing authentication using the key information 204 a predetermined number of times, the session connection determination program 103 may determine that authentication has failed. Similarly, if authentication using the key information 104 fails, the communication middleware 202 may request the communication middleware 102 to resend the key information 104, and if authentication is unsuccessful even after performing authentication using the key information 104 a predetermined number of times, the session connection determination program 203 may determine that authentication has failed.

[0023] When a session between device 1 and device 2 is started, device 1 and device 2 start communication. For example, the control room side application 101 of device 1 instructs device 2 to back up data, download an update program, and apply (update) the downloaded update program, and in device 2, the vehicle side application 201 performs processing based on the instructions from device 1 and transmits the execution results, etc. to device 1. During communication between device 1 and device 2, they periodically (for example, at a fixed cycle) exchange hash values ​​105, 205 and execution history CRCs 107, 207 with each other to perform mutual authentication.

[0024] First, the vehicle-side file authentication program 206 generates a random number (step S4), reads the generated random number and the executable file / settings file 111 of the vehicle-side application 201 into SecureWorld, and calculates a hash value 205 from the code information expanded in the memory space (step S5).

[0025] Furthermore, the vehicle-side application 201 notifies the execution history authentication program 208 of the calculation result of the processing based on the input signal at the checkpoint of the processing (for example, in the example of FIG. 4, checkpoints are set at processing A, processing B, and processing C). The execution history authentication program 208 calculates the execution history CRC 207 based on the notified calculation result (step S6). The execution history authentication program 208 stores the calculated execution history CRC 207 for the execution history CRC of the next cycle.

[0026] The session connection determination program 203 generates authentication data including the random number used to calculate the hash value 205, the hash value 205, the input signal used to calculate the execution history CRC 207, the execution history CRC 207, and identification information of the processes (e.g., processes A, B, and C) that are the targets of the execution history CRC 207, and encrypts the data with the shared key. The communication middleware 202 transmits the encrypted authentication data to the device 1 (step S7).

[0027] In the device 1, the communication middleware 102 acquires the authentication data, and the session connection determination program 103 decrypts the authentication data with the shared key. The session connection determination program 103 outputs the random number included in the authentication data to the file authentication program 106, and outputs the input signal included in the authentication data to the execution history authentication program 108.

[0028] In the control room device 1, the virtualization application 109 is running, and in the virtual environment, the vehicle-side application 110 is running and executes the same process (e.g., process A, process B, process C) as the vehicle-side application 201 on the vehicle side. For example, the session connection determination program 103 causes the vehicle-side application 110 to execute the process (e.g., process A, process B, process C) indicated by the identification information of the process included in the authentication data, based on the identification information of the process. The file authentication program 106 on the control room side calculates the hash value 105 from the random number transmitted from the vehicle-side device 2 and the executable file and setting file in the vehicle-side application 110 (step S8). In addition, the execution history authentication program 108 on the control room side calculates the execution history CRC 107 from the input signal transmitted from the vehicle-side device 2, the execution history CRC of the previous cycle, and the processing result of the checkpoint of the vehicle-side application 110 (the same process as the vehicle side) (step S9). The execution history authentication program 108 stores the calculated execution history CRC 107 for the execution history CRC of the next cycle. The session connection determination program 103 generates authentication data including the calculated hash value 105 and the execution history CRC 107, and encrypts it with the shared key. The communication middleware 102 transmits the encrypted authentication data to the device 2 (step S10).

[0029] Moreover, the session connection determination program 103 performs authentication based on the authentication data received from the device 2, the calculated hash value 105, and the execution history CRC 107 (step S11). Specifically, the session connection determination program 103 compares the calculated hash value 105 with the hash value 205 received from the device 2 to check whether they match. This verifies whether the application program to be verified (the vehicle-side application 201) has been tampered with. The session connection determination program 103 also compares the calculated execution history CRC 107 with the execution history CRC 207 received from the device 2 to check whether they match. This verifies whether the application programs on the control room side and the vehicle side are operating in the same way. If the hash value 105 and the hash value 205 match and the execution history CRC 107 and the execution history CRC 207 match, the session connection determination program 103 determines that the authentication has been successful, and if any one of them does not match, it determines that the authentication has failed. If the authentication is successful, the session connection determination program 103 continues the session as is, and periodically repeats the processes from step S7 onwards while the vehicle-side application 201 is running.

[0030] In the device 2, the communication middleware 202 acquires the authentication data transmitted from the device 1, and the session connection determination program 203 decrypts the authentication data with the shared key. Then, the session connection determination program 203 performs authentication based on the authentication data received from the device 1, the calculated hash value 205, and the execution history CRC 207 (step S11'). Specifically, the session connection determination program 203 compares the calculated hash value 205 with the hash value 105 received from the device 1 and checks whether they match. This verifies whether the application program to be verified has been tampered with. In addition, the session connection determination program 203 compares the calculated execution history CRC 207 with the execution history CRC 107 received from the device 1 and checks whether they match. This verifies whether the application programs on the control room side and the vehicle side are operating in the same way. If the hash value 205 matches the hash value 105 and the execution history CRC 207 matches the execution history CRC 107, the session connection determination program 203 determines that the authentication has been successful, and if any of them do not match, it determines that the authentication has failed. If the authentication is successful, the session connection determination program 203 continues the session as is, and periodically repeats the processing from step S4 onwards while the vehicle-side application 201 is running. If the authentication is unsuccessful, the device 2 transitions to a degenerate operation (for example, cutting off communication, stopping the vehicle-side application 201, executing only a part of the processing of the vehicle-side application 201, outputting an alert, etc.).

[0031] (Other embodiments) (1) In FIG. 5, the random number is generated on the vehicle side, but the random number may be generated on the control room side of device 1, the generated random number is encrypted with a shared key and transmitted to device 2, and device 2 may decrypt the received random number and calculate the hash value 205. (2) Also, in FIG. 5, the hash value 205 and the execution history CRC 207 are calculated on device 2, and transmitted to device 1 together with the input signal, etc., and device 1 calculates the hash value 105 and the execution history CRC 107. However, device 1 and device 2 may simultaneously calculate the hash value and the execution history CRC in parallel and compare them with each other. For example, when device 2 generates a random number, it transmits the encrypted random number to device 1 in parallel with the calculation of the hash value 205. Device 1 calculates the hash value 105 using the received random number. Also, when device 2 acquires an input signal, it encrypts the input signal used for process A, etc., in parallel with the execution of process A, etc., and transmits it to device 1. Device 1 calculates the execution history CRC 107 using the received input signal. Then, the device 1 and the device 2 exchange hash values ​​and execution history CRCs to perform mutual authentication. (3) In addition, in FIG. 4, the execution history CRCs 107 and 207 are calculated from the calculation results of the processes A to C. However, due to a lack of calculation resources of the devices 1 and 2 for the communication band and processing time, the authentication process may not be completed within the communication cycle. Therefore, the execution history CRCs 107 and 207 may be calculated not for all the processes of the program but for a specific process (for example, process B in FIG. 4), or the calculation of the execution history CRCs 107 and 207 may be performed only once for several mutual authentications, thereby reducing the impact on the communication band and processing time. (4) In addition, the execution history CRCs 107 and 207 may not match for some reason. In such a case, the execution history CRC may be retried without failing authentication due to a single mismatch. At the time of retry, the execution history CRC 107, 207 when it was last determined that the authentication was successful may be used as the final CRC value of the previous cycle to calculate the execution history CRC 107, 207.For example, if there is a match in the cycle before last but a mismatch in the cycle before that, the execution history CRC107, 207 of the previous cycle that did not match can be discarded, and the current execution history CRC107, 207 can be calculated from the execution history CRC107, 207 of the cycle before last and the calculation results of process A, etc.

[0032] FIG. 6 shows an application example of the multi-factor authentication method of the present embodiment. FIG. 6 shows an example of communication in an authentication system 100a including a control room device 1a and a vehicle device 2a. In the example of FIG. 6, the process of session construction (steps S1, S1′, S2, S2′) in FIG. 5 has already been completed, and communication has started. The execution history authentication program 108a, OTA upper system 101a, and HIP 102a of the device 1a correspond to the program group including the execution history authentication program 108 and the session connection judgment program 103, the program group including the control room side application 101, the virtualization application 109, and the vehicle side application 110, and the communication middleware 102, respectively, in FIG. 2. The execution history authentication program 208a, OTA in-vehicle system 201a, and HIP 202a of the device 2a correspond to the program group including the execution history authentication program 208 and the session connection judgment program 203, the vehicle side application 201, and the communication middleware 202, respectively, in FIG. 2. In the communication of range 61, an OTA request packet requesting one of data backup, program update instruction, and update data download instruction is transmitted from the OTA upper system 101a of the device 1a to the OTA in-vehicle system 201a of the device 2a, and the program executed by the OTA in-vehicle system 201a is switched according to the instruction contents of the OTA request packet. When the OTA in-vehicle system 201a receives the OTA request packet, it transmits an OTA response packet including completion of reception and execution of processing according to the instruction contents to the OTA upper system 101a. The multi-factor authentication of this embodiment is not performed for the communication of range 61. Next, when the OTA in-vehicle system 201a starts processing based on the OTA request packet, the OTA in-vehicle system 201a outputs the calculation result for each checkpoint to the execution history authentication program 208a, and the execution history authentication program 208a calculates the execution history CRC 207a. The HIP 202a transmits the execution history CRC 207a to the HIP 102a (range 62). The communication in range 62 is an example of multi-factor authentication of this embodiment. In the device 1a, the OTA upper system 101a calculates the execution history CRC 107a, and the execution history authentication program 108a authenticates the execution history CRC 107a and the execution history CRC 207a.Although not shown, in communication after the processing based on the OTA request packet is performed, authentication using a hash value is repeatedly performed between the device 1a and the device 2a. In this way, the multi-factor authentication of this embodiment can be applied only to necessary communication between the device 1a and the device 2a.

[0033] (effect) As described above, according to this embodiment, multi-factor authentication is performed between the devices 1 and 2 at the start of a communication session and periodically after the session starts. To this end, the devices 1 and 2 store key information 104 and 204, and at the start of a session, the key information 104 and 204 are exchanged to perform authentication. After the session starts, the devices 1 and 2 calculate hash values ​​105 and 205 from the data of the executable file and setting file of the same authentication target program (vehicle-side application 110 and 201), and further execute the same authentication target program to calculate the execution history CRC 107 and 207. By comparing the hash values ​​105 and 205, it is possible to check whether the program has been tampered with by malware or the like, or whether communication has not occurred with unauthorized terminal software. In addition, the hash value is calculated differently each time using a challenge, thereby preventing attacks by third parties. In addition, in order to check the execution state information to see whether the authentication target program is executed normally, a CRC is calculated for each processing block of the authentication target program, and it is verified whether the processing has been executed correctly. If the CRC comparison shows a mismatch, the communication is blocked. This can ensure even greater security. In the above description, authentication at the time of establishing a session is performed using the key information 104, 204. However, for example, the hash values ​​105, 205 and execution history CRCs 107, 207 may be calculated for a program that controls HIP communication, and authentication may be performed using the hash values ​​105, 205 and execution history CRCs 107, 207 in addition to the key information 104, 204.

[0034] Also, a CPU (Central Processing Unit) supporting TEE can be used for the devices 1 and 2 (or either one of them is acceptable). By storing the key information 104 and 204 and executing the file authentication program 106 and the execution history authentication program 108 in the Secure World of the TEE, the integrity of the information used for authentication can be ensured even if the Normal World is invaded by unauthorized access.

[0035] FIG. 7 is a diagram illustrating an example of a hardware configuration of the authentication system according to the embodiment. The computer 900 includes a CPU 901, a main memory device 902, an auxiliary memory device 903, an input / output interface 904, and a communication interface 905. The above-mentioned devices 1, 1a, 2, and 2a are implemented in the computer 900. The above-mentioned functions are stored in the auxiliary memory device 903 in the form of a program. The CPU 901 reads the program from the auxiliary memory device 903, loads it in the main memory device 902, and executes the above-mentioned processing in accordance with the program. The CPU 901 also secures a storage area in the main memory device 902 in accordance with the program. The CPU 901 also secures a storage area in the auxiliary memory device 903 for storing data being processed in accordance with the program.

[0036] In addition, a program for realizing all or part of the functions of the devices 1, 1a, 2, and 2a may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to perform processing by each functional unit. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. In addition, if a WWW system is used, the term "computer system" also includes a homepage providing environment (or display environment). In addition, the term "computer-readable recording medium" refers to a portable medium such as a CD, DVD, or USB, and a storage device such as a hard disk built into a computer system. In addition, if the program is distributed to the computer 900 through a communication line, the computer 900 that receives the program may expand the program in the main storage device 902 and execute the above processing. In addition, the above program may be for realizing part of the above-mentioned functions, and may further be capable of realizing the above-mentioned functions in combination with a program already recorded in the computer system.

[0037] As described above, several embodiments according to the present disclosure have been described, but all of these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents as described in the claims, as well as in the scope and gist of the invention.

[0038] <Additional Notes> The authentication system, authentication method, and program described in each embodiment can be understood, for example, as follows.

[0039] (1) An authentication system 100, 100a according to a first aspect is an authentication system that performs authentication between a first device and a second device, and includes a means for performing the authentication based on first authentication information calculated based on information of an executable file and / or a configuration file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program. Security can be improved by applying multi-factor authentication to authentication between devices.

[0040] (2) The authentication system 100, 100a according to the second aspect is the authentication system of (1), wherein the first device comprises a means for calculating the first authentication information and a means for calculating the second authentication information, the second device comprises a second program which is the same program as the first program, a means for calculating third authentication information based on information of an executable file and / or a configuration file of the second program, a means for calculating fourth authentication information based on a processing result of the second program, and a means for performing the authentication, and the means for performing the authentication performs the authentication based on whether the first authentication information and the third authentication information match and whether the second authentication information and the fourth authentication information match. This allows the second device to check whether the first program running on the first device is unauthorized and whether the processing is being executed correctly.

[0041] (3) An authentication system 100, 100a according to a third aspect is an authentication system according to (1) to (2), further comprising a means for the first device to perform the authentication based on whether the first authentication information matches the third authentication information and whether the second authentication information matches the fourth authentication information. This allows the first device to check whether the first program running on the first device or the second program running on the second device is unauthorized and whether the processing is being performed correctly.

[0042] (4) The authentication system 100, 100a according to the fourth aspect is an authentication system according to (2) to (3), in which the first device is configured such that an execution environment for executing the first program is different from an execution environment for calculating the first authentication information and an execution environment for calculating the second authentication information. By isolating the execution environment for calculating the first authentication information and the second authentication information from the execution environment for the first program (for example, storing the information and programs used for authentication only in hardware-protected computing units and memories), it is possible to prevent unauthorized access from outside.

[0043] (5) The authentication system 100, 100a according to the fifth aspect is the authentication system of (3), in which the second device is configured such that the execution environment for executing the second program is different from the execution environments for the means for calculating the third authentication information and the means for calculating the fourth authentication information. By isolating the execution environment for calculating the third authentication information and the fourth authentication information from the execution environment for the second program (for example, storing the information and programs used for authentication only in hardware-protected computing units and memories), it is possible to prevent unauthorized access from outside.

[0044] (6) The authentication system 100, 100a according to the fifth aspect is an authentication system of (2) to (5), wherein the first authentication information is a hash value calculated based on a random number generated each time the first authentication information is calculated and information on the executable file and / or configuration file of the first program, and the third authentication information is a hash value calculated based on the random number and information on the executable file and / or configuration file of the second program. This makes it possible to verify whether the program has been tampered with by malware. In addition, the use of random numbers can prevent attacks by third parties.

[0045] (7) The authentication system 100, 100a according to the seventh aspect is an authentication system of (2) to (6), wherein the second authentication information is a CRC (Cyclic Redundancy Check) calculated from a calculation result of executing a specified processing of the first program, and the second authentication information is a CRC calculated from a calculation result of executing the specified processing of the second program. This allows the execution status information to be checked to see whether the program is being executed normally.

[0046] (8) An authentication system 100, 100a according to an eighth aspect is an authentication system of any one of (2) to (7), wherein while the first program is being executed, the means for calculating the first authentication information periodically calculates the first authentication information, the means for calculating the second authentication information periodically calculates the second authentication information, and in the second device, the second program is executed while the means for calculating the third authentication information periodically calculates the third authentication information, the means for calculating the fourth authentication information periodically calculates the fourth authentication information, and the means for performing the authentication of the second device periodically performs the authentication. This allows multi-factor authentication to be performed periodically while a communication session is ongoing, making it possible to immediately detect attacks and block communications.

[0047] (9) An authentication system 100, 100a according to a ninth aspect is an authentication system of any one of (2) to (8), wherein while the first program is being executed, the means for calculating the first authentication information periodically calculates the first authentication information, the means for calculating the second authentication information periodically calculates the second authentication information, and in the second device, the second program is executed while the means for calculating the third authentication information periodically calculates the third authentication information, the means for calculating the fourth authentication information periodically calculates the fourth authentication information, and the means for performing the authentication of the first device periodically performs the authentication. This allows multi-factor authentication to be performed periodically while a communication session is ongoing, making it possible to immediately detect attacks and block communications.

[0048] (10) The authentication system 100, 100a according to the tenth aspect is an authentication system according to any one of (2) to (9), and when starting a session between the first device and the second device, authentication is performed by exchanging first key information stored in the first device and second key information stored in the second device, and if the authentication is successful, the session is started. This allows a secure session to be started.

[0049] (11) An authentication method according to an eleventh aspect is an authentication method for performing authentication between a first device and a second device, comprising a step of performing authentication based on first authentication information calculated based on information of an executable file and / or a configuration file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program.

[0050] (12) A program according to a twelfth aspect causes a computer 900 to execute a process for performing authentication between a first device and a second device, the process including a step of performing authentication based on first authentication information calculated based on information of an executable file and / or a configuration file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program. [Explanation of symbols]

[0051] 1, 1a, 2, 2a... Device 101...Control room application 102 Communication middleware 103 Session connection determination program 104 Key information 105...Hash value 106 File authentication program 107 Execution History CRC 108... Execution history authentication program 109...Virtualization App 110...Vehicle application 111... Executable files / configuration files 112...Execution history 201 Vehicle application 202 Communication middleware 203 Session connection determination program 204 Key information 205...Hash value 206 File authentication program 207 Execution History CRC 208... Execution history authentication program 209... Executable files / configuration files 210...Execution history 101a···OTA host system 102a···HIP 108a Execution history authentication program 201a···OTA In-Vehicle System 202a···HIP 208a Execution history authentication program 900...Computer 901··CPU 902...Main memory 903...Auxiliary storage device 904 Input / Output Interface 905 Communication Interface

Claims

1. a means for performing authentication between a first device and a second device based on first authentication information calculated based on information of an executable file and / or a setting file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program; An authentication system comprising:

2. The first device comprises: means for calculating the first authentication information; means for calculating the second authentication information; Equipped with The second device comprises: a second program that is the same as the first program; and means for calculating third authentication information based on information of the executable file and / or the configuration file of the second program; means for calculating fourth authentication information based on a processing result of the second program; means for performing said authentication; Equipped with The authentication means performs the authentication based on whether the first authentication information and the third authentication information match and whether the second authentication information and the fourth authentication information match. The authentication system according to claim 1 .

3. The first device comprises: a means for performing the authentication based on whether the first authentication information matches the third authentication information and whether the second authentication information matches the fourth authentication information; The authentication system of claim 2 further comprising:

4. In the first device, an execution environment for executing the first program is different from an execution environment for the means for calculating the first authentication information and the means for calculating the second authentication information. The authentication system according to claim 2 or 3.

5. In the second device, an execution environment for executing the second program is different from an execution environment for calculating the third authentication information and a execution environment for calculating the fourth authentication information. The authentication system according to claim 3.

6. the first authentication information is a hash value calculated based on a random number generated each time the first authentication information is calculated and information on an executable file and / or a configuration file of the first program, The third authentication information is a hash value calculated based on the random number and information of an executable file and / or a configuration file of the second program. The authentication system according to claim 2 or 3.

7. the second authentication information is a Cyclic Redundancy Check (CRC) calculated from a calculation result of executing a predetermined process of the first program, the second authentication information is a CRC calculated from a calculation result of executing the predetermined process of the second program; The authentication system according to claim 2 or 3.

8. While the first program is being executed, The means for calculating the first authentication information periodically calculates the first authentication information; The means for calculating the second authentication information periodically calculates the second authentication information; The second device executes the second program and the means for calculating the third authentication information periodically calculates the third authentication information; the means for calculating the fourth authentication information periodically calculates the fourth authentication information; the means for performing the authentication of the second device periodically performs the authentication. The authentication system according to claim 2 or 3.

9. While the first program is being executed, The means for calculating the first authentication information periodically calculates the first authentication information; The means for calculating the second authentication information periodically calculates the second authentication information; The second device executes the second program and the means for calculating the third authentication information periodically calculates the third authentication information; the means for calculating the fourth authentication information periodically calculates the fourth authentication information; the means for performing the authentication of the first device periodically performs the authentication. The authentication system according to claim 3.

10. When starting a session between the first device and the second device, the authentication is performed by exchanging first key information stored in the first device and second key information stored in the second device, and if the authentication is successful, the session is started. The authentication system according to claim 2 or 3.

11. Regarding authentication between a first device and a second device, the authentication is performed based on first authentication information calculated based on information of an executable file and / or a setting file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program. Authentication method.

12. On the computer, A process of performing authentication between a first device and a second device based on first authentication information calculated based on information of an executable file and / or a setting file of a first program executed on the first device, and second authentication information calculated based on a processing result of the first program; A program that executes the following.

Citation Information

Patent Citations

  • Data Processing

    JP2021527342A