A method for detecting abnormal behavior in computer networks

By updating the network topology map in real time and dynamically adjusting the GCN model, combined with the collaborative work of distributed detection nodes, it solves the shortcomings of traditional detection methods in the face of unknown threats and complex attacks, and achieves efficient and accurate detection and detection of abnormal network behaviors. Rapid response improves network security and processing efficiency.

CN117792673BActive Publication Date: 2024-09-17BEIJING ANLING TRUSTED NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311515158.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2024-09-17
Estimated Expiration
2043-11-14

AI Technical Summary

Technical Problem

Traditional network abnormal behavior detection methods based on features and signatures are inadequate when faced with unknown threats and complex attack methods, making it difficult to achieve efficient, accurate detection and adaptive response.

Method used

By collecting multi-dimensional network data, updating the network topology map in real time, establishing and dynamically adjusting the GCN model, combining the network topology map and multi-dimensional data for anomaly detection, and working collaboratively on distributed detection nodes, dynamically allocate detection tasks and response strategies. , to achieve rapid response and automated processing.

Benefits of technology

It achieves real-time perception of the network structure, accurately captures abnormal behaviors, can effectively detect complex attack methods, reduces manual intervention, and improves the timeliness of exception handling and network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117792673B
    Figure CN117792673B
Patent Text Reader

Abstract

The present invention discloses a method for detecting abnormal behavior of a computer network, which relates to the field of abnormal behavior detection of a network, including collecting multi-dimensional network data, updating a network topology map in real time; establishing a GCN model and training the GCN model through the collected multi-dimensional network data and dynamically adjusting it. The beneficial effects of the present invention are as follows: the present method realizes real-time perception of the network structure by constructing a dynamic network topology, and can more accurately capture abnormal behaviors in the network. Through multi-dimensional abnormal detection, it can not only comprehensively analyze network behaviors from multiple levels, but also realize effective detection of complex attack methods. The automated response mechanism greatly reduces the need for manual intervention, improves the timeliness of abnormal processing, and reduces the workload of network administrators. It has strong practical value and broad application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network abnormal behavior detection, and in particular to a computer network abnormal behavior detection method. Background Art

[0002] With the rapid development of Internet technology, network security issues have become increasingly prominent, especially the emergence of complex attack methods such as zero-day attacks and distributed denial of service attacks, which have brought huge challenges to network security. Traditional detection methods based on features and signatures are powerless in the face of unknown threats and complex attack methods. Therefore, it is an urgent need to develop a network abnormal behavior detection method that can achieve efficient and accurate anomaly detection and has adaptive and automatic response capabilities. The research and development background of this method is mainly based on a deep understanding of the shortcomings of the existing network security protection system and an in-depth study of emerging network attack methods. It aims to improve network security protection capabilities and ensure the security of network assets through innovative technical means. Summary of the invention

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

[0004] In view of the above problems and / or problems existing in the existing computer network abnormal behavior detection methods, the present invention is proposed.

[0005] Therefore, the problem to be solved by the present invention is that the traditional detection method based on features and signatures is incapable of coping with unknown threats and complex attack methods.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: a method for detecting abnormal behavior in a computer network, which includes collecting multi-dimensional network data and updating a network topology map in real time;

[0007] Establish a GCN model and train the GCN model through the collected multi-dimensional network data and make dynamic adjustments;

[0008] Use the trained GCN model combined with the network topology and multi-dimensional network data to perform anomaly detection, and dynamically allocate and process anomaly detection tasks;

[0009] After an anomaly is detected, processing measures are implemented. After processing is completed, an exception processing record is generated and stored synchronously with the exception data in the database.

[0010] As a preferred solution of the computer network abnormal behavior detection method of the present invention, wherein: the collection of multi-dimensional network data includes:

[0011] Use a network scanning tool to regularly scan all devices on the network;

[0012] Use SNMP protocol to obtain the status and connection information of network devices;

[0013] Use the graph G = (V, E) in graph theory, where V represents the devices in the network and E represents the connections between the devices;

[0014] Dijkstra algorithm is used to calculate the shortest path between any two points in the network.

[0015] As a preferred solution of the computer network abnormal behavior detection method described in the present invention, the real-time updating of the network topology graph includes adding a new device to the graph G and updating the related edge E when the new device is connected to the network, removing the device from the graph G and updating the related edge E when the device goes offline, and using the graph simplification technology to reduce the scale of the graph G, and using the community detection algorithm to divide the network topology graph into multiple subgraphs.

