Method and system for reporting alarm event by vehicle-mounted firewall on basis of probe mechanism

By introducing a probe mechanism into the vehicle firewall to parse and report network data packets, it solves the problem that the vehicle firewall alarm log cannot be reported in a timely manner, improves vehicle security and firewall policy update efficiency, and reduces the risk of intrusion.

WO2024198285A1PCT designated stage expired Publication Date: 2024-10-03SAIC GM WULING AUTOMOBILE CO LTD

Patent Information

Application Number
PCT/CN2023/121440
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2023-09-26
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing vehicle firewall alarm logs cannot be detected and reported in a timely manner, which increases the risk of intrusion.

Method used

Based on the probe mechanism, the firewall component probe package is imported, the firewall component is initialized, network data packets are parsed, the kernel system API is called, the threat level is determined, and relevant event logs are generated and reported to the cloud platform to achieve dynamic updating of firewall policies and threat detection.

Benefits of technology

It solves the problem that vehicle firewall alarm logs cannot be sensed and reported in a timely manner, improves vehicle safety, reduces the resource investment of operation and maintenance personnel, reduces the risk of intrusion, and enables timely updates of firewall policies through the cloud.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023121440_03102024_PF_FP_ABST
    Figure CN2023121440_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of the mobile Internet. Disclosed are a method and system for reporting an alarm event by a vehicle-mounted firewall on the basis of a probe mechanism. The method comprises: importing a firewall component probe packet into a vehicle system, and initializing a firewall component; obtaining a data packet on a network card, parsing a network data packet, calling a kernel system API, and searching for a policy cache; and generating a related event output log according to data packet information and a policy hit result, and reporting the related event output log to a cloud platform. The method for reporting an alarm event by a vehicle-mounted firewall on the basis of a probe mechanism provided in the present invention solves the problem of it being impossible to sense and report an alarm log of a vehicle-mounted firewall in a timely manner, thus increasing the risk of being intruded; and a firewall log can be acquired in a timely manner by means of a probe program, and reported to a cloud end, thereby facilitating solving and fixing a subsequent problem, and updating a firewall rule and policy, and thus improving the safety of a vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Method and system for reporting alarm events to vehicle-mounted firewall based on probe mechanism Technical Field

[0001] The present invention relates to the field of mobile Internet technology, and in particular to a method for realizing alarm event reporting on a vehicle-mounted firewall based on a probe mechanism. Background Art

[0002] With the rapid development of intelligent connected vehicles, many vehicles both domestically and internationally are equipped with firewall technology, ensuring a certain level of vehicle information security. By establishing a network communication monitoring system at the network boundary, internal and external networks can be isolated to prevent external network intrusions. Firewall policies refer to the regulations, rules, requirements, or filtering clauses that a firewall complies with. Policy information generally includes information such as the source IP address, destination IP address, protocol, and destination port.

[0003] Traditional firewall strategies are based on early development requirements definition and design to block / release data packets during vehicle network communications. However, this process is an unconscious background process and the blocking and releasing policy content cannot be updated in a timely manner. This makes it easy for network intruders to exploit security vulnerabilities through illegal means, increasing the risk of system intrusion.

[0004] Therefore, there is an urgent need to implement a method for reporting alarm events on the vehicle firewall based on the probe mechanism to solve the problem that the vehicle firewall alarm log cannot be perceived and reported in a timely manner, thereby reducing the risk of intrusion.

[0005] Summary of the Invention

[0006] The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract and title of this application to avoid obscuring the purpose of this section, the abstract and the title of the invention, and such simplifications or omissions should not be used to limit the scope of the present invention.

[0007] In view of the above-mentioned problems, the present invention is proposed.

[0008] Therefore, the technical problem solved by the present invention is: the problem that the existing solution to the vehicle-mounted firewall alarm log cannot be perceived and reported in time, which increases the risk of being invaded.

[0009] To solve the above technical problems, the present invention provides the following technical solution: a method for realizing an alarm event reporting of an in-vehicle firewall based on a probe mechanism, comprising:

