-
2024-06-18
18/545,960
2023-12-19
US 12,015,628 B1
2024-06-18
-
-
Michael R Vaughan
JCIPRNET
2043-12-19
The present disclosure discloses a complex network attack detection method based on cross-host abnormal behavior recognition, and the method includes the following steps: 1) firstly collecting kernel log data of a host to construct an intra-host association graph, then employing a graph convolution network (GCN) to extract features, and finally using an autoencoder to detect abnormal nodes in the intra-host association graph; 2) firstly constructing an inter-host interaction graph by using network flow log data, then training a prediction model based on a sequence of the inter-host interaction graph, and finally detecting abnormal edges in the inter-host interaction graph according to prediction differences; and 3) firstly constructing a cross-host exception association graph according to intra-host and inter-host exception detection results, then spreading exception scores by employing a PageRank algorithm, and finally confirming an attacked host based on the exception scores.
Get notified when new applications in this technology area are published.
H04L63/1425 » CPC main
Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic Traffic logging, e.g. anomaly detection
H04L63/1416 » CPC further
Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic Event detection, e.g. attack signature detection
H04L9/40 IPC
arrangements for secret or secure communications Cryptographic mechanisms or cryptographic ; Network security protocols Network security protocols
This application is a continuation of international PCT application serial no. PCT/CN2023/099376, filed on Jun. 9, 2023, which claims priority benefit of China patent application No. 202310423444.5 filed on Apr. 20, 2023. The entirety of each of the above-mentioned patent applications is hereby incorporated by reference herein and made a part of this specification.
The present disclosure relates to the technical field of network security and deep learning, and particularly relates to a complex network attack detection method based on cross-host abnormal behavior recognition.
Complex network attacks are becoming increasingly prominent in an era of modern networks. The complex network attacks are persistent network attacks made through various means. An attacker first uses various techniques to penetrate a host in a target network, and then achieves lateral movement from the host to another host for internal reconnaissance and data theft. These features of the complex network attacks make it difficult to deal with them by use of traditional single-point network attack methods.
According to recent studies, a provenance graph is a most effective tool for detecting complex network attacks. The provenance graph is an association graph constructed based on kernel log data of an operating system, its nodes represent system entities (such as processes and files), and its edges represent system events (such as process reading files). The provenance graph is capable to capture control flow and data flow between the system entities well, and better reflects the contextual correlation and causal relationship between the system events, so that a better effect is achieved in detecting long-term, multi-step complex network attacks. In a further aspect, with rapid development of deep learning, a deep learning technology, particularly a graph neural network technology capable of effectively processing provenance graphs, is gradually applied to detecting complex network attacks.
However, there still exist deficiencies in the existing complex network attack detection technology that integrates provenance graphs and deep learning: first, the prior art still focuses on detecting single attack events, and cannot perform correlation analysis on events of attacks on a plurality of hosts. Second, due to lack of correlation analysis of attack events in the prior art, the false alarm rate is very high. Third, the prior art relies on a large number of labeled training samples.
To overcome defects in the prior art, the present disclosure provides a complex network attack detection method based on cross-host abnormal behavior recognition.
The technical solution of the present disclosure is as follows:
Further, in the step 1), detailed steps of the intra-host abnormal behavior detection are as follows:
s β‘ ( v i ) = ο y i - z i ο F 2 ( 1 ) s β‘ ( H k ) = max v i β B β‘ ( H k ) s β‘ ( v i ) ( 2 )
Further, in the step 2), detailed steps of the inter-host abnormal behavior detection are as follows:
Further, in the step 3), detailed steps of cross-host complex network attack detection are as follows:
PR β‘ ( p k ) = 1 - d N C β’ G + d ( β p i β I β‘ ( p k ) PR β‘ ( p i ) L β‘ ( p i ) ) ( 3 )
FIG. 1 is a flow chart of a method of the present disclosure.
FIG. 2 is a diagram of an example in which an initial feature of a node in an intra-host association graph of the present disclosure is extracted.
FIG. 3 is an example diagram of an inter-host interaction graph sequence of the present disclosure.
FIG. 4 is a network structure diagram of an inter-host interaction graph prediction model of the present disclosure.
FIG. 5 is a benign intra-host association graph of Embodiment 1 of the present disclosure.
FIG. 6 is a diagram of an inter-host interaction graph sequence of Embodiment 1 of the present disclosure.
FIG. 7 is a real-time detection input diagram of Embodiment 1 of the present disclosure.
FIG. 8 is a cross-host anomaly association diagram of Embodiment 1 of the present disclosure.
The present disclosure will be further described below with reference to the accompanying drawings.
With reference to FIG. 1, a complex network attack detection method based on cross-host abnormal behavior recognition, includes the following steps:
s β‘ ( v i ) = ο y i - z i ο F 2 ( 1 ) s β‘ ( H k ) = max v i β B β‘ ( H k ) s β‘ ( v i ) ( 2 )
PR β‘ ( p k ) = 1 - d N C β’ G + d ( β p i β I β‘ ( p k ) PR β‘ ( p i ) L β‘ ( p i ) ) ( 3 )
A given small network system includes a plurality of hosts and a domain controller, where a system kernel log collection tool is installed in each host, and a network traffic capture tool is installed in the domain controller. On this basis, this embodiment includes two parts, i.e., model training and real-time detection, where the model training further includes two parts: intra-host abnormal behavior detection model training and inter-host abnormal behavior detection model training.
1. Intra-Host Abnormal Behavior Detection Model Training
Compared with the prior art, the present disclosure has the following advantages:
1. A complex network attack detection method based on cross-host abnormal behavior recognition, comprising the following steps:
1) Intra-host abnormal behavior detection: firstly collecting kernel log data of a host to construct an intra-host association graph, then employing a graph convolution network (GCN) to extract features, and finally using an autoencoder to detect abnormal nodes in the intra-host association graph, wherein the step 1) further comprises:
1-1) constructing a benign intra-host association graph: collecting system log data generated during normal operation of the host, and constructing an association graph nIAGk, where nodes of the association graph nIAGk represent system entities, and edges thereof represent interaction events that occur between the system entities;
1-2) extracting initial features of the nodes: an initial feature vector xi of each node vi in nIAGk is [ai1, ai2, . . . , aiN], where aij is the number of edges of a jth type among a set of edges formed by connecting the node vi to its one-hop neighbor nodes in the association graph nIAGk;
1-3) extracting semantic features of the nodes: using a graph convolutional neural network to process the association graph nIAGk, and updating the feature vector of each node vi in the association graph nIAGk, to obtain a semantic feature vector of each node;
1-4) autoencoder training: collecting semantic feature vectors of all βprocessβ nodes in the association graph nIAGk of all hosts, and inputting the semantic feature vectors into an autoencoder for training, to output a reconstruction vector;
1-5) intra-host anomaly detection: collecting real-time system log data to construct an association graph rIAGk; extracting a semantic feature vector yi of each process node in the association graph rIAGk, and inputting the vector yi into the autoencoder trained in the step 1-4) to obtain the outputted reconstruction vector zi; when a difference between the semantic feature vector vi and the reconstruction vector y is greater than a specified threshold, the process node is deemed to be an abnormal node; and
1-6) intra-host anomaly scoring: calculating an anomaly score of each abnormal node vi according to the formula (1), and then calculating the anomaly score of the host Hk according to formula (2), where B(Hk) represents a set of abnormal nodes of the host Hk
s β‘ ( v i ) = ο y i - z i ο F 2 ( 1 ) s β‘ ( H k ) = max v i β B β‘ ( H k ) s β‘ ( v i ) ; ( 2 )
2) Inter-host abnormal behavior detection: firstly constructing an inter-host interaction graph by using network flow log data, then training a prediction model based on a sequence of the inter-host interaction graph, and finally detecting abnormal edges in the inter-host interaction graph according to prediction differences, wherein the step 2) further comprises:
2-1) constructing a sequence of inter-host interaction graphs: collecting log data of inter-host network interactions to construct an inter-host interaction graph IRGt; a node of an inter-host interaction graph IRGt at each discrete time slot t is a host, and an edge represents an interaction between different hosts at the time slots t-1 and t; a sequence of inter-host interaction graphs at continuous time slots can be defined as IRGS=<IRG1, IRG2, . . . , IRGT>;
2-2) constructing a training set: using a sliding window with a window size of w and a step size of 1 to segment a sequence of an inter-host interaction graph to form a training set SS; each training sample St in the SS is defined as (Dt, Lt), where Dt, is a data part of St, and Lt is a label part of St:
2-3) training an inter-host interaction graph prediction model: training a prediction model based on the training set SS, and predicting the next inter-host interaction graph according to w continuous inter-host interaction graphs; and
2-4) inter-host anomaly detection: following the step 2-1) to generate w inter-host interaction graphs Dt=<IRGt-w, IRGt-w+1, IRGt-1> before the current time slot t: inputting Dt into the prediction model trained in the step 2-3) to predict and obtain an adjacent matrix pIRAt at the time slot t; comparing the adjacent matrix pIRAt with a real adjacent matrix IRAt at the time slot t, and determining whether the interaction between the hosts Hi and Hj at the time slot t is abnormal; and
3) Cross-host network attack detection: firstly constructing a cross-host anomaly association graph according to intra-host and inter-host anomaly detection results, then propagating anomaly scores by employing a PageRank algorithm, and finally confirming an attacked host based on the anomaly scores; wherein detailed steps of cross-host complex network attack detection in step 3) are as follows:
3-1) constructing a cross-host anomaly association graph: constructing a cross-host anomaly association graph CG as follows according to a given time slot t, an intra-host data collection time span w, and a set HS of hosts in the target network, wherein a cross-host anomaly association graph is constructed as follows according to the step 3-1):
3-1-1) collecting system log data of each host generated between time slots t-w and t, to construct the association graph rIAGk:
3-1-2) based on the association graph rIAGk in the step 3-1-1), detecting abnormal nodes in the association graph rIAGk according to step 1-5), performing anomaly scoring for each host according to step 1-6), and recording the anomaly score as sk:
3-1-3) collecting the inter-host interaction graphs generated between the time slots t-w and t, and forming a sequence Dt=<IRGt-w, IRGt-w+1, . . . , IRGt-1> of the inter-host interaction graphs:
3-1-4) following step 2-4) to detect any inter-host abnormal interaction at the time slot t; and
3-1-5) constructing a cross-host anomaly association graph CG;
3-2) propagating the anomaly scores: using the PageRank algorithm to iteratively update a weight of each node in the cross-host anomaly association graph CG; wherein detailed steps of the step 3-2) are as follows:
3-2-1) setting an initial weight PR(Pk) of each node pk in the cross-host anomaly association graph CG as an anomaly score sk of the host Hk:
3-2-2) updating the weight of each node pk in the cross-host anomaly association graph CG according to the formula (3); in the formula (3), d is a damping coefficient, NCG is the number of nodes in CG, I(pk) is a set of nodes corresponding to all incoming edges of the node pk, and L(pi) is an outgoing degree of the node pi; and
PR β‘ ( p k ) = 1 - d N C β’ G + d ( β p i β I β‘ ( p k ) PR β‘ ( p i ) L β‘ ( p i ) ) ( 3 )
3-2-3) when weight variation of any node after this iteration is less than a specified threshold, or the number of iterations reaches a specified upper limit, stopping the iteration, otherwise jumping to the step 3-2-2) to restart the iteration; and
3-3) detecting an attacked host: confirming a host represented by a node in the cross-host anomaly association graph CG whose weight is higher than the specified threshold as the attacked host, and confirming a pair of attacked hosts connected by an edge as lateral movement targets of an attacker.
2. The complex network attack detection method based on cross-host abnormal behavior recognition according to claim 1, wherein a structure of the prediction model in the step 2-3) comprises the following four layers:
an input layer: an adjacent matrix IRAk of an edge set of an inter-host interaction graph is inputted;
a convolutional layer: each IRAk is inputted into a convolutional neural network to generate a feature matrix CMk;
a circulation layer: t continuous feature matrices CMk are inputted into an LSTM to generate a feature matrix RM; and
an output layer: RM is inputted into a fully connected neural network to generate an adjacent matrix pIRAt at a predicted time slot t.