Vehicle network data protection method and system and storage medium
By configuring whitelist information to generate protection rule files and using protection function modules and security engines to establish a firewall, the problem of illegal acquisition and tampering of vehicle network data in intelligent connected vehicles is solved, and the security guarantees of vehicles and users are achieved.
Patent Information
- Application Number
- CN202411064464.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-06
AI Technical Summary
After the popularization of intelligent connected vehicles, the illegal acquisition and tampering of vehicle network data in physical contactless scenarios may affect the vehicle's driving safety and endanger the safety of users.
By configuring whitelist information to generate protection rule files, protect vehicle network data, update rule files based on protection analysis results, use protection function modules and security engines to establish firewalls to intercept abnormal data, and ensure data security.
It realizes accurate protection of vehicle network data, ensures the safety of vehicles and users, and improves protection efficiency and accuracy by dynamically updating rule files.
Smart Images

Figure CN119094164A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle data protection, and in particular to a vehicle network data protection method, system and storage medium. Background Art
[0002] With the popularity of intelligent connected cars, the network data of vehicles is increasing. If illegal users obtain and / or tamper with the network data of vehicles (data involving security) without physical contact with the vehicle, it may affect the driving of the vehicle and endanger the safety of users. Summary of the invention
[0003] In view of the defects existing in the prior art, the technical problem solved by the present invention is: how to protect vehicle network data.
[0004] To achieve the above objectives, in the first aspect, an embodiment of the present application provides a method for protecting vehicle network data, characterized in that the method includes the following steps: configuring a protection rule file based on the whitelist information of the vehicle network data, the vehicle network data including network data and vehicle-side system data; protecting the vehicle network data according to the protection rule file.
[0005] In combination with the first aspect, in one embodiment, the method further includes the following steps: updating the protection rule file according to the analysis results of the protected network data, and the updating method includes adding and deleting whitelist information.
[0006] In combination with the first aspect, in one embodiment, the process of obtaining the analysis results includes: obtaining data protection information in the process of protecting vehicle network data, and generating analysis results of corresponding network data according to the data protection information.
[0007] In combination with the first aspect, in one embodiment, the process of updating the protection rule file based on the analysis results of the protected network data includes: for network data whose analysis results are normal but there is no corresponding whitelist information in the protection rule file, the network data is converted into whitelist information and added to the protection rule file; for network data whose analysis results are abnormal but there is corresponding whitelist information in the protection rules, the whitelist information corresponding to the network data is deleted from the protection rule file.
[0008] In combination with the first aspect, in one embodiment, the process of protecting vehicle network data according to the protection rule file includes: collecting network data packets, transmitting network data packets that hit the whitelist information in the protection rule file, and intercepting network data packets that do not hit the whitelist information in the protection rule file.
[0009] In a second aspect, an embodiment of the present application provides a vehicle network data protection system, which is used to implement the method provided in the first aspect.
[0010] In conjunction with the second aspect, in one implementation, the system includes: a protection rule generation module, a security engine, a protection function module, a security log analysis module, and a probe module;
[0011] The protection rule generation module is used to: configure the protection rule file according to the whitelist information of the vehicle network data; update the protection rule file according to the analysis results transmitted by the security log analysis module;
[0012] The security engine is used to: carry the protection rule generation module, the protection function module, the security log generation module and the probe module, generate the security log according to the working information of the protection function module and transmit it to the security log analysis module;
[0013] The probe module is used to collect network messages and system operation status messages;
[0014] The protection function module is used to: protect the network messages and system operation status messages collected by the probe module according to the protection rule file generated by the protection rule generation module;
[0015] The security log analysis module is used to: upload the security logs generated by the security engine to the cloud for unified management in the cloud; and transmit the analysis results returned from the cloud to the protection rule generation module.
[0016] In combination with the second aspect, in one embodiment, the protection function module is specifically used to: establish a firewall, the protection wall includes a network IDPS and a host IDPS; the network IDPS is used to protect the network messages collected by the probe module, and the host IDPS is used to protect the system operation status messages collected by the probe module.
[0017] In conjunction with the second aspect, in one implementation, the security engine is specifically used to: load each module based on a configuration file, where the configuration file includes a relevant configuration of a TCP / IP protocol stack and a relevant configuration of a CAN protocol stack;
[0018] The relevant configuration of the TCP / IP protocol stack provides three hook interfaces: CDF_T_INPUT, CDF_T_PREROUTE and CDF_T_POSTROUTE;
[0019] The modules mounted on CDF_T_INPUT include:
[0020] SESSION session module, used to: create cdf_session, connection tracking and provide data carriers for other modules;
[0021] PF security protection module, used to: analyze and protect messages based on cdf_session;
[0022] IDS intrusion detection module is used to: analyze network behavior based on cdf_session and current packets and record;
[0023] The modules mounted on CDF_T_PREROUTE include:
[0024] SNAT source address translation module, used to: make conditional judgments based on cdf_session and update sessions;
[0025] The modules mounted on CDF_T_POSTROUTE include:
[0026] DNAT destination address translation module, used to: make conditional judgments based on cdf_session and update sessions;
[0027] The PB packet processing module is used to: determine whether a session update has occurred in the packet, and if so, update it into the message;
[0028] The relevant configuration of the CAN protocol stack provides two hook interfaces: CDF_C_INPUT and CDF_C_OUTPUT;
[0029] The modules mounted on CDF_C_INPUT include:
[0030] FRAME frame tracking module, used to: create cdf_frame, record the state of the frame and provide data carriers for other modules;
[0031] PF security protection module, used to: perform frame analysis and protection based on cdf_frame;
[0032] IDS intrusion detection module is used to: analyze network behavior based on cdf_frame and current frame and record;
[0033] The security modules mounted on CDF_C_OUTPUT include:
[0034] The FB frame processing module is used to determine whether a frame update has occurred in the packet, and if so, update it to the real frame.
[0035] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a protection program for vehicle network data is stored, and when the computer program is executed, the method provided in the first aspect is implemented.
[0036] Compared with the prior art, the advantages of the present invention are:
[0037] (1) The present invention can configure a protection rule file according to whitelist information, and can protect vehicle network data according to the protection rule file, thereby ensuring the security of vehicle data and, subsequently, the safety of users.
[0038] (2) The present invention can update the protection rule file by obtaining the analysis results based on the data protection information. During the update, the whitelist information corresponding to the network data with normal analysis results will be added, and the whitelist information corresponding to the network data with abnormal analysis results will be deleted, thereby realizing accurate protection of network data.
[0039] (3) The security engine of the present invention is designed to provide a registration platform, which can flexibly release related hook functions based on configuration files, specify configuration strategies, monitor and determine detection behaviors, and thus realize dynamic regulation of the system for the monitored objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 It is a schematic diagram of functional modules of a vehicle network data protection system in an embodiment of the present invention;
[0042] Figure 2 It is a schematic diagram of the relevant configuration of the TCP / IP protocol stack;
[0043] Figure 3 It is a schematic diagram of the relevant configuration of the CAN protocol stack;
[0044] Figure 4 This is a schematic diagram of the hardware structure of the vehicle network data protection system involved in the embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0046] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0047] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0048] In a first aspect, an embodiment of the present application provides a method for protecting vehicle network data, the steps of the method comprising: configuring a protection rule file based on whitelist information of the vehicle network data, the vehicle network data including network data and vehicle-side system data; protecting the vehicle network data according to the protection rule file.
[0049] It can be seen from this that the present invention can configure a protection rule file according to whitelist information, and can protect vehicle network data according to the protection rule file, thereby ensuring the security of vehicle data and, subsequently, the safety of users.
[0050] In one embodiment, the above method further includes the following steps: updating the protection rule file according to the analysis results of the protected network data, and the updating method includes adding and deleting whitelist information.
[0051] Specifically, the process of obtaining the above analysis results includes: obtaining and uploading data protection information (ie, security logs), and generating analysis results of corresponding network data based on the data protection information.
[0052] Furthermore, the above-mentioned process of updating the protection rule file based on the analysis results of the protected network data includes: for network data whose analysis results are normal but there is no corresponding whitelist information in the protection rule file, the network data is converted into whitelist information and added to the protection rule file; for network data whose analysis results are abnormal but there is corresponding whitelist information in the protection rules, the whitelist information corresponding to the network data is deleted from the protection rule file.
[0053] It can be seen from this that the present invention can update the protection rule file through the analysis results obtained based on the data protection information. During the update, the whitelist information corresponding to the network data with normal analysis results will be added, and the whitelist information corresponding to the network data with abnormal analysis results will be deleted, thereby achieving accurate protection of network data.
[0054] In one embodiment, the whitelist information in the above method includes: specified five-tuple information, specified keywords, etc.
[0055] In one embodiment, the above-mentioned process of protecting vehicle network data according to the protection rule file includes: collecting network data packets, transmitting network data packets that hit the whitelist information in the protection rule file, and intercepting network data packets that do not hit the whitelist information in the protection rule file.
[0056] In a second aspect, an embodiment of the present application further provides a vehicle network data protection system, which is used to: implement the method provided in the first aspect.
[0057] In one embodiment, referring to Figure 1 As shown, Figure 1 This is a functional module diagram of an embodiment of the vehicle network data protection device of the present application. Figure 1 As shown, the vehicle network data protection system includes: a protection rule generation module, a security engine, a protection function module, a security log analysis module and a probe module.
[0058] The protection rule generation module is used to: configure the protection rule file according to the whitelist information of the vehicle network data; and update the protection rule file according to the analysis results transmitted by the security log analysis module.
[0059] The security engine is used to: carry a protection rule generation module, a protection function module, a security log generation module and a probe module, generate a security log (i.e. data protection information) based on the working information of the protection function module and transmit it to the security log analysis module.
[0060] The probe module is used to collect network messages and system operation status messages.
[0061] The protection function module is used to protect the network messages and system operation status messages collected by the probe module according to the protection rule file generated by the protection rule generation module.
[0062] Specifically, the execution method of the protection function module is: establish a firewall, and the firewall inserts the security protection processing into the network forwarding processing process in the form of serial takeover, and decides the network transmission behavior by matching the parameters and characteristics of the traffic (such as the five-tuple information transmitted by Ethernet).
[0063] The protection wall includes network IDPS (Intrusion Detection and Prevention Systems, a network security technology that combines the functions of intrusion detection system (IDS) and intrusion prevention system (IPS)) and host IDPS. Both network IDPS and host IDPS are mounted in bypass mode.
[0064] The network IDPS is used to protect the network messages collected by the probe module (for example, monitoring and checking the traffic of Ethernet and CAN networks), and the host IDPS is used to protect the system operation status messages collected by the probe module (for example, recording the usage status of system operation resources, determining whether there are illegal programs running, etc.).
[0065] The security log analysis module is used to: upload the security logs generated by the security engine to the cloud for unified management in the cloud; and transmit the analysis results returned from the cloud to the protection rule generation module.
[0066] In one embodiment, the security engine provides a registration platform, loads various modules at startup based on the configuration file, and each security module is sequentially loaded at a specified hook point. Each hook will sequentially execute all registered module processing when called.
[0067] The configuration file consists of two parts, one is the configuration related to the TCP / IP protocol stack, and the other is the configuration related to the CAN protocol stack. Each part defines the hooks that it supports for mounting, and each has its own mask to distinguish the processing at each opportunity.
[0068] See also Figure 2 As shown in the figure, the security engine provides three external hook interfaces to the TCP / IP protocol stack:
[0069] CDF_T_INPUT, CDF_T_PREROUTE and CDF_T_POSTROUTE.
[0070] The security modules that can be mounted on CDF_T_INPUT include:
[0071] SESSION session module, creates cdf_session, connection tracking and provides data carriers for other modules;
[0072] PF security protection module, which performs message analysis and protection based on cdf_session;
[0073] IDS intrusion detection module analyzes network behavior and records it based on cdf_session and current packets.
[0074] The security modules that can be mounted on CDF_T_PREROUTE include:
[0075] The SNAT source address translation module makes conditional judgments and updates the session based on cdf_session.
[0076] The security modules that can be mounted on CDF_T_POSTROUTE include:
[0077] DNAT destination address translation module, which makes conditional judgments and updates sessions based on cdf_session;
[0078] The PB packet processing module determines whether the packet has a session update. If so, it updates the message. This node is the only one among all nodes that updates the original message. Other nodes can only update the session.
[0079] See also Figure 3 As shown, the security engine provides two external hook interfaces to the CAN protocol stack: CDF_C_INPUT and CDF_C_OUTPUT.
[0080] The security modules that can be mounted on CDF_C_INPUT include:
[0081] FRAME frame tracking module, creates cdf_frame, records the state of the frame and provides data carriers for other modules;
[0082] PF security protection module, performs frame analysis and protection based on cdf_frame;
[0083] IDS intrusion detection module, which analyzes network behavior and records it based on cdf_frame and current frame;
[0084] The security modules that can be mounted on CDF_C_OUTPUT include:
[0085] The FB frame processing module determines whether the packet has been updated. If so, it updates it to the real frame. This node is the only one that updates the original frame. Other nodes can only update cdf_frame.
[0086] In a third aspect, an embodiment of the present application provides a vehicle network data protection device, which may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.
[0087] Reference Figure 4 , Figure 4 The hardware structure diagram of the vehicle network data protection device involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the vehicle network data protection device may include a processor, a memory, a communication interface, and a communication bus.
[0088] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0089] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces, which are used to interconnect the devices inside the vehicle network data protection device, and interfaces used to interconnect the vehicle network data protection device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.
[0090] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0091] The processor may be a general-purpose processor, which may call the protection program for vehicle network data stored in the memory and execute the protection method for vehicle network data provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the protection program for vehicle network data is called may refer to the various embodiments of the protection method for vehicle network data of the present application, which will not be described in detail here.
[0092] Those skilled in the art will understand that Figure 4 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0093] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0094] The computer-readable storage medium of the present application stores a vehicle network data protection program, wherein when the vehicle network data protection program is executed by a processor, the steps of the vehicle network data protection method as described above are implemented.
[0095] Among them, the method implemented when the vehicle network data protection program is executed can refer to the various embodiments of the vehicle network data protection method of the present application, and will not be repeated here.
[0096] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal system to execute the methods described in each embodiment of the present application.
[0098] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or system comprising a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or systems. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to be different types.
[0099] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0100] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0101] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal system to execute the methods described in each embodiment of the present application.
[0103] The above are only specific implementations of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the embodiments of the present invention, and these modifications or replacements should be included in the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for protecting vehicle network data, characterized in that: The method includes the following steps: configuring a protection rule file according to whitelist information of vehicle network data, the vehicle network data including network data and vehicle-side system data; and protecting the vehicle network data according to the protection rule file.
2. The vehicle network data protection method according to claim 1, characterized in that: The method also includes the following steps: updating the protection rule file according to the analysis results of the protected network data, and the updating method includes adding and deleting whitelist information.
3. The vehicle network data protection method according to claim 2, characterized in that: The process of obtaining the analysis results includes: obtaining data protection information in the process of protecting vehicle network data, and generating analysis results of corresponding network data according to the data protection information.
4. The vehicle network data protection method according to claim 3, characterized in that: The process of updating the protection rule file based on the analysis results of the protected network data includes: for network data whose analysis results are normal but there is no corresponding whitelist information in the protection rule file, the network data is converted into whitelist information and added to the protection rule file; for network data whose analysis results are abnormal but there is corresponding whitelist information in the protection rules, the whitelist information corresponding to the network data is deleted from the protection rule file.
5. The vehicle network data protection method according to claim 4, characterized in that: The process of protecting vehicle network data according to the protection rule file includes: collecting network data messages, transmitting network data messages that hit the whitelist information in the protection rule file, and intercepting network data messages that do not hit the whitelist information in the protection rule file.
6. A vehicle network data protection system, characterized in that: The system is used to implement the method described in any one of claims 1 to 5.
7. The vehicle network data protection system according to claim 6, characterized in that: The system includes: a protection rule generation module, a security engine, a protection function module, a security log analysis module and a probe module; The protection rule generation module is used to: configure the protection rule file according to the whitelist information of the vehicle network data; update the protection rule file according to the analysis results transmitted by the security log analysis module; The security engine is used to: carry the protection rule generation module, the protection function module, the security log generation module and the probe module, generate the security log according to the working information of the protection function module and transmit it to the security log analysis module; The probe module is used to collect network messages and system operation status messages; The protection function module is used to: protect the network messages and system operation status messages collected by the probe module according to the protection rule file generated by the protection rule generation module; The security log analysis module is used to: upload the security logs generated by the security engine to the cloud for unified management in the cloud; and transmit the analysis results returned from the cloud to the protection rule generation module.
8. The vehicle network data protection system according to claim 7, characterized in that: The protection function module is specifically used to: establish a firewall, the protection wall includes a network IDPS and a host IDPS; the network IDPS is used to protect the network messages collected by the probe module, and the host IDPS is used to protect the system operation status messages collected by the probe module.
9. The vehicle network data protection system according to claim 8, characterized in that: The security engine is specifically used to: load each module based on a configuration file, the configuration file includes the relevant configuration of the TCP / IP protocol stack and the relevant configuration of the CAN protocol stack; The relevant configuration of the TCP / IP protocol stack provides three hook interfaces: CDF_T_INPUT, CDF_T_PREROUTE and CDF_T_POSTROUTE; The modules mounted on CDF_T_INPUT include: SESSION session module, used to: create cdf_session, connection tracking and provide data carriers for other modules; PF security protection module, used to: analyze and protect messages based on cdf_session; IDS intrusion detection module is used to: analyze network behavior based on cdf_session and current packets and record; The modules mounted on CDF_T_PREROUTE include: SNAT source address translation module, used to: make conditional judgments based on cdf_session and update sessions; The modules mounted on CDF_T_POSTROUTE include: DNAT destination address translation module, used to: make conditional judgments based on cdf_session and update sessions; The PB packet processing module is used to: determine whether a session update has occurred in the packet, and if so, update it into the message; The relevant configuration of the CAN protocol stack provides two hook interfaces: CDF_C_INPUT and CDF_C_OUTPUT; The modules mounted on CDF_C_INPUT include: FRAME frame tracking module, used to: create cdf_frame, record the state of the frame and provide data carriers for other modules; PF security protection module, used to: perform frame analysis and protection based on cdf_frame; IDS intrusion detection module is used to: analyze network behavior based on cdf_frame and current frame and record; The security modules mounted on CDF_C_OUTPUT include: The FB frame processing module is used to determine whether a frame update has occurred in the packet, and if so, update it to the real frame.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a vehicle network data protection program, wherein when the vehicle network data protection program is executed, the steps of the vehicle network data protection method according to any one of claims 1 to 5 are implemented.
