Complex network attack detection method based on cross-host abnormal behavior recognition

Detecting anomalies within the host through graph convolution network and automatic encoding machine, combining network traffic logs and PageRank algorithm to propagate abnormal scores, solving the problem of difficulty in correlation analysis of multi-host attack events in the existing technology, achieving low false alarm rate and no need for labeling Complex network attack detection of samples.

WO2024216729A1PCT designated stage expired Publication Date: 2024-10-24ZHEJIANG UNIV OF TECH

Patent Information

Application Number
PCT/CN2023/099376
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-20
Filing Date
2023-06-09
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing complex network attack detection technology that integrates traceability graphs and deep learning is difficult to perform correlation analysis of multi-host attack events, resulting in a high false alarm rate and reliance on a large number of labeled training samples.

Method used

Graph convolutional network and automatic encoding machine are used to detect abnormal behavior within the host, and network traffic logs are combined to construct an interaction graph between hosts, and the prediction model is trained. The abnormal score is propagated through the PageRank algorithm to confirm the attacked host, and cross-host abnormal behavior correlation analysis is realized.

Benefits of technology

It effectively reduces the false alarm rate, reduces the dependence on labeled samples, enables correlation analysis of multi-host attack events, and improves the accuracy of complex network attack detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023099376_24102024_PF_FP_ABST
    Figure CN2023099376_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention is a complex network attack detection method based on cross-host abnormal behavior recognition, comprising the following steps: 1) first, collecting host kernel log data to construct an intra-host association graph, then extracting features by using a graph convolutional network, and finally, detecting an abnormal node in the intra-host association graph by using an automatic coding machine; 2) first, constructing an inter-host interaction graph by using network traffic log data, then training a prediction model on the basis of an inter-host interaction graph sequence, and finally, detecting an abnormal edge in the inter-host interaction graph according to a predicted difference; and 3) first, constructing a cross-host abnormal association graph according to intra-host and inter-host anomaly detection results, then propagating an anomaly score by using a PageRank algorithm, and finally confirming an attacked host on the basis of the anomaly score. According to the present invention, by means of joint cross-host network attack detection, a malicious operation event in a host and a transverse movement event between hosts are mutually authenticated, so that the false alarm rate can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

A complex network attack detection method based on cross-host abnormal behavior recognition Technical Field

[0001] The present invention relates to network security and deep learning technology, and in particular to a complex network attack detection method based on cross-host abnormal behavior recognition. Background Art

[0002] Complex network attacks are becoming increasingly prominent in modern networks. These attacks are characterized by prolonged duration and diverse attack vectors. Attackers employ various means to infiltrate hosts within the target network and then move laterally from one host to another, conducting internal reconnaissance and stealing data. These characteristics make traditional single-point network attack methods difficult to counter.

[0003] Recent work has demonstrated that provenance graphs are the most effective tool for detecting complex network attacks. A provenance graph is a correlation graph constructed on system kernel log data, with nodes representing system entities (such as processes and files) and edges representing system events (such as a process reading a file). Provenance graphs can effectively capture the control flow and data flow between system entities and better reflect the contextual associations and causal relationships between system events. Therefore, they are effective in detecting complex, multi-step network attacks. Furthermore, with the rapid development of deep learning, deep learning techniques have also been gradually applied to complex network attack detection tasks, particularly graph neural networks, which are effective in processing provenance graphs.

[0004] However, existing complex network attack detection technologies that integrate traceability graphs with deep learning still have shortcomings: First, existing technologies still focus on detecting single attack events and are unable to perform correlation analysis on attack events across multiple hosts. Second, the lack of correlation analysis between attack events leads to a high false positive rate. Third, existing technologies rely on a large number of labeled training samples.

[0005] Summary of the Invention

[0006] In view of the deficiencies in the prior art, the present invention provides a complex network attack detection method based on cross-host abnormal behavior identification.

[0007] The technical solutions of the present invention are as follows:

[0008] A complex network attack detection method based on cross-host abnormal behavior identification includes the following steps:

[0009] 1) Detection of abnormal behavior within the host: First, the host kernel log data is collected to build the host association graph. Then, a graph convolutional network is used to extract features. Finally, an autoencoder is used to detect abnormal nodes in the host association graph.

[0010] 2) Detection of abnormal behavior between hosts: First, network traffic log data is used to construct an interaction graph between hosts. Then, a prediction model is trained based on the sequence of the interaction graph between hosts. Finally, abnormal edges in the interaction graph between hosts are detected based on the predicted differences.

[0011] 3) Cross-host network attack detection: First, a cross-host anomaly association graph is constructed based on the intra-host and inter-host anomaly detection results. Then, the PageRank algorithm is used to propagate the anomaly scores. Finally, the attacked host is identified based on the anomaly scores.

[0012] Furthermore, in step 1), the detailed steps of abnormal behavior detection in the host are as follows:

[0013] 1.1) Construction of benign association graph within the host: For each host H in the target network k , the operating system kernel log collection tool is used to collect the system log data during the normal operation of the host and organize it into a correlation graph nIAG k Among them, nIAG k The nodes are system entities, and the edges are interaction events between system entities.

[0014] 1-2) Node initial feature extraction: For nIAG k Each node v in i , the initial eigenvector is x i =[a i1 ,a i2 ,…,a iN ]; where a ij v i In nIAG k The number of edges of type j in the set of edges connecting to its one-hop neighbor nodes.

[0015] 1-3) Node semantic feature extraction: Graph convolutional neural network is used to extract nIAG k Process and update nIAG k The feature vector of each node is obtained by i The semantic feature vector y i .

[0016] 1-4) Autoencoder training: First, collect nIAGs from all hosts k The semantic feature vectors of all “process” nodes in ; then, these semantic feature vectors are input into an automatic encoder for training; the automatic encoder uses two multi-layer perceptrons as encoder and decoder respectively, and the encoder converts the input semantic feature vector y i Encoded into a low-dimensional latent vector, the decoder decodes the latent vector into a reconstructed vector z with the same dimension as the input semantic feature vector i; The goal of training is to make the input semantic feature vector y i and the output reconstruction vector z i minimize the differences.

[0017] 1-5) Host anomaly detection: First, for each host H in the target network k , collect real-time system log data and build the association graph rIAG k Then, extract rIAG based on the method of steps 1-2) and 1-3) k The semantic feature vector of each node in rIAG k Each "process" node v in i The semantic feature vector y i Input the trained autoencoder in steps 1-4) to get the output reconstruction vector z i If y i With z i The difference between is greater than the specified threshold, then it is considered that v i It is an abnormal node.

[0018] 1-6) Abnormal scoring within the host: First, calculate each abnormal node v according to formula (1) i The anomaly score of host H is then calculated according to formula (2). k The anomaly score of k ) represents the host H k The set of abnormal nodes in .

[0019] Furthermore, in step 2), the detailed steps of detecting abnormal behavior between hosts are as follows:

[0020] 2-1) Construction of Inter-host Interaction Sequence Graph: For all hosts in the target network, network traffic capture tools are used to collect log data of network interactions between hosts during normal operation; at each discrete time point t, the inter-host interaction graph IRG t The nodes are hosts, and the edges are the interactions between different hosts between time points t–1 and t; then the host interaction graphs at consecutive time points can be organized into a sequence of host interaction graphs IRGS= <IRG1,IRG2,…,IRG T >.

[0021] 2-2) Training set construction: Use a sliding window with a window size of w and a step size of 1 to segment the historical sequence of the host interaction graph to obtain a large number of training samples to form a training set SS. Each training sample S in SS t =(D t ,L t ). Among them, D t= <IRG t-w ,IRG t-w+1 ,…,IRG t-1 > for S t The data part, L t =IRG t For S t The label part.