[0010] Import the firewall component probe package into the vehicle system to initialize the firewall component;

[0011] Get the data packet on the network card, parse the network data packet, call the kernel system API, and search the policy cache;

[0012] Based on the data packet information and policy hit results, the threat level is determined, relevant event output logs are generated, and reported to the cloud platform.

[0013] As a preferred solution of the method for realizing alarm event reporting of an in-vehicle firewall based on a probe mechanism according to the present invention, the initialization of the firewall component includes:

[0014] The policy content is obtained by calling the policy management component and cached in RAM. The probe program starts with the vehicle system and requests rules from the policy management component. The policy management component returns the rules and verifies the legality of the rule format.

[0015] When the rule format verification passes, the obtained rules are sent to the cache module. After the cache is completed, the rules are loaded normally and the firewall component is initialized.

[0016] If any of the above initialization steps fails, the system enters bypass mode, and the probe program restarts the initialization process after entering bypass mode;

[0017] The bypass mode includes the firewall component not performing policy matching, capturing input but not performing any output, and the system operates normally.

[0018] As a preferred solution of the method for realizing alarm event reporting on a vehicle-mounted firewall based on a probe mechanism according to the present invention, the step of obtaining data on a network card includes:

[0019] Through the Linux kernel's network subsystem Netfilter framework, the packet logic processing is registered in the framework, and self-learning detection and recognition optimization is adopted;

[0020] The said parsing of network data includes obtaining source IP, destination IP, source port, destination port, and data packet protocol;

[0021] The calling of the kernel system API includes obtaining the process ID of the application to which the network data packet belongs through the kernel system interface, thereby obtaining the identity of the application to which the data packet belongs;

[0022] The search strategy cache includes analyzing and parsing network data packets and calling the kernel system API to obtain whether the data matches.

[0023] As a preferred solution of the method for realizing the vehicle firewall to report alarm events based on the probe mechanism according to the present invention, the self-learning detection and identification optimization is expressed as follows:

[0024] Among them, f krepresents the gradient of the objective function, represents the partial derivative, Indicates W to L k The partial derivative of W represents the number of identification parameters in the data packet, L k is the Cartesian space coordinate, ΔD is the difference between the calculated value and the measured value, and J is the sensitivity matrix.

[0025] As a preferred solution of the method for realizing reporting alarm events on a vehicle-mounted firewall based on a probe mechanism according to the present invention, whether the data matches includes:

[0026] Identify the acquired data and upload it to the cloud platform. The cloud platform determines whether it matches the information in the database and performs list type analysis and identification. If the information matches the firewall policy whitelist, the data packet is released and the release record is stored in the cloud platform.

[0027] When the information matches the firewall policy blacklist, data is intercepted;

[0028] When the information matches no record, the cloud platform analyzes the number of accesses. When it is accessed for the first time, the data is classified as graylisted and data packet operations are restricted.

[0029] As a preferred solution of the method for realizing alarm event reporting of an in-vehicle firewall based on a probe mechanism according to the present invention, the operation of limiting data packets includes:

[0030] Analyze the greylist data packets, compare them with the network data packets parsed in the cloud platform, call the kernel system API data for comparison, and report the greylist information data to the cloud platform;

[0031] If the data matches the data in the blacklist, the grey list will be converted to the blacklist and the data will be intercepted;

[0032] If the data matches the data in the whitelist, the greylist is converted to the whitelist and the data packet is released;

[0033] If the data does not match the data in the blacklist or whitelist, temporary access is allowed and the message information of the access request is obtained. The sent data message is recorded and the message characteristics are analyzed. If the message characteristics and data packet information are unrelated, it is determined that the connection behavior is suspicious, the data information is added to the blacklist, the data is intercepted, the user is notified of the suspicious behavior, and the user is prompted to uninstall;

[0034] The message characteristic data packet information is not associated including:

[0035] Obtain the source IP, destination IP, source port, destination port, packet protocol, and process ID information of the graylisted packet, and compare them with the permitted values ​​recorded in the cloud platform database. If the process ID information does not match, it is judged as suspicious behavior, the packet information is added to the blacklist, the data information is updated in the cloud platform blacklist database, and the packet is intercepted;

