Host intrusion detection method and system based on attribute heterogeneous graph

By constructing an attribute heterogeneous graph and combining it with the Deep SVDD model, it solves the problem of relying on expert experience and a large number of labeled samples in the existing technology, achieves efficient detection and accurate identification of unknown attack patterns, and improves the accuracy and accuracy of host intrusion detection. Accuracy.

CN118862075APending Publication Date: 2024-10-29中孚安全技术有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411032374.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing host intrusion detection methods based on traceability graphs rely on expert experience and are difficult to capture unknown attack patterns, and require a large number of labeled samples for training. However, in real-life scenarios, abnormal behavior samples are scarce and detection accuracy is low.

Method used

Adopting a method based on attribute heterogeneous graphs, by constructing attribute heterogeneous graphs of process and file operation logs, using pre-trained neural network models to extract features, and using the Deep SVDD model for anomaly detection, relying only on normal behavior samples for training, combined with Global and local target loss functions improve detection accuracy.

Benefits of technology

It improves the accuracy and precision of host intrusion detection, avoids reliance on abnormal behavior samples, detects unknown attack patterns through multi-dimensional information mining and unsupervised learning, and reduces the need for manual threshold setting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862075A_ABST
    Figure CN118862075A_ABST
Patent Text Reader

Abstract

The invention provides a host intrusion detection method and system based on an attribute heterogeneous graph, and belongs to the technical field of intrusion detection, and the method comprises the steps: carrying out the construction of a log sequence based on an obtained process log and a file operation log of a to-be-detected host; based on the log sequence, processes and files in the log sequence serve as nodes, the relation between the process nodes and the file nodes or the relation between the process nodes serve as edges, the attribute heterogeneous graph is constructed, the process nodes are associated with command line attributes, and the file nodes are associated with file path attributes; based on the attribute heterogeneous graph, utilizing a pre-trained heterogeneous graph feature extraction model based on a neural network to obtain embedded vector representation of the attribute heterogeneous graph and embedded vector representation of nodes; and based on the embedded vector representation of the attribute heterogeneous graph and the embedded vector representation of the nodes, utilizing a pre-trained deep learning-based anomaly detection model to obtain a host intrusion detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intrusion detection, and in particular relates to a host intrusion detection method and system based on attribute heterogeneous graph. Background Art

[0002] Host intrusion detection mainly identifies possible abnormal behaviors or potential threats by monitoring and analyzing various operating data of the host system, such as network traffic, log files, etc.

[0003] Traditional host intrusion detection methods usually use system calls or logs as data sources to analyze and identify host intrusions. This type of method first preprocesses system calls or logs into log sequences, then uses n-gram, TF-IDF and other technologies to extract features from log sequences, and finally uses traditional machine learning (support vector machine, k nearest neighbor, decision tree, etc.) or deep learning (convolutional neural network, long short-term memory neural network, autoencoder, etc.) to achieve anomaly detection; in recent years, host anomaly detection based on traceability graphs has received widespread attention because traceability data can fully describe the complex dependencies between host system data objects (processes, files, sockets, etc.) and provide a complete structured view of events occurring on the system or network. This type of method uses the traceability graph as the model input, uses graph neural network, graph convolution network, graph attention network and other technologies to extract graph-level or node-level features from the traceability graph, and uses these features to achieve graph-level or node-level anomaly detection.

[0004] However, methods based on system calls or log data are easily bypassed by attackers due to defects in their data sources, resulting in low detection accuracy. Provenance graphs have powerful semantic expression and the ability to associate attack history, so methods based on provenance graphs usually have higher detection accuracy. However, most existing provenance graph-based methods rely on expert experience to formulate scoring functions or rules, making it difficult to capture unknown attack patterns and malicious behaviors. In addition, in order to obtain an effective detection model, such methods need to be trained based on a large number of labeled samples. In real scenarios, the number of labeled abnormal behavior samples is scarce, while normal behavior samples are sufficient. Summary of the invention

[0005] The embodiments of the present invention provide a host intrusion detection method and system based on attribute heterogeneous graphs to solve the problems that the host intrusion detection methods based on traceability graphs in the prior art mostly rely on expert experience to formulate scoring functions or rules, and are difficult to capture unknown attack patterns and malicious behaviors; and in order to obtain an effective detection model, such methods need to be trained based on a large number of labeled samples, while in real scenarios, there is a shortage of labeled abnormal behavior samples.

[0006] In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0007] An embodiment of the present invention provides a host intrusion detection method based on an attribute heterogeneous graph, comprising:

[0008] Based on the obtained host process logs and file operation logs, log sequence is constructed;

[0009] Based on the log sequence, an attribute heterogeneous graph is constructed by taking processes and files in the log sequence as nodes and the relationship between process nodes and file nodes or the relationship between process nodes as edges, wherein the process node is associated with a command line attribute and the file node is associated with a file path attribute;

[0010] Based on the attribute heterogeneous graph, using a pre-trained neural network-based heterogeneous graph feature extraction model, an embedded vector representation of the attribute heterogeneous graph and an embedded vector representation of the node are obtained;

[0011] Based on the embedded vector representation of attribute heterogeneous graphs and the embedded vector representation of nodes, the host intrusion detection results are obtained using the pre-trained deep learning-based anomaly detection model.

[0012] Furthermore, the attribute heterogeneous graph is a directed graph, in which the edges between nodes all start from the process node, and the attributes of the nodes are all represented by embedding the command line or file path to obtain the corresponding embedding vector.

[0013] Optionally, the neural network-based heterogeneous graph feature extraction model specifically adopts a multi-layer stacked heterogeneous graph neural network, wherein the heterogeneous graph feature extraction model takes an attribute heterogeneous graph as input and outputs an embedded vector representation of the heterogeneous graph and an embedded vector representation of the node.

[0014] Furthermore, the embedding vector of the heterogeneous graph is represented as the global information of the obtained heterogeneous graph, and the node embedding vector is represented as the k-order local subgraph information of the obtained node, wherein k is the number of layers of the heterogeneous graph.

[0015] Optionally, the deep learning-based anomaly detection model specifically adopts a Deep SVDD model, and the training of the DeepSVDD model includes optimization of a global objective loss function and a local objective loss function, wherein the global objective loss function aims to minimize the distance of all normal heterogeneous graphs in the hyperspace, and the local objective loss function aims to minimize the distance of all normal nodes in the hyperspace.

[0016] Furthermore, the global objective loss function is specifically expressed as follows:

[0017]

[0018] The local objective loss function is specifically expressed as follows:

[0019]

[0020] Among them, g i represents the embedding vector of the i-th heterogeneous graph, N represents the total number of heterogeneous graphs, c global represents the predefined hyperspace center in the global view, λ represents the hyperparameter, and W global is a global parameter, H ij represents the embedding vector of the jth node on the i-th heterogeneous graph, M represents the number of nodes in the heterogeneous graph, and c local represents the predefined hyperspace center in the local field of view, W local is a local parameter.

[0021] Furthermore, the log sequence is constructed based on the time sequence of the process log and the file operation log.

[0022] Another aspect of the present invention provides a host intrusion detection system based on attribute heterogeneous graph, including:

[0023] A data collection module is used to construct a log sequence based on the acquired host process log and file operation log;

[0024] A heterogeneous graph construction module is used to construct an attribute heterogeneous graph based on the log sequence, using processes and files in the log sequence as nodes, and relationships between process nodes and file nodes or relationships between process nodes as edges, wherein the process nodes are associated with command line attributes, and the file nodes are associated with file path attributes;

[0025] A heterogeneous graph embedding module, which is used to obtain an embedding vector representation of the attribute heterogeneous graph and an embedding vector representation of the node based on the attribute heterogeneous graph by using a pre-trained neural network-based heterogeneous graph feature extraction model;

[0026] The anomaly detection module is used to obtain host intrusion detection results based on the embedded vector representation of attribute heterogeneous graphs and the embedded vector representation of nodes, using a pre-trained deep learning-based anomaly detection model.

[0027] An embodiment of the present invention further provides an electronic device, comprising a processor, wherein the processor is configured to implement the above-mentioned host intrusion detection method based on attribute heterogeneous graph when executing a computer program stored in a memory.

[0028] Finally, an embodiment of the present invention further provides a non-transitory readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the host intrusion detection method based on attribute heterogeneous graph as described above is implemented.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] (1) The scheme described in the present invention provides a host intrusion detection method and system based on attribute heterogeneous graph. The scheme uses process logs and file operation logs in the main trial log as data sources, and uses process logs and file operation logs to construct attribute heterogeneous graphs, so as to fully mine the multi-dimensional information of the data, including node attribute information, graph structure information and edge direction information. In particular, nodes are used to represent processes or files, edges represent processes creating processes or processes operating files, and nodes are associated with node attribute information. In addition, the node attributes are embedded by using the BERT model, which can fully consider the location and context information of the nodes and meet the requirements of the model input, effectively enriching the input features used for host intrusion detection and improving the accuracy of host intrusion detection.