[0022] 2-3) Host-to-host interaction graph prediction model training: Based on the training set SS, a prediction model is trained to predict the next host-to-host interaction graph based on w consecutive host-to-host interaction graphs; assuming that the input sample is S t , the structure of the prediction model is divided into the following 4 layers:

[0023] Input layer: Since the node sets of the interaction graphs between different hosts are the same, only the adjacency matrix of the edge set of the interaction graph between hosts is used as input, that is, the input is <IRA t-w ,IRA t-w+1 ,…,IRA t-1 >, of which IRA k For IRG k The adjacency matrix of the edge set .

[0024] Convolutional layer: Each IRA k Input a convolutional neural network to generate a feature matrix CM k .

[0025] Circular layer: continuous t feature matrices <CM t-w ,CM t-w+1 ,…,CM t-1 >Input an LSTM and generate a feature matrix RM.

[0026] Output layer: Input RM into a fully connected neural network to generate the adjacency matrix pIRA of the predicted time point t t .

[0027] 2-4) Host-to-host anomaly detection: First, according to step 2-1), generate the w host-to-host interaction graph D before the current time point t t = <IRG t-w ,IRG t-w+1 ,…,IRG t-1 > Then, D t Input the prediction model trained in step 2-3) to predict the adjacency matrix pIRA at time point t t Finally, pIRA t The true adjacency matrix IRA at time point t t For comparison, if pIRA t [i][j]=0, ​​and IRA t[i][j]=1, represents the model prediction host H i and H j There should be no interaction between them at time point t, but in fact there is interaction between them, then it is considered that host H i and H j The interaction between at time point t is abnormal.

[0028] Furthermore, in step 3), the detailed steps of cross-host complex network attack detection are as follows:

[0029] 3-1) Construction of cross-host anomaly correlation graph: Given a time point t, a host data collection time span w, and a host set HS in the target network = {H1, H2, ..., H M The steps for constructing a cross-host anomaly correlation graph are as follows:

[0030] 3-1-1) According to step 1-1), the system log data of each host in HS between time point t–w and t is collected, and each host H k Constructing a real-time intra-host association graph (rIAG) k .

[0031] 3-1-2) Based on each host H k Real-time intra-host association map rIAG k Detect rIAG according to steps (1-5) k The abnormal nodes in the , and according to steps 1-6) for each host H k Perform abnormal scoring.

[0032] 3-1-3) According to step 2-1), the host interaction graph between time points t–w and t is collected to form the host interaction graph sequence D t = <IRG t-w ,IRG t-w+1 ,…,IRG t-1 >.

[0033] 3-1-4) According to step 2-4), detect the abnormal interaction between hosts at time point t.

[0034] 3-1-5) Construct a cross-host anomaly correlation graph CG; where each node p k Represents a host H k ; If the host H i and H j The interaction between nodes at time point t is abnormal, then node p i and p j There is an edge between them.

[0035] 3-2) Anomaly score propagation: The PageRank algorithm is used to iteratively update the weight of each node in the CG. The steps are as follows:

[0036] 3-2-1) Set each node p in CG k The initial weight PR(p k ) is H k The anomaly score s k .

[0037] 3-2-2) For each node p in CG k , update its weight according to formula (3). Where d is the damping coefficient, N CG is the number of nodes in CG, I(p k ) is the node p k The set of nodes corresponding to all incoming edges, L(p i ) is the node p i The out-degree.

[0038] 3-2-3) If the weight change of all nodes after this iteration is less than the specified threshold, or the number of iterations reaches the specified upper limit, the iteration is stopped, otherwise jump to step 3-2-2) and start the iteration again.

[0039] 3-3) Attacked host detection: The hosts represented by the nodes in the CG with weights higher than the specified threshold are identified as attacked hosts, and a pair of attacked hosts connected by an edge are identified as lateral movement of the attacker.

[0040] Compared with the prior art, the advantages of the present invention are:

[0041] (1) Through cross-host joint network attack detection, malicious operation events within the host and lateral movement events between hosts can be verified with each other, effectively reducing the false alarm rate;

[0042] (2) It uses self-supervised deep learning technology without the need for any actual network attack training samples. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] FIG1 is a flow chart of the method of the present invention;

[0044] FIG2 is a diagram illustrating an example of initial feature extraction of nodes in a host association graph according to the present invention;

[0045] FIG3 is a diagram illustrating an example of a sequence of interactions between hosts according to the present invention;

[0046] FIG4 is a network structure diagram of the host-to-host interaction graph prediction model of the present invention;

[0047] FIG5 is a diagram of benign associations within a host according to embodiment 1 of the present invention;

[0048] FIG6 is a sequence diagram of an interaction diagram between hosts according to Embodiment 1 of the present invention;

[0049] FIG7 is a real-time detection input diagram of Example 1 of the present invention;

[0050] FIG8 is a cross-host exception association diagram according to embodiment 1 of the present invention. DETAILED DESCRIPTION

[0051] The present invention will be further described below with reference to the accompanying drawings.

[0052] Referring to Figure 1, a complex network attack detection method based on cross-host abnormal behavior identification includes the following steps:

[0053] 1) Detection of abnormal behavior within the host: First, the host kernel log data is collected to build the host association graph. Then, a graph convolutional network is used to extract features. Finally, an autoencoder is used to detect abnormal nodes in the host association graph.

[0054] The detailed steps for detecting abnormal behavior within a host are as follows:

[0055] 1-1) Construction of benign association graph within the host: For each host H in the target network k , use the operating system kernel log collection tool (such as ETW of Windows system, Auditd of Linux system) to collect the system log data during the normal operation of the host, and organize it into a correlation graph nIAG k (called normal host association map); among them, nIAG k The nodes are system entities (such as processes and files), and the edges are interaction events between system entities (such as a process reading a file).

[0056] 1-2) Node initial feature extraction: For nIAG k Each node v in i , the initial eigenvector is x i =[a i1 ,a i2 ,…,a iN ]; where a ij v i In nIAG k 2 shows an embodiment. Assuming that there are 8 types of edges in total and there are 6 edges connecting the central node v0 with its one-hop neighbor nodes (the numbers on the edges are type numbers), the initial eigenvector of v0 is [2, 1, 1, 1, 0, 0, 0, 1].

[0057] 1-3) Node semantic feature extraction: Graph convolutional neural network is used to extract nIAG k Process and update nIAG k The feature vector of each node is obtained byi The semantic feature vector y i .

[0058] 1-4) Autoencoder training: First, collect nIAGs from all hosts k The semantic feature vectors of all “process” nodes in ; then, these semantic feature vectors are input into an automatic encoder for training; the automatic encoder uses two multi-layer perceptrons as encoder and decoder respectively, and the encoder converts the input semantic feature vector y i Encoded into a low-dimensional latent vector, the decoder decodes the latent vector into a reconstructed vector z with the same dimension as the input semantic feature vector i ; The goal of training is to make the input semantic feature vector y i and the output reconstruction vector z i minimize the differences.

[0059] 1-5) Host anomaly detection: First, for each host H in the target network k , collect real-time system log data and build the association graph rIAG k (called real-time host association map); then, extract rIAG based on the method of steps 1-2) and 1-3) k The semantic feature vector of each node in rIAG k Each "process" node v in i The semantic feature vector y i Input the trained autoencoder in steps 1-4) to get the output reconstruction vector z i ; if y i With z i The difference between is greater than the specified threshold, then it is considered that v i It is an abnormal node.

[0060] 1-6) Abnormal scoring within the host: First, calculate each abnormal node v according to formula (1) i The anomaly score of host H is then calculated according to formula (2). k The anomaly score of k ) represents the host H k The set of abnormal nodes in .