[0036] If all the conditions are met and it is judged as normal behavior, the data information will be added to the whitelist, the data information will be updated in the cloud platform whitelist database and the data packet will be released.

[0037] As a preferred solution of the method for realizing the vehicle firewall to report alarm events based on the probe mechanism of the present invention, the threat level is expressed as: A(p i )=α*(1-C λ )+β*(a1*(P c *C+P i *I+P a *A)+a2*NC+a3*(b1*Pr+b2*Cr+b3*Sr))

[0038] Among them, p i is the fragile state of the node, C λ is the attack complexity, C, I, A are confidentiality, integrity and availability values ​​respectively, NC is the node correlation, Pr and Cr are the node properties and node subject criticality respectively, α and β are the indicator weights that sum to 1, a1, a2, a3 are the indicator weights that sum to 1, P c 、P i 、P a are the indicator weights that sum to 1, b1, b2, and b3 are the indicator weights that sum to 1;

[0039] The attack prediction results are sorted according to the threat level, and an unknown threat report is generated. The attack features of the corresponding attack prediction results are added to the attack knowledge base. The operation and maintenance personnel upgrade the cloud platform version based on the threat report.

[0040] Another object of the present invention is to provide a system for reporting alarm events on a vehicle firewall based on a probe mechanism, which can obtain new policy rules from the cloud and report firewall alarm logs to solve the current problem of being unable to update blocking and release in a timely manner.

[0041] To solve the above technical problems, the present invention provides the following technical solution: a system for reporting alarm events on a vehicle-mounted firewall based on a probe mechanism, characterized by comprising:

[0042] Data processing module, cloud platform module, policy management module;

[0043] As a preferred solution of the system for realizing alarm event reporting on the vehicle firewall based on the probe mechanism of the present invention, the data processing module is a device for parsing data packets, which is used to obtain data packets on the network card, parse the network data packets, call the kernel system API, search the policy cache, and transmit the data to the cloud platform module;

[0044] As a preferred solution of the system for realizing alarm event reporting of an in-vehicle firewall based on a probe mechanism according to the present invention, the cloud platform module is a device for comparing data, which is used to receive and store data stored by the data processing module, compare the data with the data in the database, and transmit the comparison results to the policy management module;

[0045] As an optimal solution for the system for reporting alarm events on a vehicle-mounted firewall based on a probe mechanism as described in the present invention, the policy management module is a device for performing policy management based on the parsed data, which is used to divide the data into blacklist data, whitelist data, and graylist data according to the comparison results of the cloud platform module, intercept the blacklist data, release the whitelist data, analyze the graylist data, and manage it according to the identification results after identification.

[0046] A computer device includes a memory and a processor, wherein the memory stores a computer program, and is characterized in that the processor implements the steps of the above method when executing the computer program.

[0047] A computer-readable storage medium stores a computer program thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0048] The beneficial effects of the present invention are as follows: the method provided by the present invention for realizing reporting alarm events of vehicle-mounted firewalls based on a probe mechanism solves the problem that vehicle-mounted firewall alarm logs cannot be perceived and reported in a timely manner, thereby increasing the risk of intrusion; the firewall logs can be obtained in a timely manner through the probe program and reported to the cloud, which is conducive to subsequent problem solving and repair and updating of firewall rule strategies, thereby improving the safety of the vehicle.

[0049] By visually reflecting and discovering the effective implementation and update of firewall policies through the cloud, the investment in operation and maintenance personnel resources can be reduced, reducing costs and increasing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive effort. Among them:

[0051] FIG1 is an overall flow chart of a method for implementing a vehicle-mounted firewall to report an alarm event based on a probe mechanism according to an embodiment of the present invention;

[0052] FIG2 is a diagram showing the overall structure of a system for implementing a vehicle-mounted firewall to report alarm events based on a probe mechanism according to a second embodiment of the present invention;

