Vehicle information security test method and device, electronic equipment and readable storage medium
By testing the vehicle's communication information and abnormal message recognition capabilities in multiple functional scenarios, the problem of incomplete vehicle information security testing is solved, and a comprehensive evaluation of vehicle information security functions and security guarantees in practical applications are achieved.
Patent Information
- Application Number
- CN202411154577.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-21
Smart Images

Figure CN118890622A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle communication technology, and in particular to a vehicle information security testing method, device, electronic equipment and readable storage medium. Background Art
[0002] At present, with the rapid development of autonomous driving technology, vehicle-to-everything (V2X) technology has become one of the important technical means to achieve autonomous driving. V2X technology can make up for the lack of sight range of traditional on-board sensors such as cameras and radars, improve the perception of vehicles under special conditions such as intersections and bad weather, and significantly reduce the problems encountered by single-vehicle intelligence through vehicle-road collaboration technology, and reduce the cost of autonomous driving. However, since V2X technology transmits data through wireless communication, there are some information security risks in data transmission.
[0003] In related technologies, when testing the information security of V2X technology during the communication process, most of the tests are conducted on the vehicle's V2X communication function in a simulation environment, or on the communication protocol. However, such tests focus on specific scenarios or performance parameters and fail to fully cover the various scenarios and security threats that V2X technology may encounter in actual applications. Therefore, there is a technical problem of incomplete vehicle information security testing.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] Embodiments of the present invention provide a vehicle information security testing method, device, electronic device and readable storage medium to at least solve the technical problem that vehicle information security testing is incomplete.
[0006] According to one aspect of an embodiment of the present invention, a vehicle information security testing method is provided. The method includes: in response to the communication function of the vehicle to be tested being in a normal state, testing the communication state of the communication information of the vehicle to be tested in the current function scenario to be tested, wherein the communication information is generated during the communication of the vehicle to be tested in the current function scenario to be tested, the function scenario to be tested is used to indicate the scene of communication between the vehicle and other traffic participants, and the communication state is used to indicate that the communication information is in a safe state during the communication process, or the communication information is in an unsafe state during the communication process; in response to the communication state being a safe state, traversing the remaining function scenarios to be tested except the current function scenario to be tested in multiple function scenarios to be tested, and testing the communication state of the communication information of the vehicle to be tested in the remaining function scenarios to be tested; in response to the communication state of the communication information of the vehicle to be tested in the remaining function scenarios to be tested being a safe state when communicating, controlling the vehicle to be tested to move; in each of the multiple function scenarios to be tested, sending abnormal communication messages to the vehicle to be tested after moving, wherein the abnormal communication messages are used to indicate messages containing abnormal information; in response to the vehicle to be tested identifying the abnormal communication message, determining that the information security test of the vehicle to be tested is successful.
[0007] Optionally, testing the communication status of the communication information of the vehicle under test in the current functional scenario under test includes: sending a first communication message to the vehicle under test, wherein the first communication message is a message signed by a private key of a digital certificate; obtaining a first signature verification result of the first communication message by the vehicle under test, wherein the first signature verification result is obtained by the vehicle under test performing signature verification on the first communication message using the public key in the digital certificate; based on the first signature verification result, determining the communication status of the communication information of the vehicle under test in the current functional scenario under test.
[0008] Optionally, obtaining a first signature verification result of the vehicle under test for the first communication message includes: obtaining a verification result of the vehicle under test for the digital certificate in the first communication message, wherein the verification result is used to indicate the legality and validity of the digital certificate; in response to the verification result indicating that the digital certificate is legal and valid, obtaining the first signature verification result.
[0009] Optionally, based on the first signature verification result, determining the communication status of the communication information of the vehicle under test in the functional scenario under test includes: in response to the first signature verification result indicating that the first communication message is secure during transmission, determining that the communication information of the vehicle under test is in a secure state when communicating in the functional scenario under test.
[0010] Optionally, in response to the communication information being in a safe state, traverse the remaining functional scenarios to be tested except the current functional scenario to be tested in multiple functional scenarios to be tested, including: in response to the communication information of the vehicle to be tested being in a safe state in the current functional scenario to be tested, obtain a second communication message fed back by the vehicle to be tested, wherein the second communication message corresponds to the first communication message; determine the interval duration between sending the first communication message and receiving the second communication message; in response to the interval duration being less than a preset duration threshold, traverse the next functional scenario to be tested, and test the communication status of the communication information of the vehicle to be tested in the next functional scenario to be tested.
[0011] Optionally, the vehicle information security testing method also includes: forging the private key and the public key in the digital certificate to obtain a forged private key and a forged public key; signing a first communication message with the forged private key; sending the first communication message signed with the forged private key to the vehicle under test; obtaining a second signature verification result of the first communication message from the vehicle under test; and in response to the second signature verification result indicating that the vehicle under test has identified the forged private key and the forged public key, determining that the security authentication function of the vehicle under test is normal.
[0012] Optionally, after sending the abnormal communication message to the moved vehicle to be tested, the vehicle information security testing method also includes: obtaining the recognition result of the moved vehicle to be tested on the abnormal communication message; in response to the recognition result indicating that the moved vehicle to be tested recognizes the abnormal communication message, determining that the information security test of the vehicle to be tested is successful.
[0013] Optionally, the vehicle information security testing method further includes: sending a request message to the vehicle to be tested; and in response to receiving a response message fed back by the vehicle to be tested, determining that the communication function of the vehicle to be tested is in a normal state.
[0014] According to another aspect of an embodiment of the present invention, a vehicle information security testing device is also provided. The device includes: a first testing unit, which is used to test the communication status of the communication information of the vehicle under test in the current function scenario under test in response to the communication function of the vehicle under test being in a normal state, wherein the communication information is generated during the communication process of the vehicle under test in the current function scenario under test, the function scenario under test is used to indicate the scene of communication between the vehicle and other traffic participants, and the communication status is used to indicate that the communication information is in a safe state during the communication process, or that the communication information is in an unsafe state during the communication process; a second testing unit, which is used to traverse multiple function scenarios under test in response to the communication status being a safe state. The remaining functional scenarios to be tested except the current functional scenario to be tested are used to test the communication status of the communication information of the vehicle to be tested in the remaining functional scenarios to be tested; a control unit is used to control the movement of the vehicle to be tested in response to the communication status of the communication information of the vehicle to be tested in the remaining functional scenarios to be tested being a safe state; a third test unit is used to send abnormal communication messages to the moved vehicle to be tested in multiple functional scenarios to be tested, respectively, wherein the abnormal communication messages are used to indicate messages containing abnormal information; a determination unit is used to determine that the information security test of the vehicle to be tested is successful in response to the vehicle to be tested identifying the abnormal communication message.
[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, including: a memory storing an executable program; and a processor for running the program, wherein the vehicle information security testing method in each embodiment of the present invention is executed when the program is running.
[0016] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle information security testing method in each embodiment of the present invention.
[0017] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the vehicle information security testing method in each embodiment of the present invention is implemented.
[0018] According to another aspect of an embodiment of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle information security testing method in each embodiment of the present invention is implemented.
[0019] According to another aspect of an embodiment of the present invention, a computer program is further provided. When the computer program is executed by a processor, the vehicle information security testing method in each embodiment of the present invention is implemented.
[0020] In an embodiment of the present invention, when the communication function of the vehicle to be tested is in a normal state, multiple test function scenarios are traversed to test the communication status of the communication information of the vehicle to be tested when communicating in the multiple test function scenarios, respectively, so that the communication function of the vehicle to be tested can be comprehensively evaluated in different scenarios to ensure the communication security of the vehicle to be tested in different scenarios. When the communication status of the communication information of the vehicle to be tested in multiple test function scenarios is a safe state, the vehicle is controlled to move, and after the vehicle moves, the communication function of the vehicle is tested in multiple test function scenarios, which is helpful to evaluate the communication capability of the vehicle during actual driving. By identifying abnormal communication messages, it can be determined whether the information security test of the vehicle to be tested is successful, which is helpful to evaluate the anti-interference capability of the vehicle to be tested. That is to say, by testing whether the communication information of the vehicle under test is secure during the communication process in multiple functional scenarios, the communication security function of the vehicle under test can be comprehensively evaluated in different scenarios, and after moving the vehicle under test, the vehicle under test's ability to recognize abnormal communication messages is tested, and the communication capability and anti-interference capability of the vehicle under test during driving are evaluated. By testing the information security performance of the vehicle under test in different functional scenarios, the technical effect of comprehensively testing the vehicle's information security function is achieved, thereby solving the technical problem of incomplete information security testing of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] 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:
[0022] Figure 1 is a flow chart of a vehicle information security testing method according to an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of a V2X safety detection platform according to an embodiment of the present application;
[0024] Figure 3 is a flow chart of a V2X message security testing method according to an embodiment of the present application;
[0025] Figure 4 is a flow chart of an information security testing method according to an embodiment of the present application;
[0026] Figure 5 is a schematic diagram of a vehicle information security testing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] 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 clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the 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.
[0028] 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] According to an embodiment of the present invention, an embodiment of a vehicle information security testing method 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.
[0030] Figure 1 is a flow chart of a vehicle information security testing method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0031] Step S101 , in response to the communication function of the vehicle to be tested being in a normal state, testing the communication state of the communication information of the vehicle to be tested in the current function scenario to be tested.
[0032] In the technical solution provided in the above step S101 of the present invention, the communication function of the vehicle to be tested is in a normal state to indicate that the communication link of the vehicle to be tested can normally send and receive communication information, and the communication information of the vehicle to be tested is generated during the communication of the vehicle to be tested in the current function scenario to be tested, and the function scenario to be tested is used to indicate the scenario of communication between the vehicle to be tested and other traffic participants. For example, the communication between vehicles (Vehicle-to-Vehicle, referred to as V2V) scenario, the communication between vehicles and infrastructure (Vehicle-to-Infrastructural, referred to as V2I) scenario, the communication between vehicles and pedestrians (Vehicle-to-Peders, referred to as V2P) scenario and the communication between vehicles and networks (Vehicle-to-Network, referred to as V2N) scenario, etc. The communication state is used to indicate that the communication information of the vehicle to be tested is in a safe state during the communication process, or that the communication information of the vehicle to be tested is in an unsafe state during the communication process. Among them, the safe state means that the communication system of the vehicle under test is in a safe and reliable state during the communication process. That is, the communication system can effectively transmit and receive data, and the confidentiality and integrity of the data transmission process are guaranteed; the unsafe state means that the communication system of the vehicle under test has security risks or unstable factors during the communication process, which may lead to information leakage, data tampering or communication interruption during the data transmission process.
[0033] In this embodiment, in order to determine whether the communication function of the vehicle under test is in a normal state, a request message can be sent to the vehicle under test. If the communication function of the vehicle under test is in a normal state, the vehicle under test will feedback a response message after receiving the request message. Based on this, if a response message fed back by the vehicle under test is received, it is determined that the communication function of the vehicle under test is in a normal state.
[0034] Optionally, after determining that the communication function of the vehicle to be tested is in a normal state, the communication status of the communication information of the vehicle to be tested in the current function scenario to be tested can be tested, wherein the current function scenario to be tested can be any one of the V2V scenario, V2P scenario, V2I scenario and V2N scenario.
[0035] For example, the test system uses the private key of the digital certificate to sign the first communication message to be sent in the current functional scenario to be tested, and obtains the signed first communication message. After that, the first communication message and the digital certificate are broadcast together. After receiving the first communication message, the vehicle to be tested can first extract the digital certificate in the first communication message. After that, the legitimacy and validity of the digital certificate are verified to ensure that the first communication message has not been tampered with or forged during the transmission process. After the digital certificate is verified, the public key of the digital certificate can be used to perform signature verification on the first communication message to obtain the signature verification result. If the signature verification result passes, it means that the first communication message is safe, that is, the first communication message has not been tampered with during the transmission process. After the signature of the first communication message is verified, the vehicle under test can feedback a second communication message to the test system to notify the test system that the vehicle under test has successfully received and parsed the first communication message, wherein the first communication message and the second communication message can be cellular network-based vehicle-to-vehicle wireless communication (Cellular Vehicle-to-Everything, abbreviated as C-V2X).
[0036] Optionally, if the signature verification result of the first communication message by the vehicle under test passes, it means that the communication status of the communication information of the vehicle under test in the current functional scenario under test is a safe state. Conversely, if the signature verification result of the first communication message by the vehicle under test fails, it means that the communication status of the communication information of the vehicle under test in the current functional scenario under test is an unsafe state.
[0037] Step S102, in response to the communication state being a safe state, traverse the remaining function scenarios to be tested except the current function scenario to be tested in the plurality of function scenarios to be tested, and test the communication state of the communication information of the vehicle to be tested in the remaining function scenarios to be tested.
[0038] In the technical solution provided by the above-mentioned step S102 of the present invention, after it is determined through step S101 that the communication information of the vehicle to be tested is in a safe state, it means that the communication information of the vehicle to be tested in the current functional scenario to be tested is safe. In this case, the remaining functional scenarios to be tested in multiple functional scenarios except the current functional scenario to be tested can be traversed to further test the communication status of the communication information to be tested in the remaining functional scenarios to be tested.
[0039] In this embodiment, after receiving the second communication message sent by the vehicle under test, the test system may trigger the next functional scenario under test, that is, test whether the communication status of the communication information of the vehicle under test is a safe state in the next functional scenario under test.
[0040] For example, after triggering the next functional scenario to be tested, the test system can verify the pseudonym certificate and digest policy in the message sent by the vehicle to be tested. If the verification is successful, the next functional scenario to be tested will continue to be traversed until all functional scenarios to be tested are traversed.
[0041] Optionally, when triggering the next functional scenario to be tested, the test system may further determine the time interval between sending the first communication message and receiving the second communication message in the previous functional scenario to be tested, and then determine whether the time interval is within the preset time threshold range. If the time interval is within the preset time threshold range, the next functional scenario to be tested is triggered. The preset time threshold may be 300s, which is only an illustrative example and does not limit the specific value of the preset time threshold.
[0042] Optionally, if the time interval is not within the preset time range, it means that the communication message may have encountered network congestion or instability during transmission, resulting in the actual transmission time exceeding expectations. In this case, the problem encountered during the transmission of the communication message can be further investigated and corresponding measures can be taken to solve it. After that, the next function scenario to be tested is triggered, and the communication security of the vehicle to be tested is tested in the next function scenario to be tested.
[0043] Step S103 , in response to the communication state of the communication information of the vehicle to be tested being a safe state when communicating in the remaining functional scenarios to be tested, controlling the vehicle to be tested to move.
[0044] In the technical solution provided in the above step S103 of the present invention, in the remaining functional scenarios to be tested, when the communication status test of the communication information of the vehicle to be tested is completed, and it is determined that the communication status of the communication information of the vehicle to be tested is in a safe state when communicating in the remaining functional scenarios to be tested, the vehicle movement can be controlled, and then the communication security of the vehicle to be tested in multiple scenarios to be tested can be tested.
[0045] In this embodiment, the vehicle to be tested is controlled to move a target distance at a time, and after each movement, the communication security of the vehicle to be tested in multiple functional scenarios to be tested is tested to test the communication capability of the vehicle during actual driving.
[0046] Step S104, sending abnormal communication messages to the moving vehicle to be tested in the multiple functional scenarios to be tested respectively.
[0047] In the technical solution provided in the above step S104 of the present invention, when the cumulative moving distance of the vehicle exceeds the preset distance threshold, an abnormal communication message can be sent to the vehicle to be tested after moving in multiple functional scenarios to be tested, wherein the abnormal communication message can be a tampered or forged message, wherein the preset distance threshold can be 10km, which is only an illustrative example and does not limit the specific value of the preset distance threshold.
[0048] In this embodiment, in response to the cumulative moving distance of the vehicle under test exceeding a preset distance threshold, an abnormal communication message is sent to the vehicle under test according to the functional scenario under test, and the recognition result of the abnormal communication message by the vehicle under test is determined according to whether the vehicle under test communicates after receiving the abnormal communication message.
[0049] Step S105 , in response to the vehicle to be tested identifying an abnormal communication message, determining that the information security test of the vehicle to be tested is successful.
[0050] In the technical solution provided in the above step S105 of the present invention, after sending the abnormal communication message to the vehicle under test, it can be determined whether the vehicle under test communicates after receiving the abnormal communication message. If the vehicle under test does not communicate after receiving the abnormal communication message, that is, the vehicle under test does not trigger the communication function, it means that the vehicle under test has identified the abnormal communication message.
[0051] In this embodiment, after testing the ability of the vehicle to be tested to identify abnormal communication messages in a functional scenario to be tested, the next functional scenario to be tested can be continued to be traversed to determine whether the vehicle to be tested will trigger the communication function after receiving the abnormal communication message in the next functional scenario to be tested, until all functional scenarios to be tested are tested and the vehicles to be tested have not triggered the communication function. In this case, it means that the information security test of the vehicle to be tested is successful, that is, the communication information of the vehicle to be tested is secure, and the vehicle to be tested can identify the abnormal communication messages received during the communication process.
[0052] Optionally, the functional scenarios to be tested in the above steps S101 to S105 can be created in a cyber range, which is a type of network technology simulation verification platform. The cyber range combines a virtual environment with real equipment to simulate a real test environment. Based on this, the test system can test the communication security of the vehicle to be tested in different functional scenarios to be tested through the cyber range.
[0053] Optionally, the above communication security test of the vehicle to be tested can be performed in a laboratory scenario or an outdoor scenario, and the testing method is relatively flexible.
[0054] It should be noted that the above communication security test on the vehicle to be tested is aimed at the device to be tested in the vehicle to be tested, for example, the on-board unit (On-Board Unit, referred to as OBU).
[0055] Through the above steps S101 to S105, when the communication function of the vehicle to be tested is in a normal state, multiple test function scenarios are traversed to test the communication status of the communication information of the vehicle to be tested when communicating in multiple test function scenarios, so that the communication function of the vehicle to be tested can be comprehensively evaluated in different scenarios to ensure the communication security of the vehicle to be tested in different scenarios. When the communication status of the communication information of the vehicle to be tested in multiple test function scenarios is a safe state, the vehicle is controlled to move, and after the vehicle moves, the communication function of the vehicle is tested in multiple test function scenarios, which is helpful to evaluate the communication capability of the vehicle during actual driving. By identifying abnormal communication messages, it can be determined whether the information security test of the vehicle to be tested is successful, which is helpful to evaluate the anti-interference capability of the vehicle to be tested. That is to say, by testing whether the communication information of the vehicle under test is secure during the communication process in multiple functional scenarios, the communication security function of the vehicle under test can be comprehensively evaluated in different scenarios, and after moving the vehicle under test, the vehicle under test's ability to recognize abnormal communication messages is tested, and the communication capability and anti-interference capability of the vehicle under test during driving are evaluated. By testing the information security performance of the vehicle under test in different functional scenarios, the technical effect of comprehensively testing the vehicle's information security function is achieved, thereby solving the technical problem of incomplete information security testing of the vehicle.
[0056] The above method of this embodiment is further introduced below.
[0057] As an optional implementation, step S101, testing the communication status of the communication information of the vehicle under test in the current functional scenario under test, includes: sending a first communication message to the vehicle under test, wherein the first communication message is a message signed by a private key of a digital certificate; obtaining a first signature verification result of the first communication message by the vehicle under test, wherein the first signature verification result is obtained by the vehicle under test performing signature verification on the first communication message using the public key in the digital certificate; based on the first signature verification result, determining the communication status of the communication information of the vehicle under test in the current functional scenario under test.
[0058] In this embodiment, the current functional scenario to be tested can be any scenario in the V2X scenario. When testing the communication status of the communication information of the vehicle to be tested in the current functional scenario to be tested, the first communication message can be signed using the private key of the digital certificate. Then, the first communication message and the digital certificate are broadcast. After receiving the first communication message, the vehicle to be tested can perform signature verification on the first communication message to obtain a first signature verification result to determine whether the first communication message has been tampered with during transmission.
[0059] Optionally, after the vehicle under test performs signature verification on the first communication message, the communication status of the communication information of the vehicle under test in the current function scenario under test can be determined according to the first signature verification result, wherein if the first signature verification result indicates that the signature verification of the first communication message passes, it means that the communication status of the communication information of the vehicle under test in the current function scenario under test is a safe status, that is, the first communication message has not been tampered with during the transmission process. Conversely, if the first signature verification result indicates that the signature verification of the first communication message fails, it means that the communication status of the communication information of the vehicle under test in the current function scenario under test is an unsafe status, that is, the first communication message may have been tampered with during the transmission process.
[0060] Optionally, if the communication information of the vehicle under test is in a safe state in the current functional scenario under test, the remaining functional scenarios under test can be traversed to determine whether the communication information of the vehicle under test is in a safe state in the remaining functional scenarios under test, so as to achieve a comprehensive assessment of the security of the communication information of the vehicle under test.
[0061] As an optional implementation, obtaining a first signature verification result of the vehicle under test for the first communication message includes: obtaining a verification result of the vehicle under test for the digital certificate in the first communication message, wherein the verification result is used to indicate the legality and validity of the digital certificate; in response to the verification result indicating that the digital certificate is legal and valid, obtaining the first signature verification result.
[0062] In this embodiment, when the vehicle under test receives the first communication message and performs signature verification on the first communication message, it is necessary to first verify the digital certificate used to sign the first communication message to determine the legitimacy and validity of the digital certificate used to sign the first communication message. After the digital certificate is verified, the public key in the digital certificate is used to verify the private key used to sign the first communication message to obtain a first signature verification result.
[0063] Optionally, when performing signature verification on the first communication message, the digital certificate of the first communication message is first verified to ensure the legitimacy and validity of the certificate. After the digital certificate verification is passed, the public key in the certificate is used to perform signature verification on the communication message, thereby enhancing the security of the communication, ensuring the integrity and authenticity of the communication, and preventing unauthorized access and tampering.
[0064] As an optional implementation, based on the first signature verification result, determining the communication status of the communication information of the vehicle under test in the functional scenario under test, including: in response to the first signature verification result indicating that the first communication message is secure during transmission, determining that the communication information of the vehicle under test is in a secure state when communicating in the functional scenario under test.
[0065] In this embodiment, after the vehicle under test performs signature verification on the first communication message and obtains the first signature verification result, if the first signature verification result indicates that the first communication message is secure during transmission, it can be determined that the first communication message has not been tampered with during transmission. In this case, it can be determined that the communication information of the vehicle under test is in a secure state when communicating in the functional scenario under test.
[0066] In this step, by performing signature verification on the first communication message, the security of the communication message during transmission is ensured, which helps prevent malicious tampering or theft of information.
[0067] As an optional implementation, in response to the communication information being in a safe state, traversing the remaining functional scenarios to be tested except the current functional scenario to be tested in multiple functional scenarios to be tested, including: in response to the communication information of the vehicle to be tested being in a safe state in the current functional scenario to be tested, obtaining a second communication message fed back by the vehicle to be tested, wherein the second communication message corresponds to the first communication message; determining the interval duration between sending the first communication message and receiving the second communication message; in response to the interval duration being less than a preset duration threshold, traversing the next functional scenario to be tested, and testing the communication status of the communication information of the vehicle to be tested in the next functional scenario to be tested.
[0068] In this embodiment, when testing the communication status of the communication information of the vehicle to be tested in a functional scenario to be tested, if the communication information of the vehicle to be tested is in a safe state in the current functional scenario to be tested, the vehicle to be tested can feedback a second communication message. After receiving the second communication message, the test system can further determine the time interval between the time of receiving the second communication message and the time interval of sending the first communication message, and then compare the time interval with the preset time threshold. If the time interval is within the preset time threshold, it means that the network status is good. In this case, the next functional scenario to be tested can be traversed to test the communication status of the communication information of the vehicle to be tested in the next functional scenario to be tested.
[0069] Optionally, by comparing the time of receiving the second communication message with the time interval of sending the first communication message, the communication performance of the vehicle can be measured more accurately and the network status of the vehicle communication can be determined.
[0070] As an optional implementation, the vehicle information security testing method also includes: forging a private key and a public key in a digital certificate to obtain a forged private key and a forged public key; signing a first communication message using the forged private key; sending the first communication message signed using the forged private key to the vehicle under test; obtaining a second signature verification result of the first communication message from the vehicle under test; and in response to the second signature verification result indicating that the vehicle under test has identified the forged private key and the forged public key, determining that the security authentication function of the vehicle under test is normal.
[0071] In this embodiment, in order to test whether the safety authentication function of the vehicle to be tested is normal, a denial of service attack (DoS) can be carried out on the vehicle to be tested by constructing a malformed message to test whether the safety authentication function of the vehicle to be tested is normal.
[0072] For example, when sending a communication message to the vehicle under test, the private key of the digital certificate needs to be used to sign the communication message, so that after receiving the communication message, the vehicle under test uses the public key in the digital certificate to verify the signature of the communication message. In this case, in order to fully test the security authentication function of the vehicle under test, the private key and public key of the digital certificate can be forged to verify whether the vehicle under test can detect the forged private key and public key.
[0073] Optionally, after the private key and public key of the digital certificate are forged, the forged private key can be used to sign the first communication message, and then the signed first communication message is sent to the vehicle under test, and a second signature verification result of the first communication message by the vehicle under test is obtained.
[0074] Optionally, if the second signature verification result indicates that the vehicle under test recognizes the forged private key and the forged public key, it means that the vehicle under test successfully detects the forged private key and the forged public key. In this case, it is determined that the security authentication function of the vehicle under test is normal.
[0075] As an optional implementation, after sending an abnormal communication message to the vehicle to be tested after it moves, the vehicle information security testing method also includes: obtaining the recognition result of the abnormal communication message by the vehicle to be tested after it moves; in response to the recognition result indicating that the vehicle to be tested after it moves recognizes the abnormal communication message, determining that the information security test of the vehicle to be tested is successful.
[0076] In this embodiment, after moving the vehicle to be tested and sending an abnormal communication message to the moved vehicle to be tested, the client obtains the recognition result of the abnormal communication message by the vehicle to be tested. If the vehicle to be tested can recognize the abnormal communication message, it is determined that the information security test of the vehicle to be tested is successful.
[0077] Optionally, when sending abnormal communication messages to the vehicle under test, the abnormal communication messages may be mixed between normal communication messages, so as to verify the recognition ability of the vehicle under test for the abnormal communication messages.
[0078] As an optional implementation, the vehicle information security testing method further includes: sending a request message to the vehicle to be tested; and in response to receiving a response message fed back by the vehicle to be tested, determining that the communication function of the vehicle to be tested is in a normal state.
[0079] In this embodiment, when testing the communication security of the vehicle under test, it is first necessary to ensure that the vehicle under test can communicate normally. For example, a request message can be sent to the vehicle under test to determine whether a response message fed back by the vehicle under test is received. If a response message fed back by the vehicle under test is received, it means that the communication function of the vehicle under test is in a normal state.
[0080] In the above steps, when the communication function of the vehicle to be tested is in a normal state, multiple test function scenarios are traversed to test the communication status of the communication information of the vehicle to be tested when communicating in multiple test function scenarios, so as to comprehensively evaluate the communication function of the vehicle to be tested in different scenarios and ensure the communication security of the vehicle to be tested in different scenarios. When the communication status of the communication information of the vehicle to be tested in multiple test function scenarios is a safe state, the vehicle is controlled to move, and after the vehicle moves, the communication function of the vehicle is tested in multiple test function scenarios, which is helpful to evaluate the communication capability of the vehicle during actual driving. By identifying abnormal communication messages, it can be determined whether the information security test of the vehicle to be tested is successful, which is helpful to evaluate the anti-interference capability of the vehicle to be tested. That is to say, by testing whether the communication information of the vehicle under test is secure during the communication process in multiple functional scenarios, the communication security function of the vehicle under test can be comprehensively evaluated in different scenarios, and after moving the vehicle under test, the vehicle under test's ability to recognize abnormal communication messages is tested, and the communication capability and anti-interference capability of the vehicle under test during driving are evaluated. By testing the information security performance of the vehicle under test in different functional scenarios, the technical effect of comprehensively testing the vehicle's information security function is achieved, thereby solving the technical problem of incomplete information security testing of the vehicle.
[0081] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.
[0082] At present, V2X technology has become one of the important technical means to achieve autonomous driving. V2X technology can realize communication between vehicles (V2V), communication between vehicles and infrastructure (V2I), communication between vehicles and pedestrians, bicycles, etc. (V2P), and communication between vehicles and networks (V2N). It can provide important support for the development of autonomous vehicles and intelligent transportation systems, make up for the insufficient line of sight of traditional on-board sensors such as cameras and radars, and improve the perception ability of vehicles under special conditions such as intersections and bad weather. However, since V2X technology transmits data through wireless communication, there are some information security risks in data transmission.
[0083] In related technologies, the vehicle's V2X communication function is mainly tested in a simulation environment, or the communication protocol is tested. However, this type of test focuses on specific scenarios or performance parameters and fails to fully cover the various scenarios and security threats that V2X technology may encounter in actual applications. Therefore, there is a technical problem that the vehicle's information security testing is incomplete.
[0084] However, the present invention provides a vehicle information security testing method, which constructs a realistic smart car scene through a network target range, and tests the V2X communication function of the tested vehicle in each functional scene in turn to determine whether the communication information of the tested vehicle is safe during the communication process. If the communication information of the tested vehicle is in a safe state during communication in each functional scene, the tested vehicle is moved by a target distance, and then continues to traverse each functional scene to test whether the tested vehicle can identify forged messages to determine the tested vehicle's ability to identify forged messages. By testing the communication information security of the tested vehicle and the identification function of forged messages in each functional scene, the communication security of the vehicle can be tested in all scenes, achieving the technical effect of comprehensive testing of the vehicle's communication information, thereby solving the technical problem of incomplete information security testing of the vehicle.
[0085] Next, we will further introduce the network target range.
[0086] The network range is a type of network technology simulation and verification platform, which is used for attack and defense drills, product safety evaluation, and new technology verification to improve and strengthen the security, stability, and performance of the system. It is the core infrastructure in the field of cyberspace security. The network range combines a virtual environment with real equipment to simulate a real test environment. In this application, the network range is used to construct a variety of test function scenarios to test the communication security performance of the vehicle, which can make the test scenarios unrestricted.
[0087] The network range architecture includes: infrastructure, range basic platform, vehicle access system, resource library, emergency response center, etc.
[0088] The infrastructure includes: laboratories, large display screens, server clusters, and a laboratory exhibition hall that integrates automotive network development and verification capabilities, target range attack and defense drills, and test equipment displays.
[0089] Range basic platform: used to realize core functions such as large-scale network construction, real-time test command, user behavior monitoring, situation display and range interconnection.
[0090] Vehicle access system: used to connect the range basic platform with the real car and test bench, provide multiple physical access interfaces, and realize virtual-real interconnection. Provide the software interface required for access to the pure virtual environment, so that the test bench and electronic control unit (ECU) in the pure virtual environment can achieve remote access and remote vehicle control through the range basic platform.
[0091] Resource library: It brings together test cases, test tools, virtual and real targets, knowledge graphs, etc. to build a large-scale resource library.
[0092] Emergency Response Center: It is used to handle network attacks and security incidents. By monitoring network traffic and system logs, it can promptly detect and respond to malicious behaviors and protect the security of networks and systems. When a security incident occurs, it can quickly take measures to investigate and handle it in order to restore the normal operation of the system as soon as possible. In the network range, the emergency response center is an important part of ensuring network security.
[0093] Next, the V2X safety testing platform will be further introduced.
[0094] Figure 2 is a schematic diagram of a V2X safety detection platform according to an embodiment of the present application. Figure 2 As shown, the V2X safety testing platform 200 includes: a testing system (Testing System, referred to as TS) 201 and a device under test (DUT) 202.
[0095] The test system 201 includes: a test system report generation module 2011, a test system management module 2012, a test system execution module 2013, a test environment basic platform 2014, a test control system 2015, a test case library 2016 and a test simulation system 2017. Among them, the test environment basic platform 2014 includes: driving data simulation field test, laboratory test, V2X data simulation and Long-Term Evolution (Long-Term Evolution-PC5, referred to as LTE-PC5) data simulation; the test control system 2015 includes: an engineering wizard, a core editor, underlying resources and a test component design and execution module.
[0096] The system under test 202 includes: a complete vehicle 2021, an on-board unit (OBU) / roadside unit (RSU) 2022 and a safety demonstration system 2023.
[0097] Optionally, the V2X data simulation includes a V2X message encapsulation and parsing module, which can generate and parse V2X data and provide V2X data simulation functions, support LTE-PC5 data simulation, and support LTE-V2X network data transmission and reception simulation functions.
[0098] Driving data simulation supports two scenarios: laboratory testing and field testing. In field testing, the vehicle uses satellite positioning signals to guide driving behavior according to the test case requirements, drives in the field test site, and completes the test execution.
[0099] In the laboratory test, the Global Navigation Satellite System Signal Amplifier (GNSS) is supported to provide the necessary satellite signals for the communication module to complete the test of the device under test, where the device under test can be an OBU device or an RSU device. The Global Positioning System (GPS) signal amplifier is used as a GNSS signal amplifier to achieve comprehensive functional requirements. When the indoor GPS signal is weak, the outdoor GPS signal can be transmitted to the indoor or other environments where the GPS signal cannot be received, thereby supporting the provision of GPS signals for communication modules, OBU devices, RSU devices, etc., so that V2X testing work that requires a GPS environment can be completed in an indoor environment.
[0100] Next, the V2X information security testing process is further introduced.
[0101] During V2X direct communication, the test system uses the private key of the digital certificate to sign the message to be sent, and then broadcasts the signed message to be sent together with the digital certificate. After receiving the message, the device under test extracts the digital certificate in the message. First, the legitimacy and validity of the digital certificate are verified to ensure that the message has not been tampered with or forged. Then, the signature of the message is verified using the public key in the verified digital certificate. By simulating V2X data, the controller signature verification mechanism can be tested, deformed messages can be constructed, DoS attacks can be carried out, the integrity of security messages can be verified, and the cross-domain mutual recognition mechanism strategy can be tested in combination with scenario simulation.
[0102] Figure 3 : is a flow chart of a V2X message security testing method according to an embodiment of the present application. Figure 3As shown, the method comprises the following steps:
[0103] Step S301: Send a request frame.
[0104] In this embodiment, the test system may send a request frame to the instruction forwarding module of the device under test through a control channel.
[0105] Step S302: Send a request message.
[0106] In this embodiment, after receiving the request frame sent by the test system, the instruction forwarding module in the device under test may generate a request message according to the request frame, and send the request message to the network protocol stack in the device under test.
[0107] Step S303: Feedback a response message.
[0108] In this embodiment, after receiving the request message, the network protocol stack in the device under test may feed back a response message to the instruction forwarding module of the device under test.
[0109] Step S304: Feedback a response frame.
[0110] In this embodiment, after receiving the response message, the instruction forwarding module in the device under test may generate a response frame according to the response message, and feed the response frame back to the test system to inform the test system that the communication link of the device under test is unblocked.
[0111] Step S305: Send a C-V2X message.
[0112] In this embodiment, after the test system determines that the communication link of the device under test is unobstructed, a C-V2X message can be sent to the network protocol stack of the device under test.
[0113] Step S306, sending a network protocol message.
[0114] In this embodiment, after the network protocol stack in the device under test receives the C-V2X message, it can generate a network protocol message according to the C-V2X message and send the network protocol message to the security module in the device under test.
[0115] Step S307: perform signature verification on the network protocol message.
[0116] In this embodiment, after receiving the network protocol message, the security module in the device under test may perform signature verification on the network protocol message to determine whether the network protocol message has been tampered with.
[0117] Step S308: Feedback the signature verification result.
[0118] In this embodiment, after the security module in the device under test performs security verification on the network protocol message, it can feed back the signature verification result to the network protocol stack of the device under test.
[0119] Step S309: Feedback a notification message of the signature verification result.
[0120] In this embodiment, after receiving the signature verification result, the network protocol stack in the device under test can feed back the signature verification result to the instruction forwarding module of the device under test, and then the instruction forwarding module feeds back the signature verification result to the test system.
[0121] Optionally, the network protocol stack inside the device under test may also decide whether to continue processing the message according to the signature verification result of the security module.
[0122] Optionally, the above-mentioned test system may be a network target range, and the above-mentioned device under test may be an on-board unit in a vehicle to be tested. This is only an illustrative example and does not impose specific limitations on the test system and the device under test.
[0123] In the above steps S301 to S309, the message transmission and feedback between the test system and the device under test are realized through the mutual interaction between the test system and the device under test, thereby ensuring the reliability and timeliness of the communication. The security of the communication data is ensured through the transmission and security verification of the security layer messages, thereby preventing the risks of information leakage and network attacks.
[0124] Next, the vehicle information security testing method is further introduced.
[0125] Figure 4 is a flow chart of an information security testing method according to an embodiment of the present application, such as Figure 4 As shown, the method comprises the following steps:
[0126] Step S401, start the device under test.
[0127] In this embodiment, when starting to test the information security of the device under test, the test system may start the device under test, wherein the device under test may be a vehicle.
[0128] Step S402, determining whether the device under test can apply for a certificate.
[0129] In this embodiment, the test system can determine whether the device under test has the ability to apply for a certificate from a certificate authority system (CA), if it can apply, then execute step S403, if it cannot apply, then confirm that the information security test of the device under test has failed. The certificate can be a digital certificate.
[0130] Step S403, determining whether the device under test can download the certificate.
[0131] In this embodiment, after confirming that the device under test can apply for a certificate from the CA system, the test system may further confirm whether the device under test has the ability to download the certificate from the CA system. If so, step S404 is executed; otherwise, it is confirmed that the information security test of the device under test has failed.
[0132] Step S404, determining whether the CA system can parse the pseudonym certificate and giving a response message.
[0133] In this embodiment, the test system can determine whether the CA system can parse the pseudonym certificate and give a response message to ensure that the CA system can effectively identify and process the pseudonym certificate, thereby improving the security and stability of the system. If so, execute step S405; otherwise, confirm that the information security test of the device under test has failed.
[0134] Step S405, determining whether the device under test can detect forged signature private keys.
[0135] In this embodiment, the test system can determine whether the device under test can detect forged signature private keys. If so, it means that the device under test has an effective private key verification mechanism, that is, the device under test can identify forged private keys, thereby ensuring the security and integrity of the data. It should be noted that if the device under test can detect forged signature private keys, step S406 is executed, otherwise, it is confirmed that the information security test of the device under test has failed.
[0136] Step S406, determining whether the device under test can detect forged signature public keys.
[0137] In this embodiment, the test system can determine whether the device under test can detect forged signature public keys. If so, it means that the device under test has certain security and protection mechanisms. In this case, step S407 can be executed. Otherwise, it is confirmed that the information security test of the device under test has failed.
[0138] Step S407, determining whether the device under test can detect whether the certificate has been tampered with.
[0139] In this embodiment, the test system can determine whether the device under test can detect whether the digital certificate has been tampered with. If so, it means that the device under test has an effective certificate verification mechanism and can detect the integrity and authenticity of the digital certificate. In this case, step S408 can be continued. Otherwise, it is confirmed that the information security test of the device under test has failed.
[0140] Step S408: Send a message containing illegal information to the device under test.
[0141] In this embodiment, the test system can send a message containing illegal information to the device under test to test whether the device under test can identify illegal messages, monitor the security performance of the device under test, confirm whether the device under test can effectively prevent malicious attacks and data leakage, and then evaluate the performance and response capabilities of the device under test when facing various security threats. Among them, illegal messages can include: illegal security message version number, illegal generation time of the data to be signed, illegal hash algorithm of the data to be signed, illegal application information of the data to be signed, illegal security message signer type, illegal security message signature information, illegal security message certificate version, illegal security message certificate summary, illegal security message certificate validity period, illegal security message certificate chain, and illegal security message certificate signature.
[0142] Step S409: determine whether the feedback message from the device under test is invalid.
[0143] In this embodiment, the test system can determine whether the device under test will feedback that the received message is invalid after receiving information containing an illegal message. If the device under test feedbacks that the received message is invalid, it means that the device under test has identified the illegal message in the information. In this case, it means that the security test of the device under test has passed, and step S410 can be continued. Conversely, if the device under test does not feedback that the received message is invalid, it means that the device under test has not detected the illegal information in the message. In this case, it can be determined that the security test of the device under test has failed.
[0144] Step S410: determining the time for the device under test to feed back a C-V2X message.
[0145] In this embodiment, the test system can send a C-V2X message to the device under test. After receiving the C-V2X message sent by the test system, the device under test can feedback a C-V2X message to the test system. If the time interval between the time when the test system sends the C-V2X message and the time when the device under test feedbacks the C-V2X message is less than 300s, it means that in the current functional scenario, the information security test of the device under test is successful. In this case, step S411 can be executed to trigger the next functional scenario. The functional scenario can be a C-V2X functional scenario, which can include: V2V scenario, V2P scenario, V2I scenario, and V2N scenario.
[0146] Step S411, triggering the next functional scenario.
[0147] In this embodiment, after the information security test of the device under test is passed in the previous functional scenario, the next functional scenario can be traversed to test the information security function of the device under test in the next functional scenario until all functional scenarios are tested.
[0148] Step S412: verify the pseudonym certificate and the digest policy in the C-V2X message sent by the device under test.
[0149] In this embodiment, after the next functional scenario is triggered, the pseudonym certificate and the digest policy in the C-V2X message sent by the device under test may be verified in the functional scenario, and then step S413 is executed.
[0150] Step S413, determining whether the pseudonym certificate and the digest policy have been verified.
[0151] In this embodiment, it can be determined whether the pseudonym certificate and the digest policy in the C-V2X message sent by the device under test are verified. If the verification is passed, step S414 is executed. If the verification fails, it is determined that the security test of the device under test has failed.
[0152] Step S414, determining whether all functional scenarios have been traversed.
[0153] In this embodiment, the test system can determine whether all functional scenarios have been traversed, that is, whether the information security functions of the vehicle under test have been tested in all functional scenarios. If all tests are completed, step S415 is executed; if not, the process returns to step S410.
[0154] Step S415: moving the device under test.
[0155] In this embodiment, the position of the device under test may be moved by a preset distance, wherein the preset distance may be 2 km. This is only an illustrative example and does not specifically limit the moving distance of the device under test.
[0156] Step S416: Check whether the distance moved by the device under test exceeds the target distance.
[0157] In this embodiment, it is possible to accumulate whether the distance moved by the device under test exceeds the target distance. If not, the functional scenarios continue to be traversed, and the process returns to step S411 to test the information security function of the device under test. If the distance moved by the device under test exceeds the target distance, step S417 is executed, wherein the target distance may be 10 km. This is only an illustrative example, and the specific value of the target distance moved by the device under test is not limited.
[0158] Step S417: Send the tampered C-V2X message to the device under test according to the functional scenario.
[0159] In this embodiment, if the distance moved by the device under test exceeds the target distance, a tampered C-V2X message is sent to the device under test according to the functional scenario to test the device under test's ability to recognize the tampered message.
[0160] Step S418: Detect whether the device under test triggers the C-V2X function.
[0161] In this embodiment, after sending the tampered C-V2X message to the device under test, it can be detected whether the device under test triggers the C-V2X function. If the device under test does not trigger the C-V2X function, step S419 is executed to determine whether all functional scenarios have been traversed. If the device under test triggers the C-V2X function, it means that the device under test has not detected the tampered message, and it is determined that the information security test of the device under test has failed.
[0162] Step S419, determining whether all functional scenarios have been traversed.
[0163] In this embodiment, after the device under test is moved and the tampered C-V2X message is sent to the device under test, it can be detected whether the device under test has traversed all functional scenarios. If the device under test has not traversed all functional scenarios, step S420 is executed: traversing the next functional scenario. If the device under test has traversed all functional scenarios, it means that the device under test can identify the tampered C-V2X message in all functional scenarios. In this case, it is determined that the information security test of the device under test is successful.
[0164] In the above steps S401 to S420, the security and credibility of the device under test can be determined by detecting whether the device under test has the ability to identify forged certificates, forged private keys, and forged public keys. After determining that the device under test is secure, all functional scenarios can be further traversed to test the information security of the device under test in all functional scenarios, and then the device under test can be moved to test the ability of the device under test to identify forged information in all functional scenarios, thereby achieving the technical effect of comprehensively testing the device under test, and thus solving the technical problem of incomplete information security testing of the device under test.
[0165] According to an embodiment of the present invention, a vehicle information security testing device is also provided. It should be noted that the vehicle information security testing device can be used to execute the vehicle information security testing method in embodiment 1.
[0166] Figure 5 Schematic diagram of a vehicle information security testing device according to an embodiment of the present invention. Figure 5 As shown, the vehicle information security testing device 500 may include: a first testing unit 501 , a second testing unit 502 , a control unit 503 , a third testing unit 504 and a determining unit 505 .
[0167] The first test unit 501 is used to test the communication status of the communication information of the vehicle under test in the current function scenario under test in response to the communication function of the vehicle under test being in a normal state, wherein the communication information is generated during the communication of the vehicle under test in the current function scenario under test, the function scenario under test is used to indicate the scenario of communication between the vehicle and other traffic participants, and the communication status is used to indicate that the communication information is in a safe state during the communication process, or the communication information is in an unsafe state during the communication process.
[0168] The second test unit 502 is used to traverse the remaining function scenarios to be tested except the current function scenario to be tested in response to the communication status being a safe status, and test the communication status of the communication information of the vehicle to be tested in the remaining function scenarios to be tested.
[0169] The control unit 503 is used to control the movement of the vehicle to be tested in response to the communication state of the communication information of the vehicle to be tested being a safe state when communicating in the remaining functional scenarios to be tested.
[0170] The third test unit 504 is used to send abnormal communication messages to the vehicle under test after it moves in multiple functional scenarios under test, wherein the abnormal communication message is used to indicate a message containing abnormal information.
[0171] The determination unit 505 is configured to determine that the information security test on the vehicle to be tested is successful in response to the vehicle to be tested identifying an abnormal communication message.
[0172] Optionally, the first test unit 501 includes: a sending module, used to send a first communication message to the vehicle under test, wherein the first communication message is a message signed by a private key of a digital certificate; an acquisition module, used to obtain a first signature verification result of the first communication message by the vehicle under test, wherein the first signature verification result is obtained by the vehicle under test using the public key in the digital certificate to perform signature verification on the first communication message; a determination module, used to determine the communication status of the communication information of the vehicle under test in the current functional scenario under test based on the first signature verification result.
[0173] Optionally, the acquisition module is also used to: obtain the verification result of the digital certificate in the first communication message by the vehicle under test, wherein the verification result is used to indicate the legality and validity of the digital certificate; in response to the verification result indicating that the digital certificate is legal and valid, obtain the first signature verification result.
[0174] Optionally, the determination module is further used to determine that the communication information of the vehicle to be tested is in a safe state when communicating in the functional scenario to be tested, in response to the first signature verification result indicating that the first communication message is safe during transmission.
[0175] Optionally, the first test unit 501 is also used to: in response to the communication information of the vehicle under test being in a safe state in the current functional scenario under test, obtain a second communication message fed back by the vehicle under test, wherein the second communication message corresponds to the first communication message; determine the interval duration between sending the first communication message and receiving the second communication message; in response to the interval duration being less than a preset duration threshold, traverse the next functional scenario under test, and test the communication status of the communication information of the vehicle under test in the next functional scenario under test.
[0176] Optionally, the vehicle information security testing device 500 is also used to: forge the private key and the public key in the digital certificate to obtain a forged private key and a forged public key; use the forged private key to sign a first communication message; send the first communication message signed by the forged private key to the vehicle under test; obtain a second signature verification result of the first communication message from the vehicle under test; in response to the second signature verification result indicating that the vehicle under test has identified the forged private key and the forged public key, determine that the security authentication function of the vehicle under test is normal.
[0177] Optionally, the vehicle information security testing device 500 is further used to: obtain the recognition result of the moved vehicle to the abnormal communication message; in response to the recognition result indicating that the moved vehicle to the test recognizes the abnormal communication message, determine that the information security test of the vehicle to the test is successful.
[0178] Optionally, the vehicle information security testing device 500 is further used to: send a request message to the vehicle under test; and determine that the communication function of the vehicle under test is in a normal state in response to receiving a response message fed back by the vehicle under test.
[0179] In this embodiment, when the communication function of the vehicle to be tested is in a normal state, multiple function scenarios to be tested are traversed to test the communication status of the communication information of the vehicle to be tested when communicating in multiple function scenarios to be tested. The communication function of the vehicle to be tested can be comprehensively evaluated in different scenarios to ensure the communication security of the vehicle to be tested in different scenarios. When the communication status of the communication information of the vehicle to be tested in multiple function scenarios to be tested is a safe state, the vehicle is controlled to move, and after the vehicle moves, the communication function of the vehicle is tested in multiple function scenarios to be tested, which is helpful to evaluate the communication capability of the vehicle during actual driving. By identifying abnormal communication messages, it can be determined whether the information security test of the vehicle to be tested is successful, which is helpful to evaluate the anti-interference ability of the vehicle to be tested. That is to say, by testing whether the communication information of the vehicle under test is secure during the communication process in multiple functional scenarios, the communication security function of the vehicle under test can be comprehensively evaluated in different scenarios, and after moving the vehicle under test, the vehicle under test's ability to recognize abnormal communication messages is tested, and the communication capability and anti-interference capability of the vehicle under test during driving are evaluated. By testing the information security performance of the vehicle under test in different functional scenarios, the technical effect of comprehensively testing the vehicle's information security function is achieved, thereby solving the technical problem of incomplete information security testing of the vehicle.
[0180] An embodiment of the present application further provides an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the vehicle information security testing method in each embodiment of the present invention is executed when the program is running.
[0181] An embodiment of the present application also provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle information security testing method in each embodiment of the present invention.
[0182] An embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the vehicle information security testing method in each embodiment of the present invention.
[0183] An embodiment of the present application also provides a computer program product, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the vehicle information security testing method in each embodiment of the present invention is implemented.
[0184] An embodiment of the present application further provides a computer program, which, when executed by a processor, implements the vehicle information security testing method in each of the above-mentioned embodiments of the present invention.
[0185] An embodiment of the present application also provides a vehicle, which is used to execute the vehicle information security testing method in each embodiment of the present invention.
[0186] 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.
[0187] 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.
[0188] 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.
[0189] 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.
[0190] 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.
[0191] 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, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0192] 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 vehicle information security testing method, characterized in that: include: In response to the communication function of the vehicle to be tested being in a normal state, testing the communication state of the communication information of the vehicle to be tested in the current function scenario to be tested, wherein the communication information is generated during the communication of the vehicle to be tested in the current function scenario to be tested, the function scenario to be tested is used to indicate a scenario in which the vehicle to be tested communicates with other traffic participants, and the communication state is used to indicate that the communication information is in a safe state during the communication process, or that the communication information is in an unsafe state during the communication process; In response to the communication state being the safe state, traversing the remaining function scenarios to be tested except the current function scenario to be tested in a plurality of function scenarios to be tested, and testing the communication state of the communication information of the vehicle to be tested in the remaining function scenarios to be tested; In response to the communication state of the communication information of the vehicle to be tested being the safe state when communicating in the remaining functional scenarios to be tested, controlling the vehicle to be tested to move; In the plurality of functional scenarios to be tested, respectively, an abnormal communication message is sent to the vehicle to be tested after it moves, wherein the abnormal communication message is used to indicate a message containing abnormal information; In response to the vehicle under test identifying the abnormal communication message, it is determined that the information security test of the vehicle under test is successful.
2. The method according to claim 1, characterized in that Testing the communication status of the communication information of the vehicle to be tested in the current function scenario to be tested includes: Sending a first communication message to the vehicle to be tested, wherein the first communication message is a message signed by a private key of a digital certificate; Obtaining a first signature verification result of the first communication message by the vehicle under test, wherein the first signature verification result is obtained by the vehicle under test performing signature verification on the first communication message using a public key in the digital certificate; Based on the first signature verification result, a communication status of the communication information of the vehicle to be tested in the current function scenario to be tested is determined.
3. The method according to claim 2, characterized in that Obtaining a first signature verification result of the vehicle under test on the first communication message, including: Obtaining a verification result of the digital certificate in the first communication message by the vehicle under test, wherein the verification result is used to indicate the legitimacy and validity of the digital certificate; In response to the verification result indicating that the digital certificate is legal and valid, the first signature verification result is obtained.
4. The method according to claim 2, characterized in that: Determining the communication status of the communication information of the vehicle to be tested in the functional scenario to be tested based on the first signature verification result includes: In response to the first signature verification result indicating that the first communication message is secure during transmission, it is determined that the communication information is in the secure state when the vehicle to be tested communicates in the functional scenario to be tested.
5. The method according to claim 2, characterized in that: In response to the communication information being the safe state, traversing the remaining function scenarios to be tested except the current function scenario to be tested in the plurality of function scenarios to be tested, including: In response to the communication information of the vehicle under test being in the safe state in the current function scenario under test, obtaining a second communication message fed back by the vehicle under test, wherein the second communication message corresponds to the first communication message; Determining an interval between sending the first communication message and receiving the second communication message; In response to the interval duration being less than a preset duration threshold, traversing the next function scenario to be tested, and testing the communication status of the communication information of the vehicle to be tested in the next function scenario to be tested.
6. The method according to claim 2, characterized in that The method further comprises: Forging the private key and the public key in the digital certificate to obtain the forged private key and the forged public key; Signing the first communication message using the forged private key; Sending the first communication message signed by the forged private key to the vehicle to be tested; Obtaining a second signature verification result of the first communication message by the vehicle under test; In response to the second signature verification result indicating that the vehicle under test recognizes the forged private key and the forged public key, it is determined that the security authentication function of the vehicle under test is normal.
7. The method according to claim 1, characterized in that After sending the abnormal communication message to the moving vehicle to be tested, the method further includes: Obtaining a recognition result of the abnormal communication message by the vehicle to be tested after moving; In response to the recognition result indicating that the moved vehicle to be tested recognizes the abnormal communication message, it is determined that the information security test of the vehicle to be tested is successful.
8. The method according to claim 1, characterized in that The method further comprises: Sending a request message to the vehicle to be tested; In response to receiving a response message fed back by the vehicle to be tested, it is determined that the communication function of the vehicle to be tested is in a normal state.
9. A vehicle information security testing device, characterized in that: include: A first test unit, configured to test, in response to a communication function of the vehicle to be tested being in a normal state, a communication state of communication information of the vehicle to be tested in a current function scenario to be tested, wherein the communication information is generated during communication of the vehicle to be tested in the current function scenario to be tested, the function scenario to be tested is used to indicate a scene of communication between the vehicle to be tested and other traffic participants, and the communication state is used to indicate that the communication information is in a safe state during the communication process, or that the communication information is in an unsafe state during the communication process; A second testing unit is configured to, in response to the communication state being the safety state, traverse the remaining function scenarios to be tested except the current function scenario to be tested in the plurality of function scenarios to be tested, and test the communication state of the communication information of the vehicle to be tested in the remaining function scenarios to be tested; A control unit, configured to control the movement of the vehicle to be tested in response to the communication state of the communication information of the vehicle to be tested being the safe state when communicating in the remaining functional scenarios to be tested; A third test unit is used to send abnormal communication messages to the vehicle under test after it moves in the plurality of functional scenarios under test, wherein the abnormal communication messages are used to indicate messages containing abnormal information; A determination unit is used to determine that the information security test of the vehicle to be tested is successful in response to the vehicle to be tested identifying the abnormal communication message.
10. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 8 when running.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
13. A vehicle, characterized in that: The vehicle is used to perform the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Vehicle test method, device and equipment and storage medium
CN113820141A
Penetration test method and device of vehicle-mounted network, test equipment and storage medium
CN116389024A
Communication performance test method and device, computer equipment and storage medium
CN117915358A
Automobile communication information security simulation test method and system
CN118264441A
Vehicle operation safety model test system
US20230043905A1
Cited By
Safety test method for vehicle charging interface information
CN119520159A
A security testing method for vehicle charging interface information
CN119520159B
