Method and device for testing Ethernet communication protocol in vehicle, processor and vehicle

By obtaining and testing the encrypted message fields and key information of the Ethernet communication protocol in the vehicle, and using the automated testing system to determine the security status of the protocol, the problem of testing the Ethernet communication protocol in the vehicle is solved, and security and testing efficiency are improved.

CN118677659APending Publication Date: 2024-09-20CHINA FAW CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410732494.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing technologies fail to effectively test Ethernet communication protocols in vehicles, leaving vehicles vulnerable to hacker attacks and data leaks.

Method used

By obtaining the original message fields encrypted by the Ethernet communication protocol in the vehicle, the authentication information is determined based on the corresponding key information, and testing is performed to determine the security status of the protocol. Using the key and algorithm library traversal, the automated test system extracts and compares the MAC value. , to ensure the comprehensiveness and accuracy of the test.

Benefits of technology

It achieves effective testing of Ethernet communication protocols in vehicles, improves communication security, reduces the risk of remote control and data leakage, and improves test efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677659A
    Figure CN118677659A
Patent Text Reader

Abstract

The invention discloses a method and a device for testing an Ethernet communication protocol in a vehicle, a processor and the vehicle. The method comprises the following steps: acquiring an original message field encrypted through an Ethernet communication protocol in a vehicle; on the basis of key information corresponding to the Ethernet communication protocol, authentication information corresponding to the original message field is determined, and the authentication information is used for representing the integrity of the original message field; the authentication information is tested, a test result is obtained, and the test result is used for representing whether the Ethernet communication protocol is in a safe state or not. The technical problem that the Ethernet communication protocol in the vehicle cannot be effectively tested is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Ethernet communication protocol testing, and in particular to a method, device, processor and vehicle for testing an Ethernet communication protocol in a vehicle. Background Art

[0002] At present, with the development of vehicle intelligence, there are more and more electronic control units (Electronic Control Unit, referred to as ECU) inside the vehicle, and a large amount of communication is required between these units. However, the internal communication environment of the vehicle is complex and vulnerable to hacker attacks, resulting in remote control of the vehicle or data leakage. Therefore, the vehicle Ethernet secure communication controller (Secure Communication Controller, referred to as SECOC) came into being as a security protocol for internal vehicle communication. It determines the completeness, authenticability and anti-replay of the internal vehicle communication through expedited and authentication technology. However, there is currently no method that can test the Ethernet communication protocol in the vehicle. Therefore, there is still a technical problem that the Ethernet communication protocol in the vehicle cannot be effectively tested.

[0003] Currently, no effective solution has been proposed for the above-mentioned technical problem of being unable to effectively test the Ethernet communication protocol in the vehicle. Summary of the invention

[0004] Embodiments of the present invention provide a method, device, processor and vehicle for testing an Ethernet communication protocol in a vehicle, so as to at least solve the technical problem that the Ethernet communication protocol in a vehicle cannot be effectively tested.

[0005] According to one aspect of an embodiment of the present invention, a method for testing an Ethernet communication protocol in a vehicle is provided. The method may include: obtaining an original message field encrypted by the Ethernet communication protocol in the vehicle; determining authentication information corresponding to the original message field based on key information corresponding to the Ethernet communication protocol, wherein the authentication information is used to characterize the integrity of the original message field; testing the authentication information to obtain a test result, wherein the test result is used to indicate whether the Ethernet communication protocol is in a secure state.

[0006] Optionally, the testing method of the Ethernet communication protocol in a vehicle is applied to a testing system of the Ethernet communication protocol, wherein the testing system includes a message field extraction module, wherein obtaining the original message field in the vehicle to be encrypted by the Ethernet communication protocol includes: using the message field extraction module to determine the message information corresponding to the message identifier; extracting the original message field from the message information; the method also includes: extracting the authentication information byte segment from the message information.

[0007] Optionally, the test system includes a key algorithm traversal module and an authentication information calculation module, the key information includes a key and an algorithm, wherein, before determining the authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, the method also includes: controlling the message field extraction module to transmit the original message field and the authentication information byte segment to the key algorithm traversal module; in response to the key algorithm traversal module receiving the original message field and the authentication information byte segment, using the key algorithm traversal module to traverse the key from the key library and traverse the algorithm from the algorithm library to obtain the key and algorithm; transmitting the key and algorithm, as well as the authentication information byte segment to the authentication information calculation module.

[0008] Optionally, the test system includes an authentication information comparison module, which determines the authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, including: in response to the authentication information calculation module receiving the key and algorithm, inputting the key and algorithm into the hash function to determine the authentication information; the method also includes: transmitting the authentication information and the received authentication information byte segment to the authentication information comparison module.

[0009] Optionally, the authentication information is tested to obtain a test result, including: in an authentication information comparison module, comparing the authentication information and the authentication information byte segment to obtain a comparison result; in response to the comparison result being that the authentication information and the authentication information byte segment are the same, determining the test result is that the Ethernet communication protocol is in an abnormal state, wherein the abnormal state is used to indicate that the algorithm and the key are easily deciphered successfully; in response to the comparison result being that the authentication information and the authentication information byte segment are not the same, determining the test result is that the Ethernet communication protocol is in a secure state, wherein the secure state is used to indicate that the algorithm and the key are not easily deciphered successfully.

[0010] Optionally, after determining that the test result is that the Ethernet communication protocol is in an abnormal state, the method also includes: generating a test report corresponding to the abnormal state; detecting the keys in the key library and the algorithms in the algorithm library to obtain a first detection result, wherein the first detection result is used to indicate whether the keys and algorithms have been traversed; in response to the first detection result that the keys and algorithms have been traversed, detecting the original message field to obtain a second detection result, wherein the second detection result is used to indicate whether the message identifier corresponding to the message information containing the original message field has been traversed; in response to the second detection result that the message identifier has not been traversed, determining the message information corresponding to the next message identifier of the message identifier until the message identifier does not have a next message identifier; in response to the first detection result that the keys and algorithms have not been traversed, using the next key and next algorithm corresponding to the key and algorithm respectively, determine the corresponding authentication information until the key does not have a next key and the algorithm does not have a next algorithm.