[0053] 3 is a comparison chart of detection time between a method for realizing alarm event reporting of an on-board firewall based on a probe mechanism provided by a fourth embodiment of the present invention and a traditional method;

[0054] FIG4 is a comparison diagram of a method for realizing alarm event reporting of an on-board firewall based on a probe mechanism provided by a fourth embodiment of the present invention and a traditional method for detecting memory usage;

[0055] FIG5 is a comparison chart showing the detection accuracy of a method for realizing alarm event reporting on an in-vehicle firewall based on a probe mechanism provided by a fourth embodiment of the present invention and a traditional method. DETAILED DESCRIPTION

[0056] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the following detailed description of the specific embodiments of the present invention is given in conjunction with the accompanying drawings. It is obvious that the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in this field without creative work should fall within the scope of protection of the present invention.

[0057] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0058] Secondly, the term "one embodiment" or "embodiment" herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in various places throughout this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive of other embodiments.

[0059] The present invention is described in detail with reference to schematic diagrams. For ease of illustration, cross-sectional views of device structures may be partially enlarged and not to scale when describing embodiments of the present invention. Furthermore, the schematic diagrams are merely illustrative and should not limit the scope of the present invention. Furthermore, in actual production, the three-dimensional dimensions of length, width, and depth should be included.

[0060] In the description of the present invention, it should be noted that the terms "upper, lower, inner, and outer" and other references to orientations or positional relationships are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limitations on the present invention. Furthermore, the terms "first, second, or third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0061] In this disclosure, unless otherwise specified or limited, the terms "mounted," "connected," and "connected" should be interpreted broadly. For example, they may refer to fixed, removable, or integral connections. They may also refer to mechanical, electrical, or direct connections, indirect connections through an intermediary, or internal communication between two components. Those skilled in the art will understand the specific meanings of these terms in this disclosure.

[0062] Example 1

[0063] 1 , an embodiment of the present invention provides a method for implementing a vehicle firewall to report an alarm event based on a probe mechanism, including:

[0064] Import the firewall component probe package into the vehicle system to initialize the firewall component;

[0065] Get the data packet on the network card, parse the network data packet, call the kernel system API, and search the policy cache;

[0066] Firewall component initialization includes: obtaining policy content by calling the policy management component and caching it in RAM to accelerate rule matching. The probe program starts with the vehicle system, requests rules from the policy management component, and the policy management component returns the rules and verifies the legality of the rule format.

[0067] When the rule format verification passes, the obtained rules are sent to the cache module. After the cache is completed, the rules are loaded normally and the firewall component is initialized.

[0068] If any of the above initialization steps fails, the system enters bypass mode, and the probe program restarts the initialization process after entering bypass mode;

[0069] Bypass mode includes the firewall component not matching policies, capturing input but not making any output, and the system operates normally.

[0070] Through the Linux kernel's network subsystem Netfilter framework, the packet logic processing is registered in the framework, and a self-learning detection and recognition optimization algorithm is adopted;

[0071] The self-learning detection and recognition optimization algorithm is expressed as:

[0072] Among them, f k represents the gradient of the objective function, represents the partial derivative, Indicates W to L k The partial derivative of W represents the number of identification parameters in the data packet, L k is the Cartesian space coordinate, ΔD is the difference between the calculated value and the measured value, and J is the sensitivity matrix.

[0073] Parsing network data includes obtaining source IP, destination IP, source port, destination port, and data packet protocol;

[0074] Calling the kernel system API includes obtaining the process ID of the application to which the network data packet belongs through the kernel system interface, thereby obtaining the identity of the application to which the data packet belongs;

[0075] Searching the policy cache involves analyzing and parsing network packets and calling the kernel system API to determine whether the data matches.

[0076] Whether the data matches includes: identifying the acquired data, performing blacklist and whitelist identification, and issuing an alarm based on the identification results.

[0077] Identifying the acquired data includes: uploading the acquired data to the cloud platform, which determines whether it matches the information in the database, performing list type analysis and identification, and releasing the data packet when the information matches the firewall policy whitelist, recording the release record and storing it in the cloud platform;

