Network attack blocking method
By analyzing network traffic and abnormal activities, assessing the comprehensive security factor of the network and selecting an appropriate blocking mechanism, combined with firewalls and intrusion detection and prevention systems, we solve the problem of difficulty in fully identifying and responding to network threats in existing technologies, and realize network Improvements in security and response efficiency.
Patent Information
- Application Number
- CN202410958682.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for existing technologies to comprehensively and effectively identify potential threats and take adaptive measures when blocking network attacks, resulting in insufficient network security, and it is difficult for a single protection method to respond to diverse threats.
Through preliminary analysis of network traffic and abnormal activities, calculate the traffic abnormality index and attack threat index, evaluate the comprehensive security factor of the network, divide the network into high-quality and low-quality networks, and select appropriate blocking mechanisms based on different security factors, combined with Firewalls and intrusion detection and prevention systems provide multi-level protection.
It realizes multi-dimensional assessment and dynamic response to network security status, improves the overall security of the network, avoids excessive or insufficient security measures, ensures rapid response and effective threat containment, and improves the level of network management.
Smart Images

Figure CN118764277A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security, and more specifically, to a method for blocking network attacks. Background Art
[0002] Blocking cyber attacks refers to taking technical measures and strategies to prevent, detect and respond to malicious attacks against computer systems, networks and data. Its purpose is to protect the integrity, confidentiality and availability of networks and information systems and prevent unauthorized access, data leakage and destruction. Blocking cyber attacks includes firewalls and defense systems, which can quickly respond to potential threats and minimize their impact.
[0003] One of the existing methods for blocking network attacks in the prior art is a firewall, and the other is an intrusion detection and prevention system (IDS / IPS). The firewall is mainly responsible for monitoring and filtering network traffic to prevent unauthorized access, while the intrusion detection and prevention system is used to detect and respond to abnormal behavior and potential threats. How to organize the defense against blocking network attacks so that it can more effectively block various network attacks and protect the security of user information assets is a problem that needs to be solved. Therefore, a method for blocking network attacks is proposed here. Summary of the invention
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A method for blocking a network attack comprises the following steps:
[0006] When the network is not securely isolated, conduct a preliminary analysis of the current network usage and determine whether there are hidden dangers of insufficient network security based on the preliminary analysis results;
[0007] When there is a hidden danger of insufficient network security, an abnormal analysis is performed on the current network usage to obtain the traffic anomaly index and attack threat index respectively. Then, based on the traffic anomaly index and attack threat index, the comprehensive usage quality of the network is evaluated to obtain the comprehensive network security factor.
[0008] Based on the comprehensive network security factor, the current network is divided into high-quality networks and low-quality networks;
[0009] For low-quality networks, the blocking needs of the network are judged based on the traffic anomaly index, attack threat index and comprehensive usage quality, and blocking mechanism one, blocking mechanism two or blocking mechanism three is selected and responded to according to the judgment results.
[0010] In a preferred embodiment, the steps of performing a preliminary analysis on the current network usage and determining whether there is a hidden danger of insufficient network security according to the preliminary analysis results are as follows:
[0011] In a fixed time window, collect the current network usage parameters: network traffic data L and abnormal activity times A; set a baseline threshold for preliminary judgment of whether there are security risks in the network: network traffic baseline threshold T L and abnormal activity baseline threshold T A ; Network traffic baseline threshold T L Indicates the maximum traffic under normal network usage and the abnormal activity baseline threshold T A Indicates the maximum number of abnormal activities under normal network usage. If the network traffic data L is less than or equal to the network traffic baseline threshold T L And the number of abnormal activities A is less than or equal to the abnormal activity baseline threshold T A , a normal activity signal is generated. If the network traffic data L is not less than or equal to the network traffic baseline threshold T L And the number of abnormal activities A is less than or equal to the abnormal activity baseline threshold T A , an abnormal activity signal is generated. When the abnormal activity signal is generated, it is judged that there is a hidden danger of insufficient network security.
[0012] In a preferred embodiment, the logic for obtaining the traffic anomaly index is:
[0013] In a fixed time window, the total flow in each historical time period t is obtained to obtain the flow data L(t), and then feature extraction is performed: Extract the average flow feature Extract the flow standard deviation characteristic σ L : Extract the flow peak feature L max , L max represents the maximum flow in all historical time periods t, and T represents the total number of fixed-length windows divided into historical time periods t;
[0014] Calculate the flow anomaly coefficient using the following formula: L current Indicates the current network traffic data, C L It represents the flow anomaly coefficient, and then calculates the flow anomaly index. The calculation formula is: Indicates the traffic anomaly index.
[0015] In a preferred embodiment, the acquisition logic of the attack threat index is:
[0016] The network is modeled as a graph G = (V, E), where V represents network nodes and E represents network connections. The basic attributes of each edge e are set, and the basic attributes include the frequency of security events S e , transmission delay L e 、Safety level D e , and threat level T e ; Calculate the threat value of each edge. The threat value calculation formula is:
[0017] W e represents the threat value of edge e, α, β, and γ are all preset weight coefficients;
[0018] For each node v, calculate the weighted sum of the threat values of all the edges connected to it. The calculation formula is:
[0019] W v represents the threat value of node v, E v represents the set of all edges connected to node v, T v represents the total threat level of node v, T max Indicates the maximum node threat level in the network;
[0020] Divide the network into multiple regions r, each region contains a number of nodes N r , calculate the threat coefficient of each area, the calculation formula is: W r represents the threat index of region r, N r represents the set of all nodes in region r, and V represents the set of all nodes in the network;
[0021] The threat coefficients of each area are integrated and summed to obtain the attack threat index of the entire network. The calculation formula is: W total =∫ R W r dA;W total represents the attack threat index of the entire network, R represents the set of all regions r in the network, and dA represents the weight of each region.
[0022] In a preferred embodiment, based on the traffic anomaly index and the attack threat index, the traffic anomaly index and the attack threat index are substituted into a pre-trained machine learning model to evaluate the comprehensive usage quality of the network and obtain the comprehensive network security factor.
[0023] In a preferred embodiment, dividing the current network into a high-quality network and a low-quality network based on the network comprehensive security factor means:
[0024] The network comprehensive security factor is compared with the preset network security reference threshold. If the network comprehensive security factor is greater than or equal to the preset network security reference threshold, the current network is classified as a high-quality network. If the network comprehensive security factor is less than the preset network security reference threshold, the current network is classified as a low-quality network.
[0025] In a preferred embodiment, for a low-quality network, judging the need for blocking the network based on the traffic anomaly index, the attack threat index, and the comprehensive usage quality refers to:
[0026] Obtain the traffic anomaly index, attack threat index and comprehensive usage quality of the low-quality network, take the traffic anomaly index, attack threat index and comprehensive usage quality as input variables, take the blocking demand as the output variable, fuzzify the input variables, convert the values of the input variables into fuzzy sets, fuzzify the output variables, convert the output variables into fuzzy sets, formulate fuzzy rules, describe the blocking requirements under different data type combinations, infer the fuzzified input variables through fuzzy rules, and determine the type of adapted blocking requirements.
[0027] In a preferred embodiment, the logic for selecting blocking mechanism one, blocking mechanism two, or blocking mechanism three according to the judgment result is:
[0028] There is a one-to-one mapping relationship between different blocking requirements and different blocking mechanisms. Blocking mechanism one, blocking mechanism two, and blocking mechanism three each correspond to a type of blocking requirement.
[0029] Technical effects and advantages of the present invention:
[0030] By comprehensively considering the traffic anomaly index, attack threat index and comprehensive usage quality, the present invention can accurately judge the security status of the network, timely identify potential threats, and take corresponding blocking measures. This multi-dimensional evaluation method is more comprehensive than a single indicator and can effectively improve the overall security of the network; it uses fuzzy logic and fuzzy rules for reasoning and can flexibly adapt to different network environments and threat situations. Whether it is a minor abnormal activity or a serious network attack, the system can automatically adjust the blocking strategy according to the current network status to provide dynamic and real-time security protection.
[0031] The present invention divides the blocking requirements into low-risk processing, medium-risk processing and high-risk processing. The present invention can accurately match the corresponding blocking mechanisms (firewalls, intrusion detection and defense systems, and the combination of the two). This refined management ensures the effective use of network resources and avoids excessive or insufficient security measures, thereby improving the efficiency and protection effect of the system; when abnormal activities or attack threats are detected, the present invention can respond quickly and take corresponding blocking measures in time. This rapid response mechanism helps to contain the threat before it spreads and reduce the impact on the network and business. The present invention can not only judge the current security status by evaluating the comprehensive usage quality of the network, but also provide decision-making support for network administrators. Administrators can formulate more scientific and reasonable security strategies based on the comprehensive safety factor and blocking requirements to further improve the security management level of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with the accompanying drawings;
[0033] Figure 1 The schematic diagram is a schematic diagram of a method for blocking network attacks in the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] Reference Figure 1 The following examples:
[0036] Embodiment 1: A method for blocking a network attack, comprising the following steps:
[0037] When the network is not securely isolated, conduct a preliminary analysis of the current network usage and determine whether there are hidden dangers of insufficient network security based on the preliminary analysis results;
[0038] It should be noted that when the network is not securely isolated, it means that the various devices, systems and sub-networks in the network are not logically or physically isolated through technical means such as firewalls, intrusion detection and prevention systems. This means that all devices and systems in the network are on the same network plane and can communicate directly with each other, and there are no additional isolation and protection measures to limit access between different parts.
[0039] In a small network or a single application environment, the network structure is relatively simple, and the communication requirements between devices and systems are large and frequent. Security isolation may lead to unnecessary complexity and management burden. In some enterprises, the devices and users in the network are considered highly trusted, and there is no clear source of security threats internally, so strict isolation measures are not required. Security isolation may introduce additional delays and performance overhead, especially in application scenarios that require efficient transmission and low latency. Not performing security isolation can improve network performance and transmission efficiency. Deploying and maintaining security isolation measures requires additional hardware, software, and management resources. For some small and medium-sized enterprises or specific projects, resource and cost constraints may cause them to choose not to perform security isolation.
[0040] The network structure without isolation measures is relatively simple, and management and maintenance are more convenient. There is no need to configure and manage multi-level isolation strategies and rules. All devices and systems in the network can communicate directly, reducing the routing and switching overhead caused by isolation, improving the efficiency and speed of network communications, and eliminating the need for additional isolation equipment and complex isolation configurations, saving hardware costs and management resources. In a network environment without isolation, it is relatively simple to add or adjust devices and systems, and there is no need to reconfigure isolation strategies and rules, which facilitates flexible expansion and adjustment of the network.
[0041] When there is a hidden danger of insufficient network security, an abnormal analysis is performed on the current network usage to obtain the traffic anomaly index and attack threat index respectively. Then, based on the traffic anomaly index and attack threat index, the comprehensive usage quality of the network is evaluated to obtain the comprehensive network security factor.
[0042] Based on the comprehensive network security factor, the current network is divided into high-quality networks and low-quality networks; for low-quality networks, the blocking needs of the network are judged based on the traffic anomaly index, attack threat index and comprehensive usage quality, and blocking mechanism one, blocking mechanism two or blocking mechanism three is selected and responded to according to the judgment results.
[0043] Blocking mechanism 1 refers to firewalls, blocking mechanism 2 refers to intrusion detection and prevention systems, and blocking mechanism 3 refers to the combined use of firewalls, intrusion detection and prevention systems. Specifically, one of the existing methods for blocking network attacks is firewalls, and the other is intrusion detection and prevention systems (IDS / IPS). Firewalls are mainly responsible for monitoring and filtering network traffic and preventing unauthorized access, while intrusion detection and prevention systems are used to detect and respond to abnormal behavior and potential threats. Firewalls can strictly control traffic in and out of the network according to predefined rules, prevent unauthorized access, and can effectively filter unnecessary traffic and known malicious traffic, improve network security, and are relatively simple to configure and manage. They are suitable for network environments of all sizes. In hardware firewalls, dedicated processors can quickly process large amounts of traffic, and the performance is relatively efficient.
[0044] Intrusion detection and prevention systems (IDS / IPS) can perform deep packet inspection on network traffic, identify and block complex attacks, detect and respond to abnormal activities and attack behaviors in real time, provide active defense capabilities, and use a wide range of attack feature libraries to identify a variety of known attack patterns and provide timely defense. Some advanced IDS / IPS systems can perform behavioral analysis to identify abnormal behaviors and potential threats.
[0045] Different security technologies have their own advantages and disadvantages. Combining them can give full play to their advantages and improve the overall protection effect. Network attacks are diverse, and a single protection method is difficult to fully respond to all threats. Combining firewalls and IDS / IPS can better respond to different types of attacks. According to actual needs and network environment, choosing appropriate protection methods can optimize resource allocation and improve protection efficiency. Combining firewalls and IDS / IPS can reduce false alarm rates and improve detection accuracy through multi-level detection and filtering mechanisms. According to changes in network scale and security requirements, protection strategies can be flexibly adjusted to achieve better scalability and adaptability. Different network scenarios and business needs have different security requirements. Choosing appropriate protection technologies can better meet these requirements: Basic protection: For general malicious traffic and attacks, firewalls are sufficient. Advanced protection: For advanced persistent threats (APT) and complex attacks, IDS / IPS can provide more detailed detection and protection. If a single protection method is difficult to fully respond to all security threats, the combined use of firewalls and IDS / IPS can achieve more comprehensive protection: Firewall: Provides boundary security and basic protection. IDS / IPS: Provides deep detection and internal protection. Combined use: By comprehensively utilizing the advantages of both, a multi-level security protection system can be built to improve overall network security.
[0046] Perform a preliminary analysis of the current network usage and determine whether there are hidden dangers of insufficient network security based on the preliminary analysis results. The steps are as follows:
[0047] In a fixed time window, collect the current network usage parameters: network traffic data L (unit: Mbps) and abnormal activity times A (unit: times / minute); set a baseline threshold for preliminary judgment of whether there are security risks in the network: network traffic baseline threshold T L and abnormal activity baseline threshold T A ; Network traffic baseline threshold T L Indicates the maximum traffic under normal network usage and the abnormal activity baseline threshold T A Indicates the maximum number of abnormal activities under normal network usage. If the network traffic data L is less than or equal to the network traffic baseline threshold T L And the number of abnormal activities A is less than or equal to the abnormal activity baseline threshold T A , a normal activity signal is generated. If the network traffic data L is not less than or equal to the network traffic baseline threshold T L And the number of abnormal activities A is less than or equal to the abnormal activity baseline threshold T A , an abnormal activity signal is generated. When an abnormal activity signal is generated, it is judged that there is a hidden danger of insufficient network security. Normal activity signal: If the current network traffic and the number of abnormal activities are within the normal range, the network is in a safe state and there is no significant security risk. Abnormal activity signal: If the current network traffic or the number of abnormal activities exceeds the normal range, there is a potential security risk, which needs further analysis and processing. By collecting and analyzing network traffic and the number of abnormal activities, it is possible to quickly and preliminarily determine whether the network has security risks. This method is simple and effective, suitable for real-time monitoring and preliminary screening. The baseline threshold is set based on historical data and normal usage patterns, and can accurately reflect the normal state of the network. By comparing with the baseline threshold, abnormal situations can be effectively identified. When abnormal activity signals are detected, timely measures can be taken for further analysis and processing, reducing the duration of security risks and improving the response efficiency of network security management. By setting a reasonable baseline threshold, the false alarm rate and missed alarm rate can be reduced. The generation of normal activity signals and abnormal activity signals helps to accurately distinguish between normal use and abnormal situations.
[0048] The logic for obtaining the traffic anomaly index is as follows:
[0049] Under a fixed time window, the total flow in each historical time period t is obtained to obtain the flow data L(t), and then feature extraction is performed: Extract the average flow feature Represents the average flow in a fixed time window, reflecting the normal flow level of the network; extracts the flow standard deviation feature σ L: Indicates the volatility and discreteness of traffic, reflecting the stability of network traffic; extracts traffic peak feature L max , L max It represents the maximum flow in all historical time periods t, reflecting the highest peak value of network traffic. T represents the total number of fixed-length windows divided into historical time periods t.
[0050] Calculate the flow anomaly coefficient using the following formula: L current Indicates the current network traffic data, C L is the traffic anomaly coefficient, indicating the current network traffic L current With average flow The deviation degree of the normalized result is used to indicate the abnormal degree of the current traffic flow, and then the traffic abnormality index is calculated. The calculation formula is: It represents the traffic anomaly index, which comprehensively considers the relationship between the abnormal degree of the current traffic and the historical highest traffic, and indicates the severity of the current traffic anomaly. A smaller value means that the current traffic is close to the historical average traffic and there is no significant anomaly. A moderately small value means that the current traffic has a certain degree of anomaly, but it does not reach the level of severe anomaly. A larger value means that the current traffic is much higher than the historical average, and there may be significant traffic anomalies or potential network problems.
[0051] The devices and connections in the network can be abstracted as nodes and edges, which conforms to the basic concepts of graph theory. Network security involves multi-dimensional features (such as latency and security events). These features can be effectively integrated and analyzed through graph models. There are complex relationships between devices and connections in the network, which can be clearly represented and processed through graph models. The logic for obtaining the attack threat index is as follows: the network is modeled as a graph G = (V, E), where V represents network nodes (such as servers, routers, etc.), and E represents network connections (such as links, communication channels, etc.). The basic attributes of each edge e are set, and the basic attributes include the security event frequency S e (frequency of security events on this edge), transmission delay L e (delay in data transmission on this edge), security level D e (security level of the edge), and threat level T e (Level of potential threat on the edge); Calculate the threat value of each edge. The threat value calculation formula is:
[0052] W e It represents the threat value of edge e, which measures the comprehensive security threat on the edge. α, β, and γ are all preset weight coefficients used to adjust the importance of various parameters.
[0053] For each node v, calculate the weighted sum of the threat values of all the edges connected to it. The calculation formula is:
[0054] W v Represents the threat value of node v, which measures the comprehensive security threat to the node. v represents the set of all edges connected to node v, T v represents the total threat level of node v, T max Indicates the maximum node threat level in the network;
[0055] Divide the network into multiple regions r, each region contains a number of nodes N r , calculate the threat coefficient of each area, the calculation formula is: W r represents the threat index of region r, N r represents the set of all nodes in region r, and V represents the set of all nodes in the network;
[0056] The threat coefficients of each area are integrated and summed to obtain the attack threat index of the entire network. The calculation formula is: W total =∫ R W r dA;W total It represents the attack threat index of the entire network, R represents the set of all regions r in the network, dA represents the weight of each region, a smaller value of the attack threat index indicates that the network is in a safe state as a whole and the threat is small, a moderate value indicates that there are certain threats to the network and it is necessary to pay attention and take some security measures, a larger value indicates that the network faces significant threats and there may be serious security risks and it is necessary to take immediate measures to protect it. Through multi-dimensional features and calculations, the security status of the network can be comprehensively evaluated and potential threats can be discovered. Different levels (edges, nodes, regions, and the entire network) can be analyzed in layers, which is helpful to accurately locate and deal with threats. The weights and parameters can be dynamically adjusted according to the actual situation to flexibly respond to different security needs and threat changes.
[0057] Based on the traffic anomaly index and the attack threat index, the traffic anomaly index and the attack threat index are substituted into a pre-trained machine learning model to evaluate the comprehensive use quality of the network and obtain a comprehensive network security factor; the machine learning model is not specifically limited here, and any model that can perform a comprehensive analysis of the traffic anomaly index and the attack threat index to generate a comprehensive network security factor is acceptable. In order to implement the technical solution of the present invention, the present invention provides a specific implementation method: α, β, γ, and δ are weights and adjustment parameters, which are used to adjust the impact of the traffic anomaly index and the attack threat index on the comprehensive safety factor. Q represents the comprehensive safety factor. It means that as the traffic anomaly index increases, the result value gradually decreases, reflecting that when the traffic anomaly increases, the network security decreases. It means that as the attack threat index increases, the result value gradually decreases, reflecting that when the attack threat increases, the network security decreases. The range of the comprehensive security factor Q is: 0 to the sum of α and γ. Q is close to 0: it means that the network security is poor and there is a high risk. Q is close to α+γ: it means that the network security is high and there are fewer potential threats.
[0058] Based on the comprehensive network security factor, the current network is divided into high-quality networks and low-quality networks, which means:
[0059] The network comprehensive security factor is compared with the preset network security reference threshold. If the network comprehensive security factor is greater than or equal to the preset network security reference threshold, the current network is classified as a high-quality network. If the network comprehensive security factor is less than the preset network security reference threshold, the current network is classified as a low-quality network.
[0060] For low-quality networks, the need for blocking the network is determined based on the traffic anomaly index, attack threat index, and comprehensive usage quality:
[0061] Obtain the traffic anomaly index, attack threat index and comprehensive usage quality of the low-quality network, take the traffic anomaly index, attack threat index and comprehensive usage quality as input variables, take the blocking demand as the output variable, fuzzify the input variables, convert the values of the input variables into fuzzy sets, fuzzify the output variables, convert the output variables into fuzzy sets, formulate fuzzy rules, describe the blocking requirements under different data type combinations, and reason the fuzzified input variables through fuzzy rules to determine the type of adapted blocking requirements; specifically, convert the specific values of the input variables into fuzzy sets: traffic anomaly index: low (Low), medium (Medium), high (High); attack threat index: low (Low), medium (Medium), high (High); comprehensive usage quality: poor (Poor), fair (Fair), good (Good); convert the blocking requirements into fuzzy sets: blocking requirements: low risk processing, medium risk processing, high risk processing; according to different data combinations, formulate fuzzy rules to describe the blocking requirements under different situations. The following are some example fuzzy rules: if the traffic anomaly index is high and the attack threat index is high and the comprehensive use quality is poor, then the blocking demand is high-risk processing; if the traffic anomaly index is medium and the attack threat index is high and the comprehensive use quality is poor, then the blocking demand is high-risk processing; if the traffic anomaly index is medium and the attack threat index is high and the comprehensive use quality is medium, then the blocking demand is medium-risk processing; if the traffic anomaly index is low and the attack threat index is low and the comprehensive use quality is good, then the blocking demand is low-risk processing; finally, the type of adapted blocking demand is determined.
[0062] The logic of selecting blocking mechanism 1, blocking mechanism 2 or blocking mechanism 3 according to the judgment result is: different blocking requirements are mapped one-to-one with different blocking mechanisms. Blocking mechanism 1, blocking mechanism 2 and blocking mechanism 3 correspond to a type of blocking requirement respectively. Blocking mechanism 1: Applicable to low-risk processing, mainly for minor anomalies or occasional threats, using basic flow control and simple firewall rules for processing. Blocking mechanism 2: Applicable to medium-risk processing, dealing with more frequent abnormal activities and medium-level threats, using intrusion detection and prevention systems for defense. Blocking mechanism 3: Applicable to high-risk processing, dealing with serious and continuous threats, using a combination of firewalls (Firewall) and intrusion detection and prevention systems (IDS / IPS) for blocking, which can effectively judge the type of blocking requirements based on the network's traffic anomaly index, attack threat index and comprehensive usage quality, and select the most suitable blocking mechanism to ensure network security.
[0063] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0064] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.
[0065] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. 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 blocking network attacks, characterized in that: The following steps are involved: When the network is not securely isolated, conduct a preliminary analysis of the current network usage and determine whether there are hidden dangers of insufficient network security based on the preliminary analysis results; When there is a hidden danger of insufficient network security, an abnormal analysis is performed on the current network usage to obtain the traffic anomaly index and attack threat index respectively. Then, based on the traffic anomaly index and attack threat index, the comprehensive usage quality of the network is evaluated to obtain the comprehensive network security factor. Based on the comprehensive network security factor, the current network is divided into high-quality networks and low-quality networks; For low-quality networks, the blocking needs of the network are judged based on the traffic anomaly index, attack threat index and comprehensive usage quality, and blocking mechanism one, blocking mechanism two or blocking mechanism three is selected and responded to according to the judgment results.
2. A method for blocking network attacks according to claim 1, characterized in that: Perform a preliminary analysis of the current network usage and determine whether there are hidden dangers of insufficient network security based on the preliminary analysis results. The steps are as follows: In a fixed time window, collect the current network usage parameters: network traffic data L and abnormal activity times A; set a baseline threshold for preliminary judgment of whether there are security risks in the network: network traffic baseline threshold T L and abnormal activity baseline threshold T A ; Network traffic baseline threshold T L Indicates the maximum traffic under normal network usage and the abnormal activity baseline threshold T A Indicates the maximum number of abnormal activities under normal network usage. If the network traffic data L is less than or equal to the network traffic baseline threshold T L And the number of abnormal activities A is less than or equal to the abnormal activity baseline threshold T A , a normal activity signal is generated. If the network traffic data L is not less than or equal to the network traffic baseline threshold T L And the number of abnormal activities A is less than or equal to the abnormal activity baseline threshold T A , an abnormal activity signal is generated. When the abnormal activity signal is generated, it is determined that there is a hidden danger of insufficient network security.
3. A method for blocking network attacks according to claim 2, characterized in that: The logic for obtaining the traffic anomaly index is as follows: Under a fixed time window, the total flow in each historical time period t is obtained to obtain the flow data L(t), and then feature extraction is performed: Extract the average flow feature Extract the flow standard deviation characteristic σ L : Extract the flow peak feature L max , L max represents the maximum flow in all historical time periods t, and T represents the total number of fixed-length windows divided into historical time periods t; Calculate the flow anomaly coefficient using the following formula: L current Indicates the current network traffic data, C L It represents the flow anomaly coefficient, and then calculates the flow anomaly index. The calculation formula is: Indicates the traffic anomaly index.
4. A method for blocking network attacks according to claim 2, characterized in that: The logic for obtaining the attack threat index is as follows: The network is modeled as a graph G = (V, E), where V represents network nodes and E represents network connections. The basic attributes of each edge e are set, and the basic attributes include the frequency of security events S e , transmission delay L e 、Safety level D e , and threat level T e ; Calculate the threat value of each edge. The threat value calculation formula is: W e represents the threat value of edge e, α, β, and γ are all preset weight coefficients; For each node v, calculate the weighted sum of the threat values of all the edges connected to it. The calculation formula is: W v represents the threat value of node v, E v represents the set of all edges connected to node v, T v represents the total threat level of node v, T max Indicates the maximum node threat level in the network; Divide the network into multiple regions r, each region contains a number of nodes N r , calculate the threat coefficient of each area, the calculation formula is: W r represents the threat index of region r, N r represents the set of all nodes in region r, and V represents the set of all nodes in the network; The threat coefficients of each area are integrated and summed to obtain the attack threat index of the entire network. The calculation formula is: W total =W r dA;W total represents the attack threat index of the entire network, R represents the set of all regions r in the network, and dA represents the weight of each region.
5. A method for blocking network attacks according to claim 4, characterized in that: Based on the traffic anomaly index and attack threat index, the traffic anomaly index and attack threat index are substituted into the pre-trained machine learning model to evaluate the comprehensive usage quality of the network and obtain the comprehensive network security factor.
6. A method for blocking network attacks according to claim 5, characterized in that: Based on the comprehensive network security factor, the current network is divided into high-quality networks and low-quality networks, which means: The network comprehensive security factor is compared with the preset network security reference threshold. If the network comprehensive security factor is greater than or equal to the preset network security reference threshold, the current network is classified as a high-quality network. If the network comprehensive security factor is less than the preset network security reference threshold, the current network is classified as a low-quality network.
7. A method for blocking network attacks according to claim 6, characterized in that: For low-quality networks, the need for blocking the network is determined based on the traffic anomaly index, attack threat index, and comprehensive usage quality: Obtain the traffic anomaly index, attack threat index and comprehensive usage quality of the low-quality network, take the traffic anomaly index, attack threat index and comprehensive usage quality as input variables, take the blocking demand as the output variable, fuzzify the input variables, convert the values of the input variables into fuzzy sets, fuzzify the output variables, convert the output variables into fuzzy sets, formulate fuzzy rules, describe the blocking requirements under different data type combinations, infer the fuzzified input variables through fuzzy rules, and determine the type of adapted blocking requirements.
8. A method for blocking network attacks according to claim 7, characterized in that: The logic for selecting blocking mechanism 1, blocking mechanism 2, or blocking mechanism 3 based on the judgment result is: There is a one-to-one mapping relationship between different blocking requirements and different blocking mechanisms. Blocking mechanism one, blocking mechanism two, and blocking mechanism three each correspond to a type of blocking requirement.
Citation Information
Cited By
Method and system for realizing unified threat management in heterogeneous network
CN119299232A
Omnibearing power grid network equipment scanning system and method
CN119561775A
An all-round power grid network device scanning system and method
CN119561775B
Computer network information security monitoring method
CN119603069A
Network security detection method based on big data
CN119814457A