[0011] Optionally, after determining that the Ethernet communication protocol is in an abnormal state, the method further includes: determining a security policy for resolving the abnormal state; and processing the abnormal state using the security policy to put the Ethernet communication protocol in a safe state.

[0012] According to another aspect of an embodiment of the present invention, a testing device for an Ethernet communication protocol in a vehicle is also provided. The device may include: an acquisition unit, used to acquire an original message field encrypted by an Ethernet communication protocol in a vehicle; a determination unit, used to determine authentication information corresponding to the original message field based on key information corresponding to the Ethernet communication protocol, wherein the authentication information is used to characterize the integrity of the original message field; and a testing unit, used to test the authentication information to obtain a test result, wherein the test result is used to indicate whether the Ethernet communication protocol is in a secure state.

[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for testing the Ethernet communication protocol in a vehicle according to an embodiment of the present invention.

[0014] According to another aspect of an embodiment of the present invention, a processor is provided, wherein the processor is used to run a program, wherein when the program is run, the method for testing the Ethernet communication protocol in a vehicle according to an embodiment of the present invention is executed.

[0015] According to another aspect of an embodiment of the present invention, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, the method for testing the Ethernet communication protocol in a vehicle according to the embodiment of the present application is implemented.

[0016] According to another aspect of an embodiment of the present invention, a vehicle is further provided, which is used to execute the method for testing the Ethernet communication protocol in a vehicle according to the embodiment of the present application.

[0017] In an embodiment of the present invention, the original message field encrypted by the Ethernet communication protocol in the vehicle can be extracted, and the key information corresponding to the Ethernet communication protocol can be traversed. Through the key information, the authentication information corresponding to the original message field can be determined, and through the authentication information, whether the above original message field is complete can be determined, that is, the test result can be determined in the process of testing the authentication information. If the authentication information indicates that the above original message field is complete, it can be said that the key information is successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in an abnormal state. If the above original message field of the authentication information is incomplete, it can be said that the key information is not successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in a safe state. In an embodiment of the present invention, through the above method, each key information in the Ethernet communication protocol is traversed, and the authentication information is determined to verify whether each key information is successfully deciphered, to analyze whether the Ethernet communication protocol at this time is in an abnormal state, to prevent the risk of remote control or data leakage of the vehicle, thereby realizing the technical problem of being able to effectively test the Ethernet communication protocol in the vehicle, and solving the technical problem of being unable to effectively test the Ethernet communication protocol in the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 is a flow chart of a method for testing an Ethernet communication protocol in a vehicle according to an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of an automated fuzzy testing system for Ethernet communication security according to an embodiment of the present invention;

[0021] Figure 3 is a flow chart of a fuzzy testing method for Ethernet communication security according to an embodiment of the present invention;

[0022] Figure 4 is a schematic diagram of a testing device for an Ethernet communication protocol in a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products or devices.

[0025] Example 1

[0026] According to an embodiment of the present invention, an embodiment of a method for testing an Ethernet communication protocol in a vehicle is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0027] Figure 1 is a flow chart of a method for testing an Ethernet communication protocol in a vehicle according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:

[0028] Step S102, obtaining the original message field encrypted by the Ethernet communication protocol in the vehicle.

[0029] In the technical solution provided in the above step S102 of the present invention, the Ethernet communication protocol may be Ethernet SECOC. The original message field may also be referred to as the original byte segment of the Ethernet message. The original Ethernet byte segment is contained in the Ethernet message. The Ethernet message may be an Ethernet message that has been subjected to the SECOC strategy, that is, it may be an Ethernet message encrypted by the Ethernet communication protocol. The Ethernet message may also contain a message authentication code (MAC) byte segment.

[0030] Optionally, Ethernet SECOC employs various security measures, such as encryption and identity authentication, to ensure that data is not subject to unauthorized access or tampering during transmission. This protects sensitive data in the network, such as personal information, financial data, etc., from the threat of hackers or other malicious attacks. The implementation of the SECOC protocol can improve the security of Ethernet networks, making them more suitable for handling confidential or sensitive information.

[0031] Optionally, the original byte segment of the Ethernet message refers to the original data part in the Ethernet data frame. The original byte segment of the Ethernet message includes the contents of some fields, as well as other possible control fields and frame check sequences. The original byte segment may also include some control fields, such as a frame start mark, a frame check sequence, etc. These fields are used to identify the beginning and end of the data frame and verify the integrity of the frame. All these contents constitute the original byte segment of the Ethernet message, which is a data unit transmitted in network communication. It should be noted that the contents included in the above-mentioned original byte segment are only for illustration and are not specifically limited here.

[0032] Optionally, an Ethernet message refers to a data unit transmitted in Ethernet communication, which contains information exchanged between the communicating parties, and can be data in the form of text, images, audio, video, etc. The original byte segment and MAC byte segment of the Ethernet message constitute part of the entire Ethernet message. Specifically, the original byte segment and MAC byte segment of the Ethernet message are specific parts that constitute the entire Ethernet data frame. The original byte segment includes all bytes of the data frame, including the destination MAC address, source MAC address, type / length field, and data field. The MAC byte segment is a specific part of the original byte segment, that is, the field containing the destination MAC address and the source MAC address. Therefore, the original byte segment and MAC byte segment are part of the entire Ethernet message, and they play an important role in Ethernet communication, and are used to transmit data in the network and ensure that the data reaches the destination.

[0033] In this embodiment, if the Ethernet communication protocol in the vehicle needs to be tested, the original message field encrypted by the Ethernet communication protocol can be obtained first.