[0061] 2) Detection of abnormal behavior between hosts: First, network traffic log data is used to construct an interaction graph between hosts. Then, a prediction model is trained based on the sequence of the interaction graph between hosts. Finally, abnormal edges in the interaction graph between hosts are detected based on the predicted differences.

[0062] The detailed steps for detecting abnormal behavior between hosts are as follows:

[0063] 2-1) Construction of Inter-host Interaction Sequence Graph: For all hosts in the target network, network traffic capture tools are used to collect log data of network interactions between hosts during normal operation; at each discrete time point t, the inter-host interaction graph IRG t The nodes are hosts, and the edges are the interactions between different hosts between time points t–1 and t. Then the host interaction graphs at consecutive time points can be organized into a sequence of host interaction graphs IRGS= <IRG1,IRG2,…,IRG T Figure 3 shows an example: at time t1, user A's host accesses the domain controller host for authentication; at time t2, user A's host accesses the file server host. As can be seen, the node sets of the interaction graph between hosts at different time points are the same, but the edge sets are different.

[0064] 2-2) Training set construction: Use a sliding window with a window size of w and a step size of 1 to segment the historical sequence of the host interaction graph to obtain a large number of training samples to form a training set SS. Each training sample S in SS t =(D t ,L t ). Among them, D t = <IRG t-w ,IRG t-w+1 ,…,IRG t-1 > for S t The data part, L t =IRG t For S t The label part.

[0065] 2-3) Host-to-host interaction graph prediction model training: A prediction model is trained based on the training set SS to predict the next host-to-host interaction graph based on w consecutive host-to-host interaction graphs.

[0066] Assume that the input sample is S t , the structure of the prediction model is shown in Figure 4, which is divided into the following four layers:

[0067] Input layer: Since the node sets of the interaction graphs between different hosts are the same, only the adjacency matrix of the edge set of the interaction graph between hosts is used as input, that is, the input is <IRA t-w ,IRA t-w+1 ,…,IRA t-1 >, of which IRA k For IRG k The adjacency matrix of the edge set .

[0068] Convolutional layer: Each IRA k Input a convolutional neural network to generate a feature matrix CM k .

[0069] Circular layer: continuous t feature matrices <CM t-w ,CM t-w+1 ,…,CM t-1 >Input an LSTM and generate a feature matrix RM.

[0070] Output layer: Input RM into a fully connected neural network to generate the adjacency matrix pIRA of the predicted time point t t .

[0071] 2-4) Host-to-host anomaly detection: First, according to step 2-1), generate the w host-to-host interaction graph D before the current time point t t = <IRG t-w ,IRG t-w+1 ,…,IRG t-1 >. Then, D t Input the prediction model trained in step 2-3) to predict the adjacency matrix pIRA at time point t t Finally, pIRA t The true adjacency matrix IRA at time point t t For comparison, if pIRA t [i][j]=0, ​​and IRA t [i][j]=1, represents the model prediction host H i and H j There should be no interaction between them at time point t, but in fact there is interaction between them, then it is considered that host H i and H j The interaction between at time point t is abnormal.

[0072] 3) Cross-host complex network attack detection: First, a cross-host anomaly association graph is constructed based on the intra-host and inter-host anomaly detection results. Then, the PageRank algorithm is used to propagate the anomaly scores. Finally, the attacked host is identified based on the anomaly scores.

[0073] The detailed steps for detecting cross-host complex network attacks are as follows:

[0074] 3-1) Construction of cross-host anomaly correlation graph: Given a time point t, a host data collection time span w, and a host set HS in the target network = {H1, H2, ..., H M The steps for constructing a cross-host anomaly correlation graph are as follows:

[0075] 3-1-1) According to step 1-1), the system log data of each host in HS between time point t–w and t is collected, and each host H k Constructing a real-time intra-host association graph (rIAG) k .

[0076] 3-1-2) Based on each host H k Real-time intra-host association map rIAG k Detect rIAG according to steps 1-5) k The abnormal nodes in the , and according to steps 1-6) for each host H k Abnormal scoring (H k The anomaly score is denoted as s k ).