[0016] 5. As a preferred solution of the computer network abnormal behavior detection method of the present invention, the GCN model construction uses the graph G as input, and uses multi-dimensional network traffic data, system logs and hardware status data as node features to train the GCN model, wherein the node feature extraction uses Fourier transform for frequency domain analysis, and the Fourier transform formula is as follows:

[0017]

[0018] Where Y(k) is the frequency domain signal, x(n) is the time domain signal, N is the number of data points, k and n are variables, and the node feature set is obtained through Fourier transform. When the network topology G changes, the structure and parameters of the GCN model are dynamically adjusted. The formula of the GCN model is shown as follows:

[0019]

[0020] in is the network topology considering time decay, H l is the node feature matrix of the lth layer, W l is the trainable weight matrix of the lth layer, X is the original feature matrix of the node, is the trainable weight matrix associated with the original node feature matrix, and σ is the activation function.

[0021] As a preferred solution of the computer network abnormal behavior detection method described in the present invention, the anomaly detection is performed through distributed detection nodes deployed in key parts of the network, each detection node independently runs the anomaly detection GCN model, and monitors the traffic passing through its network area in real time. The detection nodes share detection results and threat intelligence through a secure channel to form a collaborative detection network, and at the same time monitor the load of each detection node. When the load of a node is too high, the detection task is dynamically reallocated to other nodes with lower load. When a new data processing node is added, the consistent hashing algorithm is used to dynamically adjust the detection task allocation.

[0022] As a preferred solution of the computer network abnormal behavior detection method described in the present invention, a global abnormal response strategy is constructed based on the output of the distributed detection nodes to ensure rapid response when an abnormality is detected, and a machine learning algorithm is used to continuously optimize the abnormal response strategy. The formula is as follows:

[0023] Q(s,a)←Q(s,a)+α[R(s,a)+γmax a’ Q(s',a)-Q(s,a)]

[0024] Where Q(s, a) is the value function of taking action a in state s, α is the learning rate, usually 0<α<1, R(s, a) is the reward function, which represents the immediate reward for taking action a in state s, γ is the discount factor, usually 0<γ<1, s' is the next state, a' is the next action, and max a’ Q(s', a') represents the maximum expected reward that can be obtained in the next state s'.

[0025] As a preferred solution of the computer network abnormal behavior detection method of the present invention, each of the distributed detection nodes has an independent label and performs real-time monitoring of the traffic passing through its network area:

[0026] If the distributed detection node detects that there is no abnormality in the network traffic, a distributed detection node detection mark is attached to the network traffic and the network traffic is allowed to flow in the network. If the network traffic passes through more than half of the detection nodes and there is no abnormality, a no-abnormality mark is automatically generated after the detection mark is attached. The network traffic with the no-abnormal network mark does not need to be detected again when passing through the distributed detection node;

[0027] If the distributed detection node detects that there may be anomalies in the network traffic, an abnormal tag is attached to the network traffic and the detection node tag attached to the network traffic is checked. If there is no detection node tag, the abnormal network traffic is redirected to the security sandbox for in-depth analysis and the other distributed detection nodes are notified of the abnormal information through the detection network. If there is a detection node tag, the abnormal traffic is redirected to the security sandbox and a self-check notification is sent to all detection nodes that have detected abnormal network traffic through the detection network. The detection node that receives the self-check notification checks the independently running anomaly detection GCN model and eliminates errors. After redirecting the abnormal traffic to the security sandbox, the abnormal network traffic is deeply analyzed. If the analysis shows that there is no abnormality in the network traffic, the network traffic is released again to the network and the detection node is notified to perform self-check analysis to detect the cause of the false alarm. If the analysis shows that there is anomaly in the network traffic, a malicious tag is attached to the network traffic, the firewall rules are updated to exclude malicious traffic from the network, and malicious traffic notifications and updated firewall rules are sent to the other detection nodes through the detection network. The other detection nodes synchronously update the firewall rules.

[0028] As a preferred solution of the computer network abnormal behavior detection method described in the present invention, the detection node generates a detection record after detecting network traffic, generates an abnormal detection record after detecting abnormal network traffic, and generates an abnormal processing record after processing abnormal traffic. The detection node stores all records together with network data and updated firewall rules in a database synchronously. The database regularly checks and backs up the data and allows users to query the data.

[0029] A computer device comprises: a memory and a processor; the memory stores a computer program, characterized in that: when the processor executes the computer program, the steps of any one of the computer network abnormal behavior detection methods in claims 1 to 8 are implemented.

[0030] A computer-readable storage medium having a computer program stored thereon, characterized in that: when the computer program is executed by a processor, the steps of any one of the computer network abnormal behavior detection methods of claims 1 to 8 are implemented.

[0031] The beneficial effects of the present invention are as follows: by constructing a dynamic network topology, the method realizes real-time perception of the network structure, can more accurately capture abnormal behavior in the network, and through multi-dimensional anomaly detection, can not only comprehensively analyze network behavior from multiple levels, but also effectively detect complex attack methods. The automated response mechanism greatly reduces the need for manual intervention, improves the timeliness of exception handling, and reduces the workload of network administrators. It has strong practical value and broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0033] Figure 1 The figure is a flowchart of a method for detecting abnormal behavior in a computer network. DETAILED DESCRIPTION

[0034] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

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

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

[0037] Example 1

[0038] Reference Figure 1 , which is the first embodiment of the present invention, and provides a method for detecting abnormal behavior of a computer network. The method for detecting abnormal behavior of a computer network comprises the following steps:

[0039] S1. Collect multi-dimensional network data and update the network topology map in real time;

[0040] It should be noted that the collection of multi-dimensional network data includes:

[0041] Use a network scanning tool to regularly scan all devices on the network;

[0042] Use SNMP protocol to obtain the status and connection information of network devices;

[0043] Use the graph G = (V, E) in graph theory, where V represents the devices in the network and E represents the connections between the devices;

[0044] Dijkstra algorithm is used to calculate the shortest path between any two points in the network.

[0045] The basic steps of Dijkstra's algorithm are as follows:

[0046] Initialization: Select a vertex as the starting point, set a distance array, where the initial distance of each vertex is set to infinity (except the starting point, whose distance is set to 0), and set a visited vertex set, which is initially empty;

[0047] Update distance: Update the distance of all neighbors of the current vertex to: If the distance from the current vertex to the neighbor vertex is less than the distance directly to the neighbor vertex, update this distance;

[0048] Select a vertex: Select a vertex with the smallest distance from the unvisited vertices as the next vertex;

[0049] Mark Vertex: Mark the selected vertex as visited and add it to the set of visited vertices;

[0050] Repeat the process: Repeat the update distance to the marked vertex until all vertices have been visited or the shortest path to the target vertex is found;

[0051] Output result: Output the shortest distance from the starting point to all other vertices, or output the shortest path to the target vertex and its length.

[0052] Through the Dijkstra algorithm, the network topology and path information can be effectively obtained, providing important basic data for network anomaly detection.

[0053] It should also be noted that real-time updating of the network topology graph includes adding a new device to the graph G and updating the related edge E when the new device is connected to the network, removing the device from the graph G and updating the related edge E when the device goes offline, and using graph simplification technology to reduce the size of the graph G, and using a community detection algorithm to divide the network topology graph into multiple subgraphs.

[0054] S2, establish a GCN model and train the GCN model through the collected multi-dimensional network data and make dynamic adjustments;

[0055] 6. It should be noted that the GCN model construction uses the graph G as input, and uses multi-dimensional network traffic data, system logs, and hardware status data as node features to train the GCN model. The node feature extraction uses Fourier transform for frequency domain analysis. The Fourier transform formula is as follows:

[0056]

[0057] Where Y(k) is the frequency domain signal, x(n) is the time domain signal, N is the number of data points, k and n are variables, and the node feature set is obtained through Fourier transform. When the network topology G changes, the structure and parameters of the GCN model are dynamically adjusted. The formula of the GCN model is shown as follows:

[0058]

[0059] in is the network topology considering time decay, H l is the node feature matrix of the lth layer, W l is the trainable weight matrix of the lth layer, X is the original feature matrix of the node, is the trainable weight matrix associated with the original node feature matrix, and σ is the activation function.

[0060] Using the features filtered and processed in the previous stage, construct feature vectors. Each network event or session is represented by a feature vector.

[0061] Using the dynamic network topology graph constructed in the previous stage, the feature vectors are mapped to the nodes of the graph;

[0062] Design a GCN model where the features of nodes are represented by feature vectors and the weights of edges are determined by the size or frequency of network traffic;

[0063] Define the loss function;

[0064] The GCN model is trained using the training dataset and the model parameters are optimized to minimize the loss function.

[0065] The model's hyperparameters are tuned using the validation dataset to prevent overfitting.

[0066] Monitor the accuracy and loss during training to ensure the convergence of the model.

[0067] Use transfer learning technology to utilize previous model parameters as a pre-trained model to reduce the time and computation required for model retraining.

[0068] S3, use the trained GCN model combined with the network topology map and multi-dimensional network data to perform anomaly detection, and dynamically allocate and process anomaly detection tasks;

[0069] It should be noted that anomaly detection is performed through distributed detection nodes deployed in key parts of the network. Each detection node independently runs the anomaly detection GCN model and monitors the traffic passing through its network area in real time. The detection nodes share detection results and threat intelligence through secure channels to form a collaborative detection network. At the same time, the load of each detection node is monitored. When the load on a node is too high, the detection task is dynamically reallocated to other nodes with lower loads. When a new data processing node is added, the consistent hashing algorithm is used to dynamically adjust the detection task allocation.

[0070] By distributing detection tasks to multiple independently running detection nodes, the system can easily cope with the increasing network traffic and number of devices. When new data processing nodes are added, the system can dynamically adjust task allocation through the consistent hashing algorithm to ensure the efficient use of resources. Distributed detection nodes can collaborate with each other and share detection results and threat intelligence through secure channels. This collaborative working method enhances the reliability of the system, can better identify and respond to network threats, and reduce the possibility of false positives and false negatives. Each detection node can monitor the traffic in its network area in real time, so as to quickly detect potential abnormal behavior. When an anomaly is detected, the node can take immediate action, including redirecting traffic for in-depth analysis and notifying other nodes. This real-time response helps to detect and respond to network threats in a timely manner, and the system architecture allows expansion and adjustment according to the size and needs of the network. New detection nodes can be easily added to the system without large-scale changes to the entire system.

[0071] Furthermore, based on the output of distributed detection nodes, a global abnormal response strategy is constructed to ensure rapid response when an abnormality is detected. The abnormal response strategy is continuously optimized using machine learning algorithms. The formula is as follows:

[0072] Q(s,a)←Q(s,a)+α[R(s,a)+γmax a’ Q(s',a)-Q(s,a)]

[0073] Where Q(s, a) is the value function of taking action a in state s, α is the learning rate, usually 0<α<1, and α=0.1 in this embodiment, R(s, a) is the reward function, which represents the immediate reward obtained by taking action a in state s, γ is the discount factor, usually 0<γ<1, and γ=0.2 in this embodiment, s' is the next state, a' is the next action, and max a’ Q(s', a') represents the maximum expected reward that can be obtained in the next state s'.

[0074] Through the above method, the network can dynamically adjust the response strategy according to the real-time network status and anomaly detection results to achieve faster and more accurate anomaly handling, and can gradually learn and adapt to changes in network anomalies while maintaining a certain stability, so as to continuously optimize the anomaly response strategy. The reward function R(s, a) is used to evaluate the effect of taking action a under the current state s, such as the speed and accuracy of anomaly handling. This provides a clear optimization goal for the network, enabling the network to adaptively learn and optimize the anomaly response strategy, thereby improving the security and stability of the network. The global anomaly response strategy is constructed through the output of distributed detection nodes, so that the network can coordinate and optimize the anomaly response on a global scale. This can not only improve the efficiency and accuracy of network anomaly handling, but also achieve more reasonable and efficient allocation and utilization of network resources. The anomaly response strategy formula based on machine learning provides a powerful, flexible and adaptive anomaly response and optimization framework for the network, greatly enhancing the security and stability of the network, and also providing strong support for the long-term optimization and management of the network.

[0075] S4. After the abnormality is detected, the processing measures are implemented. After the processing is completed, the abnormality processing record is generated and stored in the database synchronously with the abnormal data.

[0076] It should be noted that each distributed detection node has an independent number and monitors the traffic passing through its network area in real time:

[0077] If the distributed detection node detects that there is no abnormality in the network traffic, a distributed detection node detection mark is attached to the network traffic and the network traffic is allowed to flow in the network. If the network traffic passes through more than half of the detection nodes and there is no abnormality, a no-abnormality mark is automatically generated after the detection mark is attached. The network traffic with the no-abnormal network mark does not need to be detected again when passing through the distributed detection node;

[0078] If the distributed detection node detects that there may be anomalies in the network traffic, an abnormal tag is attached to the network traffic and the detection node tag attached to the network traffic is checked. If there is no detection node tag, the abnormal network traffic is redirected to the security sandbox for in-depth analysis and the other distributed detection nodes are notified of the abnormal information through the detection network. If there is a detection node tag, the abnormal traffic is redirected to the security sandbox and a self-check notification is sent to all detection nodes that have detected abnormal network traffic through the detection network. The detection node that receives the self-check notification checks the independently running anomaly detection GCN model and eliminates errors. After redirecting the abnormal traffic to the security sandbox, the abnormal network traffic is deeply analyzed. If the analysis shows that there is no abnormality in the network traffic, the network traffic is released again to the network and the detection node is notified to perform self-check analysis to detect the cause of the false alarm. If the analysis shows that there is anomaly in the network traffic, a malicious tag is attached to the network traffic, the firewall rules are updated to exclude malicious traffic from the network, and malicious traffic notifications and updated firewall rules are sent to the other detection nodes through the detection network. The other detection nodes synchronously update the firewall rules.

[0079] When distributed detection nodes detect anomalies, they can take immediate action to redirect traffic to a secure sandbox for in-depth analysis and defensive measures, helping to respond to network attacks and abnormal behaviors in a timely manner. The system can automatically generate anomaly tags and non-abnormal tags, as well as automatically notify other detection nodes and update firewall rules. The automated process reduces the need for manual intervention and improves the efficiency of the entire network security system. By sharing detection results and threat intelligence among multiple detection nodes and blocking malicious traffic by updating firewall rules, this approach enhances the overall security of the network. It allows the network to quickly adapt to new threats and attack patterns, thereby improving the network's defense capabilities. The above method significantly improves the efficiency and security of abnormal behavior detection in computer networks through effective traffic management, real-time response and automated processes, helping to protect the network from potential threats and attacks.

[0080] It should also be noted that the detection node generates a detection record after detecting network traffic, generates anomaly detection records after detecting abnormal network traffic, and generates anomaly processing records after processing abnormal traffic. The detection node stores all records together with network data and updated firewall rules in a database. The database regularly checks and backs up the data and allows users to query the data.

[0081] Example 2

[0082] This is the second embodiment of the present invention, and the difference between this embodiment and the previous embodiment is that:

[0083] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

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

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

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

[0087] Example 3

[0088] This is the third embodiment of the present invention. This embodiment is different from the previous two embodiments. In order to verify the beneficial effects of the method of the present invention, the method of the present invention is experimentally demonstrated with the prior art method. The comparison results are shown in the following table.

[0089] Table 1: Experimental comparison between the method of the present invention and the prior art method

[0090] Existing technical solutions Method of the present invention Accuracy 85% 95% False Positive Rate 10% 5% Detection delay 5s 2s Response delay 3s 1s

[0091] From Table 1, we can see that the accuracy of this method is higher, indicating that the model can detect network attacks more accurately. The false alarm rate of this method is lower, indicating that the model rarely misjudges normal traffic as attacks when detecting attacks. The detection delay of this method is shorter, indicating that the model can detect network attacks faster. The response delay of this method is shorter, indicating that the model can trigger the response strategy faster and reduce the impact of the attack.

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

Claims

1. A method for detecting abnormal behavior in a computer network, characterized in that: include, Collect multi-dimensional network data and update the network topology map in real time; Establish a GCN model and train the GCN model through the collected multi-dimensional network data and make dynamic adjustments; Use the trained GCN model combined with the network topology and multi-dimensional network data to perform anomaly detection, and dynamically allocate and process anomaly detection tasks; After an abnormality is detected, processing measures are implemented. After processing is completed, an abnormality processing record is generated and stored synchronously with the abnormal data in the database; The collecting of multi-dimensional network data includes: Use a network scanning tool to regularly scan all devices on the network; Use SNMP protocol to obtain the status and connection information of network devices; Use the graph G = (V, E) in graph theory, where V represents the devices in the network and E represents the connections between the devices; Use Dijkstra algorithm to calculate the shortest path between any two points in the network; The real-time updating of the network topology graph includes adding a new device to the graph G and updating the related edge E when the new device is connected to the network, removing the device from the graph G and updating the related edge E when the device is offline, and reducing the size of the graph G by using the graph simplification technology, and dividing the network topology graph into multiple subgraphs by using the community detection algorithm; The GCN model used in the construction uses the graph G as input, and uses multi-dimensional network traffic data, system logs, and hardware status data as node features to train the GCN model. The node feature extraction uses Fourier transform for frequency domain analysis. The Fourier transform formula is as follows: Where Y(k) is the frequency domain signal, x(n) is the time domain signal, N is the number of data points, k and n are variables, and the node feature set is obtained through Fourier transform. When the network topology G changes, the structure and parameters of the GCN model are dynamically adjusted. The formula of the GCN model is shown as follows: in is the network topology considering time decay, H l is the node feature matrix of the lth layer, W l is the trainable weight matrix of the lth layer, X is the original feature matrix of the node, is the trainable weight matrix associated with the original node feature matrix, σ is the activation function; The anomaly detection is performed through distributed detection nodes deployed in key parts of the network. Each detection node independently runs the anomaly detection GCN model and monitors the traffic passing through its network area in real time. The detection nodes share detection results and threat intelligence through secure channels to form a collaborative detection network. At the same time, the load of each detection node is monitored. When the load of a node is too high, the detection task is dynamically reallocated to other nodes with lower load. When a new data processing node is added, the consistent hashing algorithm is used to dynamically adjust the detection task allocation; Based on the output of distributed detection nodes, a global abnormal response strategy is constructed to ensure rapid response when an abnormality is detected. The abnormal response strategy is continuously optimized using machine learning algorithms. The formula is as follows: Q(s,a)←Q(s,a)+α[R(s,a)+γmax a’ Q(s‘,a’)-Q(s,a)] Where Q(s, a) is the value function of taking action a in state s, α is the learning rate, usually 0<α<1, R(s, a) is the reward function, which represents the immediate reward for taking action a in state s, γ is the discount factor, usually 0<γ<1, s' is the next state, a' is the next action, and max a’ Q(s', a') represents the maximum expected reward that can be obtained in the next state s'; Each distributed detection node has an independent label and monitors the traffic passing through its network area in real time: If the distributed detection node detects that there is no abnormality in the network traffic, a distributed detection node detection mark is attached to the network traffic and the network traffic is allowed to flow in the network. If the network traffic passes through more than half of the detection nodes and there is no abnormality, a no-abnormality mark is automatically generated after the detection mark is attached. The network traffic with the no-abnormal network mark does not need to be detected again when passing through the distributed detection node; If the distributed detection node detects that there may be anomalies in the network traffic, an abnormal tag is attached to the network traffic and the detection node tag attached to the network traffic is checked. If there is no detection node tag, the abnormal network traffic is redirected to the security sandbox for in-depth analysis and the other distributed detection nodes are notified of the abnormal information through the detection network. If there is a detection node tag, the abnormal traffic is redirected to the security sandbox and a self-check notification is sent to all detection nodes that have detected abnormal network traffic through the detection network. The detection node that receives the self-check notification checks the independently running anomaly detection GCN model and eliminates errors. After redirecting the abnormal traffic to the security sandbox, the abnormal network traffic is deeply analyzed. If the analysis shows that there is no abnormality in the network traffic, the network traffic is released again to the network and the detection node is notified to perform self-check analysis to detect the cause of the false alarm. If the analysis shows that there is anomaly in the network traffic, a malicious tag is attached to the network traffic, the firewall rules are updated to exclude malicious traffic from the network, and malicious traffic notifications and updated firewall rules are sent to the other detection nodes through the detection network. The other detection nodes synchronously update the firewall rules.

2. The computer network abnormal behavior detection method according to claim 1, characterized in that: The detection node generates a detection record after detecting network traffic, generates an abnormal detection record after detecting abnormal network traffic, and generates an abnormal processing record after processing abnormal traffic. The detection node stores all records together with network data and updated firewall rules in a database synchronously. The database regularly checks and backs up the data and allows users to query the data.

3. A computer device comprising: Memory and processor; The memory stores a computer program, wherein the processor implements the steps of the method according to claim 1 or 2 when executing the computer program.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Automatic defense method based on abnormal behaviors

    CN116781412A

  • Network intrusion detection method based on self-supervised cooperative contrast learning and application

    CN116846645A

  • Improved KNN - Based 6LoWPAN Network Intrusion Detection Method

    US20210266748A1

  • Graph neural network (GNN) training using meta-path neighbor sampling and contrastive learning

    US20230088676A1