[0034] Optionally, an Ethernet message that has been subjected to a SECOC policy is obtained, and the original message field and the MAC byte segment can be extracted from the Ethernet message.

[0035] Step S104: Determine authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol.

[0036] In the technical solution provided in the above step S104 of the present invention, the key information can be a key in a key library and an algorithm in an algorithm library used for encryption and transmission in the Ethernet communication protocol. The authentication information can be used to characterize the integrity of the original message field, and can also be called a MAC value, which can be a MAC value calculated using an algorithm and a key.

[0037] Optionally, the MAC value is a technology used to verify the integrity and authenticity of the message, usually by encrypting or hashing the message to generate a fixed-length value to ensure that the message has not been tampered with during transmission. The MAC value will be used to compare with the extracted MAC byte segment to verify the integrity and authenticity of the message.

[0038] In this embodiment, after the original message field encrypted by the Ethernet communication protocol in the vehicle is obtained, the key information corresponding to the Ethernet communication protocol can be traversed, and the authentication information can be determined using the traversed key information.

[0039] Optionally, after extracting the original field of the Ethernet message and the MAC byte segment from the Ethernet message, the algorithm library and the key library may be traversed, and the MAC value may be calculated using the traversed algorithm and key.

[0040] Step S106, testing the authentication information to obtain a test result.

[0041] In the technical solution of step S106 of the present invention, the test result can be used to indicate whether the Ethernet communication protocol is in a safe state or an abnormal state. The safe state can be used to indicate that the corresponding key information in the Ethernet communication protocol is not easy to be deciphered. The abnormal state can be used to indicate that the corresponding key information in the Ethernet communication protocol is easy to be deciphered.

[0042] In this embodiment, after the authentication information corresponding to the original message field is calculated based on the key information, the authentication information can be tested to obtain a test result of whether the Ethernet communication protocol is secure.

[0043] Optionally, after the MAC value is calculated, it can be compared with the MAC byte segment obtained from the Ethernet message to determine the test result. For example, if the two are the same, it can be said that the key information traversed at this time can be easily deciphered, and the Ethernet communication protocol at this time is in an abnormal state. If the two are different, it can be said that the key information traversed at this time has not been deciphered, and the Ethernet communication protocol at this time is in a normal state.

[0044] Optionally, after traversing the current key information, other key information can also be traversed, and the corresponding authentication information can be calculated using the other key information to determine whether the other key information is easy to decipher. After traversing all the key information, the test of the Ethernet communication protocol can be terminated.

[0045] In the embodiment of the present invention, a fuzzy testing method for Ethernet SECOC testing is proposed, which can be used to perform fuzzy testing on Ethernet communication security, which is an important contribution to the field. By adopting an automated testing system, the original byte segment and MAC byte segment of the message can be automatically extracted, the key library and algorithm library can be traversed, the MAC value can be calculated and compared, which greatly improves the test efficiency and reduces the workload of manual operation. This helps to speed up the test and improve work efficiency. By traversing all possible keys and algorithms in an automated manner, the possibility of algorithms and keys can be more comprehensively covered, loopholes can be avoided, and the security of the system can be improved. This helps to ensure the security and stability of the system. By adopting an automated testing method, manual intervention is reduced, thereby reducing the error rate caused by manual operation and improving the accuracy of the test. This helps to ensure the accuracy and reliability of the test results. The test process is carried out through preset functions and programs, with high repeatability and traceability, which is conducive to the analysis and improvement of the test results. This helps to ensure the reliability of the test results and facilitates the analysis and improvement of the test results. The algorithm library supports updates, can adapt to different security requirements, and has strong adaptability. This helps ensure that the system can adapt to changing security requirements and environments, maintaining the security and stability of the system. Therefore, this technical solution proposes a comprehensive, efficient and automated testing method, which is expected to provide strong support for the security of Ethernet SECOC.

[0046] In the above steps S102 to S106 of the present application, the original message field encrypted by the Ethernet communication protocol in the vehicle can be extracted, and the key information corresponding to the Ethernet communication protocol can be traversed. Through the key information, the authentication information corresponding to the original message field can be determined, and the authentication information can be used to determine whether the above original message field is complete, that is, the test result can be determined in the process of testing the authentication information. If the authentication information indicates that the above original message field is complete, it can be explained that the key information is successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in an abnormal state. If the above original message field of the authentication information is incomplete, it can be explained that the key information is not successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in a safe state. In an embodiment of the present invention, through the above method, each key information in the Ethernet communication protocol is traversed, and the authentication information is determined to verify whether each key information is successfully deciphered, to analyze whether the Ethernet communication protocol at this time is in an abnormal state, to prevent the risk of the vehicle being remotely controlled or data leaked, thereby realizing the technical problem of being able to effectively test the Ethernet communication protocol in the vehicle, and solving the technical problem of being unable to effectively test the Ethernet communication protocol in the vehicle.

[0047] The above method of this embodiment is further introduced below.

[0048] As an optional implementation method, the test method of the Ethernet communication protocol in a vehicle is applied to a test system of the Ethernet communication protocol, and the test system includes a message field extraction module, wherein step S102, obtaining the original message field in the vehicle to be encrypted by the Ethernet communication protocol, includes: using the message field extraction module to determine the message information corresponding to the message identifier; extracting the original message field from the message information; the method also includes: extracting the authentication information byte segment from the message information.

[0049] In this embodiment, in the process of obtaining the original message field to be encrypted by the Ethernet communication protocol in the vehicle, the message field extraction module in the test system of the Ethernet communication protocol can be used to determine the message information corresponding to the message identifier. The original message field and the authentication information field can be extracted from the message information.

