A security management method, system, medium and electronic device for OTA upgrade
By using timestamp dynamic keys and hash value verification mechanisms in automobile OTA upgrades, the problem of upgrade packages being attacked and deciphered during transmission is solved, the confidentiality and security of data are improved, and the security of the OTA upgrade process is ensured. The secret key is safe.
Patent Information
- Application Number
- CN202410925668.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-11
AI Technical Summary
During the automotive OTA upgrade process, the upgrade package is easily attacked by intruders, resulting in data leakage or upgrade failure. Existing encryption methods are difficult to prevent decryption, and a higher confidentiality data management method is needed.
By generating a dynamic secret key containing a timestamp and using the hash value of the secret key for verification, the dynamic secret key is sent to the smart cockpit control domain through different network paths for verification to ensure the authenticity of the key and is deleted after the OTA upgrade is completed. Dynamic secret key to avoid leakage.
It reduces the risk of the secret key being tampered with, improves the security of the secret key, ensures the security of the secret key during the OTA upgrade process, and prevents attackers from deciphering and stealing the secret key.
Smart Images

Figure CN118467008B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of OTA upgrade, and in particular to a security management method, system, medium and electronic device for OTA upgrade. Background Art
[0002] With the continuous development of automobile intelligence and networking, the number of electronic devices inside automobiles is also increasing rapidly. On-board electronic devices and ECU (Electronic Control Unit) will involve upgrades and updates during use.
[0003] Over the Air Technology (OTA) technology refers to the use of network download technology to download firmware and software to achieve remote upgrades of vehicles. OTA can quickly repair system defects and can quickly iterate and improve products and user experience.
[0004] However, during the OTA upgrade process, the car is easily attacked by intruders because the data packets are transmitted through an open network. Intruders use impersonation, tampering and other attack methods to attack the car upgrade package, resulting in the upgrade package being illegally obtained and modified during the network transmission process, causing the upgrade package to be leaked or causing the upgrade to fail. Therefore, the OTA upgrade package needs to be encrypted. However, intruders can still decipher the encrypted upgrade package. Therefore, a more confidential data management method is needed during the OTA upgrade process. Summary of the invention
[0005] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a security management method, system, medium and electronic device for OTA upgrade.
[0006] According to one aspect of the present application, a security management method for OTA upgrade is provided, which is applied to a vehicle controller of an OTA upgrade system, wherein the OTA upgrade system includes the vehicle controller and an intelligent cockpit control domain, and the vehicle controller and the intelligent cockpit control domain are connected via a vehicle integrated network management communication; the security management method for OTA upgrade includes: receiving an OTA upgrade key request sent by the intelligent cockpit control domain; generating a first timestamp dynamic key according to the key request; wherein the first timestamp dynamic key is calculated according to the current time; performing a hash calculation on the first timestamp dynamic key to obtain a first key hash value of the first timestamp dynamic key; and using different channels of the vehicle integrated network management to respectively send the first timestamp dynamic key and the first key hash value to the intelligent cockpit control domain, so that the intelligent cockpit control domain can verify the first timestamp dynamic key.
[0007] In one embodiment, before the first timestamp dynamic key and the first key hash value are respectively sent through different channels of the vehicle integrated network management, the OTA upgrade security management method also includes: encrypting the first timestamp dynamic key and the first key hash value to obtain a first encrypted timestamp dynamic key and a first encrypted key hash value; the sending of the first timestamp dynamic key and the first key hash value through different channels of the vehicle integrated network management includes: sending the first encrypted timestamp dynamic key and the first encryption key hash value through different channels of the vehicle integrated network management.
[0008] According to another aspect of the present application, a security management method for OTA upgrade is provided, which is applied to the smart cockpit control domain of the OTA upgrade system, the OTA upgrade system comprising a vehicle controller and the smart cockpit control domain, the vehicle controller and the smart cockpit control domain being communicatively connected via a vehicle integrated network management system; the security management method for OTA upgrade comprises: sending a key request for OTA upgrade to the vehicle controller; receiving a second timestamp dynamic key and a second key hash value respectively sent by the vehicle controller through different channels of the vehicle integrated network management system; verifying the second timestamp dynamic key according to the second key hash value; if the verification result is qualified, saving the second timestamp dynamic key to a secure area for key verification during the OTA upgrade process.
[0009] In one embodiment, the second timestamp dynamic key includes a second encrypted timestamp dynamic key, and the second key hash value includes a second encrypted key hash value; wherein, verifying the second timestamp dynamic key according to the second key hash value includes: decrypting the second encrypted timestamp dynamic key and the second encrypted key hash value to obtain a decrypted timestamp dynamic key and a decrypted key hash value; and verifying the decrypted timestamp dynamic key according to the decrypted key hash value.
[0010] In one embodiment, verifying the second timestamp dynamic key according to the second key hash value includes: performing hash calculation on the second timestamp dynamic key to obtain a verification key hash value of the second timestamp dynamic key; calculating the difference between the verification key hash value and the second key hash value; if the difference is less than a preset difference threshold, determining that the verification result is qualified.
[0011] In one embodiment, after the second timestamp dynamic key is saved in the secure area, the OTA upgrade security management method further includes: performing scrambling calculation on the second timestamp dynamic key to obtain a decoy key; and saving the decoy key in the non-secure area.
[0012] In one embodiment, the OTA upgrade security management method further includes: after the OTA upgrade is completed, deleting the second timestamp dynamic key in the security area.
[0013] According to another aspect of the present application, an OTA upgrade system is provided, including a vehicle controller and an intelligent cockpit control domain, wherein the vehicle controller and the intelligent cockpit control domain are connected through a vehicle integrated network management communication; wherein the vehicle controller is used to: receive an OTA upgrade key request sent by the intelligent cockpit control domain; generate a first timestamp dynamic key according to the key request, wherein the first timestamp dynamic key is calculated according to the current time, the first timestamp dynamic key is hashed to obtain a first key hash value of the first timestamp dynamic key, and the first timestamp dynamic key and the first key hash value are respectively sent to the intelligent cockpit control domain through different channels of the vehicle integrated network management; the intelligent cockpit control domain is used to: send an OTA upgrade key request to the vehicle controller, receive a second timestamp dynamic key and a second key hash value respectively sent by the vehicle controller through different channels of the vehicle integrated network management, verify the second timestamp dynamic key according to the second key hash value, and if the verification result is qualified, save the second timestamp dynamic key to a secure area for key verification during the OTA upgrade process.
[0014] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute any of the above-mentioned OTA upgrade security management methods.
[0015] According to another aspect of the present application, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; and the processor is used to execute any of the above-mentioned OTA upgrade security management methods.
[0016] Compared with the prior art, the beneficial effects of this application include:
[0017] 1. Generate a dynamic key containing a timestamp to reduce the risk of key tampering, and use the key hash value to verify the dynamic key to further improve the security of the key.
[0018] 2. The dynamically generated first timestamp dynamic key and the corresponding first key hash value are sent to the smart cockpit control domain through different network paths, and are verified in the smart cockpit control domain to ensure the authenticity of the key.
[0019] 3. Delete the dynamic key after the OTA upgrade is completed to avoid the leakage of the real key.
[0020] 4. By scrambling the real secret key, a decoy key is generated to confuse attackers and ensure the security of the secret key during the upgrade process. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0022] Figure 1 It is a flowchart of a security management method for OTA upgrade provided by an exemplary embodiment of the present application.
[0023] Figure 2 It is a flowchart of a security management method for OTA upgrade provided by another exemplary embodiment of the present application.
[0024] Figure 3 It is a structural diagram of a security management device for OTA upgrade provided by an exemplary embodiment of the present application.
[0025] Figure 4 It is a structural diagram of a security management device for OTA upgrade provided by another exemplary embodiment of the present application.
[0026] Figure 5 It is a structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0027] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0028] Figure 1 1 is a flow chart of a method for managing OTA upgrade security provided by an exemplary embodiment of the present application. The method for managing OTA upgrade security is applied to a vehicle controller of an OTA upgrade system. The OTA upgrade system includes a vehicle controller and an intelligent cockpit control domain. The vehicle controller and the intelligent cockpit control domain are connected through a vehicle integrated network management communication; Figure 1 As shown, the OTA upgrade security management method includes the following steps:
[0029] Step 110: Receive the OTA upgrade key request sent by the smart cockpit control domain.
[0030] The electronic and electrical architecture in this application is an Ethernet ring network architecture that includes a domain architecture and a central integration architecture, wherein the Ethernet ring network architecture supports SOA service and communication channel protection, and supports the nearest access of each ECU component according to functional classification, thereby saving wiring harness costs. When the OTA master controller carried in the smart cockpit control domain (smart cockpit domain) upgrades the target ECU under the vehicle controller, the vehicle controller receives the OTA upgrade key request initiated by the OTA master controller to activate the key generation process.
[0031] Step 120: Generate a first timestamp dynamic key according to the key request.
[0032] Among them, the first timestamp dynamic key is calculated according to the current time. Specifically, the first timestamp dynamic key can be a 4096-byte dynamic key with a timestamp. After receiving the key request, the vehicle controller verifies the legality of the OTA master that initiates the key request. After the verification is passed, the first timestamp dynamic key with the current timestamp is generated based on the key request. That is, the key contains the time information of the production key to prevent intruders from tampering with the key.
[0033] Step 130: Perform hash calculation on the first timestamp dynamic key to obtain a first key hash value of the first timestamp dynamic key.
[0034] After generating the first timestamp dynamic key, the vehicle controller performs hash calculation on the first timestamp dynamic key to obtain a first key hash value corresponding to the first timestamp dynamic key. The first timestamp dynamic key and the first key hash value correspond one to one.
[0035] Step 140: Use different channels of the vehicle integrated network management to send the first timestamp dynamic key and the first key hash value to the smart cockpit control domain respectively, so that the smart cockpit control domain can verify the first timestamp dynamic key.
[0036] After calculating the first timestamp dynamic key and the first key hash value, the vehicle controller uses different channels of the vehicle integrated network management to send the first timestamp dynamic key and the first key hash value to the smart cockpit control domain respectively. After receiving the first timestamp dynamic key and the first key hash value from different channels, the smart cockpit control domain uses the first key hash value to verify the first timestamp dynamic key to ensure that it has not been tampered with, thereby improving the security of the key.
[0037] The present application provides a security management method for OTA upgrade. When the vehicle controller receives the OTA upgrade key request sent by the smart cockpit control domain, it generates a first timestamp dynamic key according to the key request, wherein the first timestamp dynamic key is calculated according to the current time, and the first timestamp dynamic key is hashed to obtain the first key hash value of the first timestamp dynamic key. The first timestamp dynamic key and the first key hash value are respectively sent to the smart cockpit control domain through different channels of the vehicle integrated network management; that is, when there is an OTA upgrade demand, the vehicle controller generates a first timestamp dynamic key according to the key request sent by the smart cockpit control domain. The timestamp dynamic key is generated by summing up the current time, and the corresponding key hash value is calculated based on the timestamp dynamic key. The timestamp dynamic key and the key hash value are sent to the smart cockpit control domain through different channels of the vehicle integrated network management, so that the smart cockpit control domain can verify the received timestamp dynamic key according to the received key hash value. After the verification is qualified, the timestamp dynamic key is saved to the secure area for OTA upgrade for key verification. By generating a dynamic key containing a timestamp, the risk of key tampering is reduced. At the same time, the dynamic key is verified by using the key hash value to further improve the security of the key.
[0038] In one embodiment, before step 140, the above-mentioned OTA upgrade security management method may also include: encrypting the first timestamp dynamic key and the first key hash value to obtain the first encrypted timestamp dynamic key and the first encrypted key hash value; correspondingly, the specific implementation method of step 140 may be: using different channels of the vehicle integrated network management to respectively send the first encrypted timestamp dynamic key and the first encrypted key hash value.
[0039] In order to further improve the security of the key, after generating the first timestamp dynamic key and the first key hash value, the present application encrypts the first timestamp dynamic key and the first key hash value through AES encryption to obtain the first encrypted timestamp dynamic key and the first encrypted key hash value, and uses different channels of the vehicle integrated network management to send the first encrypted timestamp dynamic key and the first encrypted key hash value respectively to ensure the security of the first timestamp dynamic key and the first key hash value.
[0040] Preferably, the vehicle controller of the present application can periodically generate a first timestamp dynamic key to improve the security of the first timestamp dynamic key. For example, a key generation time is set (for example, 5 minutes). When the key generation time is reached, a new first timestamp dynamic key and a corresponding first key hash value are generated.
[0041] Figure 21 is a flowchart of a security management method for OTA upgrades provided by another exemplary embodiment of the present application. The security management method for OTA upgrades is applied to the smart cockpit control domain of the OTA upgrade system. The OTA upgrade system includes a vehicle controller and a smart cockpit control domain. The vehicle controller and the smart cockpit control domain are connected through the vehicle integrated network management communication; Figure 2 As shown, the OTA upgrade security management method includes the following steps:
[0042] Step 210: Send a key request for OTA upgrade to the vehicle controller.
[0043] When the OTA master controller carried by the smart cockpit control domain upgrades the target ECU under the vehicle controller, the smart cockpit control domain (OTA master controller) initiates an OTA upgrade key request to the vehicle controller to request the vehicle controller to start the key generation process.
[0044] Step 220: Receive the second timestamp dynamic key and the second key hash value respectively sent by the vehicle controller through different channels of the vehicle integrated network management.
[0045] After the vehicle controller generates the timestamp dynamic key and the key hash value, it sends them to the smart cockpit control domain through different channels of the vehicle integrated network management, and the smart cockpit control domain receives the second timestamp dynamic key and the second key hash value from different channels. Among them, the second timestamp dynamic key and the second key hash value are the keys and hash values received by the smart cockpit control domain, and the first timestamp dynamic key and the first key hash value are the keys and hash values sent by the vehicle controller. The second timestamp dynamic key and the first timestamp dynamic key can be the same or different. If the first timestamp dynamic key has not been tampered with, the second timestamp dynamic key and the first timestamp dynamic key are the same. On the contrary, if the first timestamp dynamic key has been tampered with, the second timestamp dynamic key and the first timestamp dynamic key are different. Similarly, the second key hash value and the first key hash value can be the same or different.
[0046] Step 230: Verify the second timestamp dynamic key according to the second key hash value.
[0047] After receiving the second timestamp dynamic key and the second key hash value, the smart cockpit control domain verifies the second timestamp dynamic key according to the second key hash value to determine the authenticity of the second timestamp dynamic key, that is, determines whether the second timestamp dynamic key has been tampered with.
[0048] Step 240: If the verification result is qualified, the second timestamp dynamic key is saved in a secure area for key verification during the OTA upgrade process.
[0049] If the verification result is qualified, that is, the second timestamp dynamic key has not been tampered with, the second timestamp dynamic key is saved in a secure area for key verification during the OTA upgrade process.
[0050] The present application provides a security management method for OTA upgrade, in which a smart cockpit control domain sends a key request for OTA upgrade to a vehicle controller, receives a second timestamp dynamic key and a second key hash value sent by the vehicle controller through different channels of the vehicle integrated network management, verifies the second timestamp dynamic key according to the second key hash value, and if the verification result is qualified, saves the second timestamp dynamic key to a secure area for key verification during the OTA upgrade process; that is, when there is a need for OTA upgrade, the smart cockpit control domain sends a key request to the vehicle controller, and accepts the timestamp dynamic key and key hash value from different channels of the vehicle integrated network management, verifies the received timestamp dynamic key according to the received key hash value, and saves the timestamp dynamic key to a secure area for key verification for OTA upgrade after the verification is qualified, thereby reducing the risk of key tampering by generating a dynamic key containing a timestamp, and further improving the security of the key by verifying the dynamic key using the key hash value.
[0051] In one embodiment, the second timestamp dynamic key includes a second encrypted timestamp dynamic key, and the second key hash value includes a second encrypted key hash value; wherein, the specific implementation method of the above step 230 may be: decrypting the second encrypted timestamp dynamic key and the second encrypted key hash value to obtain the decrypted timestamp dynamic key and the decrypted key hash value; and verifying the decrypted timestamp dynamic key according to the decrypted key hash value.
[0052] In order to further improve the security of the secret key, the vehicle controller of the present application encrypts the secret key and hash value through AES encryption before sending the secret key and hash value to ensure the security of the secret key and hash value. After receiving the encrypted second encrypted timestamp dynamic key and the second encrypted key hash value, the smart cockpit control domain decrypts the second encrypted timestamp dynamic key and the second encrypted key hash value through AES decryption to obtain the decrypted timestamp dynamic key and the decrypted key hash value, and verifies the decrypted timestamp dynamic key according to the decrypted key hash value to determine whether the second timestamp dynamic key has been tampered with.
[0053] In one embodiment, the specific implementation method of the above step 230 may be: perform hash calculation on the second timestamp dynamic key to obtain the verification key hash value of the second timestamp dynamic key; calculate the difference between the verification key hash value and the second key hash value; if the difference is less than a preset difference threshold, determine that the verification result is qualified.
[0054] Specifically, after receiving the second timestamp dynamic key and the second key hash value, the intelligent cockpit control domain performs a hash calculation on the second timestamp dynamic key to obtain the verification key hash value of the second timestamp dynamic key, and then compares the verification key hash value with the second key hash value to obtain the difference between the verification key hash value and the second key hash value. If the difference is less than the difference threshold (that is, it is small, and the verification key hash value and the second key hash value can be considered to be consistent), it is determined that the second timestamp dynamic key has not been tampered with, and the verification result is determined to be qualified.
[0055] In one embodiment, after step 240, the above-mentioned OTA upgrade security management method may further include: performing scrambling calculation on the second timestamp dynamic key to obtain an obfuscated key; and saving the obfuscated key to a non-secure area.
[0056] After the real second timestamp dynamic key is saved in the secure area, the present application performs scrambling calculation on the second timestamp dynamic key to obtain a decoy key and save it in a non-secure area (e.g., a key scrambling mapping table); wherein the scrambling calculation can be calculated based on the time when the second timestamp dynamic key is saved. The present application obtains a decoy key through scrambling calculation and saves it in a non-secure area to confuse intruders, thereby achieving anti-attack and anti-infiltration.
[0057] In one embodiment, the above-mentioned OTA upgrade security management method may further include: after the OTA upgrade is completed, deleting the second timestamp dynamic key in the security area.
[0058] In order to further improve the security of the secret key, this application deletes the second timestamp dynamic key in the security area after the OTA upgrade is completed to ensure the security of the real secret key, thereby reducing the possibility of attack.
[0059] Figure 3 1 is a schematic diagram of the structure of the OTA upgrade security management device provided by an exemplary embodiment of the present application. The first OTA upgrade security management device is set in the vehicle controller of the OTA upgrade system. The OTA upgrade system includes the vehicle controller and the smart cockpit control domain. The vehicle controller and the smart cockpit control domain are connected through the vehicle integrated network management communication; Figure 3As shown, the security management device 30 for the first OTA upgrade includes: a request receiving module 31, used to receive the OTA upgrade key request sent by the smart cockpit control domain; a key generation module 32, used to generate a first timestamp dynamic key according to the key request; wherein the first timestamp dynamic key is calculated according to the current time; a hash calculation module 33, used to perform hash calculation on the first timestamp dynamic key to obtain the first key hash value of the first timestamp dynamic key; a key sending module 34, used to use different channels of the vehicle integrated network management to respectively send the first timestamp dynamic key and the first key hash value to the smart cockpit control domain, so that the smart cockpit control domain can verify the first timestamp dynamic key.
[0060] The first OTA upgrade security management device provided in the present application, the request receiving module 31 of the whole vehicle controller receives the OTA upgrade key request sent by the smart cockpit control domain, the key generation module 32 generates a first timestamp dynamic key according to the key request, wherein the first timestamp dynamic key is calculated according to the current time, the hash calculation module 33 performs hash calculation on the first timestamp dynamic key to obtain the first key hash value of the first timestamp dynamic key, and the key sending module 34 uses different channels of the whole vehicle integrated network management to send the first timestamp dynamic key and the first key hash value to the smart cockpit control domain respectively; that is, when there is an OTA upgrade demand, the whole vehicle controller The device generates a timestamp dynamic key according to the key request sent by the smart cockpit control domain and the current time, and calculates the corresponding key hash value based on the timestamp dynamic key. The timestamp dynamic key and the key hash value are sent to the smart cockpit control domain through different channels of the vehicle integrated network management, so that the smart cockpit control domain can verify the received timestamp dynamic key according to the received key hash value. After the verification is qualified, the timestamp dynamic key is saved to the secure area for OTA upgrade for key verification. By generating a dynamic key containing a timestamp, the risk of key tampering is reduced. At the same time, the key hash value is used to verify the dynamic key to further improve the security of the key.
[0061] In one embodiment, the security management device 30 for the above-mentioned first OTA upgrade can be further configured to: encrypt the first timestamp dynamic key and the first key hash value to obtain the first encrypted timestamp dynamic key and the first encrypted key hash value; correspondingly, the key sending module 34 can be further configured to: use different channels of the vehicle integrated network management to respectively send the first encrypted timestamp dynamic key and the first encrypted key hash value.
[0062] Figure 41 is a schematic diagram of the structure of the OTA upgrade security management device provided by another exemplary embodiment of the present application. The second OTA upgrade security management device is set in the smart cockpit control domain of the OTA upgrade system. The OTA upgrade system includes a vehicle controller and a smart cockpit control domain. The vehicle controller and the smart cockpit control domain are connected through the vehicle integrated network management communication; Figure 4 As shown, the security management device 40 for the second OTA upgrade includes: a request sending module 41, used to send a key request for OTA upgrade to the vehicle controller; a key receiving module 42, used to receive the second timestamp dynamic key and the second key hash value sent by the vehicle controller through different channels of the vehicle integrated network management; a key verification module 43, used to verify the second timestamp dynamic key according to the second key hash value; a key saving module 44, used to save the second timestamp dynamic key to a safe area if the verification result is qualified, so as to perform key verification during the OTA upgrade process.
[0063] The second OTA upgrade security management device provided in the present application, the request sending module 41 of the smart cockpit control domain sends a key request for OTA upgrade to the vehicle controller, the key receiving module 42 receives the second timestamp dynamic key and the second key hash value sent by the vehicle controller through different channels of the vehicle integrated network management, the key verification module 43 verifies the second timestamp dynamic key according to the second key hash value, if the verification result is qualified, the key saving module 44 saves the second timestamp dynamic key to a secure area for key verification during the OTA upgrade process; that is, when there is a need for OTA upgrade, the smart cockpit control domain sends a key request to the vehicle controller, and accepts the timestamp dynamic key and key hash value from different channels of the vehicle integrated network management, verifies the received timestamp dynamic key according to the received key hash value, and saves the timestamp dynamic key to the secure area after the verification is qualified for key verification for OTA upgrade, and reduces the risk of key tampering by generating a dynamic key containing a timestamp, and further improves the security of the key by verifying the dynamic key using the key hash value.
[0064] In one embodiment, the second timestamp dynamic key includes a second encrypted timestamp dynamic key, and the second key hash value includes a second encrypted key hash value; wherein the above-mentioned key verification module 43 can be further configured to: decrypt the second encrypted timestamp dynamic key and the second encrypted key hash value to obtain the decrypted timestamp dynamic key and the decrypted key hash value; and verify the decrypted timestamp dynamic key according to the decrypted key hash value.
[0065] In one embodiment, the key verification module 43 can be further configured to: perform hash calculation on the second timestamp dynamic key to obtain a verification key hash value of the second timestamp dynamic key; calculate the difference between the verification key hash value and the second key hash value; if the difference is less than a preset difference threshold, determine that the verification result is qualified.
[0066] In one embodiment, the security management device 40 for the second OTA upgrade may be further configured to: perform scrambling calculation on the second timestamp dynamic key to obtain a decoy key; and save the decoy key to a non-secure area.
[0067] In one embodiment, the security management device 40 for the second OTA upgrade may be further configured to: delete the second timestamp dynamic key in the security area after the OTA upgrade is completed.
[0068] The present application also provides an OTA upgrade system, including a vehicle controller and an intelligent cockpit control domain, wherein the vehicle controller and the intelligent cockpit control domain are connected through a vehicle integrated network management communication; wherein the vehicle controller is used to: receive an OTA upgrade key request sent by the intelligent cockpit control domain; generate a first timestamp dynamic key according to the key request, wherein the first timestamp dynamic key is calculated according to the current time, the first timestamp dynamic key is hashed to obtain a first key hash value of the first timestamp dynamic key, and the first timestamp dynamic key and the first key hash value are respectively sent to the intelligent cockpit control domain through different channels of the vehicle integrated network management; the intelligent cockpit control domain is used to: send an OTA upgrade key request to the vehicle controller, receive a second timestamp dynamic key and a second key hash value respectively sent by the vehicle controller through different channels of the vehicle integrated network management, verify the second timestamp dynamic key according to the second key hash value, and if the verification result is qualified, save the second timestamp dynamic key to a secure area for key verification during the OTA upgrade process.
[0069] The present application provides an OTA upgrade system, in which a vehicle controller receives an OTA upgrade key request sent by a smart cockpit control domain, generates a first timestamp dynamic key according to the key request, wherein the first timestamp dynamic key is calculated according to the current time, performs a hash calculation on the first timestamp dynamic key to obtain a first key hash value of the first timestamp dynamic key, and uses different channels of the vehicle integrated network management to send the first timestamp dynamic key and the first key hash value to the smart cockpit control domain respectively; the smart cockpit control domain sends an OTA upgrade key request to the vehicle controller, receives a second timestamp dynamic key and a second key hash value sent by the vehicle controller through different channels of the vehicle integrated network management respectively, verifies the second timestamp dynamic key according to the second key hash value, and if the verification result is qualified, the second timestamp dynamic key is The timestamp dynamic key is saved in a secure area for key verification during the OTA upgrade process; that is, when there is a need for OTA upgrade, the smart cockpit control domain sends a key request to the vehicle controller, the vehicle controller generates a timestamp dynamic key according to the current time, and calculates the corresponding key hash value based on the timestamp dynamic key, and uses different channels of the vehicle integrated network management to send the timestamp dynamic key and the key hash value to the smart cockpit control domain respectively. The smart cockpit control domain verifies the received timestamp dynamic key according to the received key hash value, and saves the timestamp dynamic key to the secure area for key verification during OTA upgrade after qualified verification. By generating a dynamic key containing a timestamp, the risk of key tampering is reduced, and the key hash value is used to verify the dynamic key to further improve the security of the key.
[0070] Below, reference Figure 5 The electronic device according to the embodiment of the present application is described. The electronic device may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signal from them.
[0071] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is illustrated.
[0072] like Figure 5 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .
[0073] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0074] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the methods of the various embodiments of the present application described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0075] In one example, the electronic device 10 may further include: an input device 13 and an output device 14 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0076] When the electronic device is a stand-alone device, the input device 13 may be a communication network connector, which is used to receive the collected input signals from the first device and the second device.
[0077] In addition, the input device 13 may also include, for example, a keyboard, a mouse, etc.
[0078] The output device 14 can output various information to the outside, including the determined distance information, direction information, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0079] Of course, to simplify, Figure 5 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.
[0080] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
[0081] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0082] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0083] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0084] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0085] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0086] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0087] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0088] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A security management method for OTA upgrades, It is characterized in that A vehicle controller applied to an OTA upgrade system, wherein the OTA upgrade system includes the vehicle controller and an intelligent cockpit control domain, and the vehicle controller and the intelligent cockpit control domain are connected through a vehicle integrated network management communication; The OTA upgrade security management method includes: Receiving a key request for OTA upgrade sent by the smart cockpit control domain; Generate a first timestamp dynamic key periodically according to the key request; wherein the first timestamp dynamic key is calculated according to the current time; Performing hash calculation on the first timestamp dynamic key to obtain a first key hash value of the first timestamp dynamic key; Encrypting the first timestamp dynamic key and the first key hash value to obtain a first encrypted timestamp dynamic key and a first encrypted key hash value; The first encryption timestamp dynamic key and the first encryption key hash value are respectively sent to the smart cockpit control domain through different channels of the vehicle integrated network management, so that the smart cockpit control domain can verify the first encryption timestamp dynamic key; the smart cockpit control domain performs scrambling calculation on the first encryption timestamp dynamic key to obtain a confused key, and saves the confused key to a non-secure area.
2. A security management method for OTA upgrades, It is characterized in that An intelligent cockpit control domain applied to an OTA upgrade system, wherein the OTA upgrade system includes a vehicle controller and the intelligent cockpit control domain, and the vehicle controller and the intelligent cockpit control domain are connected via a vehicle integrated network management communication; The OTA upgrade security management method includes: Sending a key request for OTA upgrade to the vehicle controller; Receiving a second timestamp dynamic key and a second key hash value respectively sent by the vehicle controller through different channels of the vehicle integrated network management; the second timestamp dynamic key includes a second encrypted timestamp dynamic key, the second timestamp dynamic key is generated periodically, and the second key hash value includes a second encrypted key hash value; Decrypting the second encryption timestamp dynamic key and the second encryption key hash value to obtain a decryption timestamp dynamic key and a decryption key hash value; Verify the decryption timestamp dynamic key according to the decryption key hash value; If the verification result is qualified, the second encrypted timestamp dynamic key is saved in a secure area for key verification during the OTA upgrade process; Performing scrambling calculation on the second encryption timestamp dynamic key to obtain a decoy key; The obfuscated key is saved in a non-secure area.
3. The OTA upgrade security management method according to claim 2, It is characterized in that The verifying the second timestamp dynamic key according to the second key hash value comprises: Performing hash calculation on the second timestamp dynamic key to obtain a verification key hash value of the second timestamp dynamic key; Calculating a difference between the verification key hash value and the second key hash value; If the difference is less than a preset difference threshold, it is determined that the verification result is qualified.
4. The OTA upgrade security management method according to claim 2, It is characterized in that The OTA upgrade security management method also includes: After the OTA upgrade is completed, the second timestamp dynamic key in the security area is deleted.
5. An OTA upgrade system, It is characterized in that It includes a vehicle controller and an intelligent cockpit control domain, wherein the vehicle controller and the intelligent cockpit control domain are connected via a vehicle integrated network management communication; Wherein, the vehicle controller is used for: Receiving a key request for OTA upgrade sent by the smart cockpit control domain; Generate a first timestamp dynamic key periodically according to the key request; wherein the first timestamp dynamic key is calculated according to the current time; Performing hash calculation on the first timestamp dynamic key to obtain a first key hash value of the first timestamp dynamic key; Encrypting the first timestamp dynamic key and the first key hash value to obtain a first encrypted timestamp dynamic key and a first encrypted key hash value; Using different channels of the vehicle integrated network management system to respectively send the first encryption timestamp dynamic key and the first encryption key hash value to the smart cockpit control domain; The smart cockpit control domain is used for: Sending a key request for OTA upgrade to the vehicle controller; Receiving a second timestamp dynamic key and a second key hash value respectively sent by the vehicle controller through different channels of the vehicle integrated network management; the second timestamp dynamic key includes a second encrypted timestamp dynamic key, and the second key hash value includes a second encrypted key hash value; Decrypting the second encryption timestamp dynamic key and the second encryption key hash value to obtain a decryption timestamp dynamic key and a decryption key hash value; Verify the decryption timestamp dynamic key according to the decryption key hash value; If the verification result is qualified, the second encrypted timestamp dynamic key is saved in a secure area for key verification during the OTA upgrade process; Performing scrambling calculation on the second encryption timestamp dynamic key to obtain a decoy key; The obfuscated key is saved in a non-secure area.
6. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to execute the OTA upgrade security management method described in any one of claims 1-4 above.
7. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the OTA upgrade security management method described in any one of claims 1-4 above.
