A method and system for analyzing and detecting abnormal traffic
By combining the image flow access and abnormal flow signature database with the traffic analysis model and the ATT&CK matrix attack model, the problem that existing equipment cannot perform in-depth abnormal analysis, correlation analysis and backtracking analysis at the same time is solved, and the rapid identification and recognition of abnormal traffic is realized. Disposal, improving the ability to deal with network security threats.
Patent Information
- Application Number
- CN202411034596.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Existing intrusion prevention devices, situational awareness devices, and full-traffic analysis storage devices cannot simultaneously perform in-depth analysis, correlation analysis, and retrospective analysis when analyzing abnormal traffic, resulting in the inability to effectively identify and deal with potential network security threats.
The mirror flow access method is used to obtain full traffic data in real time, and anomaly analysis is performed through the abnormal flow feature library and pre-trained traffic analysis model. It is combined with the ATT&CK matrix attack model for alarm display and target identification, and backtracking and correlation analysis. Based on the user's own Define rules to filter abnormal traffic data and retrieve historical alarm logs through the log repository.
It realizes in-depth analysis, correlation analysis and retrospective analysis of abnormal traffic, quickly identifies and handles potential network security threats, and improves the efficiency and accuracy of network security response.
Smart Images

Figure CN118573472B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flow detection, and in particular to an analysis and detection method and system suitable for abnormal flow. Background Art
[0002] In the era of network big data, identifying and detecting the traffic flowing through devices is of great practical significance for ensuring network security and safeguarding user rights.
[0003] At present, the general way to perform flow detection is to introduce the flow flowing through the target device into the detection device to realize the analysis and detection of the corresponding flow. The corresponding detection devices are mainly divided into three categories: intrusion prevention devices, situational awareness devices and full flow analysis and storage devices. However, the inventors found that these three current detection devices have different technical defects when performing flow detection.
[0004] Specifically, for intrusion prevention devices, they use built-in intrusion defense / detection feature libraries, virus libraries, etc. to perform in-depth analysis and detection, and generate corresponding alarm logs. However, the intrusion prevention device itself does not support in-depth drill-down analysis based on alarm information, which results in significant obstacles in the process of quickly responding to security incidents and formulating response strategies in a timely manner. For situational awareness devices, they collect traffic data in a preset area through probes and perform in-depth analysis of the traffic data. Although it solves the defect that intrusion prevention devices cannot perform drill-down analysis, the real-time data collection and analysis method based on probes cannot perform correlation analysis and retrospective analysis related to real-time anomalies. Therefore, the effectiveness of situational awareness devices in responding to security threats is weakened. For full-flow analysis and storage devices, they focus on collecting all traffic data packets within a preset time period in a preset area. The defects of situational awareness devices in correlation analysis and retrospective analysis are solved, but similar to intrusion prevention devices, they lack the ability to perform in-depth analysis of abnormal traffic, and thus cannot effectively identify and deal with potential security threats.
[0005] In summary, it can be seen that there is still a lack of a more comprehensive equipment system that can simultaneously meet the technical requirements of in-depth analysis of anomalies, as well as correlation analysis and backtracking analysis during the process of abnormal traffic analysis and detection, and thus quickly and effectively identify and deal with potential network security threats. Summary of the invention
[0006] The purpose of the present invention is to provide a method and system for analyzing and detecting abnormal traffic, so as to improve the technical problem that the current detection equipment cannot simultaneously realize in-depth analysis of the abnormality, as well as correlation analysis and backtracking analysis during the abnormal traffic analysis and detection process.
[0007] To achieve the above object, the present invention proposes the following technical solutions:
[0008] In the first aspect, the technical solution provides an analysis and detection method suitable for abnormal traffic. It includes:
[0009] Based on the mirrored stream access method, the full flow data of several preset areas in the device to be detected is obtained in real time and stored;
[0010] Comparing and matching the full flow data through a first abnormal flow feature library to screen and intercept abnormal flow data present in the full flow data;
[0011] Inputting the abnormal traffic data into a pre-trained traffic analysis model to obtain corresponding abnormal analysis results; wherein the abnormal analysis results include: attack tactics, attack techniques and attack process stages; the traffic analysis model is a neural network model;
[0012] Input the abnormal analysis results into the ATT&CK matrix attack model to classify them based on the attacker perspective, asset perspective, and defender perspective, and then display alarms, and obtain the attack target corresponding to the abnormal traffic data;
[0013] The attacker perspective is used to simulate the attacker's thinking and behavior patterns to show the attacker's attack strategy and action path; the asset perspective is used to focus on the key assets corresponding to the abnormal traffic data to show the status of the key assets when they are attacked; the defender perspective formats the alarm content from the attacker perspective and the alarm content from the asset perspective based on the user-recognizable information format and then displays them simultaneously;
[0014] Extracting the first historical full flow data of the attack area corresponding to the attack target within the preset first time period, and inputting the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extracting the adjacent full flow data of the adjacent area adjacent to the attack area, and inputting the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis;
[0015] The adjacent area is a preset area corresponding to a potential target that is functionally consistent with the attack target.
[0016] Furthermore, the method further comprises: comparing and matching the full flow data through the first abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data;
[0017] Inputting the full flow data into a second abnormal flow feature library at the same time to screen and intercept abnormal flow data in the full flow data;
[0018] The second abnormal flow feature library is obtained in the following way:
[0019] When it is determined that the preset self-update cycle has arrived, the second historical full flow data within the preset second time period is obtained;
[0020] Inputting the second historical full flow data into a pre-trained anomaly extraction model to obtain corresponding abnormal flow features;
[0021] The second abnormal flow feature library is updated based on the abnormal flow feature.
[0022] Furthermore, the method further comprises: comparing and matching the full flow data through the first abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data;
[0023] Customize traffic interception rules based on user needs;
[0024] The traffic interception rule is: intercepting fixed segment traffic that users in each preset area are concerned about, and / or target segment traffic whose historical abnormal frequency is higher than a preset frequency;
[0025] The full flow data is screened and intercepted based on the flow interception rule to obtain abnormal flow data.
[0026] Further, the extracting of the first historical full flow data of the attack area corresponding to the attack target within the preset first time period, and inputting the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extracting the adjacent full flow data of the adjacent area adjacent to the attack area, and inputting the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis; also includes:
[0027] When it is determined that the alarm level corresponding to the abnormal analysis result is greater than a preset level threshold, a backtracking retrieval request and / or an associated retrieval request is sent to the log repository;
[0028] The log repository stores alarm logs corresponding to the historical abnormality analysis results.
[0029] The corresponding backtracking alarm log and / or associated alarm log are located and extracted from the log storage repository, and then abnormal flow backtracking analysis and / or abnormal flow association analysis are performed.
[0030] Further, the method further comprises: extracting the first historical full flow data of the attack area corresponding to the attack target within the preset first time period, and inputting the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extracting the adjacent full flow data of the adjacent area adjacent to the attack area, and inputting the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis; and further comprising:
[0031] Trigger preset response rules based on abnormal analysis results, retrospective analysis results, and correlation analysis results;
[0032] Establish communication with relevant equipment according to the response rules, and issue abnormal handling instructions; wherein the relevant equipment includes conventional equipment and safety equipment.
[0033] In the second aspect, the technical solution provides an analysis and detection system suitable for abnormal traffic. It includes:
[0034] An acquisition module is used to acquire and store the full flow data of several preset areas in the device to be detected in real time based on the mirror flow access mode;
[0035] An interception module, used for comparing and matching the full flow data through a first abnormal flow feature library to screen and intercept abnormal flow data in the full flow data;
[0036] The first analysis module is used to input the abnormal traffic data into a pre-trained traffic analysis model to obtain corresponding abnormal analysis results; wherein the abnormal analysis results include: attack tactics, attack techniques and attack process stages; the traffic analysis model is a neural network model;
[0037] A display module is used to input the abnormal analysis results into the ATT&CK matrix attack model to classify them based on the attacker perspective, asset perspective and defender perspective, and then display alarms, and obtain the attack target corresponding to the abnormal traffic data;
[0038] The attacker perspective is used to simulate the attacker's thinking and behavior patterns to show the attacker's attack strategy and action path; the asset perspective is used to focus on the key assets corresponding to the abnormal traffic data to show the status of the key assets when they are attacked; the defender perspective formats the alarm content from the attacker perspective and the alarm content from the asset perspective based on the user-recognizable information format and then displays them simultaneously;
[0039] The second analysis module is used to extract the first historical full flow data of the attack area corresponding to the attack target within the preset first time period, and input the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extract the adjacent full flow data of the adjacent area adjacent to the attack area, and input the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis;
[0040] The adjacent area is a preset area corresponding to a potential target that is functionally consistent with the attack target.
[0041] Furthermore, the interception module also includes:
[0042] A first interception unit, used for simultaneously inputting the full flow data into a second abnormal flow feature library to screen and intercept abnormal flow data in the full flow data;
[0043] The second abnormal flow feature library is obtained in the following way:
[0044] When it is determined that the preset self-update cycle has arrived, the second historical full flow data within the preset second time period is obtained;
[0045] Inputting the second historical full flow data into a pre-trained anomaly extraction model to obtain corresponding abnormal flow features;
[0046] The second abnormal flow feature library is updated based on the abnormal flow feature.
[0047] Furthermore, the interception module also includes:
[0048] Custom unit, used to customize traffic interception rules based on user needs;
[0049] The traffic interception rule is: intercepting fixed segment traffic that users in each preset area are concerned about, and / or target segment traffic whose historical abnormal frequency is higher than a preset frequency;
[0050] The second interception unit is used to screen and intercept the full flow data based on the flow interception rule to obtain abnormal flow data.
[0051] In a third aspect, the technical solution provides an electronic device, comprising at least one processor, wherein the processor is coupled to a memory, wherein a computer program is stored in the memory, and wherein the computer program is configured to execute the method described when executed by the processor.
[0052] In a fourth aspect, the present technical solution provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to execute the described method.
[0053] Beneficial effects:
[0054] It can be seen from the above technical solutions that the technical solution of the present invention provides an analysis and detection method suitable for abnormal traffic, so as to improve the technical defects of the current detection equipment in the process of abnormal traffic analysis and detection, which cannot simultaneously realize in-depth analysis of abnormalities, correlation analysis, and backtracking analysis.
[0055] Specifically, the method includes: first, in order to improve the accuracy of data acquisition and facilitate subsequent correlation analysis and backtracking analysis, the full flow data of several preset areas in the device to be detected is obtained in real time and stored based on the mirror flow access mode. Secondly, a first abnormal flow feature library is introduced for feature comparison to obtain corresponding abnormal flow data from the full flow data; thereby achieving preliminary screening of abnormal flow behavior and providing support for subsequent analysis. Then, the abnormal flow data is introduced into the pre-trained flow analysis model for abnormal analysis, thereby improving the efficiency of abnormal analysis through the flow analysis model built based on the deep learning network, which is convenient for subsequent rapid response processing. In order to classify and display the abnormal analysis results, so as to intuitively view the current network security status and the attack stage of each alarm, and facilitate the security operation and maintenance personnel to handle key events, the ATT&CK matrix attack model is introduced. Among them, since the abnormal analysis results correspond to the ATT&CK matrix attack model, they are input into it. On the one hand, the attack target can be obtained, and then the relevant correlation analysis and backtracking analysis can be performed based on the attack target; on the other hand, the alarm display is also performed from various angles to lock the key alarm and respond quickly. This enables the technical solution to simultaneously achieve in-depth analysis of anomalies, as well as correlation analysis and backtracking analysis during the abnormal flow detection process; ultimately, potential network security threats can be quickly and effectively identified and handled.
[0056] It should be appreciated that all combinations of the foregoing concepts, as well as additional concepts described in greater detail below, may be considered to be part of the inventive subject matter of the present disclosure, provided such concepts are not mutually inconsistent.
[0057] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component shown in various figures may be represented by the same reference numeral. For clarity, not every component is labeled in every figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings, in which:
[0059] Figure 1 This is a flow chart of the analysis and detection method applicable to abnormal traffic described in this embodiment;
[0060] Figure 2 A flowchart of a supplementary method for acquiring abnormal traffic data;
[0061] Figure 3 A flowchart for acquiring a second abnormal flow feature library;
[0062] Figure 4 A flowchart of another supplementary method for acquiring abnormal traffic data;
[0063] Figure 5 It is another flowchart for retrospective analysis and correlation analysis;
[0064] Figure 6 Flowchart for risk treatment;
[0065] Figure 7 This is a structural block diagram of the analysis and detection system for abnormal traffic described in this embodiment;
[0066] Figure 8 is a structural block diagram of the electronic device described in this embodiment. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment 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. Unless otherwise defined, the technical terms or scientific terms used herein should be the common meaning understood by people with general skills in the field to which the present invention belongs.
[0068] The words "first", "second" and similar words used in the specification and claims of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, unless the context clearly indicates otherwise, the singular form of "a", "an" or "the" and other similar words do not indicate a quantitative limitation, but rather indicate the presence of at least one. Words such as "include" or "comprise" and the like mean that the elements or objects appearing before "include" or "comprise" cover the features, wholes, steps, operations, elements and / or components listed after "include" or "comprise", and do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0069] In the prior art, the method of identifying and detecting the traffic flowing through the device to ensure network security and safeguard the rights and interests of users includes: introducing the traffic flowing through the target device into the detection device, and then realizing the analysis and detection of the corresponding traffic. In the specific implementation, the detection equipment designed based on the above method is mainly divided into three categories: intrusion defense equipment, situational awareness equipment and full flow analysis and storage equipment. However, the inventors found that the current three detection devices have different technical defects when performing traffic detection. For example, intrusion defense equipment and full flow analysis and storage equipment do not support in-depth drill-down analysis based on alarm information, and thus there are significant obstacles in the process of quickly responding to security incidents and formulating response strategies in a timely manner. Situational awareness equipment cannot perform correlation analysis and backtracking analysis. It can be seen that there is still a lack of a more comprehensive device, which can simultaneously meet the technical requirements of abnormal in-depth analysis, correlation analysis, and backtracking analysis during the abnormal traffic analysis and detection process, and then quickly and effectively identify and deal with potential network security threats. Based on this, the present embodiment aims to provide an analysis and detection method suitable for abnormal traffic to meet the above application requirements.
[0070] The following is a detailed introduction to the analysis and detection method for abnormal traffic described in this embodiment in conjunction with the accompanying drawings.
[0071] like Figure 1 As shown, the method includes:
[0072] Step S102: acquiring and storing the full flow data of several preset areas in the device to be detected in real time.
[0073] In the specific implementation, the method of obtaining the full flow data is to introduce the flow of the preset area to be detected into the corresponding detection device through the mirror flow access technology. At this time, the corresponding full flow data collection has the characteristics of high accuracy.
[0074] Furthermore, the full flow data is stored for 6 months, and the storage space can be flexibly expanded according to actual needs during the storage process. For the storage method, an archiving method combining time and "five-tuple" (including time, source / destination IP address, source / destination port, protocol) is adopted to ensure the clarity and traceability of the data. At this time, this storage method not only provides network security experts with convenient data packet extraction and data replay operations, but also strongly supports network security analysis work.
[0075] Step S104: performing a comparison and matching on the full flow data through the first abnormal flow feature library to screen and intercept abnormal flow data in the full flow data.
[0076] The first abnormal flow feature library is a built-in feature library, which stores various abnormal flow features and is in a state of regular updating to avoid missed detection.
[0077] As a preferred implementation, in order to further avoid missed detection, Figure 2 As shown, the step S104 further includes:
[0078] Step S1042: input the full flow data into a second abnormal flow feature library at the same time to screen and intercept abnormal flow data in the full flow data.
[0079] Specific, combined Figure 3 As shown, the second abnormal flow feature library is updated in the following manner:
[0080] Step S10422: When it is determined that the preset self-update cycle has been reached, the second historical full flow data within the preset second time period is obtained.
[0081] Step S10424: input the second historical full flow data into a pre-trained anomaly extraction model to obtain corresponding abnormal flow features.
[0082] In this embodiment, the anomaly extraction model is constructed based on a machine learning algorithm, and is obtained by constructing training samples and iterative training optimization. During the self-update process, all flow behaviors within the cycle are automatically learned, including business peaks and business patterns, etc., so that normal business flows can be automatically confirmed and abnormal flows can be identified.
[0083] Step S10426: Update the second abnormal flow feature library based on the abnormal flow feature.
[0084] At this time, based on steps S10422 to S10426, after the self-update cycle ends, the device will accurately detect abnormal flow behaviors based on these normal business flow behaviors, providing strong protection for network security.
[0085] At this time, based on step S1042, the interception of abnormal traffic data in step S104 can be supplemented to avoid missed detection.
[0086] At the same time, combined Figure 4 As shown, the step S104 further includes:
[0087] Step S1042': Customize traffic interception rules based on user needs.
[0088] In this embodiment, the traffic interception rule is: intercepting fixed segment traffic that users in each preset area are concerned about, and / or target segment traffic whose historical abnormal frequency is higher than a preset frequency.
[0089] Step S1044': screening and intercepting the full flow data based on the flow interception rule to obtain abnormal flow data.
[0090] At this time, in step S1042' to step S1044', traffic screening can be performed based on user needs, so as to intercept specific traffic segments that the user focuses on, thereby further ensuring network security.
[0091] Step S106: input the abnormal traffic data into a pre-trained traffic analysis model to obtain corresponding abnormal analysis results.
[0092] In specific implementation, the abnormal analysis results include attack tactics, attack techniques and attack process stages. The traffic analysis model is a neural network model that uses a deep learning algorithm.
[0093] Step S108: Input the abnormal analysis results into the ATT&CK matrix attack model to classify them based on the attacker's perspective, the asset's perspective, and the defender's perspective, and then display alarms, and obtain the attack target corresponding to the abnormal traffic data.
[0094] At this point, since the alarm information is classified and displayed according to the ATT&CK matrix attack model, each alarm can be clearly located to the specific attack stage and technical means, and the specific attack target can be accurately identified, thus providing an accurate basis for the subsequent handling process.
[0095] In this embodiment, the attacker's perspective simulates the attacker's thinking and behavior patterns, presenting the attacker's action path and strategy to the user. Through this perspective, users can gain an in-depth understanding of how attackers exploit vulnerabilities, launch attacks, and gradually infiltrate the network. This perspective not only helps users understand the attacker's technical means and tactical intentions, but also provides an important reference for formulating targeted defense measures. In the attacker's perspective, the alarm information is displayed in categories, and users can clearly see the attack methods and targets used by attackers at different stages, so as to better predict and respond to potential threats.
[0096] The asset perspective focuses on key assets in the network, showing the status and potential risks of these assets when attacked. Through the asset perspective, users can clearly understand which assets are the main targets of attackers and the losses these assets may suffer when attacked. This perspective helps users quickly locate and protect key assets and formulate targeted security strategies. In the asset perspective, alarm information is associated with specific assets, and users can intuitively see the security status of different assets during the attack process, so as to make timely and effective responses.
[0097] The defender's perspective takes a comprehensive and systematic view of the entire network security situation from the defender's perspective. Through this perspective, users can clearly understand the network's security status, potential threats, and the defensive measures that should be taken. The defender's perspective not only focuses on the attacker's behavior and strategy, but also focuses on the defender's capabilities and resources in order to formulate effective defense plans and emergency plans. In the defender's perspective, alarm information is integrated into a format that is easy to understand and operate. Users can quickly identify risks, assess threats, and take appropriate defensive measures to ensure the safe and stable operation of the network.
[0098] Step S110, extract the first historical full flow data of the attack area corresponding to the attack target within the preset first time period, and input the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extract the adjacent full flow data of the adjacent area adjacent to the attack area, and input the adjacent full flow data into the flow analysis model to perform abnormal flow association analysis.
[0099] In this embodiment, the adjacent area is a preset area corresponding to a potential target that is functionally consistent with the attack target.
[0100] As a specific implementation method, Figure 5 As shown, this embodiment can also perform backtracking analysis or association analysis in the following manner:
[0101] Step S1102': when it is determined that the alarm level corresponding to the abnormal analysis result is greater than the preset level threshold, a backtracking search request and / or an associated search request is sent to the log storage repository.
[0102] In this embodiment, the log repository stores alarm logs corresponding to various historical abnormality analysis results.
[0103] Step S1104': locate and extract the corresponding backtracking alarm log and / or associated alarm log from the log storage repository, and then perform abnormal flow backtracking analysis and / or abnormal flow association analysis.
[0104] Based on step S1102'~step S1104', it can be seen that this embodiment supports log retrieval functions, including rapid retrieval of alarm logs and original flow logs. Security analysis experts can trigger the extraction of required log information based on custom rules, so as to accurately trace the source or associate the location. Furthermore, for association analysis, users are allowed to drill down on events based on factors such as time nodes, event assets, attacker information, and security events, further deeply analyze potential security risks, and help security analysis experts clarify the scope of event response.
[0105] At this time, combined with Figure 6As shown in the figure, after the abnormal analysis is completed, risk treatment is also carried out in the following ways:
[0106] Step S1122: triggering a preset response rule based on the abnormal analysis result, the traceback analysis result and the correlation analysis result.
[0107] Step S1124: establish communication with relevant equipment according to the response rule, and issue abnormal handling instructions; wherein the relevant equipment includes conventional equipment and safety equipment.
[0108] Specifically, the conventional equipment includes switches and routers; the security equipment includes firewalls, intrusion prevention systems, etc.
[0109] In summary, this embodiment achieves high-precision and high-completeness data acquisition by introducing full-flow data access based on mirror flow technology in the data acquisition stage; introduces an abnormal flow feature library for initial screening in the data analysis stage, and uses a machine learning model for abnormal analysis, thereby achieving accurate and rapid identification and analysis of abnormal data; introduces the ATT&CK matrix attack model in the analysis and display stage, thereby achieving intuitive display in the alarm stage, accurate acquisition of attack targets, and accurate implementation of backtracking analysis and correlation analysis. In this way, in-depth analysis of abnormalities, correlation analysis, and backtracking analysis are simultaneously achieved during the abnormal flow detection process; and potential network security threats are finally quickly and effectively identified and handled.
[0110] The above program can be run in the processor, or it can be stored in the memory (or computer-readable storage medium), which includes permanent and non-permanent, removable and non-removable media. Information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
[0111] These computer programs can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in one or more blocks can be implemented by different modules corresponding to different steps.
[0112] Based on this, this embodiment also provides an analysis and detection system suitable for abnormal traffic. Figure 7 As shown, the system comprises:
[0113] The acquisition module is used to acquire and store the full flow data of several preset areas in the device to be detected in real time based on the mirror flow access method.
[0114] The interception module is used to compare and match the full flow data through the first abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data.
[0115] The first analysis module is used to input the abnormal traffic data into a pre-trained traffic analysis model to obtain corresponding abnormal analysis results; wherein the abnormal analysis results include attack tactics, attack techniques and attack process stages; the traffic analysis model is a neural network model.
[0116] The display module is used to input the abnormal analysis results into the ATT&CK matrix attack model to classify them based on the attacker's perspective, the asset's perspective and the defender's perspective, and then display the alarms, and obtain the attack targets corresponding to the abnormal traffic data.
[0117] Among them, the attacker's perspective is used to simulate the attacker's thinking and behavior patterns to demonstrate the attacker's attack strategy and action path; the asset perspective is used to focus on the corresponding key assets in the abnormal traffic data to demonstrate the status of the key assets when they are attacked; the defender's perspective formats the alarm content from the attacker's perspective and the alarm content from the asset perspective based on a user-recognizable information format and displays them simultaneously.
[0118] The second analysis module is used to extract the first historical full flow data of the attack area corresponding to the attack target within the first preset time period, and input the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extract the adjacent full flow data of the adjacent area adjacent to the attack area, and input the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis.
[0119] The adjacent area is a preset area corresponding to a potential target that is functionally consistent with the attack target.
[0120] The system is used to implement the steps of the above method, so what has been explained will not be repeated here.
[0121] For example, the interception module further includes:
[0122] The first interception unit is used to input the full flow data into a second abnormal flow feature library at the same time to screen and intercept the abnormal flow data in the full flow data.
[0123] The second abnormal flow feature library is obtained in the following way:
[0124] When it is determined that the preset self-update cycle has been reached, the second historical full flow data within the preset second time period is obtained.
[0125] The second historical full flow data is input into a pre-trained anomaly extraction model to obtain corresponding abnormal flow features.
[0126] The second abnormal flow feature library is updated based on the abnormal flow feature.
[0127] For example, the interception module further includes:
[0128] Custom unit, used to customize traffic interception rules based on user needs.
[0129] The traffic interception rule is: intercepting fixed segment traffic that users in each preset area are concerned about, and / or target segment traffic whose historical abnormal frequency is higher than a preset frequency.
[0130] The second interception unit is used to screen and intercept the full flow data based on the flow interception rule to obtain abnormal flow data.
[0131] Combination Figure 8 As shown, this embodiment further provides an electronic device, comprising at least one processor, the processor being coupled to a memory, the memory storing a computer program, and the computer program being configured to execute the method when being executed by the processor.
[0132] Meanwhile, this embodiment also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used to execute the method described.
[0133] Since the system, electronic device and storage medium are built based on the method, they also have the technical advantage of being able to quickly and effectively identify and deal with potential network security threats when used in practice.
[0134] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.
Claims
1. A method for analyzing and detecting abnormal traffic, characterized in that: include: Based on the mirrored stream access method, the full flow data of several preset areas in the device to be detected is obtained in real time and stored; The full flow data is compared and matched through the first abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data; at the same time, the full flow data is simultaneously input into the second abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data; The first abnormal flow feature library is a built-in feature library, which stores various abnormal flow features and is in a state of regular update; The second abnormal flow feature library is updated in the following manner: first, when it is determined that a preset self-update cycle has been reached, the second historical full flow data within the preset second time period is obtained; second, the second historical full flow data is input into a pre-trained abnormal extraction model to obtain corresponding abnormal flow features; wherein, the abnormal extraction model is constructed based on a machine learning algorithm, and is obtained by constructing training samples and iterative training optimization in sequence; in the self-update process, all flow behaviors within the cycle are automatically learned to automatically confirm normal business flows, and then abnormal flows are identified; wherein, all flow behaviors include business peaks and business patterns; Inputting the abnormal traffic data into a pre-trained traffic analysis model to obtain corresponding abnormal analysis results; wherein the abnormal analysis results include: attack tactics, attack techniques and attack process stages; the traffic analysis model is a neural network model; Input the abnormal analysis results into the ATT&CK matrix attack model to classify them based on the attacker perspective, asset perspective, and defender perspective, and then display alarms, and obtain the attack target corresponding to the abnormal traffic data; The attacker perspective is used to simulate the attacker's thinking and behavior patterns to show the attacker's attack strategy and action path; the asset perspective is used to focus on the key assets corresponding to the abnormal traffic data to show the status of the key assets when they are attacked; the defender perspective formats the alarm content from the attacker perspective and the alarm content from the asset perspective based on the user-recognizable information format and then displays them simultaneously; Extracting the first historical full flow data of the attack area corresponding to the attack target within the preset first time period, and inputting the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extracting the adjacent full flow data of the adjacent area adjacent to the attack area, and inputting the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis; The adjacent area is a preset area corresponding to a potential target that is functionally consistent with the attack target.
2. The analysis and detection method for abnormal traffic according to claim 1, characterized in that: The method further comprises: comparing and matching the full flow data through the first abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data; Customize traffic interception rules based on user needs; The traffic interception rule is: intercepting fixed segment traffic that users in each preset area are concerned about, and / or target segment traffic whose historical abnormal frequency is higher than a preset frequency; The full flow data is screened and intercepted based on the flow interception rule to obtain abnormal flow data.
3. The analysis and detection method for abnormal traffic according to claim 1, characterized in that: The method further comprises: extracting first historical full flow data of the attack area corresponding to the attack target within a preset first time period, and inputting the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extracting adjacent full flow data of the adjacent area adjacent to the attack area, and inputting the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis; and further comprising: When it is determined that the alarm level corresponding to the abnormal analysis result is greater than a preset level threshold, a backtracking retrieval request and / or an associated retrieval request is sent to the log repository; The log repository stores alarm logs corresponding to the historical abnormality analysis results. The corresponding backtracking alarm log and / or associated alarm log are located and extracted from the log storage repository, and then abnormal flow backtracking analysis and / or abnormal flow association analysis are performed.
4. The analysis and detection method for abnormal traffic according to claim 1, characterized in that: The first historical full flow data of the attack area corresponding to the attack target within the preset first time period is extracted, and the first historical full flow data is input into the flow analysis model to perform abnormal flow retrospective analysis; the adjacent full flow data of the adjacent area adjacent to the attack area is extracted, and the adjacent full flow data is input into the flow analysis model to perform abnormal flow correlation analysis; Also includes: Trigger preset response rules based on abnormal analysis results, retrospective analysis results, and correlation analysis results; Establish communication with relevant equipment according to the response rules, and issue abnormal handling instructions; wherein the relevant equipment includes conventional equipment and safety equipment.
5. A system for analyzing and detecting abnormal traffic, characterized in that: include: An acquisition module is used to acquire and store the full flow data of several preset areas in the device to be detected in real time based on the mirror flow access mode; An interception module is used to compare and match the full flow data through the first abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data; at the same time, the full flow data is simultaneously input into the second abnormal flow feature library to screen and intercept the abnormal flow data in the full flow data; The first abnormal flow feature library is a built-in feature library, which stores various abnormal flow features and is in a state of regular update; The second abnormal flow feature library is updated in the following manner: first, when it is determined that a preset self-update cycle has been reached, the second historical full flow data within the preset second time period is obtained; second, the second historical full flow data is input into a pre-trained abnormal extraction model to obtain corresponding abnormal flow features; wherein, the abnormal extraction model is constructed based on a machine learning algorithm, and is obtained by constructing training samples and iterative training optimization in sequence; in the self-update process, all flow behaviors within the cycle are automatically learned to automatically confirm normal business flows, and then abnormal flows are identified; wherein, all flow behaviors include business peaks and business patterns; The first analysis module is used to input the abnormal traffic data into a pre-trained traffic analysis model to obtain corresponding abnormal analysis results; wherein the abnormal analysis results include: attack tactics, attack techniques and attack process stages; the traffic analysis model is a neural network model; A display module is used to input the abnormal analysis results into the ATT&CK matrix attack model to classify them based on the attacker perspective, asset perspective and defender perspective, and then display alarms, and obtain the attack target corresponding to the abnormal traffic data; The attacker perspective is used to simulate the attacker's thinking and behavior patterns to show the attacker's attack strategy and action path; the asset perspective is used to focus on the key assets corresponding to the abnormal traffic data to show the status of the key assets when they are attacked; the defender perspective formats the alarm content from the attacker perspective and the alarm content from the asset perspective based on the user-recognizable information format and then displays them simultaneously; The second analysis module is used to extract the first historical full flow data of the attack area corresponding to the attack target within the preset first time period, and input the first historical full flow data into the flow analysis model to perform abnormal flow retrospective analysis; extract the adjacent full flow data of the adjacent area adjacent to the attack area, and input the adjacent full flow data into the flow analysis model to perform abnormal flow correlation analysis; The adjacent area is a preset area corresponding to a potential target that is functionally consistent with the attack target.
6. The analysis and detection system for abnormal flow according to claim 5, characterized in that: The interception module also includes: Custom unit, used to customize traffic interception rules based on user needs; The traffic interception rule is: intercepting fixed segment traffic that users in each preset area are concerned about, and / or target segment traffic whose historical abnormal frequency is higher than a preset frequency; The second interception unit is used to screen and intercept the full flow data based on the flow interception rule to obtain abnormal flow data.
7. An electronic device, characterized in that: The method comprises at least one processor, wherein the processor is coupled to a memory, wherein a computer program is stored in the memory, and wherein the computer program is configured to execute the method according to any one of claims 1 to 4 when executed by the processor.
8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to implement the method according to any one of claims 1 to 4 when executed by a computer.
Citation Information
Patent Citations
Intelligent security event association analysis system for threat scene
CN112738016A
Network attack behavior analysis method and device based on full flow
CN115134099A
Network security orchestration event management method based on SOAR scene
CN116436638A
Whole-flow processing system and method based on network security alarm event
CN117614717A
Network security protection method, apparatus, and system
WO2022088405A1