[0050] Optionally, the test method of the Ethernet communication protocol in the vehicle is applied to the test system of the Ethernet communication protocol. The test system may include a message field extraction module. The message field extraction module can be used to extract the original message field and the authentication information field from the message information. The message information can be an Ethernet message. The message identifier can be a message identity information (Identification, referred to as ID), which can also be called an Ethernet message ID. The message information can be an Ethernet identifier. The test system of the Ethernet communication protocol in the vehicle can be an Ethernet submission letter security fuzzy test automation system.

[0051] Optionally, the host computer configuration can input the Ethernet message ID that has been implemented with the SECOC policy into the test system. The Ethernet message ID can be input into the message field extraction module.

[0052] Optionally, the Ethernet message that has been processed by the SECOC policy refers to the Ethernet message that has been processed by the SECOC (Secure Onboard Communication) security policy. SECOC is a protocol used to protect the security of internal vehicle communications. It ensures the security of internal vehicle communications through encryption and authentication technology. Therefore, the Ethernet message processed by the SECOC policy may include security measures such as encryption, authentication and integrity protection to ensure that the data is not tampered with or stolen during transmission. These security policies can ensure the security of internal vehicle communications and prevent unauthorized access and data tampering. Therefore, the Ethernet message that has been processed by the SECOC policy refers to the internal vehicle communication data that has been processed by the SECOC security policy to ensure its security.

[0053] Optionally, the message field extraction module may select an Ethernet message according to the ID, and extract an original byte segment and a MAC byte segment of the Ethernet message therefrom.

[0054] Optionally, the message field extraction module is used to extract the original byte segment and the MAC byte segment from the Ethernet message. These fields are key inputs for security testing and are used for subsequent testing and analysis.

[0055] As an optional implementation method, the test system includes a key algorithm traversal module and an authentication information calculation module, the key information includes a key and an algorithm, wherein, before determining the authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, the method also includes: controlling the message field extraction module to transmit the original message field and the authentication information byte segment to the key algorithm traversal module; in response to the key algorithm traversal module receiving the original message field and the authentication information byte segment, using the key algorithm traversal module to traverse the key from the key library and traverse the algorithm from the algorithm library to obtain the key and algorithm; transmitting the key and algorithm, as well as the authentication information byte segment to the authentication information calculation module.

[0056] In this embodiment, before determining the authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, the message field extraction module can also be controlled to transmit the original message field information and the authentication information byte segment to the key algorithm traversal module. After the key algorithm traversal module receives the original message field and the authentication information byte segment, the key algorithm traversal module can be used to traverse the key from the key library and traverse the algorithm from the algorithm library. The traversed key and algorithm, as well as the authentication information byte segment, can be transmitted to the authentication information calculation module.

[0057] Optionally, the test system may further include a key algorithm traversal module and an authentication information calculation module. The key information may include a key and an algorithm. The key algorithm traversal module may be used to traverse the keys in the key library and the algorithms in the algorithm library. The authentication information calculation module may be used to calculate authentication information based on the key and the algorithm, and may also be referred to as a MAC value calculation module.

[0058] Optionally, the key algorithm traversal module is used to traverse the key library and algorithm library to find possible encryption algorithms and keys. This ensures that the test system can cover all possible security settings to discover potential vulnerabilities and security issues.

[0059] Optionally, after the message field extraction module extracts the original byte segment and MAC byte segment of the Ethernet message, the algorithm key traversal module can be used to traverse the key library and algorithm library, and the traversed key and algorithm, as well as the original bytes of the Ethernet message, can be input into the MAC calculation module to calculate the MAC value.

[0060] As an optional implementation method, the test system includes an authentication information comparison module, wherein step S104, based on the key information corresponding to the Ethernet communication protocol, determines the authentication information corresponding to the original message field, including: in response to the authentication information calculation module receiving the key and algorithm, inputting the key and algorithm into the hash function to determine the authentication information; the method also includes: transmitting the authentication information and the received authentication information byte segment to the authentication information comparison module.

[0061] In this embodiment, in the process of determining the authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, when the authentication information calculation module receives the key and the algorithm, the key and the algorithm can be input into the hash function to determine the authentication information. The determined authentication information and the authentication information byte segment can be input into the authentication information comparison module.

[0062] Optionally, the authentication information comparison module may also be referred to as a MAC value comparison module, which may be used to compare the authentication information and the authentication information byte segment, that is, to compare the extracted MAC byte segment with the MAC value calculated this time. The MAC value comparison module is used to compare the extracted MAC byte segment with the MAC value calculated this time. This helps determine whether the message has been tampered with or forged during transmission.

[0063] Optionally, the MAC value calculation module is used to input the original bytes of the Ethernet message, the algorithm and key obtained in this traversal, and calculate the MAC value. The MAC value is an important security identifier for verifying the integrity and authenticity of the message.

[0064] For example, suppose that the SHA-256 (Secure Hash Algorithm 256-bit) encrypted hash message authentication code (HMAC) algorithm and a 128-bit key are used to calculate the MAC value. First, the original bytes of the Ethernet message can be used as input, and the key and HMAC-SHA256 algorithm are used for calculation. The result of the calculation is the generated MAC value.

[0065] It should be noted that the above hash function is only for illustration and no specific limitation is given here.

[0066] As an optional implementation method, step S106, testing the authentication information to obtain a test result, includes: in an authentication information comparison module, comparing the authentication information and the authentication information byte segment to obtain a comparison result; in response to the comparison result being that the authentication information and the authentication information byte segment are the same, determining that the test result is that the Ethernet communication protocol is in an abnormal state, wherein the abnormal state is used to indicate that the algorithm and the key are easily deciphered successfully; in response to the comparison result being that the authentication information and the authentication information byte segment are not the same, determining that the test result is that the Ethernet communication protocol is in a secure state, wherein the secure state is used to indicate that the algorithm and the key are not easily deciphered successfully.