[0077] 3-1-3) According to step 2-1), the host interaction graph between time points t–w and t is collected to form the host interaction graph sequence D t = <IRG t-w ,IRG t-w+1 ,…,IRG t-1 >.

[0078] 3-1-4) According to step 2-4), detect the abnormal interaction between hosts at time point t.

[0079] 3-1-5) Construct a cross-host anomaly correlation graph CG. In which, each node p k Represents a host H k ; If the host H i and H j The interaction between nodes at time point t is abnormal, then node p i and p j There is an edge between them.

[0080] 3-2) Anomaly score propagation: The PageRank algorithm is used to iteratively update the weight of each node in the CG. The steps are as follows:

[0081] 3-2-1) Set each node p in CG k The initial weight PR(p k ) is H k The anomaly score s k .

[0082] 3-2-2) For each node p in CG k , update its weight according to formula (3). Where d is the damping coefficient, N CG is the number of nodes in CG, I(p k ) is the node p k The set of nodes corresponding to all incoming edges, L(p i ) is the node p i The out-degree.

[0083] 3-2-3) If the weight change of all nodes after this iteration is less than the specified threshold, or the number of iterations reaches the specified upper limit, the iteration is stopped, otherwise jump to step 3-2-2) and start the iteration again.

[0084] 3-3) Attacked host detection: The hosts represented by the nodes in the CG with weights higher than the specified threshold are identified as attacked hosts, and a pair of attacked hosts connected by an edge are identified as lateral movement of the attacker.

[0085] Example 1:

[0086] Given a small network system consisting of multiple hosts and a domain controller, we installed a kernel log collection tool on each host and a network traffic capture tool on the domain controller. Based on this, this implementation case includes two parts: model training and real-time detection. Model training includes training models for detecting abnormal behavior within hosts and between hosts.

[0087] 1. Training of abnormal behavior detection model within the host

[0088] (1) Use the system kernel log collection tool to collect the log data of each host during normal operation, and build a benign correlation graph within the host according to step 1-1). Figure 5 shows an example of a benign correlation graph within the host.

[0089] (2) According to step 1-2), the initial features of the nodes in the benign association graph within the host are extracted. Assuming that the benign association graph within the host has a total of 7 types of edges, namely [read, open, write, accept, create, execute, send], the initial features of the winword.exe node are [3, 1, 2, 0, 0, 0, 0]; then, according to step 1-3), the feature vectors of all nodes are updated; finally, according to step 1-4), the feature vectors of all nodes are input to train an automatic encoder M1.

[0090] 2. Training of abnormal behavior detection model between hosts

[0091] (1) Use a network traffic capture tool to collect interaction data between hosts in the network system, and construct a host interaction graph sequence according to step 2-1). Figure 6 shows an example of a host interaction graph sequence (each edge in the figure represents an interaction between hosts during that time period).

[0092] (2) Construct a training set according to step 2-2), and then train a host interaction graph prediction model M2 according to step 2-3).

[0093] 3. Real-time detection

[0094] (1) Given the current time t, the intra-host association graph of each host within the time range [tw, t) and the inter-host interaction graph sequence of the network system are collected as the input of real-time detection; an example of real-time detection input is given as shown in Figure 7.

[0095] (2) Using model M1, detect intra-host anomalies according to steps 1-5) and calculate anomaly scores according to steps 1-6). Using model M2, detect inter-host anomalies according to steps 2-3). Assuming the detected anomaly interactions are e4, e5, and e6, and the anomaly scores of hosts 3, 4, and 5 are 98, 6, and 13, respectively, a cross-host anomaly association graph is constructed according to steps 3-1-5) (as shown in Figure 8). Then, according to step 3-2), the final anomaly scores of hosts 3, 4, and 5 are calculated. Assuming they are 102, 18, and 21, respectively, host 3 is ultimately determined to be the attacked host.

