Abnormal behavior detection method, device, equipment and storage medium
By obtaining and updating the baseline status and effective time range of the behavioral security baseline, the target baseline is determined for abnormal behavior detection, which solves the problem of poor performance of existing technology in detecting unknown attack behaviors and improves the accuracy and adaptability of network security detection. sex.
Patent Information
- Application Number
- CN202210195796.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-03-01
AI Technical Summary
Existing technologies are ineffective at detecting unknown and new attack behaviors and cannot adapt to the current severe network security situation.
By obtaining the baseline status and effective time range of the behavioral security baseline, determine the target behavioral security baseline, detect abnormal behavior on the input behavioral data, and update or delete the baseline when necessary to ensure the accuracy of detection.
It achieves accurate identification and update of multiple behavioral security baselines, improves the detection capabilities of unknown attack behaviors, and adapts to current network security needs.
Smart Images

Figure CN114615036B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an abnormal behavior detection method, device, equipment and storage medium. Background Art
[0002] In recent years, with the rapid development of Internet technology and the intelligence of network equipment, network security has become the key to information protection, data storage and use. Network user behavior has an important impact on network security, and various network problems caused by abnormal user behavior have become more prominent than ever before.
[0003] In related technologies, the security analysis and detection methods of user behavior are based on prior knowledge and use features to perform security detection on network data and logs. This method can better deal with known attack behaviors, but cannot effectively detect unknown and new attack behaviors and cannot adapt to the current severe network security situation. Summary of the invention
[0004] In view of the problems in the prior art, embodiments of the present invention provide an abnormal behavior detection method, apparatus, device and storage medium.
[0005] Specifically, the embodiment of the present invention provides the following technical solutions:
[0006] In a first aspect, an embodiment of the present invention provides an abnormal behavior detection method, comprising:
[0007] Obtaining a baseline status and an effective time range of at least one first behavior security baseline;
[0008] Determining a target behavioral safety baseline according to a baseline state and an effective time range of the at least one first behavioral safety baseline;
[0009] Abnormal behavior detection is performed on the input behavior data according to the target behavior security baseline.
[0010] Further, the edited data of the behavior safety baseline is obtained, and the edited data includes: information and operation mode of the behavior safety baseline;
[0011] Performing first target processing according to the information and operation mode of the behavioral safety baseline to obtain a processing result;
[0012] The baseline state and effective time range of the at least one first behavior security baseline are updated according to the processing result.
[0013] Further, if the operation mode is an update operation, the information of the behavior safety baseline includes: an identifier of the first behavior safety baseline to be updated and data of the second behavior safety baseline, and the first target processing is performed according to the information and the operation mode of the behavior safety baseline to obtain a processing result, including:
[0014] The first behavior security baseline to be updated is determined according to the identifier of the first behavior security baseline to be updated, and the first behavior security baseline to be updated is updated to the second behavior security baseline.
[0015] Further, if the operation mode is a deletion operation, the information of the behavior safety baseline includes: an identifier of the first behavior safety baseline to be deleted, and the first target processing is performed according to the information and the operation mode of the behavior safety baseline to obtain a processing result, including:
[0016] According to the identifier of the first behavior security baseline to be deleted, the first behavior security baseline to be deleted is determined, and the first behavior security baseline to be deleted is deleted.
[0017] Further, if the operation mode is an update operation, updating the first behavior security baseline to be updated to the second behavior security baseline includes:
[0018] Deserialize the data of the second behavior security baseline to obtain the second behavior security baseline;
[0019] The first behavior security baseline to be updated is updated to the second behavior security baseline.
[0020] Furthermore, the method further comprises:
[0021] Get the second behavior data;
[0022] Performing a second target processing on the second behavior data based on the first node, wherein the first node includes at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, and a baseline generation node;
[0023] The data parsing node is used to parse and verify the second behavior data based on a pre-configured first format parameter;
[0024] The data time generation node is used to set the time for the behavior data output by the previous node;
[0025] The data filtering node is used to filter the behavior data output by the previous node based on the pre-configured filtering conditions;
[0026] The time window management node is used to determine at least one time window according to the behavior data output by the previous node, and determine the third behavior data corresponding to each of the time windows;
[0027] The data denoising node is used to perform denoising on the behavior data output by the previous node;
[0028] The baseline generation node is used to generate a behavior security baseline based on the behavior data output by the previous node.
[0029] Furthermore, the method further comprises:
[0030] Obtaining status information of a second node and monitoring the status of the second node; the second node includes at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, a baseline generation node, a baseline management node, and a baseline detection node;
[0031] The baseline management node is used to manage the baseline status, effective time range and baseline generation process of the first behavior security baseline;
[0032] The baseline detection node is used to perform abnormal behavior detection on the input first behavior data.
[0033] Furthermore, after obtaining the edited data of the behavioral safety baseline, it also includes:
[0034] Parsing and verifying the edited data of the behavioral security baseline based on a preconfigured second format parameter;
[0035] If the parsing and verification are successful, the parsed edit data is sent to an edit data routing node, and the edit data routing node is used to determine the baseline management node corresponding to the edit data.
[0036] Furthermore, the method further comprises:
[0037] The intermediate data generated during the storage processing process includes at least one of the following: the current active time window set generated by the time window management node, the behavior data set corresponding to the time window, the behavior data set denoised by the data denoising node, the behavior safety baseline currently being generated by the baseline generation node, and the current baseline status generated in the baseline management node.
[0038] In a second aspect, an embodiment of the present invention further provides an abnormal behavior detection device, comprising:
[0039] An acquisition module, used to acquire a baseline state and an effective time range of at least one first behavior security baseline;
[0040] A processing module, configured to determine a target behavior safety baseline according to a baseline state and an effective time range of the at least one first behavior safety baseline;
[0041] The detection module is used to perform abnormal behavior detection on the input behavior data according to the target behavior security baseline.
[0042] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the abnormal behavior detection method as described in the first aspect is implemented.
[0043] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the abnormal behavior detection method as described in the first aspect is implemented.
[0044] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the abnormal behavior detection method as described in the first aspect.
[0045] The abnormal behavior detection method, apparatus, device and storage medium provided by the embodiments of the present invention obtain the baseline status and effective time range of at least one first behavior security baseline; determine the target behavior security baseline according to the baseline status and effective time range of at least one first behavior security baseline; that is, when there are multiple behavior security baselines and the behavior security baseline needs to be used to analyze and detect abnormal behaviors, the currently effective behavior security baseline can be accurately determined from the multiple behavior security baselines according to the status and effective time range of each behavior baseline, that is, the target behavior security baseline can be accurately determined from the multiple behavior security baselines; and then based on the currently effective behavior security baseline determined from the multiple behavior security baselines, the input user behavior data can be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 is a flow chart of an abnormal behavior detection method provided by an embodiment of the present invention;
[0048] Figure 2 It is a schematic diagram of the process of editing data of a behavioral safety baseline provided by an embodiment of the present invention;
[0049] Figure 3 is a flowchart of behavior data processing provided by an embodiment of the present invention;
[0050] Figure 4 is a flowchart of behavioral safety baseline processing provided by an embodiment of the present invention;
[0051] Figure 5 It is an implementation framework diagram of node operation status monitoring provided by an embodiment of the present invention;
[0052] Figure 6 is a diagram of an implementation framework of intermediate data storage provided by an embodiment of the present invention;
[0053] Figure 7 It is an implementation framework diagram of an abnormal behavior detection method provided by an embodiment of the present invention;
[0054] Figure 8 is a schematic diagram of the structure of an abnormal behavior detection device provided by an embodiment of the present invention;
[0055] Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0057] The method of the embodiment of the present invention can be applied to abnormal behavior detection scenarios to effectively implement abnormal behavior detection.
[0058] In related technologies, the security analysis and detection methods of user behavior are based on prior knowledge and use features to perform security detection on network data and logs. This method can better deal with known attack behaviors, but cannot effectively detect unknown and new attack behaviors and cannot adapt to the current severe network security situation.
[0059] The abnormal behavior detection method of the embodiment of the present invention obtains the baseline status and effective time range of at least one first behavioral security baseline; determines the target behavioral security baseline according to the baseline status and effective time range of at least one first behavioral security baseline; that is, when there are multiple behavioral security baselines and the behavioral security baseline needs to be used to analyze and detect abnormal behaviors, the currently effective behavioral security baseline can be accurately determined from the multiple behavioral security baselines according to the status and effective time range of each behavioral baseline, that is, the target behavioral security baseline can be accurately determined from the multiple behavioral security baselines; and then based on the currently effective behavioral security baseline determined from the multiple behavioral security baselines, the input user behavior data can be detected.
[0060] Combine the following Figure 1-Figure 9 The technical solution of the present invention is described in detail with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0061] Figure 1 FIG. 1 is a flow chart of an abnormal behavior detection method according to an embodiment of the present invention. Figure 1 As shown, the method provided in this embodiment includes:
[0062] Step 101: Obtain a baseline state and an effective time range of at least one first behavior security baseline;
[0063] Specifically, the behavioral security baseline represents the behavioral data of each user behavior in at least one user behavior occurring in at least one time period within a preset time range for one or more users. The baseline state and effective time range of the behavioral security baseline determine how to use the behavioral security baseline; optionally, the baseline state of the behavioral security baseline includes at least one of the following: an activated state, an initial state, a waiting start state, and a waiting end state; the effective time range of the behavioral security baseline is determined according to the effective start time of the behavioral security baseline and the effective end time of the behavioral security baseline.
[0064] For example, two first behavior security baselines are obtained, namely, the first behavior security baseline A and the first behavior security baseline B; among them, the baseline status of the first behavior security baseline A is the activated status, and the effective time range is January 1 to January 5; the baseline status of the first behavior security baseline B is the waiting start status, and the effective time range is January 7 to January 8.
[0065] Step 102: Determine a target behavior security baseline according to a baseline state and an effective time range of at least one first behavior security baseline;
[0066] Specifically, when there are multiple behavioral security baselines, if the behavioral security baseline needs to be used for security analysis and anomaly detection, it is necessary to determine the target behavioral security baseline from the multiple behavioral security baselines, that is, it is necessary to obtain the currently effective behavioral security baseline from the multiple behavioral security baselines for abnormal behavior detection.
[0067] For example, three first behavior security baselines are obtained, namely, first behavior security baseline A and first behavior security baseline B; among them, the baseline status of first behavior security baseline A is activated, and the effective time range is from January 1 to January 5; the baseline status of first behavior security baseline B is initial, and the effective time range is from January 1 to January 5; the baseline status of first behavior security baseline C is waiting to start, and the effective time range is from January 7 to January 8. When it is necessary to analyze and detect whether there are abnormalities in the user behavior data on January 2, based on the baseline status and effective time range of first behavior security baseline A, first behavior security baseline B, and first behavior security baseline C, it can be determined that first behavior security baseline A is used as the target behavior security baseline for abnormal behavior detection.
[0068] Step 103: Perform abnormal behavior detection on the input behavior data according to the target behavior security baseline.
[0069] Specifically, after a target behavior security baseline is determined from multiple behavior security baselines according to the status and effective time of the behavior security baseline, the target behavior security baseline can be used to detect abnormal behavior of the input behavior data.
[0070] For example, after inputting the behavior data a to be detected, the behavior data a can be compared with the behavior data corresponding to the target behavior security baseline A. If the difference between the two exceeds a preset threshold, the behavior data a is abnormal behavior data.
[0071] The method of the above embodiment obtains the baseline status and effective time range of at least one first behavioral security baseline; determines the target behavioral security baseline based on the baseline status and effective time range of at least one first behavioral security baseline; that is, when there are multiple behavioral security baselines and the behavioral security baseline needs to be used to analyze and detect abnormal behaviors, the currently effective behavioral security baseline can be accurately determined from the multiple behavioral security baselines based on the status and effective time range of each behavioral baseline, that is, the target behavioral security baseline can be accurately determined from the multiple behavioral security baselines; and then based on the currently effective behavioral security baseline determined from the multiple behavioral security baselines, the input user behavior data can be detected.
[0072] In one embodiment, the method for abnormal behavior detection further includes: obtaining edited data of the behavior safety baseline, the edited data including: information and operation mode of the behavior safety baseline;
[0073] Perform the first target processing according to the information and operation mode of the behavioral safety baseline and obtain the processing result;
[0074] The baseline state and effective time range of at least one first behavior security baseline are updated according to the processing result.
[0075] Specifically, when detecting abnormal user behavior, the baseline status and effective time range of the existing first behavioral security baseline may need to be updated according to actual needs. For example, when the latest and more accurate behavioral security baseline A is obtained, in order to detect abnormal behavior more accurately, the baseline status of the existing first behavioral security baseline B can be updated from the activated state to the waiting end state according to actual needs, or the effective time of the first behavioral security baseline B can be adjusted from January 1st to January 5th to January 1st to January 2nd. In this embodiment, the baseline can be processed by the editing data of the acquired behavioral security baseline; wherein the editing data includes the information and operation mode of the behavioral security baseline, the information of the security baseline includes the baseline to be processed, and the operation mode includes the specific processing mode of the baseline, that is, the editing data includes the baseline to be processed and its processing mode; thus, according to the acquired baseline information and processing method to be processed, the processing of the baseline can be completed and the processing result can be obtained; further, after the baseline is processed, such as updating or deleting the baseline, the baseline status and effective time range of the behavioral security baseline need to be updated synchronously to ensure that the target baseline can be accurately determined when abnormal behavior detection is performed.
[0076] Optionally, if the operation mode is an update operation, the information of the behavioral safety baseline includes: an identifier of the first behavioral safety baseline to be updated and data of the second behavioral safety baseline, and target processing is performed according to the information of the behavioral safety baseline and the operation mode to obtain a processing result, including:
[0077] Based on the identifier of the first behavioral security baseline to be updated, the first behavioral security baseline to be updated is determined, and the first behavioral security baseline to be updated is updated to the second behavioral security baseline; that is, when the operation mode in the editing data is an update operation, and the information of the behavioral security baseline in the editing data includes the identifier of the first behavioral security baseline to be updated and the data of the second behavioral security baseline, based on the operation mode and the information of the behavioral security baseline in the editing data, the first behavioral security baseline is updated to the second behavioral security baseline.
[0078] Optionally, if the operation mode is an update operation, updating the first behavior security baseline to be updated to the second behavior security baseline includes: deserializing the data of the second behavior security baseline to obtain the second behavior security baseline; updating the first behavior security baseline to be updated to the second behavior security baseline;
[0079] Specifically, by deserializing the data of the second behavior security baseline, the data can be converted into a second behavior security baseline with a preset structure, and the update operation is further completed according to the second behavior security baseline generated after deserialization.
[0080] Optionally, if the operation mode is a deletion operation, the information of the behavior safety baseline includes: an identifier of the first behavior safety baseline to be deleted, and target processing is performed according to the information of the behavior safety baseline and the operation mode to obtain a processing result, including:
[0081] According to the identifier of the first behavior security baseline to be deleted, the first behavior security baseline to be deleted is determined, and the first behavior security baseline to be deleted is deleted; that is, when the operation mode in the editing data is a deletion operation and the operation mode in the editing data is a deletion operation, the first behavior security baseline is deleted according to the operation mode in the editing data and the information of the behavior security baseline.
[0082] For example, Figure 4 As shown: The baseline manager processes the behavioral security baseline editing data and the behavioral security baseline separately: when the input is the behavioral security baseline editing data, if it is an update operation, the behavioral security baseline editing data is deserialized into a behavioral security baseline, and the deserialized behavioral security baseline is updated to the baseline management state machine; if it is a deletion operation, the corresponding behavioral security baseline is deleted and the baseline management state machine is updated; when the input is a behavioral security baseline, the behavioral security baseline is updated to the baseline management state machine, and after the update, the behavioral security baseline is written to the baseline data message queue; when the baseline detector needs to use the behavioral security baseline for security analysis and anomaly detection, the baseline manager obtains the target behavioral security baseline from the baseline management state machine and provides it to the baseline detector for abnormal behavior detection.
[0083] Optionally, after acquiring the edit data of the behavior security baseline, the method further includes: parsing and verifying the edit data of the behavior security baseline based on a pre-configured second format parameter; if the parsing and verification are successful, sending the parsed edit data to an edit data routing node, and the edit data routing node is used to determine the baseline management node corresponding to the edit data;
[0084] Specifically, by parsing and verifying the edited data of the acquired behavioral safety baseline, the edited data can be verified to ensure compliance and correct operation of the baseline, and avoid erroneous operations that affect the accuracy of baseline and abnormal behavior detection; further, if the analysis and verification are successful, the parsed edited data will be sent to the edited data routing node, and the edited data can be accurately sent to the corresponding baseline management node through the edited data routing node, and the edited data can be managed timely and accurately through the corresponding baseline state machine.
[0085] For example, Figure 2 As shown, the editing data parser reads the original behavioral security baseline editing data from the baseline editing data message queue, and parses and verifies the data. If an error occurs during the parsing and verification process, a data parsing error message is sent to the baseline status message queue. If the parsing and verification are successful, the parsed data is sent to the baseline editing data router; the baseline editing data router performs data routing according to the input behavioral security baseline editing data parameters, and sends the data to the baseline manager instance specified by the parameters. If an error occurs during the sending process, a data routing error message is sent to the baseline status message queue; the baseline manager performs baseline management according to the input behavioral security baseline editing data parameters, including baseline life cycle management and baseline calculation management.
[0086] The method of the above embodiment obtains the editing data of the behavioral safety baseline, and the editing data includes: information and operation methods of the behavioral safety baseline; performs first target processing according to the information and operation methods of the behavioral safety baseline to obtain a processing result; updates the baseline state and effective time range of at least one first behavioral safety baseline according to the processing result; that is, by obtaining the specific baseline to be processed and the processing method information included in the editing data, the baseline to be processed in the editing data can be updated or deleted in a timely and accurate manner according to the processing method in the editing data; that is, the processing of the behavioral safety baseline can be realized quickly and accurately according to actual needs; further, after completing the update or deletion of the behavioral safety baseline, the baseline state and effective time range of the behavioral safety baseline are synchronously updated, so that the target baseline can be accurately determined according to the updated baseline state and effective time range to realize the detection of abnormal behavior.
[0087] In one embodiment, the abnormal behavior detection method further includes:
[0088] Acquire second behavior data; perform second target processing on the second behavior data based on the first node, the first node including at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, and a baseline generation node; wherein the data parsing node is used to parse and verify the second behavior data based on a pre-configured first format parameter; the data time generation node is used to set the time for the behavior data output by the previous node; the data filtering node is used to filter the behavior data output by the previous node based on pre-configured filtering conditions; the time window management node is used to determine at least one time window according to the behavior data output by the previous node, and determine the third behavior data corresponding to each time window; the data noise reduction node is used to perform noise reduction on the behavior data output by the previous node; the baseline generation node is used to generate a behavior security baseline based on the behavior data output by the previous node.
[0089] Specifically, the detection of abnormal behavior based on the behavioral baseline needs to be based on an accurate baseline; in order to obtain a baseline that meets actual needs and a more accurate detection result, the acquired behavioral data needs to be accurately analyzed and processed; in this embodiment, the behavioral data is analyzed and processed by the first node, and optionally, the first node includes at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, and a baseline generation node; wherein the data parsing node can implement the parsing and verification of the second behavioral data, exclude erroneous or non-standard data, and implement accurate analysis of the behavioral data, so as to obtain a more accurate behavioral safety baseline; the data time generation node is used to set the time for the behavioral data output by the previous node, and optionally, the time of the input data itself can be used as the time of the current data; the time when the data arrives at the node to start processing can also be used as the time of the current data; through the time generation node, all behavioral data can be defined and operated according to the same time standard, so as to obtain a more accurate behavioral safety baseline, In this way, the effective time range of the baseline can be accurately determined, thereby improving the accuracy of abnormal behavior detection. The data filtering node can filter the behavior data based on preconfigured filtering conditions. Through data filtering, the data that does not meet the filtering conditions can be discarded, thereby improving the accuracy of the data and also improving the efficiency of subsequent node operations. The time window management node is used to determine at least one time window based on the behavior data output by the previous node, and to determine the third behavior data corresponding to each time window. That is, the behavior security baseline is usually obtained in units of time periods. Therefore, in order to obtain the behavior security baseline, it is necessary to accurately determine the time window corresponding to the behavior data through the time window management node, and to determine the behavior data corresponding to each time window, so as to accurately obtain the behavior security baseline corresponding to the behavior data within the time window. The data denoising node is used to perform denoising on the behavior data output by the previous node, thereby improving the accuracy of the behavior data. The baseline generation node can generate a behavior security baseline based on the behavior data output by the previous node. The behavior security baseline obtained based on the baseline generation node can also realize the detection of abnormal behavior.
[0090] For example, Figure 3As shown, the data parser reads the behavior data stream from the historical behavior data storage and the real-time behavior data message queue, and parses and verifies the data according to the rule-configured data format. If the data format verification fails, the data is discarded; the data time generator calculates the corresponding data time from the behavior data according to the rule time generation configuration parameters, and sets the time on the behavior data; the data filter filters the input behavior data according to the rule filtering conditions, and sends the data to the lower-level node if the filtering is successful, and discards the data if the filtering fails; the time window manager saves the behavior data to the corresponding time window according to the rule time window configuration parameters and the behavior data time, notifies the subsequent computing nodes after the corresponding time window is completed, and sends the behavior data set to the subsequent computing nodes; the data denoiser eliminates data noise from the input behavior data set according to the rule-configured denoising parameters, deletes the noise data in the behavior data set, and sends the final denoised behavior data set to the subsequent computing nodes; the baseline generator counts and learns the data in the input behavior data set according to the rule configuration parameters, and the learning result is the behavior security baseline; the baseline detector uses the learned behavior security baseline to perform security analysis and anomaly detection on the behavior data, and writes the behavior anomaly data into the behavior anomaly data message queue if an anomaly is found.
[0091] The method of the above embodiment processes the behavior data based on the first node, wherein the first node includes at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, and a baseline generation node. Accordingly, it is possible to realize the analysis of the behavior data, the setting of the data time, the filtering of the behavior data, the management of the time window corresponding to the behavior data, the noise reduction of the behavior data, and the generation of the behavior safety baseline. By processing the behavior data based on the first node, accurate analysis and processing of the behavior data are achieved, the accuracy of the behavior safety baseline is improved, and thus the accuracy of abnormal behavior detection is improved.
[0092] In one embodiment, the abnormal behavior detection method further includes:
[0093] Obtain status information of the second node and monitor the status of the second node; the second node includes at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, a baseline generation node, a baseline management node, and a baseline detection node; the baseline management node is used to manage the baseline status, effective time range, and baseline generation process of the first behavior security baseline; the baseline detection node is used to perform abnormal behavior detection on the input first behavior data;
[0094] Specifically, obtaining a behavioral safety baseline requires analyzing and processing a large amount of behavioral data, so the state corresponding to the node that processes the behavioral data directly affects the processing efficiency of the behavioral data and the behavioral safety baseline; in order to improve the processing efficiency of the behavioral data and the behavioral safety baseline, the nodes need to be processed; optionally, the nodes include data parsing nodes, data time generation nodes, data filtering nodes, time window management nodes, data noise reduction nodes, baseline generation nodes, baseline management nodes, and baseline detection nodes; wherein the baseline management node is used to manage the baseline state, effective time range, and baseline generation process of the first behavioral safety baseline; the baseline detection node is used to detect abnormal behavior of the input first behavioral data. Optionally, monitor at least one of the following states of the second node: CPU data statistics, memory data statistics, input data statistics, output data statistics, error data statistics, and running context data statistics; by monitoring the state information in the second node, the state corresponding to the second node can be obtained in time, and the load of the second node can be determined according to the state, and further optimized and adjusted to improve the processing efficiency of the behavioral data and the behavioral safety baseline.
[0095] For example, Figure 5 As shown: Each computing node reports the node status information to the node status monitor at regular intervals, and the node status monitor sends the collected node status information to the node status data message queue after statistical processing. Among them, the computing nodes that need to report node status information are: data parser, data time generator, data filter, time window manager, data noise reducer, baseline generator, baseline manager, baseline detector; computing node status information includes: CPU data statistics, memory data statistics, input data statistics, output data statistics, error data statistics, running context data statistics and other information.
[0096] The method of the above embodiment can obtain the node status information in a timely and accurate manner by monitoring the status of the second node corresponding to the behavior data processing and the behavior safety baseline processing, and can also accurately evaluate and determine the node load situation; further, by optimizing and adjusting according to the node status, the processing efficiency of the behavior data and the behavior safety baseline can be improved.
[0097] In one embodiment, the abnormal behavior detection method further includes:
[0098] The intermediate data generated during the storage process includes at least one of the following: the current active time window set generated by the time window management node, the behavior data set corresponding to the time window, the behavior data set denoised by the data denoising node, the behavior security baseline currently being generated by the baseline generation node, and the current baseline status generated in the baseline management node;
[0099] Specifically, during the baseline generation and behavior detection process, the behavior data will be processed through multiple nodes. In order to prevent data loss when the node is restarted or an error occurs, it is necessary to store the intermediate data generated during the processing; wherein, the intermediate data includes at least one of the following: the current active time window set generated by the time window management node, the behavior data set corresponding to the time window, the behavior data set denoised by the data denoising node, the behavior security baseline currently being generated by the baseline generation node, and the current baseline status generated in the baseline management node; that is, by storing the node data in the baseline generation and behavior detection process, optionally, it can be stored regularly according to preset rules, and real-time data backup can be achieved with a distributed database, which means that when the node is restarted or an error occurs, the pre-stored data can be used to quickly and accurately detect abnormal behavior.
[0100] For example, Figure 6 As shown: By persisting the intermediate result data in distributed storage, that is, storing the intermediate results in distributed storage, data loss problems can be prevented when errors occur or nodes are restarted; the computing nodes corresponding to the data storage include: the time window manager persists the current active time window set and the behavior data set corresponding to the window, the data denoiser persists the behavior data set currently being denoised, the baseline generator persists the behavior safety baseline currently being learned, and the baseline manager persists the current baseline management state machine.
[0101] The method of the above embodiment stores the node data in the process of baseline generation and behavior detection. When the node is restarted or an error occurs, the abnormal behavior can be detected quickly and accurately through the pre-stored data.
[0102] For example, Figure 7 It is a flow chart of an abnormal behavior detection method provided by an embodiment of the present invention; through the implementation of behavioral security baseline editing data processing, behavioral data processing, behavioral security baseline processing, node monitoring, and data storage solutions, abnormal behavior detection can be systematically achieved, making the entire detection process more accurate and effectively improving the accuracy and efficiency of detection.
[0103] The abnormal behavior detection device provided by the present invention is described below. The abnormal behavior detection device described below and the abnormal behavior detection method described above can be referenced to each other.
[0104] Figure 8 : is a schematic diagram of the structure of the abnormal behavior detection device provided by the present invention. The abnormal behavior detection device provided in this embodiment includes:
[0105] An acquisition module 710 is used to acquire a baseline state and an effective time range of at least one first behavior security baseline;
[0106] A processing module 720, configured to determine a target behavior security baseline according to a baseline state and an effective time range of at least one first behavior security baseline;
[0107] The detection module 730 is used to perform abnormal behavior detection on the input behavior data according to the target behavior security baseline.
[0108] Optionally, the acquisition module 710 is further used to: acquire editing data of the behavior safety baseline, the editing data including: information and operation mode of the behavior safety baseline;
[0109] The processing module 720 is further used to perform first target processing according to the information and operation mode of the behavior safety baseline to obtain a processing result;
[0110] The baseline state and effective time range of at least one first behavior security baseline are updated according to the processing result.
[0111] Optionally, if the operation mode is an update operation, the information of the behavior security baseline includes: an identifier of the first behavior security baseline to be updated and data of the second behavior security baseline, and the processing module 720 is specifically used to:
[0112] According to the identifier of the first behavior security baseline to be updated, the first behavior security baseline to be updated is determined, and the first behavior security baseline to be updated is updated to a second behavior security baseline.
[0113] Optionally, if the operation mode is a deletion operation, the information of the behavior safety baseline includes: an identifier of the first behavior safety baseline to be deleted, and the processing module 720 is specifically used to:
[0114] According to the identifier of the first behavior security baseline to be deleted, the first behavior security baseline to be deleted is determined, and the first behavior security baseline to be deleted is deleted.
[0115] Optionally, if the operation mode is an update operation, the processing module 720 is specifically used to: deserialize the data of the second behavior security baseline to obtain the second behavior security baseline;
[0116] The first behavior security baseline to be updated is updated to the second behavior security baseline.
[0117] Optionally, the processing module 720 is further used to: obtain second behavior data;
[0118] Performing second target processing on the second behavior data based on the first node, the first node including at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, and a baseline generation node;
[0119] The data parsing node is used to parse and verify the second behavior data based on the pre-configured first format parameter;
[0120] The data time generation node is used to set the time for the behavior data output by the previous node;
[0121] The data filtering node is used to filter the behavior data output by the previous node based on the pre-configured filtering conditions;
[0122] The time window management node is used to determine at least one time window according to the behavior data output by the previous node, and determine the third behavior data corresponding to each time window;
[0123] The data denoising node is used to perform denoising on the behavior data output by the previous node;
[0124] The baseline generation node is used to generate a behavioral security baseline based on the behavioral data output by the previous node.
[0125] Optionally, the processing module 720 is further used to: obtain status information of the second node and monitor the status of the second node; the second node includes at least one of the following: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, a baseline generation node, a baseline management node, and a baseline detection node;
[0126] The baseline management node is used to manage the baseline status, effective time range and baseline generation process of the first line security baseline;
[0127] The baseline detection node is used to perform abnormal behavior detection on the input first behavior data.
[0128] Optionally, the processing module 720 is specifically used to: parse and verify the edited data of the behavior security baseline based on a pre-configured second format parameter;
[0129] If the parsing and verification are successful, the parsed edit data is sent to the edit data routing node, which is used to determine the baseline management node corresponding to the edit data.
[0130] Optionally, the device also includes a storage module for storing intermediate data generated during the processing process, the intermediate data including at least one of the following: a current active time window set generated by a time window management node, a behavior data set corresponding to the time window, a behavior data set denoised by a data denoising node, a behavior security baseline currently being generated by a baseline generation node, and a current baseline status generated in a baseline management node.
[0131] The device of the embodiment of the present invention is used to execute the method in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.
[0132] Fig. 9 An example of a physical structure diagram of an electronic device is provided, and the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute an abnormal behavior detection method, which includes: obtaining a baseline state and an effective time range of at least one first behavior security baseline; determining a target behavior security baseline according to the baseline state and the effective time range of at least one first behavior security baseline; and performing abnormal behavior detection on the input behavior data according to the target behavior security baseline.
[0133] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, 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, 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, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0134] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the abnormal behavior detection method provided by the above-mentioned methods, and the method includes: obtaining the baseline status and effective time range of at least one first behavior security baseline; determining a target behavior security baseline based on the baseline status and effective time range of at least one first behavior security baseline; and performing abnormal behavior detection on the input behavior data based on the target behavior security baseline.
[0135] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned abnormal behavior detection methods, the methods comprising: obtaining a baseline state and an effective time range of at least one first behavior security baseline; determining a target behavior security baseline based on the baseline state and the effective time range of at least one first behavior security baseline; and performing abnormal behavior detection on the input behavior data based on the target behavior security baseline.
[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting abnormal behavior, characterized in that: include: Get the second behavior data; Performing second target processing on the second behavior data based on the first node, the first node including: a data parsing node, a data time generating node, a data filtering node, a time window management node, a data noise reduction node, and a baseline generating node; The data parsing node is used to parse and verify the second behavior data based on a pre-configured first format parameter; The data time generation node is used to set the time for the behavior data output by the previous node; The data filtering node is used to filter the behavior data output by the previous node based on the pre-configured filtering conditions; The time window management node is used to determine at least one time window according to the behavior data output by the previous node, and determine the third behavior data corresponding to each of the time windows; The data denoising node is used to perform denoising on the behavior data output by the previous node; The baseline generation node is used to generate a behavior safety baseline based on the behavior data output by the previous node; Obtaining a baseline status and an effective time range of at least one first behavior security baseline; Determining a target behavioral safety baseline according to a baseline state and an effective time range of the at least one first behavioral safety baseline; Performing abnormal behavior detection on the input behavior data according to the target behavior security baseline; The method further comprises: Obtaining status information of a second node and monitoring the status of the second node; the second node includes: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, a baseline generation node, and a baseline management node; The baseline management node is used to manage the baseline status, effective time range and baseline generation process of the first behavior security baseline.
2. The abnormal behavior detection method according to claim 1, characterized in that: The method further comprises: Obtaining edited data of the behavioral safety baseline, the edited data including: information and operation methods of the behavioral safety baseline; Performing first target processing according to the information and operation mode of the behavioral safety baseline to obtain a processing result; The baseline state and effective time range of the at least one first behavior security baseline are updated according to the processing result.
3. The abnormal behavior detection method according to claim 2, characterized in that: If the operation mode is an update operation, the information of the behavior safety baseline includes: an identifier of the first behavior safety baseline to be updated and data of the second behavior safety baseline, and the first target processing is performed according to the information and the operation mode of the behavior safety baseline to obtain a processing result, including: The first behavior security baseline to be updated is determined according to the identifier of the first behavior security baseline to be updated, and the first behavior security baseline to be updated is updated to the second behavior security baseline.
4. The abnormal behavior detection method according to claim 2, characterized in that: If the operation mode is a deletion operation, the information of the behavior safety baseline includes: an identifier of the first behavior safety baseline to be deleted, and the first target processing is performed according to the information of the behavior safety baseline and the operation mode to obtain a processing result, including: According to the identifier of the first behavior security baseline to be deleted, the first behavior security baseline to be deleted is determined, and the first behavior security baseline to be deleted is deleted.
5. The abnormal behavior detection method according to claim 3, characterized in that: If the operation mode is an update operation, updating the first behavior security baseline to be updated to the second behavior security baseline includes: Deserialize the data of the second behavior security baseline to obtain the second behavior security baseline; The first behavior security baseline to be updated is updated to the second behavior security baseline.
6. The abnormal behavior detection method according to claim 2, characterized in that: After obtaining the edited data of the behavioral safety baseline, it also includes: Parsing and verifying the edited data of the behavioral security baseline based on a preconfigured second format parameter; If the parsing and verification are successful, the parsed edit data is sent to an edit data routing node, and the edit data routing node is used to determine the baseline management node corresponding to the edit data.
7. The abnormal behavior detection method according to any one of claims 1 to 5, characterized in that: The method further comprises: The intermediate data generated during the storage processing process includes at least one of the following: the current active time window set generated by the time window management node, the behavior data set corresponding to the time window, the behavior data set denoised by the data denoising node, the behavior safety baseline currently being generated by the baseline generation node, and the current baseline status generated in the baseline management node.
8. An abnormal behavior detection device, characterized in that: include: An acquisition module, used to acquire a baseline state and an effective time range of at least one first behavior security baseline; A processing module, configured to determine a target behavior safety baseline according to a baseline state and an effective time range of the at least one first behavior safety baseline; A detection module, for performing abnormal behavior detection on input behavior data according to the target behavior security baseline; The processing module is also used for: Get the second behavior data; Performing second target processing on the second behavior data based on the first node, the first node including: a data parsing node, a data time generating node, a data filtering node, a time window management node, a data noise reduction node, and a baseline generating node; The data parsing node is used to parse and verify the second behavior data based on a pre-configured first format parameter; The data time generation node is used to set the time for the behavior data output by the previous node; The data filtering node is used to filter the behavior data output by the previous node based on the pre-configured filtering conditions; The time window management node is used to determine at least one time window according to the behavior data output by the previous node, and determine the third behavior data corresponding to each of the time windows; The data denoising node is used to perform denoising on the behavior data output by the previous node; The baseline generation node is used to generate a behavior safety baseline based on the behavior data output by the previous node; The processing module is also used for: Obtaining status information of a second node and monitoring the status of the second node; the second node includes: a data parsing node, a data time generation node, a data filtering node, a time window management node, a data noise reduction node, a baseline generation node, and a baseline management node; The baseline management node is used to manage the baseline status, effective time range and baseline generation process of the first behavior security baseline.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the abnormal behavior detection method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the abnormal behavior detection method according to any one of claims 1 to 7 is implemented.
11. A computer program product having executable instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor implements the abnormal behavior detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Safety detection method and device, storage medium and computer equipment
CN111541647A