[0067] In this embodiment, in the process of testing the authentication information and obtaining the test result, in the authentication information comparison module, the authentication information and the authentication information byte segment can be compared to obtain the comparison result. If the comparison result is that the authentication information and the authentication information byte segment are the same, it can be concluded that the test result is that the Ethernet information protocol is in an abnormal state. If the comparison result is that the authentication information and the authentication information byte segment are not the same, it can be determined that the test result is that the Ethernet communication protocol is in a safe state, wherein the abnormal state can be used to indicate that the algorithm and the key are easy to decipher successfully. The safe state is used to indicate that the algorithm and the key are not easy to decipher successfully.

[0068] Optionally, after the authentication information comparison module receives the authentication information and the authentication information byte segment, the two pieces of information may be compared to determine whether they are consistent. If they are consistent, it means that the current algorithm and key have been successfully deciphered, indicating that the Ethernet communication protocol is not secure. If they are inconsistent, it means that the current algorithm and key have not been successfully deciphered, indicating that the Ethernet communication protocol is secure.

[0069] Optionally, the MAC comparison module may compare the extracted MAC byte segment with the currently calculated MAC to determine whether they are consistent.

[0070] As an optional implementation mode, after determining that the test result is that the Ethernet communication protocol is in an abnormal state, the method also includes: generating a test report corresponding to the abnormal state; detecting the keys in the key library and the algorithms in the algorithm library to obtain a first detection result, wherein the first detection result is used to indicate whether the keys and algorithms have been traversed completely; in response to the first detection result that the keys and algorithms have been traversed completely, detecting the original message field to obtain a second detection result, wherein the second detection result is used to indicate whether the message identifier corresponding to the message information containing the original message field has been traversed completely; in response to the second detection result that the message identifier has not been traversed completely, determining the message information corresponding to the next message identifier of the message identifier until the message identifier does not have a next message identifier; in response to the first detection result that the keys and algorithms have not been traversed completely, using the next key and the next algorithm corresponding to the key and the algorithm respectively, determine the corresponding authentication information until the key does not have a next key and the algorithm does not have a next algorithm.

[0071] In this embodiment, after determining that the test result is that the Ethernet communication protocol is in an abnormal state, a test report corresponding to the abnormal state can also be generated, and whether there are still keys and algorithms in the key library and the algorithm library can be detected to obtain a first detection result. If the first detection result is that the key and algorithm are traversed, the original message field can be detected to obtain a second detection result. If the second detection result is that the message identifier has not been traversed, it can be determined that the next message represented by the message represents the corresponding message information until the message identifier does not have a next message identifier. If the first detection result is that the key and algorithm have not been traversed, the next key and algorithm corresponding to the key and algorithm can be used to determine the corresponding authentication information until the key does not have a next key and the algorithm does not have a next algorithm, wherein the first detection result can be used to indicate whether the key and algorithm have been traversed. The second detection result can be used to indicate whether the message identifier corresponding to the original message field and the message information has been traversed.

[0072] Optionally, if it is determined that the MAC byte segment is consistent with the MAC calculated this time, that is, the Ethernet communication protocol is in an abnormal state, the algorithm key traversal module determines whether the algorithms and keys in the key library and algorithm library have been traversed. If so, it can be determined whether the message ID has been traversed. If so, the test is terminated, otherwise, the traversal process can be continued.

[0073] As an optional implementation manner, after determining that the Ethernet communication protocol is in an abnormal state, the method further includes: determining a security policy for resolving the abnormal state; and processing the abnormal state using the security policy to put the Ethernet communication protocol in a safe state.

[0074] In this embodiment, after determining that the Ethernet communication protocol is in an abnormal state, a security policy for resolving the abnormal state may be determined, and the security policy may be used to process the abnormal state so that the Ethernet communication protocol is in a safe state.

[0075] Optionally, the original byte segment and MAC byte segment are extracted from the Ethernet message through a high-level programming language, such as a Python program. These fields are key inputs for security testing. Use a Python program to traverse the key library and algorithm library to find possible encryption algorithms and keys. This ensures that the test system can cover all possible security settings to discover potential vulnerabilities and security issues. Input the original bytes of the Ethernet message, the algorithm and key obtained in this traversal, and calculate the MAC value. Compare the extracted MAC byte segment with the MAC value calculated this time. This helps to determine whether the message has been tampered with or forged during transmission. Loop through all possible keys and algorithms, as well as message IDs, and generate a test report. In general, these steps constitute a complete test process for automatically testing the security of Ethernet SECOC. This automated approach is expected to improve test efficiency, accuracy, and comprehensiveness, thereby helping to discover potential security vulnerabilities and improve system security.

[0076] In an embodiment of the present invention, the original message field encrypted by the Ethernet communication protocol in the vehicle can be extracted, and the key information corresponding to the Ethernet communication protocol can be traversed, and the authentication information corresponding to the original message field can be determined through the key information, and whether the above original message field is complete can be determined through the authentication information, that is, the test result can be determined in the process of testing the authentication information. If the authentication information indicates that the above original message field is complete, it can be said that the key information is successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in an abnormal state. If the above original message field of the authentication information is incomplete, it can be said that the key information is not successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in a safe state. In an embodiment of the present invention, through the above method, each key information in the Ethernet communication protocol is traversed, and the authentication information is determined to verify whether each key information is successfully deciphered, to analyze whether the Ethernet communication protocol at this time is in an abnormal state, to prevent the risk of remote control or data leakage of the vehicle, thereby realizing the technical problem of being able to effectively test the Ethernet communication protocol in the vehicle, and solving the technical problem of being unable to effectively test the Ethernet communication protocol in the vehicle.

[0077] Example 2

[0078] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.