Claims

1. A complex network attack detection method based on cross-host abnormal behavior identification, characterized in that: The steps include: 1) Detection of abnormal behavior within the host: First, collect the host kernel log data to build the host association graph, then use the graph convolutional network to extract features, and finally use the automatic encoder to detect abnormal nodes in the host association graph; 2) Detection of abnormal behavior between hosts: First, network traffic log data is used to build an interaction graph between hosts. Then, a prediction model is trained based on the sequence of the interaction graph between hosts. Finally, abnormal edges in the interaction graph between hosts are detected based on the predicted differences. 3) Cross-host network attack detection: First, a cross-host anomaly association graph is constructed based on the intra-host and inter-host anomaly detection results. Then, the PageRank algorithm is used to propagate the anomaly scores. Finally, the attacked host is confirmed based on the anomaly scores.

2. According to claim 1, a complex network attack detection method based on cross-host abnormal behavior identification is characterized in that: In step 1), the specific steps of abnormal behavior detection in the host are as follows: 1-1) Construction of a benign association graph within the host: Collect system log data during the normal operation of the host and construct an association graph nIAG k ; Among them, the association map nIAG k The nodes are system entities, and the edges are interaction events between system entities; 1-2) Node initial feature extraction: For the association graph nIAG k For each node in, the initial eigenvector is x i =[a i1 ,a i2 ,…,a iN ]; where a ij For nodes in the association graph nIAG k The number of edges of the jth type in the set of edges connected to its one-hop neighbor nodes; 1-3) Node semantic feature extraction: Using graph convolutional neural network to extract nIAG k Process and update the association graph nIAG k The feature vector of each node, obtains the semantic feature vector of each node; 1-4) Automatic encoder training: Collect association graphs nIAG of all hosts k The semantic feature vectors of all process nodes in the , the above semantic feature vectors are input into the automatic encoder for training, and the reconstruction vector is output; 1-5) Host anomaly detection: Collect real-time system log data to build an association graph rIAG k ; Extract association graph rIAG k The semantic feature vector y of each process node in i , and input it into the trained autoencoder in step 1-4) to obtain the output reconstruction vector z i ; When the semantic feature vector y i and the reconstruction vector z i If the difference is greater than the specified threshold, the process node is an abnormal node; 1-6) Host internal abnormality scoring: Calculate each abnormal node v according to formula (1) i The anomaly score of host H is calculated according to formula (2). k The anomaly score of k ) represents the host H k The set of abnormal nodes in 3. According to claim 2, a complex network attack detection method based on cross-host abnormal behavior identification is characterized in that: In step 2), the specific steps of abnormal behavior detection between hosts are as follows: 2-1) Construction of Inter-host Interaction Sequence Diagram: Collect log data of network interaction between hosts to construct Inter-host Interaction Diagram IRG t ; At each discrete time point t, the host interaction graph IRG t The nodes are hosts, and the edges are the interactions between different hosts between time points t–1 and t; then the host interaction graphs at consecutive time points are organized into a sequence of host interaction graphs IRGS = <IRG1,IRG2,…,IRG T > 2-2) Training set construction: A sliding window with a window size of w and a step size of 1 is used to segment the sequence of the host interaction graph to form a training set SS. Each training sample S in SS t =(D t ,L t ), where D t For S t The data part, L t For S t The label part; 2-3) Host-to-host interaction graph prediction model training: A prediction model is trained based on the training set SS to predict the next host-to-host interaction graph based on w consecutive host-to-host interaction graphs; 2-4) Host anomaly detection: Generate the interaction graph D of w hosts before time point t according to step 2-1) t = <IRG t-w ,IRG t-w+1 ,…,IRG t-1 > D t Input the prediction model trained in step 2-3) to predict the adjacency matrix pIRA at time point t t ; The adjacency matrix pIRA t The real adjacency matrix IRA at time point t t Compare and judge the host H i and host H j Whether the interaction between the two at time point t is abnormal.