[0078] When the information matches the firewall policy blacklist, data is intercepted;

[0079] When the information matches no record, the cloud platform analyzes the number of accesses. When it is accessed for the first time, the data is classified as graylisted and data packet operations are restricted.

[0080] The restricted data packet operation includes: analyzing the greylisted data packets, comparing them with the parsed network data packets in the cloud platform, calling the kernel system API data for comparison, and reporting the greylisted information data to the cloud platform;

[0081] If the data matches the data in the blacklist, the grey list will be converted to the blacklist and the data will be intercepted;

[0082] If the data matches the data in the whitelist, the greylist is converted to the whitelist and the data packet is released;

[0083] If the data does not match the data in the blacklist or the whitelist, temporary access is allowed and the message information of the access request is obtained. The sent data message is recorded and the message characteristics are analyzed. If the message characteristic data packet information is unrelated, it is judged that the connection behavior is suspicious, the data information is added to the blacklist, the data is intercepted, the user is notified of the suspicious behavior, and the user is prompted to uninstall.

[0084] The packet feature information is not associated, including: obtaining the source IP, destination IP, source port, destination port, packet protocol, and process identity ID information of the graylist packet, and comparing them with the permitted values ​​recorded in the cloud platform database. If the process identity ID information does not match, it is judged as suspicious behavior, the packet information is added to the blacklist, the data information is updated in the cloud platform blacklist database, and the packet is intercepted;

[0085] If all the conditions are met and it is judged as normal behavior, the data information will be added to the whitelist, the data information will be updated in the cloud platform whitelist database and the data packet will be released.

[0086] Based on the data packet information and policy hit results, the threat level is determined, relevant event output logs are generated, and reported to the cloud platform.

[0087] The threat level is expressed as: A(p i )=α*(1-C λ )+β*(a1*(P c *C+P i *I+P a *A)+a2*NC+a3*(b1*Pr+b2*Cr+b3*Sr)) where p i is the fragile state of the node, C λ is the attack complexity, C, I, A are confidentiality, integrity and availability values ​​respectively, NC is the node correlation, Pr and Cr are the node properties and node subject criticality respectively, α and β are the indicator weights that sum to 1, a1, a2, a3 are the indicator weights that sum to 1, P c 、P i 、P a are the indicator weights that sum to 1, b1, b2, and b3 are the indicator weights that sum to 1;

[0088] The attack prediction results are sorted according to the threat level, and an unknown threat report is generated. The attack features of the corresponding attack prediction results are added to the attack knowledge base. The operation and maintenance personnel upgrade the cloud platform version based on the threat report.

[0089] Example 2

[0090] 2 , an embodiment of the present invention provides a system for reporting alarm events on a vehicle firewall based on a probe mechanism, including:

[0091] Data processing module 100, cloud platform module 200, policy management module 300;

[0092] The data processing module 100 is a device that parses data packets, and is used to obtain data packets on the network card, parse network data packets, call the kernel system API, search the policy cache, and transmit data to the cloud platform module 200;

[0093] The cloud platform module 200 is a device for comparing data, and is used to receive and store the data stored by the data processing module 100, compare the data with the data in the database, and transmit the comparison results to the policy management module 300;

[0094] The policy management module 300 is a device for performing policy management based on the parsed data. It is used to divide the data into blacklist data, whitelist data, and graylist data according to the comparison results of the cloud platform module 200, intercept the blacklist data, release the whitelist data, analyze the graylist data, and manage it according to the identification results after identification.

[0095] Example 3

[0096] An embodiment of the present invention is different from the previous two embodiments in that:

[0097] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0098] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0099] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0100] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0101] Example 4

[0102] 3-5 , which illustrate an embodiment of the present invention, a method for reporting alarm events on a vehicle firewall based on a probe mechanism is shown. To verify the beneficial effects of the present invention, economic benefit calculations and simulation experiments are used for scientific demonstration.

[0103] In this embodiment, a specific use experiment was conducted on the method of the present invention. Under a preset and equivalent experimental environment, this embodiment conducted 15 experiments on the existing traditional method and the method of this embodiment. The economic benefits of the algorithm of the above embodiment were measured. The experimental results are shown in Figures 3-5:

[0104] As shown in Figure 3, when the number of data packets that need to be detected increases, the traditional method cannot reach the initial detection time, and the time consumption is greatly increased compared with the method of the present invention. As shown in Figure 4, when the number of data packets that need to be detected increases, the memory usage increases, and the method of the present invention can reduce consumption. As shown in Figure 5, when the number of data packets that need to be detected increases, the detection accuracy of the method of the present invention is greatly improved compared with the traditional method.

[0105] When multiple data packets are detected, traditional methods cannot achieve the effect achieved by the method of the present invention. It can discover potential risks in advance, reduce repair costs, ensure the security of vehicle-mounted system applications, and effectively solve the problem that the vehicle-mounted firewall alarm log cannot be perceived and reported in time, thereby increasing the risk of intrusion; this method can obtain the firewall log in time through the probe program and report it to the cloud, which is conducive to subsequent problem solving and repair and the update of firewall rule policies, thereby improving the safety of the vehicle.

[0106] Through the above comparative experiments, it can be determined that the data packet recognition speed provided by the present invention is significantly improved, and the data packet processing efficiency is significantly improved compared with the existing technology, which reduces the time spent; at the same time, while having real-time performance, the error rate is greatly reduced.

[0107] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for realizing a vehicle-mounted firewall reporting alarm events based on a probe mechanism, characterized in that: include: Import the firewall component probe package into the vehicle system to initialize the firewall component; Get the data packet on the network card, parse the network data packet, call the kernel system API, and search the policy cache; Based on the data packet information and policy hit results, the threat level is determined and relevant event output logs are generated and reported to the cloud platform.

2. The method for realizing the vehicle-mounted firewall reporting alarm events based on the probe mechanism as claimed in claim 1, characterized in that: The firewall component initialization includes: The policy content is obtained by calling the policy management component and cached in RAM. The probe program starts with the vehicle system and requests rules from the policy management component. The policy management component returns the rules and verifies the legality of the rule format. When the rule format verification passes, the obtained rules are sent to the cache module. After the cache is completed, the rules are loaded normally and the firewall component is initialized. When any of the above initialization steps fails, the system enters bypass mode, and after entering bypass mode, the probe program restarts the initialization process; The bypass mode includes the firewall component not performing policy matching, capturing input but not performing any output, and the system operates normally.

3. The method for realizing the vehicle-mounted firewall reporting alarm events based on the probe mechanism as claimed in claim 1 or 2, characterized in that: The obtaining of data on the network card comprises: Through the netfilter framework of the Linux kernel network subsystem, the packet logic processing is registered in the framework, and self-learning detection and recognition optimization is adopted; The said parsing of network data includes obtaining source IP, destination IP, source port, destination port, and data packet protocol; The calling of the kernel system API includes obtaining the process ID of the application to which the network data packet belongs through the kernel system interface, thereby obtaining the identity of the application to which the data packet belongs; The search strategy cache includes analyzing and parsing network data packets and calling the kernel system API to obtain whether the data matches.

4. The method for realizing the vehicle-mounted firewall reporting alarm events based on the probe mechanism as claimed in claim 3, characterized in that: The self-learning detection and identification optimization is expressed as: Among them, f k represents the gradient of the objective function, represents partial derivative, W to L k The partial derivative of W represents the number of identification parameters in the data packet, L k is the Cartesian space coordinate, ΔD is the difference between the calculated value and the measured value, and J is the sensitivity matrix.

5. The method for realizing the vehicle-mounted firewall reporting alarm events based on the probe mechanism as claimed in claim 4 is characterized in that: Whether the data matches includes: Identify the acquired data and upload it to the cloud platform. The cloud platform determines whether it matches the information in the database and performs list type analysis and identification. When the information matches the firewall policy whitelist, the data packet is released and the release record is stored in the cloud platform. When the information matches the firewall policy blacklist, data is intercepted; When the information matches no record, the cloud platform analyzes the number of accesses. When it is accessed for the first time, the data is classified as graylisted and the data packet operation is restricted.