[0079] At present, with the development of automobile intelligence, the communication between ECUs inside the vehicle is increasing. However, since the internal communication environment of the vehicle is complex and vulnerable to hacker attacks, vehicle Ethernet SECOC has emerged as a security protocol. It ensures the integrity, authenticity and anti-replay of internal vehicle communications through encryption and authentication technology. There is currently no fuzz testing method for Ethernet SECOC, so a fuzz testing automation system and method for Ethernet communication security is proposed, which has high testing efficiency and accuracy and can cover all possibilities. Therefore, there is still a technical problem that the Ethernet communication protocol in the vehicle cannot be effectively tested.

[0080] However, the embodiment of the present invention proposes a fuzzy testing method for Ethernet communication security, which adopts an automated testing system, can automatically extract the original byte segment and MAC byte segment of the message, traverse the key library and algorithm library, calculate the MAC value and compare it, greatly improve the test efficiency, and reduce the workload of manual operation. This helps to speed up the test and improve work efficiency. By traversing all possible keys and algorithms in an automated manner, the possibility of algorithms and keys can be more comprehensively covered, loopholes can be avoided, and the security of the system is improved. This helps to ensure the security and stability of the system. An automated testing method is adopted to reduce manual intervention, thereby reducing the error rate caused by manual operation and improving the accuracy of the test. This helps to ensure the accuracy and reliability of the test results. The test process is carried out through preset functions and programs, has high repeatability and traceability, and is conducive to the analysis and improvement of the test results. This helps to ensure the reliability of the test results and facilitates the analysis and improvement of the test results. The algorithm library supports updates, can adapt to different security requirements, and has strong adaptability. This helps to ensure that the system can adapt to changing security requirements and environments and maintain the security and stability of the system. Therefore, this technical solution proposes a comprehensive, efficient and automated testing method, which is expected to provide strong support for the security of Ethernet SECOC. This solves the technical problem of being able to effectively test the Ethernet communication protocol in the vehicle and solves the technical problem of being unable to effectively test the Ethernet communication protocol in the vehicle.

[0081] The embodiments of the present invention are further described below.

[0082] In an embodiment of the present invention, Figure 2 is a schematic diagram of an automated fuzzy testing system for Ethernet communication security according to an embodiment of the present invention. Figure 2As shown, the test system 200 may include a message field extraction module 201, a key algorithm traversal module 202, a MAC value calculation module 203 and a MAC value comparison module 204. The controller under test 205 may be a SECOC, wherein the message field extraction module 201 is used to extract the original byte segment and MAC byte segment of the Ethernet message. The key algorithm traversal module 202 is used to traverse the key library and the algorithm library, and the algorithm library supports update. The MAC value calculation module 203 is used to input the original bytes of the Ethernet message, the algorithm and key obtained in this traversal, and obtain the MAC value. The MAC value comparison module 204 is used to compare the extracted MAC byte segment with the MAC calculated this time.

[0083] Figure 3 is a flow chart of a fuzzy testing method for Ethernet communication security according to an embodiment of the present invention. Figure 3 As shown, Figure 3 As shown, the method may include the following steps:

[0084] Step S301, host computer configuration, input Ethernet message ID for which SECOC policy has been implemented.

[0085] In this embodiment, the Ethernet message ID that has been implemented with the SECOC policy can be input into the test system through the configuration of the host computer.

[0086] Step S302: The message field extraction module selects an Ethernet message according to the ID, and extracts the original byte segment and the MAC byte segment of the Ethernet message.

[0087] In this embodiment, the message field extraction module extracts the original byte segment and the MAC byte segment of the Ethernet message. In this step, a computer equipped with an Ethernet bus interface is used to write the message field extraction module through a Python program to automatically extract the original byte segment and the MAC byte segment from the Ethernet message.

[0088] Step S303: the algorithm key traversal module traverses the key library and the algorithm library.

[0089] In this embodiment, the key algorithm traversal module traverses the key library and the algorithm library. In this step, a computer can be used to write a key algorithm traversal module through a Python program to traverse each possible key and algorithm. The number of keys in the key library is determined by the key length. The algorithm library supports continuous updating.

[0090] Step S304: input the original field of the Ethernet message, the algorithm and the key obtained in this traversal into a MAC value calculation module to obtain a MAC value.

[0091] In this embodiment, the original bytes of the Ethernet message, the algorithm and key obtained in this traversal are input to obtain the MAC value. In this step, a MAC value calculation module is written by a Python program, and the extracted original bytes of the Ethernet message, the algorithm and key obtained in this traversal are input into a preset function to obtain the MAC value.

[0092] Step S305: The MAC comparison module compares the extracted MAC byte segment with the currently calculated MAC to determine whether they are consistent.

[0093] In this embodiment, the MAC value comparison module compares the extracted MAC byte segment with the MAC calculated this time. The MAC value comparison module is written by Python program to compare the extracted MAC byte segment with the MAC calculated this time. If they are consistent, it means that the correct algorithm and key are found, and step S306 is executed; if they are inconsistent, step S307 is executed.

[0094] Step S306, determine whether the message ID has been traversed.

[0095] In this embodiment, if it is determined that the MAC byte segment and the MAC value are consistent, it can be determined whether the message ID has been traversed. If not, it can return to step S302. If the traversal is completed, the process can be terminated.

[0096] Optionally, determine whether the message ID has been traversed. If the traversal is completed, the test is completed, a test report is issued, and the entire process ends; if the traversal is not completed, execute step S302.

[0097] Step S307: the algorithm key traversal module determines whether the algorithms and keys in the key library and algorithm library have been traversed completely.

[0098] In this embodiment, it can be determined whether the keys in the key library in the algorithm key traversal module and the algorithms in the algorithm library have been traversed. If so, step S306 can be executed, otherwise, step S303 can be executed.

[0099] Optionally, the algorithm key traversal module determines whether the traversal of the algorithms and keys in the key library and the algorithm library is complete, and if so, executes step S306. If not, executes S303.

