Abnormal behavior detection method and device, electronic equipment and storage medium
Through efficient processing of terminal device log data and rule base matching, abnormal behaviors are identified and analyzed, which solves the problem of low detection accuracy in the existing technology, improves the accuracy and efficiency of abnormal behavior detection, and enhances the security of terminal devices. protection.
Patent Information
- Application Number
- CN202410895431.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The accuracy of abnormal behavior detection in the existing technology is low, and new or mutated malware cannot be effectively identified, and log analysis results in too many redundant event logs, reducing rule matching efficiency and performance.
By collecting the log data of the terminal device, a log queue is formed, processed one by one and converted into single point events. The single point event rule base and the associated event rule base are used for matching, identifying suspicious events, and hitting the target association when multiple suspicious events are detected. Event rules determine abnormal behavior and conduct in-depth analysis and handling.
It improves the accuracy of abnormal behavior detection, reduces the omission of abnormal behaviors, improves rule matching efficiency and performance, and enhances the security protection capabilities of terminal equipment.
Smart Images

Figure CN118869282A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a method and device for detecting abnormal behavior, an electronic device and a storage medium. Background Art
[0002] In the field of computer security, antivirus software is the main means of endpoint protection. These software mainly detect and remove viruses by scanning and matching known malware signatures. However, these software can only block known malware and cannot protect against newly emerging or mutated malware.
[0003] Therefore, as cyber threats become more sophisticated, a more comprehensive approach to endpoint protection is being adopted that includes not only antivirus capabilities but also integrates features such as firewalls, intrusion prevention, and application control to protect against various types of malware and attacks (such as zero-day attacks and social engineering attacks).
[0004] For example, in the related technology, an intrusion detection method based on multi-host log correlation collects logs from different operating systems in a virtual machine cluster, summarizes and abstracts them into a unified format, and stores them centrally. It then uses a log matching algorithm to analyze the characteristics of intrusion behavior, extracts feature data, and forms matching rules. It then uses a model-based detection approach to perform correlation analysis on the centrally stored log data, thereby effectively tracking and identifying intrusion paths.
[0005] However, the above method only implements the basic process of log collection-feature extraction-rule update, and does not perform further detection and scanning after detecting malicious behavior, which may lead to the omission of malicious behavior. In addition, directly analyzing the logs is likely to generate a large number of redundant event logs, reducing the efficiency and performance of rule matching.
[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present invention provide a method for detecting abnormal behavior and a device thereof, an electronic device and a storage medium, so as to at least solve the technical problem of low accuracy in detecting abnormal behavior in the related art.
[0008] According to one aspect of an embodiment of the present invention, a method for detecting abnormal behavior is provided, comprising: collecting log data of a terminal device and adding the log data to a log queue; processing the log data in the log queue to obtain a single-point event; matching the single-point event based on a single-point event rule base, and in a case where the single-point event successfully matches any event rule, determining the single-point event as a suspicious event, and adding the suspicious event to an event queue, wherein the single-point event rule base includes: a plurality of the event rules; detecting the suspicious events in the event queue based on an associated event rule base, and in a case where it is detected that a plurality of the suspicious events hit a target associated event rule, determining the event behaviors triggered by all the suspicious events that hit the target associated event rule as abnormal behaviors on the terminal device, wherein the associated event rule base includes: a plurality of associated event rules.
[0009] Further, the associated event rule is used to record multiple preset single-point events that occur in association. Based on the associated event rule base, the step of detecting the suspicious events in the event queue includes: reading each of the suspicious events in turn according to the queue order of each of the suspicious events in the event queue, and detecting whether the read suspicious events match the preset single-point events associated with any of the associated event rules; in the case of detecting the suspicious event that matches the starting single-point event associated with the target associated event rule, detecting whether there are other suspicious events that match the remaining single-point events associated with the target associated event rule within a preset time length, wherein the starting single-point event is the preset single-point event that starts to occur in the target associated event rule, and the remaining single-point events are all the remaining preset single-point events in the target associated event rule except the starting single-point event; in the case of detecting the other suspicious events within the preset time length, determining that the suspicious event is detected and that the other suspicious events hit the target associated event rule.
[0010] Furthermore, based on the associated event rule base, the process of detecting the suspicious events in the event queue also includes: when it is detected that multiple suspicious events read out in sequence from the event queue hit the target associated event rule, the multiple suspicious events are characterized as associated events, and when the target associated event rule is a condition of an event in other associated event rules, the associated events are added to the event queue as suspicious events, wherein the other associated event rules are the associated event rules other than the target associated event rule; the suspicious events in the event queue are detected until the event queue is empty.
[0011] Furthermore, after determining the event behaviors triggered by all the suspicious events that hit the target associated event rules as abnormal behaviors on the terminal device, it also includes: matching the abnormal behaviors with a response handling rule base, wherein the response handling rule base includes: multiple response handling strategies; when a target response handling strategy associated with the abnormal behavior is matched, the target response handling strategy is used to process the abnormal behavior, and the target response handling strategy is sent to the detection center.
[0012] Furthermore, after determining the event behaviors triggered by all the suspicious events that hit the target associated event rules as abnormal behaviors on the terminal device, it also includes: determining the alarm type based on all the suspicious events that trigger the abnormal behaviors; when the alarm type is a preset alarm type, sending a scanning request to the scanning engine, wherein the scanning engine responds to the scanning request and returns the scanned abnormal code; sending all the suspicious events that trigger the abnormal behaviors and the abnormal codes to the detection center to determine the disposal strategy.
[0013] Furthermore, the step of processing the log data in the log queue to obtain a single point event includes: filtering the log data based on a log parsing rule base, wherein the log parsing rule base includes: multiple keywords; deleting the log data that does not contain any of the keywords in the log parsing rule base from the log queue; and performing data format unification processing on all remaining log data in the log queue to obtain the single point event of the log data.
[0014] Furthermore, based on the single-point event rule base, the step of matching the single-point event includes: parsing the single-point event to determine the single-point event behavior of the single-point event; and when the single-point event behavior successfully matches the event behavior indicated by any of the event rules, determining the single-point event as the suspicious event.
[0015] According to another aspect of an embodiment of the present invention, there is also provided an abnormal behavior detection device, comprising: a collection unit, configured to collect log data of a terminal device and add the log data to a log queue; a first processing unit, configured to process the log data in the log queue to obtain a single-point event; a first matching unit, configured to match the single-point event based on a single-point event rule base, and in the case where the single-point event successfully matches any event rule, determine the single-point event as a suspicious event, wherein the single-point event rule base comprises: a plurality of the event rules; a first adding unit, configured to add the suspicious event to an event queue; a first detection unit, configured to detect the suspicious event in the event queue based on an associated event rule base, and in the case where it is detected that a plurality of the suspicious events hit a target associated event rule, determine the event behavior triggered by all the suspicious events that hit the target associated event rule as abnormal behavior on the terminal device, wherein the associated event rule base comprises: a plurality of associated event rules.
[0016] Further, the associated event rule is used to record multiple preset single-point events that occur in association, and the first detection unit includes: a first detection module, which is used to read each of the suspicious events in sequence according to the queue order of each of the suspicious events in the event queue, and detect whether the read suspicious events match the preset single-point events associated with any of the associated event rules; a second detection module, which is used to detect whether there are other suspicious events that match the remaining single-point events associated with the target associated event rule within a preset time length when the suspicious event matching the starting single-point event associated with the target associated event rule is detected, wherein the starting single-point event is the preset single-point event that starts to occur in the target associated event rule, and the remaining single-point events are all the remaining single-point events in the target associated event rule except the starting single-point event; a first determination module, which is used to determine that the suspicious event is detected and that the other suspicious events hit the target associated event rule when the other suspicious events are detected within the preset time length.
[0017] Furthermore, the detection device also includes: a second adding unit, which is used to characterize the multiple suspicious events as associated events when it is detected that the multiple suspicious events read out in sequence from the event queue hit the target associated event rule, and add the associated events as suspicious events to the event queue when the target associated event rule is a condition of the event in other associated event rules, wherein the other associated event rules are the associated event rules other than the target associated event rule; a second detection unit, which is used to detect the suspicious events in the event queue until the event queue is empty.
[0018] Furthermore, the detection device also includes: a second matching unit, which is used to match the abnormal behavior with a response handling rule base after determining the associated event as an abnormal behavior on the terminal device, wherein the response handling rule base includes: multiple response handling strategies; a second processing unit, which is used to process the abnormal behavior using the target response handling strategy when a target response handling strategy associated with the abnormal behavior is matched, and send the target response handling strategy to the detection center.
[0019] Furthermore, the detection device also includes: a first determination unit, used to determine the alarm type based on all the suspicious events that trigger the abnormal behavior after determining the associated event as an abnormal behavior on the terminal device; a first sending unit, used to send a scanning request to the scanning engine when the alarm type is a preset alarm type, wherein the scanning engine responds to the scanning request and returns a scanned abnormal code; a second sending unit, used to send all the suspicious events that trigger the abnormal behavior and the abnormal code to the detection center to determine the disposal strategy.
[0020] Furthermore, the first processing unit includes: a first screening module, used to screen the log data based on a log parsing rule base, wherein the log parsing rule base includes: multiple keywords; a first deletion module, used to delete the log data that does not contain any of the keywords in the log parsing rule base from the log queue; a first processing module, used to perform data format unification processing on all remaining log data in the log queue to obtain the single point event of the log data.
[0021] Furthermore, the first matching unit includes: a first parsing module, used to parse the single-point event and determine the single-point event behavior of the single-point event; and a second determination module, used to determine the single-point event as the suspicious event when the single-point event behavior successfully matches the event behavior indicated by any of the event rules.
[0022] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned abnormal behavior detection methods.
[0023] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned abnormal behavior detection methods.
[0024] In the present invention, log data of a terminal device is collected and added to a log queue, the log data in the log queue is processed to obtain a single-point event, and the single-point event is matched based on a single-point event rule base. When the single-point event successfully matches any event rule, the single-point event is determined as a suspicious event and the suspicious event is added to an event queue. Based on an associated event rule base, the suspicious events in the event queue are detected, and when it is detected that multiple suspicious events hit a target associated event rule, the event behaviors triggered by all suspicious events that hit the target associated event rule are determined as abnormal behaviors on the terminal device.
[0025] In the present invention, the log data of the terminal device is collected and summarized in real time to form an efficient log queue, and then the log data in the log queue is processed one by one to convert it into a single point event, and then these single point events are matched according to the single point event rule base to identify whether there is a suspicious event. If there is a suspicious event, the suspicious event is placed in the event queue, which can be further processed by the complex event engine. After that, the complex event engine conducts an in-depth analysis of the suspicious events in the event queue according to the associated event rule base to determine whether there is abnormal behavior, which can effectively reduce the omission of abnormal behavior, thereby improving the accuracy of detecting abnormal behavior. In addition, by processing the collected log data, redundant logs can be reduced, thereby improving the efficiency and performance of rule matching and improving the detection efficiency of abnormal behavior.
[0026] It can be seen that the solution provided by the present invention achieves the purpose of security protection of terminal devices, thereby achieving the technical effect of improving the accuracy of abnormal behavior detection, and further solving the technical problem of low accuracy in abnormal behavior detection in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0028] Figure 1 is a flow chart of an optional abnormal behavior detection method according to an embodiment of the present invention;
[0029] Figure 2is a schematic diagram of an optional log formatting according to an embodiment of the present invention;
[0030] Figure 3 is a schematic diagram of an optional single-point event rule base according to an embodiment of the present invention;
[0031] Figure 4 is a schematic diagram of an optional correlation event rule base according to an embodiment of the present invention;
[0032] Figure 5 is a flow chart of an optional abnormal behavior detection method according to an embodiment of the present invention;
[0033] Figure 6 is a schematic diagram of an optional abnormal behavior detection device according to an embodiment of the present invention;
[0034] Figure 7 The present invention is a hardware structure block diagram of an electronic device (or mobile device) for detecting abnormal behavior according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] To facilitate those skilled in the art to understand the present invention, some terms or nouns involved in the embodiments of the present invention are explained below:
[0038] Endpoint Detection and Response (EDR) is a security technology designed to help organizations monitor, detect, and respond to security incidents on endpoint devices.
[0039] Complex event processing (CEP) is a set of techniques and methods for monitoring and analyzing real-time data streams to identify and process complex event patterns.
[0040] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) collected and involved in the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set between the system and the relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0041] In the present invention, the terminal detection and response system (EDR system) can monitor terminal activities in real time, use multiple technical means to accurately detect known and unknown threats, deeply analyze and retain evidence to support detailed forensics and threat correlation analysis, and automatically trigger or guide efficient response and remediation measures, as well as integrate external threat intelligence and provide a centralized management view, thereby strengthening the all-round defense capabilities of terminal devices, effectively resisting various complex network attacks including advanced persistent threats, significantly improving threat visibility, shortening the emergency response cycle, and promoting continuous learning and optimization of security policies.
[0042] In addition, EDR technology provides deeper endpoint visibility and can monitor and analyze detailed activities on the endpoint, including process creation, file modification, registry changes, and network communications. EDR tools typically include real-time alerts, automatic response, and endpoint management capabilities that can help security analysts quickly identify and respond to threats. EDR technology also emphasizes continuous monitoring and recording of endpoint events, as well as in-depth analysis of these events to better understand the attacker's behavior and strategies. This analysis can help organizations improve their security strategies and more effectively prevent future attacks.
[0043] In the present invention, the use of complex event processing (CEP) technology helps to aggregate many different information and identify and analyze the causal relationships between events in real time. CEP technology matches continuously incoming events with patterns and provides insights into what is happening and allows proactive and effective actions to be taken.
[0044] In addition, in the present invention, the integration of CEP technology into the EDR system can significantly improve the ability to detect and analyze complex threats. By accessing CEP event processing, the EDR system can more effectively identify and respond to advanced persistent threats and other complex attack patterns. In the present invention, the main applications of CEP technology include: (1) Threat detection: CEP can help the EDR system identify complex threat patterns, which may involve multiple terminals and multiple attack methods. By analyzing these patterns, the EDR system can more accurately identify potential threats; (2) Event correlation: CEP technology can correlate events from different terminals to identify attack activities across multiple terminals, which helps the EDR system understand the overall situation of the attack and respond more effectively; (3) Real-time response: By processing and analyzing events in real time, CEP can help the EDR system quickly identify and respond to threats, thereby reducing the attacker's activity window.
[0045] Based on this, the present invention proposes an abnormal behavior detection system to realize abnormal behavior detection of terminal devices. The system is built based on the complex event processing mechanism and is suitable for operating systems such as Windows and Linux that generate multiple behavior event logs during operation. The system is composed of multiple closely cooperating components, including a log collection module, a log parsing module, a rule engine, an event queue, a memory scanning engine, an EDR Controller (EDR controller, i.e., the detection center end) and a disposal response engine. The goal of the system design is to identify abnormal behaviors on the terminal through in-depth analysis of abnormal logs, and to use the intelligent combination of single-point event rules and complex event rules to identify potential related events in the terminal. In addition, the system will automatically trigger corresponding disposal measures based on the detected results.
[0046] In the present invention, the abnormal behavior detection system can improve the terminal's ability to detect attack behaviors, thereby strengthening the terminal's security protection level. By implementing the system, various security threats can be more effectively prevented and responded to, ensuring the stable operation of the terminal and data security.
[0047] The present invention is described in detail below in conjunction with various embodiments.
[0048] Embodiment 1
[0049] According to an embodiment of the present invention, an embodiment of a method for detecting abnormal behavior is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0050] Figure 1 is a flow chart of an optional abnormal behavior detection method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0051] Step S101, collecting log data of the terminal device and adding the log data to a log queue.
[0052] Step S102, processing the log data in the log queue to obtain a single point event.
[0053] Step S103, matching the single point event based on the single point event rule base, and when the single point event successfully matches any event rule, determining the single point event as a suspicious event, and adding the suspicious event to the event queue, wherein the single point event rule base includes: multiple event rules.
[0054] Step S104, based on the associated event rule base, suspicious events in the event queue are detected, and when it is detected that multiple suspicious events hit the target associated event rule, the event behavior triggered by all suspicious events that hit the target associated event rule is determined as abnormal behavior on the terminal device, wherein the associated event rule base includes: multiple associated event rules.
[0055] In some embodiments, the abnormal behavior detection method may be executed by a terminal device, which includes but is not limited to: a mobile terminal, a computer, etc.
[0056] In an embodiment of the present invention, the log data of the terminal device is collected and summarized in real time to form an efficient log queue, and then the log data in the log queue is processed one by one to convert it into a single point event, and then these single point events are matched according to the single point event rule base to identify whether there is a suspicious event. If there is a suspicious event, the suspicious event is placed in the event queue, which can be further processed by the complex event engine. After that, the complex event engine conducts an in-depth analysis of the suspicious events in the event queue according to the associated event rule base to determine whether there is abnormal behavior, which can effectively reduce the omission of abnormal behavior, thereby improving the accuracy of detecting abnormal behavior, and by processing the collected log data, it can reduce redundant logs, thereby improving the efficiency and performance of rule matching, and improving the detection efficiency of abnormal behavior, thereby solving the technical problem of low accuracy in detecting abnormal behavior in the related technology.
[0057] The embodiment of the present invention is described in detail below in combination with the above steps.
[0058] Step S101, collecting log data of the terminal device and adding the log data to a log queue.
[0059] In step S101, the log data of the terminal device can be collected in real time by the log collection module in the abnormal behavior detection system, and the collected log data is added to the log queue to generate an efficient log queue.
[0060] In some optional embodiments, the log collection module can use a variety of advanced log collection components, such as Sysmon (a system monitoring tool), ETW (Event Tracing for Windows, a technology for monitoring and analyzing events in the operating system) and driver HOOK technology (driver hook technology), etc., to comprehensively collect logs on the terminal operating system and ensure that the log data is stored in a structured format. In addition, the collected log data can be pushed to the log queue in real time using streaming processing.
[0061] Step S102, processing the log data in the log queue to obtain a single point event.
[0062] In step S102, the log data in the log queue may be processed one by one by the log parsing module in the abnormal behavior detection system to filter the logs according to the key field information in the extracted log data, and convert the filtered log data into single point events.
[0063] In the embodiment of the present invention, a single point event refers to an independent event occurring on a terminal device (eg, an operating system or an application of the terminal device), for example, application a starts application b, application b connects to network c, and so on.
[0064] Optionally, the step of processing the log data in the log queue to obtain a single point event includes: filtering the log data based on a log parsing rule base, wherein the log parsing rule base includes: multiple keywords; deleting the log data that does not contain any keyword in the log parsing rule base from the log queue; and performing data format unification processing on all remaining log data in the log queue to obtain a single point event of the log data.
[0065] The unified processing of the data formats here may be processing the log data containing one or more keywords into a unified data format.
[0066] In an embodiment of the present invention, a log parsing rule base can be constructed first, and the log parsing rule base includes: a plurality of keywords, which are pre-set keywords, and are used to match the log data useful for detecting suspicious events. Then, according to the keywords in the log parsing rule base, the log data in the log queue is processed one by one to realize the fine screening of the log data, and the log data that does not contain any keyword in the log parsing rule base is deleted from the log queue, thereby reducing redundant log data, improving the efficiency and performance of subsequent rule matching, and improving the detection efficiency of abnormal behavior. Afterwards, the unified processing of multiple log source data fields can also be performed (i.e., the data format of all remaining log data in the log queue is unified to obtain the single-point event of the log data), to realize the data format unification of the log data, thereby ensuring the consistency and comparability of the subsequent event data.
[0067] Figure 2 is a schematic diagram of an optional log formatting according to an embodiment of the present invention, such as Figure 2 As shown, data from different log sources (eg, source_1_event, source_2_event, source_3_event, ..., source_n_event) are formatted to unify the data format of the log data and obtain corresponding format data (eg, format_event_1, format_event_2, format_event_3, format_event_n).
[0068] Step S103, matching the single point event based on the single point event rule base, and when the single point event successfully matches any event rule, determining the single point event as a suspicious event, and adding the suspicious event to the event queue, wherein the single point event rule base includes: multiple event rules.
[0069] In step S103, the single-point event rule engine in the abnormal behavior detection system can analyze these single-point events based on the single-point event rule library to identify whether there are suspicious events (that is, based on the single-point event rule library, the single-point event is matched, and when the single-point event successfully matches any event rule, the single-point event is determined to be a suspicious event). If a suspicious event is found, the suspicious event is placed in the event queue for further processing by the subsequent complex event rule engine (also called the correlation event rule engine).
[0070] In the embodiment of the present invention, the single-point event rule base includes: a plurality of event rules, each event rule is used to indicate a suspicious event behavior, for example, application a starts application b.
[0071] Figure 3 is a schematic diagram of an optional single-point event rule library according to an embodiment of the present invention, such as Figure 3 As shown, an example of a single-point rule base (i.e., a single-point event rule base) is shown, which includes multiple event behaviors, for example, event_1: office start cmd; event_2: office start mshta; ...; event_n: rund ll connect network.
[0072] Optionally, the step of matching the single point event based on the single point event rule base includes: parsing the single point event and determining the single point event behavior of the single point event; when the single point event behavior successfully matches the event behavior indicated by any event rule, determining the single point event as a suspicious event.
[0073] In an embodiment of the present invention, a single point event rule engine can be used to perform preliminary screening and matching of single point events in the log queue according to a preset single point event rule library. If a single point event matches the event rule, it is determined to be a suspicious single point event.
[0074] In some optional embodiments, after determining a single point of time as a suspicious event, the single point event can be directly added to the event queue, or the field information specified by the hit result can be extracted according to the hit result of the hit event rule, so as to add the extracted field information to the event queue. The field information is some information related to the event behavior indicated by the hit event rule, such as application field, operation field, etc.
[0075] Step S104, based on the associated event rule base, suspicious events in the event queue are detected, and when it is detected that multiple suspicious events hit the target associated event rule, the event behavior triggered by all suspicious events that hit the target associated event rule is determined as abnormal behavior on the terminal device, wherein the associated event rule base includes: multiple associated event rules.
[0076] For example, each suspicious event can be read from the event queue in turn, and it can be detected whether the read suspicious event matches a preset single-point event associated with any associated event rule in the associated event rule base; if there is an associated event rule that matches multiple suspicious events, the associated event rule will be determined as the target associated event rule.
[0077] In step S104, the complex event rule engine can be called to consume suspicious events in the event queue according to the preset correlation event rule library to determine whether there is potential abnormal behavior (that is, the suspicious events in the event queue are detected, and when multiple suspicious events are detected to hit the target correlation event rule, the event behavior triggered by all suspicious events that hit the target correlation event rule is determined as abnormal behavior on the terminal device). By correlating and analyzing multiple suspicious single-point events, abnormal behavior can be detected more accurately to avoid missing abnormal behavior.
[0078] In an embodiment of the present invention, the correlation event rule library includes: multiple correlation event rules, which record multiple single-point events that occur in correlation. When these single-point events occur in correlation, it indicates that abnormal behavior has occurred in the terminal. For example, application a starts application b, and application b is connected to one or more abnormal networks.
[0079] In an embodiment of the present invention, if multiple suspicious events are detected to hit the associated event rule, the associated event behavior triggered by these suspicious events can be determined as abnormal behavior. In this embodiment, the associated event behavior is composed of event behaviors triggered by multiple suspicious events, and the multiple event behaviors are associated and occur in a certain operation order.
[0080] Optionally, the associated event rule is used to record multiple preset single-point events that occur in association. Based on the associated event rule base, the step of detecting suspicious events in the event queue includes: reading each suspicious event in turn according to the queue order of each suspicious event in the event queue, and detecting whether the read suspicious event matches the preset single-point event associated with any associated event rule; in the case of detecting a suspicious event that matches the starting single-point event associated with the target associated event rule, detecting whether there are other suspicious events that match the remaining single-point events associated with the target associated event rule within a preset time length, wherein the starting single-point event is the preset single-point event that starts to occur in the target associated event rule, and the remaining single-point events are all remaining preset single-point events in the target associated event rule except the starting single-point event; in the case of detecting other suspicious events within the preset time length, determining that the detected suspicious event and the other suspicious events hit the target associated event rule.
[0081] In an embodiment of the present invention, a complex event rule engine may detect suspicious events in an event queue according to the queue order of each suspicious event in the event queue to determine whether there is abnormal behavior on the terminal, which may include: detecting whether a suspicious event matches a preset single-point event associated with any associated event rule; if a suspicious event matching a starting single-point event associated with a target associated event rule (i.e., a preset single-point event starting in the associated event rule) is detected, then within a preset time length (which may be adjusted according to actual conditions, for example, 3 seconds), detecting whether there are suspicious events matching the remaining single-point events associated with the target associated event rule (i.e., all remaining preset single-point events in the associated event rule except the starting single-point event); if a suspicious event matching the remaining single-point events associated with the target associated event rule is detected within the preset time length, it is determined that multiple suspicious events have been detected to hit the target associated event rule.
[0082] In some optional embodiments, if it is determined that abnormal behavior occurs on the terminal device, an alarm needs to be issued. For example, alarm information is displayed on the terminal device interface. The alarm information may include: the alarm type (which can be determined based on the event behavior information of the associated event) and alarm information (for example, some attack behavior descriptions, which can be obtained based on the technical points of the ATT&CK (Adversarial Tact ics, Techniques, and Common Knowledge) matrix (i.e., a network security knowledge base)).
[0083] Optionally, the process of detecting suspicious events in the event queue based on the associated event rule base also includes: when it is detected that multiple suspicious events read sequentially from the event queue hit the target associated event rule, the multiple suspicious events are characterized as associated events, and when the target associated event rule is a condition for events in other associated event rules, the associated events are added to the event queue as suspicious events, wherein the other associated event rules are associated event rules other than the target associated event rule; and the suspicious events in the event queue are detected until the event queue is empty.
[0084] In this embodiment, after the associated event is added to the event queue as a suspicious event, the suspicious event is read first and then matched with the associated event rule base.
[0085] For example, event a obtained based on a single log A is a suspicious event, and the event a matches the associated event rule 1 in the associated event rule base, and hits the first preset event in the associated event rule 1; event b obtained based on a single log B is a suspicious event, and the event b matches the associated event rule 1 in the associated event rule base, and hits the second preset event in the associated event rule 1, then event a and event b form an associated event c and serve as a suspicious event, and the associated event c is added to the event queue. If the associated event rule 1 is a condition of the event of other associated event rules, then the associated event c will be added to the event queue, and the associated event c will be matched with the associated event rules in the associated event rule base.
[0086] In an embodiment of the present invention, in the process of detecting suspicious events in an event queue, multiple suspicious events detected that hit the target associated event rule can be characterized as associated events that hit the target associated event rule (i.e., the associated event is composed of multiple suspicious events indicated by the hit associated event rule, and the operation sequence between these suspicious events is consistent with the occurrence sequence between the multiple suspicious events indicated by the hit associated event rule), and all associated event rules in the associated event rule library can also be pre-loaded to determine whether the associated event output by the rule for detecting abnormal behavior is hit by other associated event rules. If so, the associated event is added to the event queue as a new suspicious event, so that other subsequent associated event rules can consume the new suspicious event. In this way, by detecting suspicious events in the event queue until the event queue is empty, it is possible to avoid missing abnormal behaviors and improve the accuracy of detection.
[0087] In some optional embodiments, when loading the associated event rules in the associated event rule library, it can be detected whether the suspicious event matches at least two associated event rules. If so, the suspicious event consumed by a certain associated event rule can be re-added to the event queue for re-consumption.
[0088] Figure 4 is a schematic diagram of an optional association event rule base according to an embodiment of the present invention, such as Figure 4 As shown, an example of an association rule library (i.e., an association event rule library) is shown. For example, the event queue includes: multiple suspicious events (such as event_A, event_B, event_D, etc.), event_C is a complex event formed after the association of event_A and event_B occurs, and if event_C appears on the terminal, an alarm is issued. In addition, since event_E is a complex event formed after the association of event_C and event_D occurs, event_C needs to be re-added to the event queue. Afterwards, if the complex event event_E formed after the association of event_C and event_D occurs, an alarm needs to be issued.
[0089] Optionally, after determining the event behaviors triggered by all suspicious events that hit the target associated event rules as abnormal behaviors on the terminal device, it also includes: matching the abnormal behaviors with a response handling rule base, wherein the response handling rule base includes: multiple response handling strategies; when a target response handling strategy associated with the abnormal behavior is matched, the target response handling strategy is used to process the abnormal behavior, and the target response handling strategy is sent to the detection center.
[0090] In an embodiment of the present invention, relevant information of the abnormal behavior (such as the name and type of the abnormal behavior) is sent to the terminal response handling engine for processing. The terminal response handling engine can select a corresponding response handling strategy according to the response handling rule library to handle the abnormal behavior (i.e., match the abnormal behavior with the response handling rule library, and when a target response handling strategy associated with the abnormal behavior is matched, the target response handling strategy is used to handle the abnormal behavior).
[0091] In the embodiment of the present invention, the response handling rule base includes: a plurality of response handling strategies, for example, each abnormal behavior name is associated with the response handling strategy of the abnormal behavior to construct the response handling rule base.
[0092] In addition, the determined target response handling strategy can be sent to the EDR Controller (i.e., the detection center) to facilitate the subsequent EDR Controller to issue the handling strategy.
[0093] Optionally, after determining the event behavior triggered by all suspicious events that hit the target associated event rules as abnormal behavior on the terminal device, it also includes: determining the alarm type based on all suspicious events that trigger the abnormal behavior; when the alarm type is a preset alarm type, sending a scanning request to the scanning engine, wherein the scanning engine responds to the scanning request and returns the scanned abnormal code; sending all suspicious events that trigger the abnormal behavior and the abnormal code to the detection center to determine the disposal strategy.
[0094] In an embodiment of the present invention, based on the alarm type of abnormal behavior (the alarm type can be determined based on all suspicious events that trigger the abnormal behavior), it can be selected whether to send a scan request to the scanning engine (for example, a memory scan request and a file scan request are sent to the memory scanning engine and the file scanning engine, respectively); if the alarm type is a preset alarm type (i.e., a preset type that requires a scan request to be sent, such as some attack behavior alarms, etc.), a scan request is sent to the scanning engine so that the scanning engine responds to the scan request and returns the scanned exception code.
[0095] In an embodiment of the present invention, all suspicious events and abnormal codes that trigger abnormal behavior can be sent to the detection center, so that the detection center can determine a disposal strategy based on these suspicious events and abnormal codes, so as to subsequently use the disposal strategy to dispose of the terminal device.
[0096] In addition, relevant information of abnormal behavior can also be sent to EDR Controller, which can combine the alarm and exception code of the associated event of the abnormal behavior for correlation judgment and issue the corresponding disposal strategy.
[0097] In some optional embodiments, the memory scanning engine may call an abnormal behavior rule library for scanning, and send the scanned abnormal code to the EDR Controller for alerting.
[0098] Another optional specific implementation is described in detail below.
[0099] In an embodiment of the present invention, an abnormal behavior detection system is proposed. The system is constructed based on a complex event processing mechanism and is applicable to an operating system that generates multiple behavior event logs during operation. The system is composed of multiple closely cooperating components, including: a log collection module, a log parsing module, a rule engine (including: a single-point event rule engine, a correlation event rule engine), an event queue, a memory scanning engine, a file scanning engine, an EDR Controller, and a terminal response disposal engine. The system can identify abnormal behaviors on the terminal by deeply analyzing the abnormal logs, and use the intelligent combination of single-point event rules and complex event rules to identify potential correlation events on the terminal. In addition, the system can automatically trigger corresponding disposal measures based on the detected results.
[0100] Therefore, the system improves the terminal's ability to detect attack behaviors, thereby strengthening the terminal's security protection level. By implementing this system, various security threats can be prevented and responded to more effectively, ensuring the stable operation of the terminal operating system and data security.
[0101] Figure 5 is a flow chart of an optional abnormal behavior detection method according to an embodiment of the present invention, such as Figure 5 As shown, the method may include the following steps:
[0102] First, logs are collected and summarized in real time to form an efficient log queue for subsequent behavior detection. Then, the log parsing module can process the individual logs in the log queue one by one to match the key field information obtained with the log parsing rule base, thereby screening out single-point events. The single-point event rule engine analyzes these single-point events based on the single-point event rule base to identify whether there are suspicious events. If there are suspicious events, the relevant single-point events are placed in the event queue for further processing by the associated event rule engine. The associated event rule engine conducts an in-depth analysis of the events in the event queue based on the preset associated event rule base to determine whether there is potential abnormal behavior, and puts the obtained abnormal behavior events (i.e., associated events) back into the event queue to continue waiting for detection. If abnormal behavior is confirmed, the following measures can be taken: (1) The associated event rule engine can initiate a memory scan request to the memory scanning engine to scan the abnormal code; (2) The associated event rule engine can initiate an associated file scan operation to the file scanning engine to obtain the files associated with the abnormal behavior so that these files can be cleaned up later; (3) The detected abnormal behavior features are uploaded to the terminal response and disposal engine for automatic disposal, so that the terminal response and disposal engine determines the response and disposal strategy based on the response and disposal rule library, and the associated events, abnormal behavior features, abnormal codes and other information can be uploaded to the EDR Controller to obtain the corresponding disposal strategy, thereby achieving effective response and disposal of abnormal behavior.
[0103] Exemplarily, the abnormal behavior detection method provided in this embodiment can be applied in the following scenarios:
[0104] In the enterprise network environment, an abnormal behavior detection system based on log behavior detection is deployed to monitor and protect Windows and Linux terminals. Terminals can include employee workstations, servers, and critical infrastructure systems. Under normal circumstances, the terminals deployed by the enterprise generate a large number of log entries. When the terminals are attacked from the outside, abnormal behavior logs will be generated, such as unauthorized remote management tool connection attempts, unconventional data transmission activities, and programs running in suspicious locations of the system.
[0105] The log collection component of the abnormal behavior detection system can collect log data in real time, the log parsing module can parse the log and extract key information, and the behavior feature detection module can identify normal and abnormal behavior patterns based on the preset single-point event rule engine and the associated event rule engine. When abnormal behavior is detected, the system will generate a corresponding event behavior alarm and issue a corresponding strategy based on the alarm information to intercept and block the abnormal behavior.
[0106] In the embodiment of the present invention, abnormal behavior of the terminal can be identified by collecting and analyzing log data, and by combining single-point event rules and complex event rules, associated events on the terminal can be detected and corresponding disposal measures can be automatically triggered accordingly, thereby enhancing the security protection level of the terminal and ensuring the stable operation of the terminal operating system and data security.
[0107] In addition, for the log-feature matching-alarm-handling process in this embodiment, the correlation event rule engine provides real-time or near real-time data processing capabilities, which can quickly detect and respond to security threats, and the correlation event rule engine can automatically execute certain response measures, which can reduce the workload of the security team and speed up the response. The correlation event rule engine in this embodiment combines single-point events and complex event rules, which not only reduces the workload of log matching, but also improves the accuracy and reliability of the rules.
[0108] The following is a detailed description in conjunction with another embodiment.
[0109] Embodiment 2
[0110] An abnormal behavior detection device provided in this embodiment includes multiple implementation units, each of which corresponds to each implementation step in the above-mentioned embodiment 1.
[0111] Figure 6 is a schematic diagram of an optional abnormal behavior detection device according to an embodiment of the present invention, such as Figure 6 As shown, the detection device may include: a collection unit 60 , a first processing unit 61 , a first matching unit 62 , a first adding unit 63 , and a first detection unit 64 .
[0112] The collection unit 60 is used to collect log data from the terminal device and add the log data to the log queue;
[0113] The first processing unit 61 is used to process the log data in the log queue to obtain a single point event;
[0114] The first matching unit 62 is used to match the single point event based on the single point event rule base, and determine the single point event as a suspicious event when the single point event successfully matches any event rule, wherein the single point event rule base includes: multiple event rules;
[0115] A first adding unit 63, used for adding a suspicious event to an event queue;
[0116] The first detection unit 64 is used to detect suspicious events in the event queue based on the associated event rule base, and when an associated event that hits the associated event rule is detected, determine the associated event as an abnormal behavior on the terminal device, wherein the associated event rule base includes: multiple associated event rules, and the associated event includes: multiple suspicious events.
[0117] The above detection device can collect the log data of the terminal device through the collection unit 60, and add the log data to the log queue, process the log data in the log queue through the first processing unit 61 to obtain a single point event, match the single point event based on the single point event rule library through the first matching unit 62, and determine the single point event as a suspicious event when the single point event successfully matches any event rule, add the suspicious event to the event queue through the first adding unit 63, and detect the suspicious event in the event queue based on the associated event rule library through the first detection unit 64, and when multiple suspicious events are detected to hit the target associated event rule, the event behavior triggered by all suspicious events that hit the target associated event rule is determined as an abnormal behavior on the terminal device. In an embodiment of the present invention, the log data of the terminal device is collected and aggregated in real time to form an efficient log queue, and then the log data in the log queue is processed one by one to convert it into a single point event, and then these single point events are matched according to the single point event rule library to identify whether there is a suspicious event. If there is a suspicious event, the suspicious event is placed in the event queue for further processing by the complex event engine. Afterwards, the complex event engine conducts an in-depth analysis of suspicious events in the event queue based on the associated event rule base to determine whether there is abnormal behavior, which can effectively reduce the omission of abnormal behavior, thereby improving the accuracy of abnormal behavior detection. By processing the collected log data, it can reduce redundant logs, thereby improving the efficiency and performance of rule matching, and improving the efficiency of abnormal behavior detection, thereby solving the technical problem of low accuracy in abnormal behavior detection in related technologies.
[0118] Optionally, the associated event rule is used to record multiple preset single-point events that occur in association, and the first detection unit includes: a first detection module, which is used to read each suspicious event in sequence according to the queue order of each suspicious event in the event queue, and detect whether the read suspicious event matches the preset single-point event associated with any associated event rule; a second detection module, which is used to detect whether there are other suspicious events that match the remaining single-point events associated with the target associated event rule within a preset time length when a suspicious event matching the starting single-point event associated with the target associated event rule is detected, wherein the starting single-point event is the preset single-point event that starts to occur in the target associated event rule, and the remaining single-point events are all remaining single-point events in the target associated event rule except the starting single-point event; a first determination module, which is used to determine that the detected suspicious event and other suspicious events hit the target associated event rule when other suspicious events are detected within a preset time length.
[0119] Optionally, the detection device also includes: a second adding unit, which is used to characterize multiple suspicious events as associated events when it is detected that multiple suspicious events read sequentially from the event queue hit the target associated event rule, and add the associated events as suspicious events to the event queue when the target associated event rule is a condition of the event in other associated event rules, wherein the other associated event rules are associated event rules other than the target associated event rule; and a second detection unit, which is used to detect suspicious events in the event queue until the event queue is empty.
[0120] Optionally, the detection device also includes: a second matching unit, used to match the abnormal behavior with a response handling rule base after determining the associated event as abnormal behavior on the terminal device, wherein the response handling rule base includes: multiple response handling strategies; a second processing unit, used to process the abnormal behavior using the target response handling strategy when a target response handling strategy associated with the abnormal behavior is matched, and send the target response handling strategy to the detection center.
[0121] Optionally, the detection device also includes: a first determination unit, used to determine the alarm type based on all suspicious events that trigger the abnormal behavior after determining the associated event as abnormal behavior on the terminal device; a first sending unit, used to send a scanning request to the scanning engine when the alarm type is a preset alarm type, wherein the scanning engine responds to the scanning request and returns the scanned abnormal code; a second sending unit, used to send all suspicious events that trigger the abnormal behavior and the abnormal code to the detection center to determine the disposal strategy.
[0122] Optionally, the first processing unit includes: a first screening module, used to screen the log data based on the log parsing rule base, wherein the log parsing rule base includes: multiple keywords; a first deletion module, used to delete the log data that does not contain any keyword in the log parsing rule base from the log queue; a first processing module, used to unify the data format of all remaining log data in the log queue to obtain a single point event of the log data.
[0123] Optionally, the first matching unit includes: a first parsing module, used to parse the single-point event and determine the single-point event behavior of the single-point event; a second determination module, used to determine the single-point event as a suspicious event when the single-point event behavior successfully matches the event behavior indicated by any event rule.
[0124] The above-mentioned detection device may also include a processor and a memory. The above-mentioned acquisition unit 60, the first processing unit 61, the first matching unit 62, the first adding unit 63, the first detection unit 64, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0125] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. The kernel can be set to one or more, and the kernel parameters are adjusted to detect suspicious events in the event queue based on the associated event rule base, and when multiple suspicious events are detected to hit the target associated event rule, the event behavior triggered by all suspicious events that hit the target associated event rule is determined as abnormal behavior on the terminal device.
[0126] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (fl ash RAM), and the memory includes at least one storage chip.
[0127] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: collecting log data of a terminal device and adding the log data to a log queue, processing the log data in the log queue to obtain a single-point event, matching the single-point event based on a single-point event rule library, and when the single-point event successfully matches any event rule, determining the single-point event as a suspicious event and adding the suspicious event to an event queue, detecting the suspicious events in the event queue based on an associated event rule library, and when it is detected that multiple suspicious events hit the target associated event rule, determining the event behavior triggered by all suspicious events that hit the target associated event rule as abnormal behavior on the terminal device.
[0128] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned abnormal behavior detection method.
[0129] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the above-mentioned abnormal behavior detection method.
[0130] Figure 7 1 is a hardware structure block diagram of an electronic device (or mobile device) for detecting abnormal behavior according to an embodiment of the present invention. Figure 7 As shown, the electronic device may include one or more processors (e.g., Figure 7 The processor 702a, processor 702b, ..., processor 702n, etc., which may include but are not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 704 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 7 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 7 More or fewer components as shown, or with Figure 7 Different configurations are shown.
[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0132] The embodiments or examples of the present disclosure are not exhaustive, but are only illustrative of some embodiments or examples, and are not intended to be specific limitations on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment or example can be implemented as an independent example, and the steps can be combined arbitrarily. For example, the scheme after removing some steps in a certain embodiment or example can also be implemented as an independent example, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain embodiment or example can be combined arbitrarily; in addition, the various embodiments or examples can be combined arbitrarily, for example, some or all steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional methods or optional examples of other embodiments or examples.
[0133] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0134] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0136] In addition, each functional unit in each embodiment of the present invention may be integrated into a first processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0138] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for detecting abnormal behavior, It is characterized in that include: Collecting log data from terminal devices and adding the log data to a log queue; Processing the log data in the log queue to obtain a single point event; Based on the single point event rule base, the single point event is matched, and when the single point event successfully matches any event rule, the single point event is determined as a suspicious event, and the suspicious event is added to the event queue, wherein the single point event rule base includes: a plurality of the event rules; Based on the associated event rule base, the suspicious events in the event queue are detected, and when it is detected that multiple suspicious events hit the target associated event rules, the event behaviors triggered by all the suspicious events that hit the target associated event rules are determined as abnormal behaviors on the terminal device, wherein the associated event rule base includes: multiple associated event rules.
2. The detection method according to claim 1, It is characterized in that The associated event rule is used to record multiple preset single-point events that occur in association. Based on the associated event rule base, the step of detecting the suspicious event in the event queue includes: Reading each of the suspicious events in sequence according to the queue order of each of the suspicious events in the event queue, and detecting whether the read suspicious event matches the preset single-point event associated with any of the associated event rules; In the case of detecting the suspicious event matching the start single point event associated with the target association event rule, detecting within a preset time period whether there are other suspicious events that respectively match the remaining single point events associated with the target association event rule, wherein the start single point event is the preset single point event that starts to occur in the target association event rule, and the remaining single point events are all remaining preset single point events in the target association event rule except the start single point event; In the case where the other suspicious event is detected within the preset time period, it is determined that the suspicious event is detected and the other suspicious event hits the target association event rule.
3. The detection method according to claim 1 or 2, It is characterized in that The process of detecting the suspicious event in the event queue based on the correlation event rule base also includes: In the case where it is detected that a plurality of the suspicious events sequentially read from the event queue hit the target associated event rule, the plurality of suspicious events are characterized as associated events, and in the case where the target associated event rule is a condition of an event in other associated event rules, the associated event is added to the event queue as a suspicious event, wherein the other associated event rules are the associated event rules other than the target associated event rule; The suspicious events in the event queue are detected until the event queue is empty.
4. The detection method according to claim 1, It is characterized in that After determining the event behaviors triggered by all the suspicious events that hit the target association event rule as abnormal behaviors on the terminal device, the method further includes: Matching the abnormal behavior with a response handling rule base, wherein the response handling rule base includes: a plurality of response handling strategies; In the case where a target response handling strategy associated with the abnormal behavior is matched, the target response handling strategy is adopted to handle the abnormal behavior, and the target response handling strategy is sent to the detection center end.
5. The detection method according to claim 1, It is characterized in that After determining the event behaviors triggered by all the suspicious events that hit the target association event rule as abnormal behaviors on the terminal device, the method further includes: Determining an alarm type based on all the suspicious events that trigger the abnormal behavior; In the case where the alarm type is a preset alarm type, sending a scan request to a scan engine, wherein the scan engine responds to the scan request and returns a scanned abnormality code; All the suspicious events that trigger the abnormal behavior and the abnormal codes are sent to the detection center to determine the disposal strategy.
6. The detection method according to claim 1, It is characterized in that The step of processing the log data in the log queue to obtain a single point event includes: The log data is screened based on a log parsing rule base, wherein the log parsing rule base includes: a plurality of keywords; Deleting the log data that does not contain any of the keywords in the log parsing rule base from the log queue; All remaining log data in the log queue are processed into a unified data format to obtain the single point event of the log data.
7. The detection method according to claim 1, It is characterized in that The step of matching the single point event based on the single point event rule base includes: Analyze the single point event and determine the single point event behavior of the single point event; In the case where the single-point event behavior successfully matches the event behavior indicated by any of the event rules, the single-point event is determined as the suspicious event.
8. A device for detecting abnormal behavior, It is characterized in that include: A collection unit, used for collecting log data of terminal devices and adding the log data to a log queue; A first processing unit, configured to process the log data in the log queue to obtain a single point event; A first matching unit is configured to match the single point event based on a single point event rule base, and determine the single point event as a suspicious event when the single point event successfully matches any event rule, wherein the single point event rule base includes: a plurality of the event rules; A first adding unit, used for adding the suspicious event to an event queue; The first detection unit is used to detect the suspicious events in the event queue based on the associated event rule base, and when it is detected that multiple suspicious events hit the target associated event rule, determine the event behaviors triggered by all the suspicious events that hit the target associated event rule as abnormal behaviors on the terminal device, wherein the associated event rule base includes: multiple associated event rules.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the abnormal behavior detection method according to any one of claims 1 to 7.
10. An electronic device, It is characterized in that It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the abnormal behavior detection method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Network situation awareness method and network situation awareness system based on information acquisition of various network devices
CN111885012A
Security policy self-feedback method based on security log association analysis
CN112468472A
Security event association behavior analysis method, system and equipment based on association rules
CN116074075A
Abnormal event detection method and device and storage medium
CN117873761A
Security Rule Generation Based on Cognitive and Industry Analysis
US20200186569A1