6. The method for realizing the vehicle-mounted firewall reporting alarm events based on the probe mechanism as claimed in claim 5, characterized in that: The data packet limiting operation includes: Analyze the greylist data packets, analyze the network data packets in the cloud platform, call the kernel system API data for comparison, and report the greylist information data to the cloud platform; If the data matches the data in the blacklist, the grey list is converted to the blacklist and the data is intercepted; If the data matches the data in the whitelist, the greylist is converted to the whitelist and the data packet is released; If the data does not match the data in the blacklist or the whitelist, temporary access is allowed and the message information of the access request is obtained. The sent data message is recorded and the message characteristics are analyzed. If the message characteristic data packet information is not related, it is judged that the connection behavior is suspicious, the data information is added to the blacklist, the data is intercepted, the user is notified of the suspicious behavior, and the user is prompted to uninstall; The message characteristic data packet information is not associated including: Obtain the source IP, destination IP, source port, destination port, packet protocol, and process ID information of the greylisted data packet, and compare them with the permitted value recorded in the cloud platform database. If the process ID information does not match, it is judged as suspicious behavior, and the data packet information is added to the blacklist. The data information is updated in the cloud platform blacklist database and the data packet is intercepted. If all the above are consistent, it is judged as normal behavior, and the data information is added to the whitelist. The platform whitelist database is updated and the data packet is released.

7. The method for realizing the vehicle-mounted firewall reporting alarm events based on the probe mechanism as claimed in claim 6, characterized in that: The threat level is expressed as: A(p i )=α*(1-C λ )+β*(a1*(P c *C+P i *I+P a *A)+a2*NC+a3*(b1*Pr+b2*Cr+b3*Sr)) Among them, p i is the vulnerable state of the node, C λ is the attack complexity, C, I, A are the confidentiality, integrity and availability values ​​respectively, NC is the node association, Pr and Cr are the node properties and the node subject criticality respectively, α and β are the indicator weights that sum to 1, a1, a2, a3 are the indicator weights that sum to 1, P c , P i , P a are the indicator weights that sum to 1, b1, b2 and b3 are the indicator weights that sum to 1; The attack prediction results are sorted according to the threat level, and an unknown threat report is generated. The attack features of the corresponding attack prediction results are added to the attack knowledge base. The operation and maintenance personnel upgrade the cloud platform version based on the threat report.

8. A system for reporting alarm events on a vehicle firewall based on a probe mechanism, characterized in that: include: Data processing module (100), cloud platform module (200), policy management module (300); The data processing module (100) is a device for parsing data packets, and is used to obtain data packets on the network card, parse network data packets, call the kernel system API, search the policy cache, and transmit data to the cloud platform module (200); The cloud platform module (200) is a device for comparing data, and is used to receive and store data stored by the data processing module (100), compare the data with data in the database, and transmit the comparison result to the policy management module (300); The policy management module (300) is a device for performing policy management based on parsed data, and is used to classify data into blacklist data, whitelist data, and graylist data based on the comparison result of the cloud platform module (200), intercept blacklist data, release whitelist data, analyze graylist data, and manage according to the identification result after identification.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Data processing method and device of vehicle-mounted firewall and vehicle-mounted firewall equipment

    CN114710356A

  • Method and system for reporting alarm event on vehicle-mounted firewall based on probe mechanism

    CN116599688A

  • Preventing advanced persistent threat attack

    US20210112092A1

  • Vehicle intrusion detection and protection system

    WO2019231135A1

Cited By

  • Detection method and device for vehicle-mounted network intrusion signal, and medium

    CN119299178A

  • Cloud firewall security protection method and system, storage medium and intelligent terminal

    CN119561789A

  • Nuclear power plant network security alarm management method, system, device and medium

    CN120934869A

  • Operating system fault preview method, device and equipment based on kernel debugging probe and medium

    CN120994452A

  • Early warning system for unauthorized mobile terminal

    CN121056247A