4. According to claim 3, a complex network attack detection method based on cross-host abnormal behavior identification is characterized in that: In step 3), the specific steps of cross-host complex network attack detection are as follows: 3-1) Construction of cross-host anomaly association graph: Given the time point t, the time span w of data collection in the host, and the host set HS in the target network, a cross-host anomaly association graph CG is constructed; 3-2) Anomaly score propagation: The PageRank algorithm is used to iteratively update the weight of each node in the cross-host anomaly association graph CG; 3-3) Attacked host detection: The hosts represented by the nodes with weights higher than the specified threshold in the cross-host anomaly association graph CG are identified as attacked hosts, and a pair of attacked hosts connected by edges are identified as lateral movement of the attacker.

5. According to claim 3, a complex network attack detection method based on cross-host abnormal behavior identification is characterized in that: The structure of the prediction model in step 2-3) includes the following 4 layers: Input layer: Adjacency matrix IRA of the edge set of the host interaction graph k As input; Convolutional layer: Each IRA k Input a convolutional neural network to generate a feature matrix CM k ; Circular layer: Transform the continuous t feature matrices CM k Input an LSTM to generate a feature matrix RM; Output layer: Input RM into a fully connected neural network to generate the adjacency matrix pIRA of the predicted time point t t .

6. A complex network attack detection method based on cross-host abnormal behavior identification according to claim 4, characterized in that: The steps for constructing the cross-host anomaly association graph in step 3-1) are as follows: 3-1-1) Based on the system log data of each host between time point t–w and t, construct the association graph rIAG k ; 3-1-2) Based on the association graph rIAG in step 3-1-1) k , according to steps 1-5) detect the association map rIAG k The abnormal nodes in the cluster are found, and an abnormal score is given to each host according to steps 1-6), and the abnormal score is recorded as s k ; 3-1-3) Collect the host interaction graph between time points t–w and t to form a host interaction graph sequence D t = <IRG t-w ,IRG t-w+1 ,…,IRG t-1 > 3-1-4) According to step 2-4), detecting abnormal interactions between hosts at time point t; 3-1-5) Build a cross-host exception correlation graph CG.

7. A complex network attack detection method based on cross-host abnormal behavior identification according to claim 4, characterized in that: Step 3-2) The specific steps are as follows: 3-2-1) Set each node p in the cross-host abnormal correlation graph CG k The initial weight PR(p k ) is the host H k The anomaly score s k ; 3-2-2) For each node p in the cross-host anomaly association graph CG k , update its weight according to formula (3); where d is the damping coefficient, N CG is the number of nodes in CG, I(p k ) is the node p k The set of nodes corresponding to all incoming edges, L(p i ) is the node p i The out-degree of 3-2-3) When the weight change of all nodes after this iteration is less than the specified threshold, or the number of iterations reaches the specified upper limit, the iteration is stopped, otherwise jump to step 3-2-2) and restart the iteration.

Citation Information

Patent Citations

  • APT attack scene restoration detection method and system based on multi-source log correlation analysis

    CN112333195A

  • APT network attack detection method based on meta-path learning and subgraph sampling

    CN112528275A

  • Unsupervised APT attack detection method and system based on abnormal node identification

    CN115270954A

  • Complex network attack detection method based on cross-host abnormal behavior recognition

    CN116155626A

  • Systems and methods for global cyber-attack or fault detection model

    US20220357729A1

Cited By

  • APT anomaly detection method based on lifelong learning and suspicious semantic transfer

    CN119066347A

  • A method for APT anomaly detection based on lifelong learning and suspicious semantic transfer

    CN119066347B

  • Host intrusion detection confrontation purification method and device based on link confrontation recognition

    CN119402300A

  • Integrated anomaly prediction and detection algorithm and system based on graph neural network

    CN119740174A

  • Streaming traceability graph anomaly detection method and system based on iterative prediction correction

    CN119945799A