[0031] (2) The solution of the present invention uses a directed heterogeneous graph neural network to learn the representation vector of the heterogeneous graph, which can fully represent the node information, structure information and edge direction information of the heterogeneous graph, thereby enriching the feature input for subsequent host intrusion detection.

[0032] (3) The scheme of the present invention realizes anomaly detection of heterogeneous graphs by using a single-category neural network (i.e., using a Deep SVDD model), which only requires normal behavior samples as training sets, thus avoiding dependence on the number of abnormal behavior samples. At the same time, considering that abnormal behavior data is usually masked by a large amount of normal behavior data, by using and The two objective loss functions comprehensively consider the global and local information of the heterogeneous graph, realize the detection of global and local anomalies, and improve the accuracy of anomaly detection.

[0033] (4) The scheme of the present invention is to control and exist The contribution value on the introduction of the hyperparameter α; and by The anomaly score value is output as the anomaly score value, and then the top k anomaly score values ​​are taken as the anomaly output, avoiding the manual setting of the anomaly threshold.

[0034] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0036] Figure 1 It is a flow chart of a host intrusion detection method based on attribute heterogeneous graph described in an embodiment of the present invention;

[0037] Figure 2 This is a schematic diagram of an attribute heterogeneous graph described in an embodiment of the present invention;

[0038] Figure 3 The present invention is a schematic diagram of the structure of a host intrusion detection system based on an attribute heterogeneous graph according to an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0040] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0041] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0042] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.

[0043] See first Figure 1 , Figure 1 A host intrusion detection method based on an attribute heterogeneous graph is provided in an embodiment of the present invention. The method first obtains a host process log and a host file operation log, then constructs the log data into an attribute heterogeneous graph, then trains on a normal attribute heterogeneous graph by combining a directed heterogeneous graph neural network and a single classification neural network, and finally uses the trained model to complete anomaly detection on a test set. The method includes the following contents:

[0044] Step 1: Based on the obtained host process log and file operation log, construct a log sequence;

[0045] The log sequence is constructed based on the time sequence of the process log and the file operation log. Specifically, the host process log and the file operation log are obtained from the host audit log, and then the fused log data is arranged in time sequence in units of days to obtain the log sequence, S i =[P 1 ,P 2 ,F 1 ,F 2 ,P 1 ,P 3 ,F 3 ,…,P j ,F l ]. Among them, S i represents the i-th log sequence, P j represents the jth process, F l Indicates the lth file.

[0046] Step 2: Based on the log sequence, taking the processes and files in the log sequence as nodes, and the relationship between the process nodes and the file nodes or the relationship between the process nodes as edges, constructing an attribute heterogeneous graph, wherein the process node is associated with a command line attribute, and the file node is associated with a file path attribute;

[0047] In a specific implementation, the attribute heterogeneous graph is a directed graph, wherein the edges between nodes all start from the process node, and the attributes of the nodes are obtained by embedding the command line or file path to obtain the corresponding embedding vector, wherein the embedding representation can use the BERT model to embed the node attributes, and in more embodiments, embedding models such as Word2Vec, Glove, and FastText can also be used;

[0048] Specifically, the construction of the attribute heterogeneous graph is as follows:

[0049] The nodes in the attribute heterogeneous graph represent processes or files, and the edges represent processes creating processes or processes operating files. The starting point of the edges is always from the "process" class node, and then points to another process or file (such as Figure 2 In addition, the command line represents the attribute of the "process" class node, and the file path represents the attribute of the "file" class node. The final attribute heterogeneous graph can be represented as G = {A PP ,A PF ,X P ,X F},in Represent the adjacency matrices of process nodes and file nodes respectively, and Represent the attribute matrices of process nodes and file nodes respectively. Indicates the number of process nodes, Indicates the number of file nodes, d e Represents the dimension of the process node attribute, d f represents the dimension of the file node attribute. In addition, in the adjacency matrix, if It means that process i creates child process j; if This means that process i operates file j.

[0050] The initial value of the attribute of the heterogeneous graph node is text (cmd command or file path name), which needs to be mapped to a vector through an embedding function. Sufficient research has shown that the BERT model can better capture the similarity or dissimilarity based on word position and context. Therefore, this scheme uses the BERT model to extract the semantic information of the heterogeneous graph node attributes and generate a vector representation with a fixed dimension. In this scheme, the dimension of the vector is set to 768, that is, d e and d f Each node's attribute vector is represented by a 1×768 vector

[0051] Step 3: Based on the attribute heterogeneous graph, using a pre-trained neural network-based heterogeneous graph feature extraction model, obtain an embedded vector representation of the attribute heterogeneous graph and an embedded vector representation of the node;

[0052] Step 4: Based on the embedded vector representation of the attribute heterogeneous graph and the embedded vector representation of the node, the host intrusion detection results are obtained using the pre-trained deep learning-based anomaly detection model.

[0053] In this way, the above scheme uses the process log and file operation log in the main trial log as the data source, and uses the process log and file operation log to construct an attribute heterogeneous graph, which can fully mine the multi-dimensional information of the data, including node attribute information, graph structure information and edge direction information. Among them, the node represents the process or file, the edge represents the process creating the process or the process operating the file, and the node attribute information is associated with the node. By embedding the node attributes using the BERT model, it can fully consider the node location and context information, and meet the model input requirements, effectively enrich the input features used for host intrusion detection, and improve the accuracy of host intrusion detection.

[0054] In one or more embodiments, the extraction of heterogeneous graph features specifically adopts a multi-layer stacked heterogeneous graph neural network, wherein the heterogeneous graph feature extraction model takes an attribute heterogeneous graph as input, and outputs an embedding vector representation of the heterogeneous graph and an embedding vector representation of the node; wherein the embedding vector representation of the heterogeneous graph is the obtained global information of the heterogeneous graph, and the node embedding vector representation is the obtained k-order local subgraph information of the node, wherein k is the number of layers of the heterogeneous graph.

[0055] Specifically, the extraction of heterogeneous graph features is based on stacking multi-layer directed heterogeneous graph neural network (HetGNN), taking attribute heterogeneous graph as input and outputting heterogeneous graph embedding vector and node embedding vector. The heterogeneous graph embedding vector aims to obtain the global information of the heterogeneous graph, and the node embedding vector aims to obtain the k-order local subgraph information of the node (the size of k is determined by the number of layers of the heterogeneous graph). The embedding method of HetGNN is shown in equations (1) to (2):

[0056]

[0057]

[0058] In formula (1) represents the embedding vector of the node in the heterogeneous graph; in formula (2) represents the embedding vector of the jth node in the current heterogeneous graph, n represents the number of all nodes in the current heterogeneous graph, and g i represents the embedding vector of the i-th heterogeneous graph, which is obtained by averaging all node vectors in the current heterogeneous graph.

[0059] In this way, by using a directed heterogeneous graph neural network to learn the representation vector of the heterogeneous graph, the node information, structural information and edge direction information of the heterogeneous graph can be fully represented, enriching the feature input for subsequent host intrusion detection.

[0060] In one or more embodiments, the method of the present invention specifically adopts a Deep SVDD model for anomaly detection, and the training of the Deep SVDD model includes optimization of a global objective loss function and a local objective loss function, wherein the global objective loss function aims to minimize the distance of all normal heterogeneous graphs in the hyperspace, and the local objective loss function aims to minimize the distance of all normal nodes in the hyperspace.

[0061] Specifically, in a real network environment, a small amount of malicious behavior is usually masked by a large amount of normal behavior, which requires the anomaly detection module to not only have the ability to identify global anomalies, but also meet the needs of local anomaly capture. In addition, there is a lack of labeled attack behavior samples in the real environment, while normal behavior samples are sufficient, which requires the model to have the ability of unsupervised learning. In summary, this solution uses Deep SVDD as an anomaly detection module (in more embodiments, the isolation forest algorithm can also be used). Deep SVDD can map all normal behavior data to a hyperspace, and make all normal behavior data as close as possible, and then calculate the anomaly score by measuring the distance from the point to be detected to the center of the hyperspace.

[0062] In order to make the anomaly detection module have the ability to capture both global and local anomalies, Deep SVDD takes the heterogeneous graph embedding vector and node embedding vector as input respectively to achieve and Optimization of two objective loss functions. Among them, The goal is to make all normal heterogeneous graphs as close as possible in the hyperspace. The goal is to keep all normal nodes as close as possible in hyperspace. and The calculation of is shown in formula (3)-(4):

[0063]

[0064] In formula (3), g i represents the embedding vector of the i-th heterogeneous graph, N represents the total number of heterogeneous graphs, c global represents the predefined hyperspace center in the global view, which is calculated by the average of all heterogeneous graph embedding vectors. λ represents the hyperparameter, W global is a parameter. In formula (4), H ij represents the embedding vector of the jth node on the i-th heterogeneous graph, N represents the total number of heterogeneous graphs, M represents the number of nodes in the heterogeneous graph, and c local represents the predefined hyperspace center in the local field of view, which is calculated by all node embedding vectors. The remaining variables are defined the same as in (3). Finally, by integrating and Get the final loss function The calculation method is:

[0065]

[0066] In formula (5), α is a hyperparameter used to control and exist When α = 1, it means that only the local graph structure is used to detect anomalies; when α = 0, it means that only the global graph structure is used to detect anomalies. In the final test phase, The anomaly score value is output, and the top K anomaly score values ​​are taken as anomalies.

[0067] In this way, by using a single-category neural network (i.e., using the Deep SVDD model) to detect anomalies in heterogeneous graphs, only normal behavior samples need to be used as training sets, avoiding dependence on the number of abnormal behavior samples; at the same time, considering that abnormal behavior data is usually masked by a large amount of normal behavior data, by using and The two objective loss functions comprehensively consider the global and local information of the heterogeneous graph, realize the detection of global and local anomalies, and improve the accuracy of anomaly detection.

[0068] Furthermore, in order to control and exist The contribution value on the introduction of the hyperparameter α; and by The anomaly score value is output as the anomaly score value, and then the top k anomaly score values ​​are taken as the anomaly output, avoiding the manual setting of the anomaly threshold.

[0069] In one or more embodiments, Figure 2 As shown, a host intrusion detection system based on attribute heterogeneous graph is provided for the above-mentioned host intrusion detection method based on attribute heterogeneous graph, including:

[0070] A data collection module is used to construct a log sequence based on the acquired host process log and file operation log;

[0071] A heterogeneous graph construction module is used to construct an attribute heterogeneous graph based on the log sequence, using processes and files in the log sequence as nodes, and relationships between process nodes and file nodes or relationships between process nodes as edges, wherein the process nodes are associated with command line attributes, and the file nodes are associated with file path attributes;

[0072] A heterogeneous graph embedding module, which is used to obtain an embedding vector representation of the attribute heterogeneous graph and an embedding vector representation of the node based on the attribute heterogeneous graph by using a pre-trained neural network-based heterogeneous graph feature extraction model;

[0073] The anomaly detection module is used to obtain host intrusion detection results based on the embedded vector representation of attribute heterogeneous graphs and the embedded vector representation of nodes, using a pre-trained deep learning-based anomaly detection model.

[0074] In a specific implementation, the attribute heterogeneous graph constructed in the heterogeneous graph construction module is a directed graph, in which the edges between nodes all start from the process node, and the attributes of the nodes are represented by embedding the command line or file path to obtain the corresponding embedding vector.

[0075] In a specific implementation, the neural network-based heterogeneous graph feature extraction model utilized in the heterogeneous graph embedding module specifically adopts a multi-layer stacked heterogeneous graph neural network, wherein the heterogeneous graph feature extraction model takes an attribute heterogeneous graph as input, and outputs an embedding vector representation of the heterogeneous graph and an embedding vector representation of the node; wherein the embedding vector representation of the heterogeneous graph is the global information of the obtained heterogeneous graph, and the node embedding vector representation is the k-order local subgraph information of the obtained node, wherein k is the number of layers of the heterogeneous graph.

[0076] In a specific implementation, the deep learning-based anomaly detection model used in the anomaly detection module specifically adopts a Deep SVDD model. The training of the Deep SVDD model includes the optimization of a global objective loss function and a local objective loss function, wherein the global objective loss function aims to minimize the distance of all normal heterogeneous graphs in the hyperspace, and the local objective loss function aims to minimize the distance of all normal nodes in the hyperspace.

[0077] Among them, the global objective loss function is specifically expressed as follows:

[0078]

[0079] The local objective loss function is specifically expressed as follows:

[0080]

[0081] Among them, g i represents the embedding vector of the i-th heterogeneous graph, N represents the total number of heterogeneous graphs, c global represents the predefined hyperspace center in the global view, λ represents the hyperparameter, and W global is a global parameter, H ij represents the embedding vector of the jth node on the i-th heterogeneous graph, M represents the number of nodes in the heterogeneous graph, and c local represents the predefined hyperspace center in the local field of view, W local is a local parameter.

[0082] In a specific implementation, the log sequence constructed in the data collection module is constructed based on the time sequence of the process log and the file operation log.

[0083] In more embodiments:

[0084] An electronic device is also provided, comprising a processor, wherein the processor is used to implement the steps of the above-mentioned method for predicting regional photovoltaic power generation when executing a computer program stored in a memory.

[0085] A non-transitory readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for predicting regional photovoltaic power generation as described above are implemented.

Claims

1. A host intrusion detection method based on attribute heterogeneous graph, characterized in that: include: Based on the obtained host process logs and file operation logs, log sequence is constructed; Based on the log sequence, an attribute heterogeneous graph is constructed by taking processes and files in the log sequence as nodes and the relationship between process nodes and file nodes or the relationship between process nodes as edges, wherein the process node is associated with a command line attribute and the file node is associated with a file path attribute; Based on the attribute heterogeneous graph, using a pre-trained neural network-based heterogeneous graph feature extraction model, an embedded vector representation of the attribute heterogeneous graph and an embedded vector representation of the node are obtained; Based on the embedded vector representation of attribute heterogeneous graphs and the embedded vector representation of nodes, the host intrusion detection results are obtained using the pre-trained deep learning-based anomaly detection model.

2. A host intrusion detection method based on attribute heterogeneous graph as claimed in claim 1, characterized in that: The attribute heterogeneous graph is a directed graph, in which the edges between nodes all start from the process node, and the attributes of the nodes are all represented by embedding the command line or file path to obtain the corresponding embedding vector.

3. A host intrusion detection method based on attribute heterogeneous graph as claimed in claim 1, characterized in that: The neural network-based heterogeneous graph feature extraction model specifically adopts a multi-layer stacked heterogeneous graph neural network, wherein the heterogeneous graph feature extraction model takes an attribute heterogeneous graph as input and outputs an embedded vector representation of the heterogeneous graph and an embedded vector representation of the node.

4. A host intrusion detection method based on attribute heterogeneous graph as claimed in claim 3, characterized in that: The embedding vector of the heterogeneous graph is represented as the global information of the obtained heterogeneous graph, and the node embedding vector is represented as the k-order local subgraph information of the obtained node, where k is the number of layers of the heterogeneous graph.

5. The host intrusion detection method based on attribute heterogeneous graph according to claim 1, characterized in that: The deep learning-based anomaly detection model specifically adopts a Deep SVDD model. The training of the Deep SVDD model includes optimization of a global target loss function and a local target loss function. The global target loss function aims to minimize the distance of all normal heterogeneous graphs in a hyperspace, and the local target loss function aims to minimize the distance of all normal nodes in a hyperspace.

6. A host intrusion detection method based on attribute heterogeneous graph as claimed in claim 6, characterized in that: The global objective loss function is specifically expressed as follows: The local objective loss function is specifically expressed as follows: Among them, g i represents the embedding vector of the ith heterogeneous graph, N represents the total number of heterogeneous graphs, c global represents the predefined hyperspace center in the global view, λ represents the hyperparameter, and W global is a global parameter, H ij represents the embedding vector of the jth node on the i-th heterogeneous graph, M represents the number of nodes in the heterogeneous graph, and c local represents the predefined hyperspace center in the local field of view, W local is a local parameter.

7. A host intrusion detection method based on attribute heterogeneous graph as claimed in claim 1, characterized in that: The log sequence is constructed based on the time sequence of the process log and the file operation log.

8. A host intrusion detection system based on attribute heterogeneous graph, characterized in that: include: A data collection module is used to construct a log sequence based on the acquired host process log and file operation log; A heterogeneous graph construction module is used to construct an attribute heterogeneous graph based on the log sequence, using processes and files in the log sequence as nodes, and relationships between process nodes and file nodes or relationships between process nodes as edges, wherein the process nodes are associated with command line attributes, and the file nodes are associated with file path attributes; A heterogeneous graph embedding module, which is used to obtain an embedding vector representation of the attribute heterogeneous graph and an embedding vector representation of the node based on the attribute heterogeneous graph by using a pre-trained neural network-based heterogeneous graph feature extraction model; The anomaly detection module is used to obtain host intrusion detection results based on the embedded vector representation of attribute heterogeneous graphs and the embedded vector representation of nodes, using a pre-trained deep learning-based anomaly detection model.

9. An electronic device, characterized in that: It includes a processor, and the processor is used to implement a host intrusion detection method based on attribute heterogeneous graph as described in any one of claims 1 to 7 when executing a computer program stored in a memory.

10. A non-transitory readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the host intrusion detection method based on attribute heterogeneous graph according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Network intrusion detection method, device and equipment

    CN120455116A