Method and device for testing internal safety of vehicle and electronic equipment
By transmitting data frames between different internal communication subnetworks of autonomous vehicles and determining isolation security based on the transmission results, the accuracy problem of vehicle internal security testing is solved and the internal isolation security testing is accurate and effective. sex.
Patent Information
- Application Number
- CN202310332538.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In autonomous vehicles, how to accurately test the safety inside the vehicle is a challenge, especially in the case of information interaction between various internal components, ensuring the accuracy and effectiveness of isolation safety testing.
The accuracy of the test is ensured by transmitting data frames between the first component and the second component in different internal communication subnetworks of the target vehicle, and determining whether the internal isolation security test is passed based on whether the transmission of the data frame fails.
This method can accurately test the internal isolation safety in autonomous vehicles, ensure the success and failure of data transmission, effectively evaluate the isolation safety of the vehicle, and improve the accuracy and effectiveness of the test.
Smart Images

Figure CN118732639A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence, and in particular to technical fields such as intelligent transportation and autonomous driving. Background Art
[0002] With the development of computer technology, the field of autonomous driving has become a focus of social attention. At the same time, autonomous vehicles have gradually become an important means of transportation in life, and people's requirements for their performance stability have gradually increased. Usually, autonomous vehicles can exchange information between various internal components through the in-vehicle network. However, when the autonomous vehicle can exchange information between various internal components, how to accurately test the internal safety of the vehicle becomes a problem that needs to be solved. Summary of the invention
[0003] The present disclosure provides a method, device, electronic device and storage medium for testing the internal safety of a vehicle.
[0004] According to a first aspect of the present disclosure, a method for testing the internal safety of a vehicle includes:
[0005] Controlling a first component in a target vehicle to transmit a data frame to a second component of the target vehicle; wherein the first component of the target vehicle is a component within a first internal communication subnetwork of the target vehicle, and the second component of the target vehicle is a component within a second internal communication subnetwork of the target vehicle, and the first internal communication subnetwork and the second internal communication subnetwork are isolated from each other;
[0006] In the case where it is determined that the data frame transmission fails, it is determined that the internal isolation safety test of the target vehicle passes.
[0007] According to a second aspect of the present disclosure, there is provided an internal safety testing device for a vehicle, comprising:
[0008] A control module, used for controlling a first component in a target vehicle to transmit a data frame to a second component of the target vehicle; wherein the first component of the target vehicle is a component within a first internal communication subnetwork of the target vehicle, and the second component of the target vehicle is a component within a second internal communication subnetwork of the target vehicle, and the first internal communication subnetwork and the second internal communication subnetwork are isolated from each other;
[0009] The test result determination module is used to determine whether the internal isolation safety test of the target vehicle has passed when it is determined that the data frame transmission has failed.
[0010] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0011] at least one processor; and
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the aforementioned method.
[0014] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the aforementioned method.
[0015] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the aforementioned method when executed by a processor.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description.
[0017] The solution provided in this embodiment can transmit data frames between a first component and a second component located in different internal communication subnetworks in the target vehicle, and then determine whether the internal isolation safety test of the target vehicle passes based on whether the data frame transmission fails. In this way, the accuracy of the internal isolation safety test of the target vehicle is ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0019] Figure 1 is a flow chart of a method for testing the internal safety of a vehicle according to an embodiment of the present disclosure;
[0020] Figure 2 is a flow chart of a method for testing the internal safety of a vehicle according to another embodiment of the present disclosure;
[0021] Figure 3 is a schematic diagram of a structure of an internal safety testing device for a vehicle according to an embodiment of the present disclosure;
[0022] Figure 4 is a schematic diagram of a structural component of an internal safety testing device for a vehicle according to another embodiment of the present disclosure;
[0023] Figure 5 is a schematic diagram of a structure of an internal safety testing device for a vehicle according to another embodiment of the present disclosure;
[0024] Figure 6 The block diagram of an electronic device used to implement the vehicle internal safety testing method according to the embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0026] A first aspect of the present disclosure provides a method for testing the internal safety of a vehicle. Figure 1 As shown, including:
[0027] S101: Control a first component in a target vehicle to transmit a data frame to a second component of the target vehicle; wherein the first component of the target vehicle is a component within a first internal communication subnetwork of the target vehicle, and the second component of the target vehicle is a component within a second internal communication subnetwork of the target vehicle, and the first internal communication subnetwork and the second internal communication subnetwork are isolated from each other;
[0028] S102: When it is determined that the data frame transmission fails, determining that the internal isolation safety test of the target vehicle passes.
[0029] The above-mentioned vehicle internal safety test method can be implemented by an electronic device. The electronic device can be a device installed in the target vehicle, or can be a device connected to the target vehicle by wired or wireless means; the aforementioned electronic device can be any one of a test device, a simulation test platform, a simulation device, and the like.
[0030] The target vehicle may be a tested vehicle. In the following text, unless otherwise specified, the target vehicle and the tested vehicle have the same meaning and are not explained repeatedly.
[0031] By adopting the above scheme, data frames can be transmitted between the first component and the second component located in different internal communication subnetworks in the target vehicle, and then whether the internal isolation safety test of the target vehicle passes can be determined based on whether the data frame transmission fails. In this way, the accuracy and effectiveness of the internal isolation safety test of the target vehicle are guaranteed.
[0032] In some possible implementations, the controlling of a first component in a target vehicle to transmit a data frame to a second component in the target vehicle may specifically be: controlling a first component in a first internal communication subnetwork in the target vehicle to transmit a data frame to a second component in a second internal communication subnetwork in the target vehicle; wherein the first internal communication subnetwork is any one of the internal communication subnetworks in the internal communication network of the target vehicle, the second internal communication subnetwork is also any one of the internal communication subnetworks in the internal communication network of the target vehicle, and the first internal communication subnetwork and the second internal communication subnetwork are isolated from each other.
[0033] Here, the internal communication network of the target vehicle may be composed of a plurality of internal communication sub-networks. Different internal communication sub-networks in the plurality of internal communication sub-networks are isolated from each other; the isolation between different internal communication sub-networks may be that components in different internal communication sub-networks cannot communicate and / or different internal communication sub-networks contain different components.
[0034] The multiple internal communication sub-networks may include multiple internal communication sub-networks that are physically isolated, or may be multiple internal communication sub-networks that are functionally isolated.
[0035] The physically isolated multiple internal communication sub-networks may refer to the physically isolated multiple internal communication sub-networks obtained by dividing various components of the target vehicle according to physical locations.
[0036] The functionally isolated multiple internal communication subnetworks may refer to the domain-isolated multiple internal communication subnetworks obtained by functionally dividing the various components of the target vehicle. The domain-isolated multiple internal communication subnetworks may also be referred to as multiple internal communication subnetworks logically isolated between functional domains, that is, different domain-isolated internal communication subnetworks are used to implement different functions. For example, the functions of the target vehicle may be divided into vehicle control function, diagnostic function, and Over-the-Air Technology (OTA) function; the components respectively related to the vehicle control function, diagnostic function, and OTA function may be divided into different internal communication subnetworks.
[0037] The networking mode of the internal communication network may include CAN (Controller Area Network) or vehicle Ethernet.
[0038] In one example, the internal communication network adopts CAN networking, and the multiple internal communication sub-networks include multiple internal CANs.
[0039] In this example, each of the multiple internal CANs may have one or more components, and the components in different internal CANs are different; in addition, one or more components in each internal CAN may have a control component, and the control components in different internal CANs are different. The control component of any internal CAN may also be referred to as a controller in the internal CAN, and the controller may specifically be an ECU (Electronic Control Unit).
[0040] In another example, the internal communication network is an in-vehicle Ethernet, and accordingly, the multiple internal communication subnetworks include multiple VLANs (Virtual Local Area Networks); specifically, the multiple internal communication subnetworks may be multiple VLANs isolated by domains, or multiple VLANs isolated by physics. In this example, each VLAN of the multiple VLANs may have one or more components, and the components in different VLANs are different.
[0041] In some possible implementations, the manner of determining the data frame transmission failure may include one of the following: determining that the data frame transmission has failed when the first component of the target vehicle fails to send the data frame; determining that the data frame transmission has failed when the second component of the target vehicle does not receive the data frame.
[0042] Optionally, when the first component of the target vehicle fails to send a data frame, determining a method for handling the data frame transmission failure is particularly suitable for the aforementioned multiple internal communication subnetworks using Ethernet networking, and the multiple internal communication subnetworks can be multiple VLANs isolated by domains.
[0043] In this way, a domain isolation policy can be set in each component of each VLAN in the target vehicle; for example, the domain isolation policy of a component of any VLAN may include: the component can only send data within the current VLAN, and / or the component cannot send data to other VLANs.
[0044] Exemplarily, when executing the process of controlling the first component in the target vehicle to transmit a data frame to the second component of the target vehicle, the process of the first component in the target vehicle may include: the first component of the target vehicle determines whether the data frame is a data frame sent to other components of the first internal communication subnetwork based on the domain isolation strategy, if not, the data frame is not sent, and if so, the data frame is sent. Correspondingly, in the case where the first component of the target vehicle fails to send a data frame, determining that the data frame transmission fails may include: detecting all the sending data of the sending port of the first component of the target vehicle, if the data frame is included in the all sending data, determining that the first component of the target vehicle successfully sent the data frame, and further determining that the data frame transmission is successful, if the data frame is not included in the all sending data, determining that the first component of the target vehicle failed to send the data frame, and further determining that the data frame transmission fails.
[0045] Exemplarily, when the aforementioned electronic device executes the process of controlling the first component in the target vehicle to transmit a data frame to the second component of the target vehicle, the process of the first component in the target vehicle may include: the first component of the target vehicle determines whether the data frame is a data frame sent to other components of the first internal communication subnetwork based on the domain isolation strategy; if not, the data frame is not sent, and a record that the data frame is a data frame that does not comply with the domain isolation strategy and is rejected is added to the sending record; if so, the data frame is sent, and the record of sending the data frame is added to the sending record. Correspondingly, in the case where the first component of the target vehicle fails to send a data frame, determining that the data frame fails to be transmitted may include: obtaining the sending record of the first component of the target vehicle, and in the case where the sending record contains a record of sending the data frame, determining that the first component of the target vehicle successfully sends the data frame, and then determining that the data frame is successfully transmitted; in the case where the sending record contains a record that the data frame is a data frame that does not comply with the domain isolation strategy and is rejected, determining that the first component of the target vehicle fails to send the data frame, and then determining that the data frame fails to be transmitted.
[0046] Optionally, when the second component of the target vehicle does not receive the data frame, the processing method for determining the failure of data frame transmission can be applicable to various networking methods provided in the aforementioned embodiments, which are not exhaustively listed here.
[0047] In this way, an isolation strategy is set in each component of each internal communication sub-network of the target vehicle; for example, the isolation strategy of a component of any internal communication sub-network may include: the component can only receive data within the current internal communication sub-network, and / or the component cannot receive data sent by other internal communication sub-networks. When executing the process of controlling the first component in the target vehicle to transmit a data frame to the second component of the target vehicle, the process of the second component in the target vehicle may include: the second component of the target vehicle determines whether the data frame is a data frame sent from the second internal communication sub-network in which it is located based on the isolation strategy; if not, the data frame is not received, and a record that the data frame is a data frame that does not comply with the isolation strategy and is refused to be received is added to the reception record; if so, the data frame is received, and a record of receiving the data frame is added to the reception record. Correspondingly, the aforementioned determination that the data frame transmission fails when the second component of the target vehicle does not receive the data frame may include: obtaining a reception record of the second component of the target vehicle, and when the reception record includes a record of receiving the data frame, determining that the second component of the target vehicle has received the data frame, and further determining that the data frame transmission is successful; when the reception record includes a record that the data frame is a data frame that does not comply with the isolation strategy and is refused to be received, determining that the second component of the target vehicle has not received the data frame, and further determining that the data frame transmission fails.
[0048] It can be seen that by adopting the above scheme, after controlling the first component in the target vehicle to transmit a data frame to the second component of the target vehicle, when the first component fails to send the data frame or the second component does not receive the data frame, it can be determined that the data frame transmission has failed. In this way, the data frame can be transmitted between the first component and the second component located in different communication subnetworks in the target vehicle, and then by detecting whether the data frame is successfully sent in the first component or whether the data frame is received in the second component, it can be determined whether the data frame transmission has failed, thereby ensuring the accuracy of the internal isolation safety test of the target vehicle.
[0049] In some possible implementations, the first component of the target vehicle is a component with an external communication function; the method also includes: accessing the first component of the target vehicle using an unauthorized identity, and operating target data related to the first component of the target vehicle, wherein the target data is data that cannot be accessed by the unauthorized identity; when it is determined that the operation of the target data using the unauthorized identity fails, determining that the security test of the internal components of the target vehicle has passed.
[0050] The component with external communication function may refer to a component that can communicate with an external device via wired or wireless means, and the wireless means may include any one of Bluetooth, cellular network, etc. The number of components with external communication function in the target vehicle may be one or more, and the number is not limited in this embodiment. The first component may be any component with external communication function. Since the safety of each component with external communication function in the target vehicle can be tested in the same way as the first component, they will not be described one by one.
[0051] The aforementioned use of an unauthorized identity to access the first component of the target vehicle and operate the target data related to the first component of the target vehicle may include: setting an unauthorized identity in an electronic device, the electronic device using the unauthorized identity to access the first component, and operating the target data related to the first component of the target vehicle.
[0052] It can be seen that by adopting the above scheme, by operating the target data related to the components of the target vehicle with external communication functions, it is determined whether the safety test of the internal components of the target vehicle has passed, thereby ensuring the accuracy of the security test of the data in the components with external communication functions in the vehicle.
[0053] In some possible implementations, the operation on the target data related to the first component of the target vehicle includes at least one of the following: reading the target data related to the first component of the target vehicle; overwriting the target data related to the first component of the target vehicle; clearing the target data related to the first component of the target vehicle; or writing the target data related to the first component of the target vehicle.
[0054] Here, the target data related to the first component of the target vehicle may be data and / or code stored in the first component of the target vehicle; or, may be data and / or code stored in a storage component corresponding to the first component of the target vehicle; or, may be data and / or code stored in other components in the first internal communication subnetwork where the first component of the target vehicle is located. The target data is data that cannot be accessed by the unauthorized identity, and the authorized identity required to access the target data may be configured through the first component.
[0055] Optionally, when executing the security test of the internal components of the target vehicle, the above-mentioned four operations of read operation, overwrite operation, clear operation and write operation can be completed; accordingly, when it is determined that the operation on the target data using the unauthorized identity has failed, it is determined that the security test of the internal components of the target vehicle has passed. It can be as follows: when it is determined that the above-mentioned four operations on the target data using the unauthorized identity have all failed, it is determined that the security test of the internal components of the target vehicle has passed.
[0056] Optionally, when executing the security test of the internal components of the target vehicle, some of the above-mentioned four operations, namely, the read operation, the overwrite operation, the clear operation and the write operation, may be completed, such as only the write operation, or only the clear operation and the overwrite operation, or only the read operation, the overwrite operation and the clear operation; accordingly, when it is determined that the operation on the target data using the unauthorized identity has failed, it is determined that the security test of the internal components of the target vehicle has passed. This may be as follows: when it is determined that each of the above-mentioned operations on the target data using the unauthorized identity has failed, it is determined that the security test of the internal components of the target vehicle has passed.
[0057] In this way, one or more operations can be performed on the target data related to the first component of the target vehicle to determine whether the safety test of the internal components of the target vehicle has passed, thereby ensuring the comprehensiveness of the operation type and further ensuring the accuracy of the test.
[0058] In some possible implementations, such as Figure 2 As shown, the method may also include:
[0059] S201: launching a denial of service attack in an internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication subnetworks, and the plurality of internal communication subnetworks include the first internal communication subnetwork and the second internal communication subnetwork;
[0060] S202: During the duration of the denial of service attack, control the operation of each component of the target vehicle to obtain the operation result of each component;
[0061] S203: When the denial of service attack ends, obtaining historical record information of the target vehicle;
[0062] S204: When the operation result of each component indicates that each component operates normally and the historical record information includes the record information of the denial of service attack, determining that the internal denial of service attack test of the target vehicle passes.
[0063] In this implementation manner, the description regarding the internal communication network of the target vehicle and the internal communication network being composed of a plurality of internal communication sub-networks is the same as that in the aforementioned embodiment and will not be repeated.
[0064] The Denial of Service (DoS) attack is a type of network attack, in which an attacker controls a processing unit of a target vehicle and uses the processing unit to inject a large number of messages into the network to occupy bandwidth, causing other processing units to be unable to communicate normally.
[0065] Optionally, the multiple internal communication sub-networks in the internal communication network are multiple internal CANs.
[0066] The denial of service attack launched in the internal communication network of the target vehicle may be: an electronic device accesses one or more designated internal CANs in the internal communication network of the target vehicle, identifies the bus baud rate of each designated internal CAN in the one or more designated internal CANs, and the electronic device launches a denial of service attack to each designated internal CAN based on the bus baud rate of each designated internal CAN. The one or more designated internal CANs in the internal communication network may be all the internal CANs in the internal communication network, or may be part of the internal CANs in the internal communication network, both of which are within the protection scope of this embodiment, and the number of designated internal CANs is not limited.
[0067] The above-mentioned control of running each component of the multiple components of the target vehicle during the duration of the denial of service attack to obtain the operation result of each component may be: controlling the operation of each component in each designated internal CAN of the target vehicle during the duration of the denial of service attack to obtain the operation result of each component in each designated internal CAN. Here, running each component in each designated internal CAN of the target vehicle may refer to running each component in each designated internal CAN of the target vehicle so that each component performs its corresponding function. The operation result of each component may include: whether the component performs its corresponding function normally, or whether the component operates normally. In addition, when the component performs its corresponding function normally or the component operates normally, the operation result of the component may also include: the processing result after the component is successfully operated; since the processing results after different components are successfully operated are related to the function of the component, this embodiment does not limit the processing result after each component is successfully operated.
[0068] Optionally, the internal communication network may be an in-vehicle Ethernet.
[0069] The launching of the denial of service attack in the internal communication network of the target vehicle may be: the electronic device is networked with the vehicle-mounted Ethernet of the target vehicle, and the electronic device launches the denial of service attack to the vehicle-mounted Ethernet.
[0070] Further, in this case, the vehicle Ethernet can be composed of multiple internal communication sub-networks, and the multiple internal communication sub-networks can be multiple VLANs. Accordingly, the aforementioned electronic device is networked with the vehicle Ethernet of the target vehicle, and the electronic device launches a denial of service attack on the vehicle Ethernet, which can refer to: the electronic device is networked with the vehicle Ethernet of the target vehicle, and the electronic device launches a denial of service attack on one or more specified VLANs in the vehicle Ethernet. The one or more specified VLANs can be all VLANs in the vehicle Ethernet, or can be part of the VLANs in the internal communication network, and the number of specified VLANs is not limited.
[0071] The above-mentioned control of running each of the multiple components of the target vehicle during the duration of the denial of service attack to obtain the operation result of each component can be: controlling the operation of each component in each designated VLAN in the target vehicle during the duration of the denial of service attack to obtain the operation result of each component in each designated VLAN. Here, running each component in each designated VLAN in the target vehicle can refer to running each component in each designated VLAN in the target vehicle so that each component performs its corresponding function. The description of the operation result of each component is the same as that in the previous embodiment and is not repeated here.
[0072] When the denial of service attack ends, acquiring the historical record information of the target vehicle may include: when the denial of service attack ends, acquiring the historical record information of the target vehicle from a storage space of the target vehicle.
[0073] The historical record information may include: each communication message received by each component in the target vehicle, the type of each communication message, the reception time of each communication message, relevant information of the sender of each communication message, etc., and all the contents that may be included in the historical record information are not enumerated here.
[0074] In the case where the operation result of each component indicates that each component is operating normally, and the historical record information of the target vehicle contains the record information of the denial of service attack, determining that the internal denial of service attack test of the target vehicle has passed may include: detecting whether the operation result of each component indicates that the component is operating normally; if so, based on the start time and end time of the denial of service attack, searching the historical record information for all candidate record contents between the start time and the end time; searching from all candidate record contents whether there is a record content of the type of denial of service attack, and if so, determining that the internal denial of service attack test of the target vehicle has passed. In addition, it may also include: if the operation result of any component indicates that the component is not operating normally, or if there is no record content of the type of denial of service attack message in all candidate record contents, determining that the internal denial of service attack test of the target vehicle has failed.
[0075] It can be seen that by adopting the above scheme, a denial of service attack can be launched in the internal communication network of the target vehicle. When it is determined that each component in the target vehicle operates normally during the duration of the denial of service attack and the historical record information contains the record information of the denial of service attack, it is determined that the internal denial of service attack test of the target vehicle has passed; in this way, it can be tested whether the various components can operate normally when the internal communication network of the target vehicle is subjected to a denial of service attack, and whether the denial of service attack can be identified, thereby ensuring the accuracy of the internal denial of service attack test on the target vehicle.
[0076] In some possible implementations, it also includes: transmitting abnormal message data in the internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication sub-networks, and the plurality of internal communication sub-networks include the first internal communication sub-network and the second internal communication sub-network; and determining that the internal abnormal data test of the target vehicle has passed when it is determined that the control component of each internal communication sub-network in the plurality of internal communication sub-networks refuses to respond to the abnormal message data.
[0077] This implementation is particularly suitable for a scenario where the internal communication network is configured in the form of CAN.
[0078] The transmitting of abnormal message data in the internal communication network of the target vehicle may refer to: the electronic device constructing the abnormal communication message, the electronic device accessing the internal communication network of the target vehicle, and transmitting the abnormal message data in each internal communication sub-network of the internal communication network.
[0079] The abnormal message data may be an unexpected message or may be message data that exceeds a normal parameter range; in some examples, the abnormal message data may also be referred to as malicious data. It should be understood that, in addition to the several possible types listed above, the abnormal message data may also be any message that is different from the normal message specified by the internal communication network, but this embodiment does not make an exhaustive list. This embodiment does not limit the way in which the electronic device constructs the abnormal communication message.
[0080] The electronic device is connected to the internal communication network of the target vehicle, and in each internal communication sub-network of the internal communication network, the abnormal message data can be transmitted as follows: the electronic device is connected to the internal communication network of the target vehicle, and the abnormal message data is transmitted on each internal CAN bus channel of the internal communication network.
[0081] The determination that the internal abnormal data test of the target vehicle has passed when it is determined that the control component of each of the multiple internal communication subnetworks refuses to respond to the abnormal message data may include: determining that the internal abnormal data test of the target vehicle has passed when the control component of each of the multiple internal communication subnetworks issues a rejection response message to the abnormal message data; or determining that the internal abnormal data test of the target vehicle has passed when it is determined that the control component of each of the multiple internal communication subnetworks does not respond to the abnormal message data and records the abnormal message data. Wherein, the control component of any internal communication subnetwork may refer to a controller in any internal CAN.
[0082] In addition, the method may further include: determining that the internal abnormal data test of the target vehicle passes when it is determined that the control component of any one of the multiple internal communication subnetworks confirms the abnormal message data. The control component of any one of the internal communication subnetworks confirms the abnormal message data, which may mean that the control component of any one of the internal communication subnetworks sends a confirmation response message of the abnormal message data.
[0083] It can be seen that by adopting the above scheme, abnormal message data can be transmitted to the internal communication network of the target vehicle, and each internal communication sub-network can be detected to see whether the abnormal message data is rejected. If so, it is determined that the internal abnormal data test of the target vehicle has passed. In this way, on the basis of the internal isolation security test of the target vehicle, it is possible to further test whether the control unit of each internal communication sub-network can recognize abnormal data, thereby ensuring the accuracy and comprehensiveness of the internal test of the target vehicle.
[0084] A second aspect of the present disclosure provides an internal safety testing device for a vehicle, such as Figure 3 As shown, including:
[0085] The control module 301 is used to control a first component in a target vehicle to transmit a data frame to a second component of the target vehicle; wherein the first component of the target vehicle is a component within a first internal communication subnetwork of the target vehicle, and the second component of the target vehicle is a component within a second internal communication subnetwork of the target vehicle, and the first internal communication subnetwork and the second internal communication subnetwork are isolated from each other;
[0086] The test result determination module 302 is used to determine whether the internal isolation safety test of the target vehicle has passed when it is determined that the data frame transmission has failed.
[0087] The test result determination module is used to perform one of the following:
[0088] In the case where the first component of the target vehicle fails to send a data frame, determining that the data frame transmission fails;
[0089] In the case where the second component of the target vehicle does not receive the data frame, it is determined that the data frame transmission has failed.
[0090] The first component of the target vehicle is a component having an external communication function; Figure 3 On the basis of Figure 4 As shown, the device also includes:
[0091] The data processing module 401 is used to access the first component of the target vehicle using an unauthorized identity and operate target data related to the first component of the target vehicle, wherein the target data is data that cannot be accessed by the unauthorized identity;
[0092] The test result determination module 302 is used to determine whether the safety test of the internal components of the target vehicle has passed when it is determined that the operation on the target data using the unauthorized identity has failed.
[0093] The data processing module is used to perform at least one of the following:
[0094] Performing a reading operation on target data related to a first component of the target vehicle;
[0095] Performing an overwriting operation on target data related to a first component of the target vehicle;
[0096] performing a clearing operation on target data related to a first component of the target vehicle;
[0097] A write operation is performed on target data related to a first component of the target vehicle.
[0098] exist Figure 4 On the basis of Figure 5 As shown, the vehicle's internal safety testing device also includes:
[0099] A communication module 501, configured to initiate a denial of service attack in an internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication subnetworks, and the plurality of internal communication subnetworks include the first internal communication subnetwork and the second internal communication subnetwork;
[0100] An information acquisition module 502 is used to acquire the historical record information of the target vehicle when the denial of service attack ends;
[0101] The control module 301 is used to control the operation of each component of the target vehicle within the duration of the denial of service attack to obtain the operation result of each component;
[0102] The test result determination module 302 is used to determine that the internal denial of service attack test of the target vehicle has passed when the operation result of each component indicates that each component is operating normally and the historical record information contains the record information of the denial of service attack.
[0103] The communication module is used to transmit abnormal message data in the internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication sub-networks, and the plurality of internal communication sub-networks include the first internal communication sub-network and the second internal communication sub-network;
[0104] The test result determination module is used to determine that the internal abnormal data test of the target vehicle has passed when it is determined that the control component of each internal communication sub-network in the multiple internal communication sub-networks refuses to respond to the abnormal message data.
[0105] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0106] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0107] Figure 6A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0108] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0109] Multiple components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0110] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the various methods described above may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the various methods described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the various methods described above in any other appropriate manner (e.g., by means of firmware).
[0111] According to yet another embodiment of the present disclosure, a vehicle is provided. The vehicle includes the electronic device 600 of the above embodiment.
[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0114] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0115] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0116] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0117] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0119] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for testing the internal safety of a vehicle, comprising: Controlling a first component in a target vehicle to transmit a data frame to a second component of the target vehicle; wherein the first component of the target vehicle is a component within a first internal communication subnetwork of the target vehicle, and the second component of the target vehicle is a component within a second internal communication subnetwork of the target vehicle, and the first internal communication subnetwork and the second internal communication subnetwork are isolated from each other; In the case where it is determined that the data frame transmission fails, it is determined that the internal isolation safety test of the target vehicle passes.
2. The method according to claim 1, further comprising one of the following: In the case where the first component of the target vehicle fails to send a data frame, determining that the data frame transmission fails; In the case where the second component of the target vehicle does not receive the data frame, it is determined that the data frame transmission has failed.
3. The method according to claim 1, wherein: The first component of the target vehicle is a component having an external communication function; the method further includes: Accessing the first component of the target vehicle using an unauthorized identity, and operating target data related to the first component of the target vehicle, wherein the target data is data that cannot be accessed by the unauthorized identity; In the case where it is determined that the operation on the target data using the unauthorized identity fails, it is determined that the security test of the internal components of the target vehicle passes.
4. The method according to claim 3, wherein: The operating the target data related to the first component of the target vehicle includes at least one of the following: Performing a reading operation on target data related to a first component of the target vehicle; Performing an overwriting operation on target data related to a first component of the target vehicle; performing a clearing operation on target data related to a first component of the target vehicle; A write operation is performed on target data related to a first component of the target vehicle.
5. The method according to any one of claims 1 to 4, further comprising: Initiating a denial of service attack in an internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication subnetworks, and the plurality of internal communication subnetworks include the first internal communication subnetwork and the second internal communication subnetwork; During the duration of the denial of service attack, control the operation of each component of the target vehicle to obtain the operation result of each component; When the denial of service attack ends, obtaining historical record information of the target vehicle; When the operation result of each component indicates that each component operates normally and the historical record information includes the record information of the denial of service attack, it is determined that the internal denial of service attack test of the target vehicle passes.
6. The method according to any one of claims 1 to 4, further comprising: Transmitting abnormal message data in an internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication sub-networks, and the plurality of internal communication sub-networks include the first internal communication sub-network and the second internal communication sub-network; In the case where it is determined that the control component of each of the plurality of internal communication sub-networks refuses to respond to the abnormal message data, it is determined that the internal abnormal data test of the target vehicle passes.
7. A vehicle internal safety testing device, comprising: A control module, used for controlling a first component in a target vehicle to transmit a data frame to a second component of the target vehicle; wherein the first component of the target vehicle is a component within a first internal communication subnetwork of the target vehicle, and the second component of the target vehicle is a component within a second internal communication subnetwork of the target vehicle, and the first internal communication subnetwork and the second internal communication subnetwork are isolated from each other; The test result determination module is used to determine whether the internal isolation safety test of the target vehicle has passed when it is determined that the data frame transmission has failed.
8. The device according to claim 7, wherein: The test result determination module is used to perform one of the following: In the case where the first component of the target vehicle fails to send a data frame, determining that the data frame transmission fails; In the case where the second component of the target vehicle does not receive the data frame, it is determined that the data frame transmission has failed.
9. The device according to claim 7, wherein: The first component of the target vehicle is a component having an external communication function; the device further comprises: A data processing module, used to access the first component of the target vehicle using an unauthorized identity, and operate target data related to the first component of the target vehicle, wherein the target data is data that cannot be accessed by the unauthorized identity; The test result determination module is used to determine whether the safety test of the internal components of the target vehicle has passed when it is determined that the operation on the target data using the unauthorized identity has failed.
10. The device according to claim 9, wherein: The data processing module is used to perform at least one of the following: Performing a reading operation on target data related to a first component of the target vehicle; Performing an overwriting operation on target data related to a first component of the target vehicle; performing a clearing operation on target data related to a first component of the target vehicle; A write operation is performed on target data related to a first component of the target vehicle.
11. The device according to any one of claims 7 to 10, further comprising: A communication module, configured to initiate a denial of service attack in an internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication subnetworks, and the plurality of internal communication subnetworks include the first internal communication subnetwork and the second internal communication subnetwork; An information acquisition module, used for acquiring historical record information of the target vehicle when the denial of service attack ends; The control module is used to control the operation of each component of the multiple components of the target vehicle during the duration of the denial of service attack to obtain the operation result of each component; The test result determination module is used to determine that the internal denial of service attack test of the target vehicle has passed when the operation result of each component indicates that each component is operating normally and the historical record information contains the record information of the denial of service attack.
12. The device according to any one of claims 7 to 10, further comprising: A communication module, used for transmitting abnormal message data in an internal communication network of the target vehicle, wherein the internal communication network is composed of a plurality of internal communication sub-networks, and the plurality of internal communication sub-networks include the first internal communication sub-network and the second internal communication sub-network; The test result determination module is used to determine that the internal abnormal data test of the target vehicle has passed when it is determined that the control component of each internal communication sub-network in the multiple internal communication sub-networks refuses to respond to the abnormal message data.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