[0100] In the embodiment of the present invention, through these steps, the automation level of Ethernet SECOC fuzz testing can be effectively improved, manual operations can be reduced, test efficiency can be improved, the possibility of fully covering algorithms and keys can be avoided, and the omission of vulnerabilities can be avoided. At the same time, the error rate caused by manual intervention can be reduced, and the accuracy of the test can be improved.

[0101] In an embodiment of the present invention, the original message field encrypted by the Ethernet communication protocol in the vehicle can be extracted, and the key information corresponding to the Ethernet communication protocol can be traversed, and the authentication information corresponding to the original message field can be determined through the key information, and whether the above original message field is complete can be determined through the authentication information, that is, the test result can be determined in the process of testing the authentication information. If the authentication information indicates that the above original message field is complete, it can be said that the key information is successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in an abnormal state. If the above original message field of the authentication information is incomplete, it can be said that the key information is not successfully deciphered, and the test result can be obtained that the Ethernet communication protocol is in a safe state. In an embodiment of the present invention, through the above method, each key information in the Ethernet communication protocol is traversed, and the authentication information is determined to verify whether each key information is successfully deciphered, to analyze whether the Ethernet communication protocol at this time is in an abnormal state, to prevent the risk of remote control or data leakage of the vehicle, thereby realizing the technical problem of being able to effectively test the Ethernet communication protocol in the vehicle, and solving the technical problem of being unable to effectively test the Ethernet communication protocol in the vehicle.

[0102] Example 3

[0103] According to an embodiment of the present invention, a test device for Ethernet communication protocol in a vehicle is also provided. It should be noted that the test device for Ethernet communication protocol in a vehicle can be used to execute the test method for Ethernet communication protocol in a vehicle in embodiment 1.

[0104] Figure 4 1 is a schematic diagram of a test device for Ethernet communication protocol in a vehicle according to an embodiment of the present invention. Figure 4 As shown, the testing device 400 for the Ethernet communication protocol in the vehicle may include: an acquisition unit 402 , a determination unit 404 and a testing unit 406 .

[0105] The acquisition unit 402 is used to acquire the original message field encrypted by the Ethernet communication protocol in the vehicle.

[0106] The determination unit 404 is configured to determine the authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, wherein the authentication information is used to characterize the integrity of the original message field.

[0107] The testing unit 406 is used to test the authentication information to obtain a test result, wherein the test result is used to indicate whether the Ethernet communication protocol is in a secure state.

[0108] Optionally, the acquisition unit 402 may include: a first determination module, used to use a message field extraction module to determine the message information corresponding to the message identifier; an extraction module, used to extract the original message field from the message information; the device may also include: an extraction unit, used to extract the authentication information byte segment from the message information.

[0109] Optionally, the device may also include: a first control unit, used to control the message field extraction module to transmit the original message field and authentication information byte segment to the key algorithm traversal module; a traversal unit, used to respond to the key algorithm traversal module receiving the original message field and authentication information byte segment, using the key algorithm traversal module to traverse the key from the key library and traverse the algorithm from the algorithm library to obtain the key and algorithm; a first transmission unit, used to transmit the key and algorithm, as well as the authentication information byte segment to the authentication information calculation module.

[0110] Optionally, the determination unit 404 may include: a second determination module, used to input the key and algorithm into the hash function in response to the authentication information calculation module receiving the key and algorithm, to determine the authentication information; the device also includes: a second transmission unit, used to transmit the authentication information and the received authentication information byte segment to the authentication information comparison module.

[0111] Optionally, the test unit 406 may include: a comparison module, used to compare the authentication information and the authentication information byte segment in the authentication information comparison module to obtain a comparison result; a third determination module, used to determine, in response to the comparison result that the authentication information and the authentication information byte segment are the same, that the test result is that the Ethernet communication protocol is in an abnormal state, wherein the abnormal state is used to indicate that the algorithm and the key are easily deciphered successfully; a fourth determination module, used to determine, in response to the comparison result that the authentication information and the authentication information byte segment are not the same, that the test result is that the Ethernet communication protocol is in a secure state, wherein the secure state is used to indicate that the algorithm and the key are not easily deciphered successfully.

[0112] Optionally, the device may include: a generation unit, used to generate a test report corresponding to the abnormal state; a first detection unit, used to detect the keys in the key library and the algorithms in the algorithm library to obtain a first detection result, wherein the first detection result is used to indicate whether the keys and algorithms have been traversed completely; a second detection unit, used to detect the original message field in response to the first detection result that the keys and algorithms have been traversed completely, to obtain a second detection result, wherein the second detection result is used to indicate whether the message identifier corresponding to the message information containing the original message field has been traversed completely; a first determination unit, used to determine the message information corresponding to the next message identifier of the message identifier in response to the second detection result that the message identifier has not been traversed completely, until the message identifier does not have a next message identifier; a second determination unit, used to determine the corresponding authentication information using the next key and the next algorithm corresponding to the key and the algorithm respectively, in response to the first detection result that the keys and algorithms have not been traversed completely, until the key does not have a next key, and the algorithm does not have a next algorithm.

[0113] Optionally, the device may further include: a third determining unit, configured to determine a security policy for resolving the abnormal state; and a processing unit, configured to process the abnormal state using the security policy to put the Ethernet communication protocol in a safe state.

[0114] In an embodiment of the present invention, an original message field encrypted by an Ethernet communication protocol in a vehicle is acquired by an acquisition unit 402; authentication information corresponding to the original message field is determined by a determination unit 404 based on key information corresponding to the Ethernet communication protocol, wherein the authentication information is used to characterize the integrity of the original message field; the authentication information is tested by a test unit 406 to obtain a test result, wherein the test result is used to indicate whether the Ethernet communication protocol is in a secure state, thereby solving the technical problem that the Ethernet communication protocol in a vehicle cannot be effectively tested, and achieving the technical effect that the Ethernet communication protocol in a vehicle can be effectively tested.

