In-vehicle network ECU hierarchical authentication method based on dynamic key
Biometric keys are extracted through biometric technology and combined with Markov clustering algorithms to divide network subsystems and generate dynamic keys for in-vehicle ECU node identity authentication, which solves the problem of excessive consumption of computing resources and easy cracking of keys in the existing technology. solve the problem and achieve efficient and safe in-car network communication authentication.
Patent Information
- Application Number
- CN202210838141.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-05-19
- Filing Date
- 2022-07-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-07-17
AI Technical Summary
The existing in-vehicle ECU node identity authentication technology has problems such as excessive consumption of computing resources and easy cracking of keys, especially during multi-node authentication, which leads to overload and insufficient security.
The user's biological key is extracted as a long-term key based on biometric technology, combined with the Markov clustering algorithm to divide the in-vehicle network subsystem, and the long-term key and node random number are used to generate a dynamic key for identity authentication, realizing core ECU and gateway Verification of high-security level nodes and hierarchical management of low-security level nodes.
It reduces the authentication frequency between nodes, saves computing resources, improves the security of in-vehicle communication nodes, prevents replay and forgery attacks, and ensures the communication security among ECU nodes of the entire in-vehicle network.
Smart Images

Figure CN115190477B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of physical technology, and further relates to a hierarchical authentication method of an in-vehicle network electronic control unit ECU (Electronic Control Unit) based on a dynamic key in the field of in-vehicle network communication technology. The present invention relies on the biological information of the car owner to authenticate the legal identity of the car owner, and stores the extracted biological key as a long-term key in the vehicle-mounted ECU and gateway, and uses this key to generate a dynamic key to realize the identity authentication of the subsequent in-vehicle ECU node, which can be applied to the identity authentication of the in-vehicle network ECU node of the smart car. Background Art
[0002] With the development of modern information technology and the automotive industry, the internal ECUs and networked communication devices of many new smart cars are becoming more and more numerous and complex. The increasing complexity of modern automobile functions and the characteristics of heterogeneous networks have greatly challenged the security of vehicle networks. Among them, the number of ECUs connected to the CAN (Controller Area Network) bus in the vehicle is huge, and the information transmission between ECU nodes is broadcast. There is a lack of authentication mechanism between nodes, and the legitimacy of the identities of both parties cannot be verified. The authentication mechanism refers to the authentication of the reliability of the data source and the authenticity of the communication entity to prevent deception and forgery attacks, which makes it impossible to determine the legitimacy of the ECU node identity.
[0003] Beijing University of Posts and Telecommunications disclosed a method for in-vehicle network communication security authentication in its patent document "In-vehicle network communication security authentication method and device" (patent application number 202110377512.X, application publication number CN 112994898 A). The implementation steps of this method are, based on the first and second keys preset in each vehicle-mounted component and the gateway, random numbers are generated for encryption at both ends of the vehicle-mounted component and the gateway, and the response authentication is completed by decryption by the other party. This method can perform two-way authentication based on the in-vehicle gateway and the vehicle-mounted component ECU at the beginning of the vehicle startup to verify the legitimacy of the identities of both parties, and can effectively resist replay attacks. However, the shortcomings of this method are: first, this method is limited to one-to-one authentication, and the current number of vehicle-mounted components is huge. When facing the gateway to multiple nodes or multiple nodes to multiple nodes authentication, the gateway and node loads are too heavy, the authentication consumes a long time, and single point failures are prone to occur. Second, the first key and the second key described in this method are pre-recorded on the gateway end and the vehicle-mounted component end, fixed and unchanged during the authentication process, not dynamic, and easy to be illegally cracked. Summary of the invention
[0004] The purpose of the present invention is to provide an in-vehicle network ECU hierarchical authentication method based on dynamic keys to address the defects and shortcomings of the above-mentioned in-vehicle ECU node identity authentication technology, so as to solve the problem that the in-vehicle network ECU node identity authentication consumes too many computing resources and the authentication key is easily cracked.
[0005] The specific idea of realizing the purpose of the present invention is: all ECUs connected to the CAN bus in the car are divided into multiple subsystems according to their functions, such as body control subsystem, power subsystem, wire control subsystem, multimedia subsystem, etc., and the communication frequency of the nodes in each functional subsystem is used as the weight, and the core ECU is selected using the result of the Markov Cluster Algorithm MCL (Markov Cluster Algorithm), so as to realize the hierarchical management strategy of "gateway-core ECU-sub-ECU" high security level node verification of low security level node. The present invention uses biometric technology to verify the legal identity of the owner, and extracts the user's biometric key as a long-term key to add it to the vehicle controller. The present invention uses the long-term key and the random number generated by the ECU node that needs to communicate to generate a short-term dynamic key, and uses the dynamic key to encrypt the authentication information. The core ECU and the gateway use the generated dynamic key, the random number generated by itself, and the node serial number information for authentication. After the authentication is successful, the gateway sends a message of successful authentication to the node; the gateway modifies the identity flag of the corresponding node in the memory mapping table.
[0006] The implementation steps of the present invention include the following:
[0007] Step 1: Divide the in-vehicle bus network subsystems and manage them hierarchically:
[0008] Divide the functional subsystems according to the functions of the ECU nodes connected to the CAN bus in the vehicle; use the MCL algorithm to select the core ECU according to the communication frequency of the nodes in the subsystem;
[0009] Step 2: Before the vehicle is used normally, use biometric technology to complete user identity authentication:
[0010] Extract the user's biometric key to complete identity registration; use the user's biometric key and login password to complete user identity verification;
[0011] Step 3, initialize the dynamic key:
[0012] Step 3.1, update the hash seed and shared key required for the in-vehicle network ECU node identity authentication;
[0013] Step 3.2, perform XOR operation on the random number generated by the ECU node and the user's biometric key to obtain a dynamic key; encrypt the random number SM4 generated by the ECU node using an encryption algorithm and transmit the encrypted ciphertext to the gateway node;
[0014] Step 3.3, each gateway node uses the SM4 algorithm to decrypt and obtain the node random number. The node performs an XOR operation on the random number and the user's biometric key to obtain a dynamic key. The gateway node writes each core ECU node number and the corresponding dynamic key into the gateway mapping table.
[0015] Step 3.4, the gateway node sends the generated gateway random number encrypted by the SM4 algorithm to each core ECU node; the ECU node obtains the random number of the gateway by decrypting the dynamic key;
[0016] Step 4: The gateway verifies whether the identity of the core ECU node is legal:
[0017] Step 4.1, the ECU node XORs and hashes the dynamic key, gateway random number, and node number information to form a message and sends it to the gateway;
[0018] Step 4.2: After the gateway decrypts the received message, it verifies it against its own memory mapping table to verify whether the decrypted ciphertext is the same as the message sent by the core ECU node. If so, it executes step 5. Otherwise, the ECU node identity authentication fails and the identity of the ECU node is considered illegal.
[0019] Step 5: The gateway sends a message of successful authentication to the ECU node with a legitimate identity;
[0020] Step 6: The gateway changes the identity flag of the ECU node in the memory mapping table to "True".
[0021] Compared with the prior art, the present invention has the following advantages:
[0022] First, since the present invention divides multiple subsystems according to the functions of communication nodes, each subsystem sets a core ECU according to the communication frequency, and only performs identity authentication between the core ECU and the gateway, and between the core ECU and the sub-ECU, the hierarchical authentication management of nodes with low security levels that are verified by communication nodes according to the security level in the vehicle is realized, overcoming the deficiency of the prior art that each communication node must perform identity authentication with each other, which results in a large amount of computing resources being consumed. The present invention reduces the authentication frequency between nodes, saves the computing resources of the nodes in the vehicle, and realizes lightweight identity authentication between communication nodes in the vehicle.
[0023] Second, since the present invention introduces biometric technology, it uses biometric technology to verify the legal identity of the car owner, and adds the extracted biometric key to the vehicle controller as a long-term key for mutual authentication of subsequent communication nodes. Then, a dynamic key is generated through the long-term key and the node random number, and the dynamic key is used as the key for encrypting authentication information. This overcomes the defect of the authentication encryption key in the prior art that it is easy to be forged and cracked. At the same time, the uniqueness of the biometric key makes it difficult to be counterfeited. The biometric key is used as a long-term key to generate a dynamic key, which is used as an authentication encryption key, effectively preventing replay and counterfeit attacks, ensuring the security of the identity of the vehicle communication node, and ensuring the communication security between the ECU nodes of the entire in-vehicle network. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a flow chart of the present invention;
[0025] Figure 2 It is a schematic diagram of the in-vehicle bus network of the present invention. DETAILED DESCRIPTION
[0026] The invention is further described in detail below with reference to the accompanying drawings.
[0027] Reference Figure 1 The implementation steps of the present invention are further described with reference to the accompanying drawings and embodiments.
[0028] Step 1: Divide the in-vehicle bus network subsystems and manage them hierarchically.
[0029] Step 1.1, divide the ECUs connected to the in-vehicle controller area network CAN bus into multiple subsystems according to different functions, and each subsystem is composed of several ECUs.
[0030] Reference Figure 2 , the in-vehicle bus network in the embodiment of the present invention is further described. The functional subsystems divided in the embodiment of the present invention include: a body subsystem, a power subsystem, a wire control subsystem, and a multimedia subsystem.
[0031] Step 1.2, referring to the PKI system, adopt the architecture that the upper-layer CA is responsible for the security of the lower-layer CA. In each subsystem, select an ECU according to the communication frequency, and use the selected ECU as the core ECU with a security level greater than other ECUs and less than that of the gateway. Each core ECU is responsible for the authentication and counter value synchronization of all other ECUs in its subsystem to ensure subsequent communication between all ECUs in the subsystem.
[0032] The steps of selecting the core ECU in each subsystem according to the communication frequency are as follows:
[0033] The first step is to establish a weighted undirected graph of communication between ECU nodes in each functional subsystem according to the communication frequency of ECU nodes. The vertices of the graph are ECUs in the same subsystem, and the weights of the edges are the communication frequency between nodes.
[0034] In the second step, the MCL algorithm is used to cluster the undirected graph. Starting from a point in the graph, an edge with the largest weight connecting the node is selected to reach one of the neighboring points in the graph. According to the result of MCL clustering, domain management of ECU nodes is realized, that is, the nodes that are most closely connected to each other are in the same cluster, which is the concept of domain described in the embodiment of the present invention; the point in the graph with the greatest correlation with other nodes, that is, the vertex with the most frequent communication, represents the ECU node as the core ECU of the functional domain.
[0035] The hierarchical management refers to the realization of domain management of ECU nodes according to the results of MCL clustering, that is, the nodes that are most closely connected to each other are in the same cluster, and such a cluster is the concept of functional subsystem in the embodiment of the present invention. During the authentication process, the CAN security gateway only needs to authenticate the core ECUs that act as secondary security centers, and the core ECU is responsible for the verification of other ECUs in the subsystem.
[0036] Step 2: Before the vehicle is used normally, use biometric technology to complete the user identity initialization authentication.
[0037] Step 2.1, extract the user's biometric key and complete the user identity registration.
[0038] The first step is to collect the user's biometric information using the vehicle-mounted biometric information collection device. In the embodiment of the present invention, the user's fingerprint information is used. The user sets his or her own user registration password in the information registration software. The user's fingerprint and the password set by the user correspond one to one and serve as the user's identity verification information together.
[0039] In the second step, the vehicle-mounted USB fingerprint extractor uses fuzzy extractor technology to extract the biometric key and auxiliary parameters from the user's registered fingerprint information. Although the biometric key is random, it can be recovered from a string similar to the registered fingerprint information, which realizes the identity authentication of the car user and extracts the long-term key in the embodiment of the present invention. The extracted biometric key and the user-set registration password are sent to the vehicle-mounted controller;
[0040] In the third step, the vehicle controller inputs the received user biometric key and user registration password into the hash function to obtain the hash encryption result of the user password;
[0041] The fourth step is to encrypt the hash result of the user password again using the shared key set when the vehicle leaves the factory, and write the final encrypted result into the memory of the on-board controller.
[0042] Step 2.2: Use the user's fingerprint information and login password to complete user identity authentication.
[0043] In the first step, when the user starts the car, he needs to enter the login password and login fingerprint information in the user login software. The on-board controller uses the fuzzy extractor and the public auxiliary parameters stored in the memory to input them into the reconstruction function of the fuzzy extractor to obtain the biometric key;
[0044] In the second step, the shared key set by the car is used to decrypt the final encryption result in step 2.1 to obtain the hash encryption result of the user password. The user's input biometric key and user login password are hashed. The car startup system verifies whether the results of the two hash functions are equal. If so, execute step 3. Otherwise, user identity authentication fails.
[0045] Step 3: Initialize the dynamic key.
[0046] In the embodiment of the present invention, two authentications are performed respectively: first, authentication between the gateway and the core ECU of each sub-functional system; second, authentication between the core ECU of each functional sub-system and other ECUs. The steps of the two authentication processes are the same.
[0047] The following is a detailed description of the authentication process using the identity authentication between the gateway and the core ECU of each sub-functional system as an example.
[0048] Step 3.1, during the whole process of using the car, the dynamic key only needs to be initialized once, and it will not be initialized again until the next time it is started. It is assumed that the shared symmetric key and the seed of the hash function have been written into each ECU when the vehicle leaves the factory, and the key and seed are updated after each initialization, so as to be used for node identity authentication the next time the car is started.
[0049] In the first step, a mapping table is set for each ECU in the car during production. The mapping table reflects the ID of the data frame received by the gateway from the ECU and the identity information of its source ECU node;
[0050] In the second step, before each communication node in the vehicle network transmits data, the user's biometric key is encrypted using a symmetric key and transmitted to the core ECU node of each functional subsystem. The node decrypts the ciphertext, obtains the biometric key, and stores its long-term key in its own memory.
[0051] Step 3.2, generate a dynamic key.
[0052] In the first step, the vehicle system extracts the user's biometric key and sends it to the gateway node and each core ECU node;
[0053] In the second step, the core ECU node of the functional subsystem generates a node random number and performs an XOR operation on the bio-key, and the result is used as the dynamic key;
[0054] The third step is to use the SM4 encryption algorithm to encrypt the ECU node random number and its own node number, and then transmit the ciphertext to each gateway node. Each gateway node uses the SM4 algorithm to decrypt and obtain the node random number. The node performs an XOR operation on the random number and the bio-key to obtain the dynamic key. The node random number sent by the core ECU node of each functional subsystem is XORed separately, and then XORed with the bio-key to obtain the total dynamic key.
[0055] In the fourth step, due to the existence of the broadcast feature, other ECU nodes will receive the message containing the node random number information sent by other ECU nodes, decrypt it through the SM4 algorithm, and obtain the node random number of other nodes. The random number of each node will be XORed within the node and then XORed with the biometric key to obtain the total dynamic key.
[0056] Step 3.3, the gateway node writes each core ECU node number and the corresponding dynamic key into the gateway mapping table.
[0057] Step 3.4: The gateway node generates a gateway random number, uses the dynamic key as the key to perform SM4 encryption operation, and then sends it to each core ECU node. After the ECU node receives the ciphertext sent by the gateway node, it decrypts it using the dynamic key to obtain the gateway random number.
[0058] Step 4: The gateway verifies whether the identity of the core ECU node is legal.
[0059] Step 4.1: The ECU node performs an XOR operation on the gateway node random number and its own node serial number information, encrypts the XOR result using a hash function, and then sends the encrypted information as a message to the gateway for authentication.
[0060] Step 4.2: After receiving the ciphertext, the gateway finds the node number information of the corresponding ECU node by comparing it with the memory mapping table, performs an XOR operation on the gateway random number and the node number, and then uses the hash function to encrypt the result to verify whether the ciphertext is the same as the message sent by the core ECU node. If so, execute step 5. Otherwise, the ECU node identity authentication fails, and the identity of the ECU node is considered illegal, and subsequent data communication is not performed.
[0061] Step 5: The gateway sends a successful authentication message to the ECU node with a legitimate identity.
[0062] The gateway sends a successful authentication message to the ECU node that has successfully authenticated. The message consists of a message of whether the authentication is successful or not (composed of 0, 1) suffixed with the node number of the successfully authenticated node. The message is encrypted into ciphertext using the total dynamic key and transmitted to the ECU node that has successfully authenticated. After receiving the message, the node uses the same total dynamic key to decrypt it and saves the decryption result to the node memory as the credential for authentication. Before communication between ECU nodes, each other determines whether the identity is legal by whether it has received a successful authentication message from the gateway.
[0063] Step 6: The gateway changes the identity flag of the ECU node in the memory mapping table to "True".
[0064] The gateway modifies the identity flag of the ECU node in the memory mapping table to "True". Before the gateway starts communicating with the ECU node, the gateway determines whether the ECU node is legal through the node identity flag in the node mapping table.
Claims
1. A hierarchical authentication method for in-vehicle network ECU based on dynamic key, It is characterized in that The in-vehicle bus network subsystem is divided and hierarchically managed. Before the vehicle is used normally, the user identity authentication is completed using biometric technology, the user's biometric key and the random number dynamic key generated by the ECU node are extracted, and the authentication information is encrypted using the dynamic key. The steps of this method include the following: Step 1: Divide the in-vehicle bus network subsystems and manage them hierarchically: Divide the functional subsystems according to the functions of the ECU nodes connected to the CAN bus in the vehicle; use the MCL algorithm to select the core ECU according to the communication frequency of the nodes in the subsystem; during the authentication process, the CAN security gateway only needs to authenticate the core ECUs that act as secondary security centers, and the core ECU is responsible for the verification of other ECUs in the subsystem; Step 2: Before the vehicle is used normally, use biometric technology to complete user identity authentication: Extract the user's biometric key to complete identity registration, and use the user's biometric key and login password to complete user identity verification; Step 3, initialize the dynamic key: Step 3.1, update the hash seed and shared key required for the in-vehicle network ECU node identity authentication; Step 3.2, perform XOR operation on the random number generated by the ECU node and the user's biometric key to obtain a dynamic key; encrypt the random number SM4 generated by the ECU node using an encryption algorithm and transmit the encrypted ciphertext to the gateway node; Step 3.3, each gateway node uses the SM4 algorithm to decrypt and obtain the node random number. The node performs an XOR operation on the random number and the user's biometric key to obtain a dynamic key. The gateway node writes each core ECU node number and the corresponding dynamic key into the gateway mapping table. Step 3.4, the gateway node sends the generated gateway random number encrypted by the SM4 algorithm to each core ECU node; the ECU node obtains the random number of the gateway by decrypting the dynamic key; Step 4: The gateway verifies whether the identity of the core ECU node is legal: Step 4.1, the ECU node XORs and hashes the dynamic key, gateway random number, and node number information to form a message and sends it to the gateway; Step 4.2: After receiving the ciphertext, the gateway finds the node number information of the corresponding ECU node by comparing it with the memory mapping table, performs an XOR operation on the gateway random number and the node number, and then uses the hash function to encrypt the encrypted result to verify whether the ciphertext is the same as the message sent by the core ECU node. If so, execute step 5. Otherwise, the ECU node identity authentication fails, and the identity of the ECU node is considered illegal, and subsequent data communication is not performed. Step 5: The gateway sends a message of successful authentication to the ECU node with a legitimate identity; Step 6: The gateway changes the identity flag of the ECU node in the memory mapping table to "True".
2. According to claim 1, the in-vehicle network ECU hierarchical authentication method based on dynamic key, Features: The steps of the MCL algorithm described in step 1 are as follows: The first step is to establish a weighted undirected graph of communication between ECU nodes in each functional subsystem according to the communication frequency of ECU nodes, taking the ECUs in the same subsystem as the vertices of the graph and the information exchange frequency between ECUs as the weight of the edge; In the second step, the MCL algorithm is used to cluster the undirected graph. Starting from a point in the undirected graph, the edge with the largest weight connecting the node is selected to reach a neighboring point in the graph. According to the results of MCL clustering, the domain management of ECU nodes is realized, that is, the nodes that are most closely connected to each other are in the same cluster; the point with the greatest correlation with other nodes in the undirected graph, that is, the ECU node represented by the vertex with the most frequent communication, is taken as the core ECU of the functional domain.
3. The in-vehicle network ECU hierarchical authentication method based on dynamic key according to claim 1, Features: The use of the user biometric key and login password to complete user identity authentication in step 2 means that the user identity is verified in the two stages of user registration and login. In the login stage, the vehicle control system verifies the legitimacy of the user's identity through the user's fingerprint information and the set registration password.
4. The in-vehicle network ECU hierarchical authentication method based on dynamic key according to claim 1, Features: The hash seed and shared key described in step 3.1 only need to be initialized once when the vehicle starts, providing data support for dynamic key generation and gateway verification of ECU node identity.