[0115] Example 4

[0116] According to an embodiment of the present invention, a computer-readable storage medium is further provided. The storage medium includes a stored program, wherein the program executes the method for testing the Ethernet communication protocol in a vehicle in Embodiment 1.

[0117] Example 5

[0118] According to an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the method for testing the Ethernet communication protocol in a vehicle in embodiment 1 is executed when the program is run.

[0119] Example 6

[0120] The embodiment of the present application further provides a computer program product. Optionally, in the present embodiment, the computer program product may include a computer program, and when the computer program is executed by a processor, the method for testing the Ethernet communication protocol in a vehicle of the embodiment of the present application is implemented.

[0121] Example 7

[0122] According to an embodiment of the present invention, a vehicle is further provided. The vehicle is used to execute the method for testing the Ethernet communication protocol in a vehicle according to an embodiment of the present invention.

[0123] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0124] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0125] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program codes.

[0129] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for testing an Ethernet communication protocol in a vehicle, characterized in that: include: Obtaining the original message field encrypted by the Ethernet communication protocol in the vehicle; Determine authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, wherein the authentication information is used to characterize the integrity of the original message field; The authentication information is tested to obtain a test result, wherein the test result is used to indicate whether the Ethernet communication protocol is in a secure state.

2. The method according to claim 1, characterized in that The method for testing the Ethernet communication protocol in a vehicle is applied to a testing system for the Ethernet communication protocol, wherein the testing system comprises a message field extraction module, The original message fields to be encrypted and processed by the Ethernet communication protocol in the vehicle are obtained, including: Determine the message information corresponding to the message identifier by using the message field extraction module; Extracting the original message field from the message information; The method further includes: extracting an authentication information byte segment from the message information.

3. The method according to claim 2, characterized in that The test system includes a key algorithm traversal module and an authentication information calculation module, the key information includes a key and an algorithm, wherein before determining the authentication information corresponding to the original message field based on the key information corresponding to the Ethernet communication protocol, the method further includes: Control the message field extraction module to transmit the original message field and the authentication information byte segment to the key algorithm traversal module; In response to the key algorithm traversal module receiving the original message field and the authentication information byte segment, using the key algorithm traversal module to traverse the key from the key library and traverse the algorithm from the algorithm library to obtain the key and the algorithm; The key, the algorithm, and the authentication information byte segment are transmitted to the authentication information calculation module.

4. The method according to claim 3, characterized in that The test system includes an authentication information comparison module, wherein, based on the key information corresponding to the Ethernet communication protocol, determining the authentication information corresponding to the original message field includes: In response to the authentication information calculation module receiving the key and the algorithm, inputting the key and the algorithm into a hash function to determine the authentication information; The method further includes: transmitting the authentication information and the received authentication information byte segment to the authentication information comparison module.

5. The method according to claim 4, characterized in that The authentication information is tested to obtain test results, including: In the authentication information comparison module, the authentication information and the authentication information byte segment are compared to obtain a comparison result; In response to the comparison result being that the authentication information is identical to the authentication information byte segment, determining that the test result is that the Ethernet communication protocol is in an abnormal state, wherein the abnormal state is used to indicate that the algorithm and the key are easily deciphered successfully; In response to the comparison result being that the authentication information is different from the authentication information byte segment, it is determined that the test result is that the Ethernet communication protocol is in a secure state, wherein the secure state is used to indicate that the algorithm and the key are not easily deciphered successfully.

6. The method according to claim 5, characterized in that After determining that the test result is that the Ethernet communication protocol is in an abnormal state, the method further includes: Generate a test report corresponding to the abnormal state; Detecting the keys in the key library and the algorithms in the algorithm library to obtain a first detection result, wherein the first detection result is used to indicate whether the keys and the algorithms have been traversed completely; In response to the first detection result being that the key and the algorithm have been traversed completely, detecting the original message field to obtain a second detection result, wherein the second detection result is used to indicate whether the message identifier corresponding to the message information containing the original message field has been traversed completely; In response to the second detection result that the message identifier has not been traversed completely, determining the message information corresponding to the next message identifier of the message identifier until the message identifier does not have the next message identifier; In response to the first detection result that the key and the algorithm have not been traversed completely, the corresponding authentication information is determined using the next key and the next algorithm corresponding to the key and the algorithm respectively, until the key does not have the next key and the algorithm does not have the next algorithm.

7. The method according to claim 5, characterized in that After determining that the Ethernet communication protocol is in an abnormal state, the method further includes: Determining a security strategy to resolve the abnormal state; The abnormal state is processed by using a security policy to put the Ethernet communication protocol in the safe state.

8. A test device for Ethernet communication protocol in a vehicle, characterized in that: include: An acquisition unit, used for acquiring the original message field encrypted by the Ethernet communication protocol in the vehicle; A determining unit, configured to determine authentication information corresponding to the original message field based on key information corresponding to the Ethernet communication protocol, wherein the authentication information is used to characterize the integrity of the original message field; The testing unit is used to test the authentication information to obtain a test result, wherein the test result is used to indicate whether the Ethernet communication protocol is in a secure state.

9. A processor, characterized in that: The processor is used to run a program, wherein the program, when run by the processor, executes the method for testing the Ethernet communication protocol in a vehicle as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for testing the Ethernet communication protocol in a vehicle according to any one of claims 1 to 7.

11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method for testing the Ethernet communication protocol in a vehicle according to any one of claims 1 to 7.

12. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for testing the Ethernet communication protocol in a vehicle according to any one of claims 1 to 7.

13. A vehicle, characterized in that: A test method for executing an Ethernet communication protocol in a vehicle as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Data processing method and device, electronic equipment, storage medium and automobile

    CN119906768A