Audit log intrusion detection method and device

By mapping system entity interactions into recommended concepts for user project interactions, graph neural networks are used to mine deep information in audit records and build high-order connectivity, which solves the problems of false alarms and inaccurate signals in existing threat detection solutions, and achieves for more efficient threat detection.

CN118764227APending Publication Date: 2024-10-11GUANGZHOU UNIVERSITY +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410781223.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing threat detection solutions have problems such as a large number of false alarms in large-scale host records, reliance on expert knowledge, and inaccurate detection signals, making it difficult to effectively identify network threats.

Method used

Mapping system entity interactions into recommended concepts for user item interactions, using graph neural networks to mine deep information in audit records, building high-order connectivity through graph attention network models, predicting whether entity interactions create threats, and optimizing loss functions to learn graph neural networks parameter.

Benefits of technology

It improves the efficiency and accuracy of threat detection, reduces false alarms, and can adaptively update node representations to predict potential network threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764227A_ABST
    Figure CN118764227A_ABST
Patent Text Reader

Abstract

The invention discloses an audit log intrusion detection method and device, and the method comprises the steps: carrying out the modeling of an audit log in an end-to-end manner through employing a high-order relation, and solving the challenges of the high-order relation modeling through employing two designs: (1) recursive embedding propagation; the embedding of nodes is updated according to the embedding of neighboring entity nodes and such embedding propagation is recursively performed to obtain linear time-complex high-order connections. And (2) based on attention aggregation, learning the weight of each neighbor in the propagation process by using a neural attention mechanism so as to reveal the importance of high-order connectivity, and finally detecting network threat recommendation by predicting the preference of an entity to interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer network space security, and in particular to an audit log intrusion detection method. Background Art

[0002] A large number of advanced security threats against large enterprises have escalated rapidly, such as the Equifax breach that led to the theft of a large amount of user data and the Solarwinds hacker attack, which was unprecedented in scope and extent. These threats are often referred to as advanced persistent threats (APTs). To combat these threats, SIEM (Security Information and Event Management) systems are widely deployed. This software monitors the interactions between system entities on the terminal host as audit records to collect footprints of attacks. As the scale of IT infrastructure continues to expand, the number of audits is also overwhelming.

[0003] In order to conduct attack investigations on large-scale host records, the first step is to perform threat detection. Although existing detection schemes show good detection performance, they still have some defects: (1) a large number of false alarms, (2) reliance on expert knowledge, and (3) inaccurate detection signals. Summary of the invention

[0004] The intended purpose of the present invention is to map system-entity interactions into recommendation concepts of user-item interactions to identify network threats, and mine deep information in audit records through graph neural networks, inspired by the structural similarities between threat detection in network security and recommendations in information retrieval. This scheme explores the information propagation and aggregation mechanism of graph neural networks, encoding high-order connectivity into the preferences of predicted entities to their interacting entities to infer whether the interaction generates threats.

[0005] The method of the present invention is achieved through the following technical solutions:

[0006] On the one hand, the present invention provides an audit log intrusion detection method, comprising:

[0007] Obtain system audit logs and generate traceability diagrams;

[0008] Processing the traceability graph to extract the corresponding relationship between the entities therein;

[0009] Construct a bipartite graph according to the corresponding relationship between the entities;

[0010] Build a knowledge graph and mark the internal high-order connectivity;

[0011] Put it into the graph attention network model for training to obtain new representations of entities;

[0012] Use the trained model to perform node intrusion detection analysis.

[0013] Preferably, the nodes in the traceability graph represent entities with a set of attributes, and the entities are used to describe the causal dependencies between system entities and record the timestamps of occurrence.

[0014] Preferably, constructing a bipartite graph according to the corresponding relationship between the entities includes:

[0015] By extracting the interaction data between entities, we represent it as an entity-entity bipartite graph G1, defined as {(u, y ui ,i)|u∈U,i∈I},y ui = 0 means there is no observed interaction between entities, otherwise y ui =1, where u and i represent the two entities that interact with each other, and U and I represent the categories to which the corresponding entities belong.

[0016] Preferably, the entities h are combined into a final form by a concatenation operator:

[0017]

[0018] Given any interaction (h,interaction,t), h, t represent the interacting entities, and interaction represents the interaction relationship between them. The inner product is applied to the system entity representation to predict the probability that the system entity h does not interact with another entity t:

[0019]

[0020] If y is greater than a predefined threshold, the interaction is further marked as a potential network threat and the parameters L in the graph neural network are learned by optimizing a pairwise loss higher :

[0021]

[0022] Among them, (h′,r0,t′) represents the unobserved triple, G K represents all observed triplets, Then it represents the corresponding inner product used to represent the possibility of interaction.

[0023] Preferably, a threshold is preset, and the interaction is scored and compared with the threshold. If the score is greater than the threshold, it is further marked as a potential network threat.

[0024] On the other hand, the present invention also provides an audit log intrusion detection device, comprising: a traceability graph generation module, a log relationship extraction module, a log entity extraction module, a knowledge graph construction module, a training analysis module, a training analysis module and a prediction analysis module connected in sequence;

[0025] The traceability graph generation module is used to obtain system audit logs and generate traceability graphs;

[0026] A log relationship extraction module is used to process the traceability graph and extract the corresponding relationship between the entities therein;

[0027] A log entity extraction module, used for constructing a bipartite graph corresponding to the entity according to the corresponding relationship between the entities;

[0028] The knowledge graph construction module is used to construct the knowledge graph and mark the internal high-order connectivity;

[0029] The training analysis module is used to put the constructed knowledge graph into the graph attention network model for training; and to obtain a new representation of the entity through multiple iterations of the graph attention network;

[0030] The predictive analysis module is used to perform node intrusion detection analysis using the trained model.

[0031] Preferably, the log relationship extraction module is specifically used to extract the corresponding relationship between the entities therein, specifically including the causal dependency relationship between system entities and the timestamp of the record occurrence.

[0032] Preferably, the log entity extraction module is specifically used to construct a bipartite graph according to the corresponding relationship between the entities, including: extracting the interaction data between entities and representing them as an entity-entity bipartite graph G1, defined as {(u, y ui ,i)|u∈U,i∈I},y ui = 0 means there is no observed interaction between entities, otherwise y ui =1, where u and i represent the two entities that interact with each other, and U and I represent the categories to which the corresponding entities belong.

[0033] Preferably, the training analysis module is specifically used to obtain entity h after L iterations of information propagation and aggregation. A series of representations, among which, represents the original entity in the graph attention network model, Represents the new entity obtained by the graph attention network model from the original entity after multiple iterations.

[0034] Preferably, the training analysis module specifically combines the entity h into a final form through a concatenation operator:

[0035]

[0036] Given any interaction (h,interaction,t), h, t represent the interacting entities, and interaction represents the interaction relationship between them. The inner product is applied to the system entity representation to predict the probability that the system entity h does not interact with another entity t:

[0037]

[0038] If y is greater than a predefined threshold, the interaction is further marked as a potential network threat and the parameters L in the graph neural network are learned by optimizing a pairwise loss higher :

[0039]

[0040] Among them, (h′,r0,t′) represents the unobserved triple, G K represents all observed triplets, Then it represents the corresponding inner product used to represent the possibility of interaction.

[0041] Preferably, the training analysis module also pre-sets a threshold value, scores the interaction and compares it with the threshold value, and if the score is greater than the threshold value, further marks it as a potential network threat.

[0042] According to another aspect of the present invention, there is further provided an electronic device, comprising: a processor; and a storage medium storing a computer program, wherein the computer program executes the above steps when executed by the processor.

[0043] According to yet another aspect of the present invention, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps described above are executed.

[0044] 1) The method of the present invention improves detection efficiency by using the first-order and high-order information in the audit records to build a model

[0045] 2) Our method explicitly models high-order connections in CKG in an end-to-end manner. The core of our method is to focus on the embedding propagation layer, which can adaptively propagate embeddings from node neighbors to better update the representation of nodes.

[0046] 3) The method of the present invention models the preferences of entities on which they interact and predicts adversarial interactions. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0048] Figure 1 The present invention is a flowchart of an implementation of an audit log intrusion detection method. DETAILED DESCRIPTION

[0049] An audit log intrusion detection method is further described in detail below in conjunction with specific embodiments. These embodiments are only used for comparison and explanation purposes, and the present invention is not limited to these embodiments.

[0050] like Figure 1 As shown, an audit log intrusion detection method includes:

[0051] Obtain system audit logs and generate traceability diagrams;

[0052] Processing the traceability graph to extract the corresponding relationship between the entities therein;

[0053] Construct a bipartite graph according to the corresponding relationship between the entities;

[0054] Build a knowledge graph and mark the internal high-order connectivity;

[0055] Put it into the graph attention network model for training to obtain new representations of entities;

[0056] Use the trained model to perform node intrusion detection analysis.

[0057] Preferably, in S1, the nodes in the traceability graph represent entities with a set of attributes, and the entities are used to describe the causal dependency relationship between system entities and record the timestamp of occurrence.

[0058] Preferably, in S3, the interaction data between entities is extracted and represented as an entity-entity bipartite graph G1, which is defined as, = 0 indicates that there is no observed interaction between entities, otherwise = 1, where u and i respectively represent the two entities corresponding to the interaction, and U and I respectively represent the types of the corresponding entities, such as processes, sockets, etc.

[0059] More optimally, the entities are sorted, and the keywords of the operation entities in the audit log are extracted for sorting, and the edge information is organized in the form of a knowledge graph G2. The collaborative knowledge graph consists of entity 1-attribute-entity 2, and is formally expressed as {(h, r, t)|h, t∈E, r∈R}. Each triple describes the existence of a relationship r from the head entity h to the tail entity t; where h and r represent two entities of the events recorded in the log, respectively, E is the entity set, and R is the set of all events recorded in the log.

[0060] In the graph attention network model, to obtain a new entity representation:

[0061] 1. Embedding layer: Entities and relations are parameterized into vector representations through TransR, a triple is constructed, and the credibility score of the triple is given as follows: where e h and e t Represent the projection in the relation r space, W r ∈R k*d is the transformation matrix of relation r. Then, TransR measures the credibility score of a given tuple (h, r, t) as follows:

[0062]

[0063] Among them, ||·|| represents the L1 distance norm, and a lower value of the function f indicates that the tuple is more likely to be observed in the KG, otherwise it is not. The training of TransR considers the relative order of valid triples and invalid triples. This layer models entities and relations at the granularity of triples, as a regularized representation and injects it into the representation to improve the representation ability of the model. The formula is as follows:

[0064]

[0065] 2. Attention mechanism embedding propagation layer:

[0066] (1) Information propagation: In order to capture high-order connectivity, a graph neural network is used to integrate multi-hop paths into the system entity representation. Specifically, given an entity h, a graph neural network module recursively updates its representation by propagating and aggregating messages from neighbors:

[0067]

[0068] In the above formula, d represents entity h at level l l Wei said, It is from the previous layer. is the embedding initialization derived from TransR. h represents the single-player neighbors of entity h, also known as the ego network. stores the (l-2)-hop neighbor information from entity h. g(·) is an aggregation function that combines the representation of an entity with the information propagated from its neighbors.

[0069] (2) Attention mechanism: In terms of information propagation, since the contributions of different neighboring entities are not equal, an attention mechanism can be used to distinguish the importance function of the system entity neighbors as follows:

[0070]

[0071] Among them, α(h,r,t) is the attention function, which is used to control how much information is propagated from t to h under a certain relationship r. The attention function is designed as:

[0072]

[0073] In the above formula, and e r is the system entity embedding obtained from TransR, and the attention scores of all neighboring entities are further normalized by the softmax function.

[0074] (3) Information aggregation: Use the GraphSage Aggregator to update the entity representation of the system:

[0075]

[0076] where || is the concatenation operator between two vectors, It represents the transformation matrix for extracting useful information at the lth propagation layer. Therefore, the messages of multi-hop neighbors can be integrated into the original representation of the entity. To form a new entity representation

[0077] Preferably, transR is used to embed the constructed knowledge graph into a vector and trained through GNN.

[0078] Preferably, in S6, after L iterations of information propagation and aggregation, entity h is obtained. A series of representations, among which, represents the original entity in the graph attention network model, Representation graph: The attention network model is constructed by obtaining new entities from the original entities after multiple iterations.

[0079] Preferably, the entities h are combined into a final form by a concatenation operator:

[0080]

[0081] Given any interaction (h,interaction,t), the inner product is applied to the system entity representations to predict the likelihood that a system entity h does not interact with another entity t:

[0082] Among them, (h′,r0,t′) represents the unobserved triple, G K represents all observed triplets, Then it represents the corresponding inner product used to represent the possibility of interaction:

[0083]

[0084] If y is greater than a predefined threshold, the interaction is further marked as a potential network threat by optimizing a loss L higher To learn the parameters in the graph neural network:

[0085]

[0086] Among them, (h′,r0,t′) represents the unobserved triple, G K represents all observed triplets, Then it represents the corresponding inner product used to represent the possibility of interaction.

[0087] Preferably, in S7, a threshold is preset, and the interaction is scored and compared with the threshold. If the score is greater than the threshold, it is further marked as a potential network threat.

[0088] On the other hand, the present invention also provides an audit log intrusion detection device, comprising: a traceability graph generation module, a log relationship extraction module, a log entity extraction module, a knowledge graph construction module, a training analysis module, a training analysis module and a prediction analysis module connected in sequence;

[0089] The traceability graph generation module is used to obtain system audit logs and generate traceability graphs;

[0090] A log relationship extraction module is used to process the traceability graph and extract the corresponding relationship between the entities therein;

[0091] A log entity extraction module, used for constructing a bipartite graph corresponding to the entity according to the corresponding relationship between the entities;

[0092] The knowledge graph construction module is used to construct the knowledge graph and mark the internal high-order connectivity;

[0093] The training analysis module is used to put the constructed knowledge graph into the graph attention network model for training; and to obtain a new representation of the entity through multiple iterations of the graph attention network;

[0094] The predictive analysis module is used to perform node intrusion detection analysis using the trained model.

[0095] Preferably, the log relationship extraction module is specifically used to extract the corresponding relationship between the entities therein, specifically including the causal dependency relationship between system entities and the timestamp of the record occurrence.

[0096] Preferably, the log entity extraction module is specifically used to construct a bipartite graph according to the corresponding relationship between the entities, including: extracting the interaction data between entities and representing them as an entity-entity bipartite graph G1, defined as {(u, yui ,i)|u∈U,i∈I},y ui = 0 means there is no observed interaction between entities, otherwise y ui =1, where u and i represent the two entities that interact with each other, and U and I represent the categories to which the corresponding entities belong.

[0097] Preferably, the training analysis module is specifically used to obtain entity h after L iterations of information propagation and aggregation. A series of representations, among which, represents the original entity in the graph attention network model, Represents the new entity obtained by the graph attention network model from the original entity after multiple iterations.

[0098] Preferably, the training analysis module specifically combines the entity h into a final form through a concatenation operator:

[0099]

[0100] Given any interaction (h,interaction,t), h, t represent the interacting entities, and interaction represents the interaction relationship between them. The inner product is applied to the system entity representation to predict the probability that the system entity h does not interact with another entity t:

[0101]

[0102] If y is greater than a predefined threshold, the interaction is further marked as a potential network threat and the parameters L in the graph neural network are learned by optimizing a pairwise loss higher :

[0103]

[0104] Among them, (h′,r0,t′) represents the unobserved triple, G K represents all observed triplets, Then it represents the corresponding inner product used to represent the possibility of interaction.

[0105] Preferably, the training analysis module also pre-sets a threshold value, scores the interaction and compares it with the threshold value, and if the score is greater than the threshold value, further marks it as a potential network threat.

[0106] According to another aspect of the present invention, there is further provided an electronic device, comprising: a processor; and a storage medium storing a computer program, wherein the computer program executes the above steps when executed by the processor.

[0107] According to yet another aspect of the present invention, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps described above are executed.

[0108] 1) The method of the present invention improves detection efficiency by using the first-order and high-order information in the audit records to build a model

[0109] 2) Our method explicitly models high-order connections in CKG in an end-to-end manner. The core of our method is to focus on the embedding propagation layer, which can adaptively propagate embeddings from node neighbors to better update the representation of nodes.

[0110] 3) The method of the present invention models the preferences of entities on which they interact and predicts adversarial interactions.

[0111] The specific implementation of the present invention is further described in detail below in conjunction with specific implementation examples. The following implementation examples are used to illustrate the present invention, but do not limit the scope of the present invention.

[0112] Preprocessing stage:

[0113] (1) In the preprocessing stage, the traceability graph is first constructed through the audit log. Since the construction speed is too slow, the audit log is loaded in a streaming manner through a parallel channel and inserted into the record queue one by one. Then the thread generates the source subgraph into the graph queue.

[0114] (2) Extract process attributes from the traceability graph: pid, ppid, exe, args; file attributes: name, path and version; socket attributes: ip, port. The extracted entities are used to construct a bipartite graph through NetworkX.

[0115] Get the new entity representation stage:

[0116] TransR is used to embed the constructed knowledge graph into vectors and trained by GNN. Tensorflow is used to implement the recommendation model, which is optimized by Adam optimizer, setting batch size, margin and normalization to 1024, 1 and. In order to alleviate the overfitting problem, dropout technology is used with a dropout ratio of 0.2. Xavier is then used to initialize the model parameters. For hyperparameters, the present invention applies a grid search, in which the learning rate is adjusted to, the embedding size of the system entity is tuned to 30, and the threshold range is within -0.5!2.

[0117] Malicious entity detection stage:

[0118] In this embodiment, by setting the threshold to -0.5, the interaction is scored and compared with the threshold. If it is greater than the threshold, it is further marked as a potential network threat. This paper detects the red and blue attack log records simulated by the DARPA TC team, uses the above model to obtain the entity node embedding in the record, and applies it to the inner product of each pair of entity nodes. Nodes greater than the threshold are marked as malicious nodes, otherwise they are marked as benign nodes.

[0119] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the scope of protection of the present invention. It should be understood by those skilled in the art that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0120] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0123] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0124] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An audit log intrusion detection method, characterized in that: include: Obtain system audit logs and generate traceability diagrams; Processing the traceability graph to extract the corresponding relationship between the entities therein; Construct a bipartite graph according to the corresponding relationship between the entities; Build a knowledge graph and mark the internal high-order connectivity; Put the knowledge graph into a graph attention network model for training to obtain a new representation of the entity; Use the trained graph attention network model to perform intrusion detection analysis on audit logs.

2. The audit log intrusion detection method according to claim 1, characterized in that: The nodes in the traceability graph represent entities with a set of attributes, and the entities are used to describe the causal dependencies between system entities and record the timestamps of occurrence.

3. The audit log intrusion detection method according to claim 1, characterized in that: A bipartite graph is constructed according to the corresponding relationship between the entities, including: By extracting the interaction data between entities, we represent it as an entity-entity bipartite graph G1, defined as {(u, y ui ,i)|u∈U,i∈I},y ui = 0 means there is no observed interaction between entities, otherwise y ui =1, where u and i represent the two entities that interact with each other, and U and I represent the categories to which the corresponding entities belong.

4. The audit log intrusion detection method according to claim 1, characterized in that: Use the trained graph attention network model to capture the high-order connectivity of nodes and obtain a new representation of entity nodes. The specific steps include: after L iterations of information propagation and aggregation, the entity h is obtained. A series of representations, among which, represents the original entity in the graph attention network model, Represents the new entity obtained by the graph attention network model from the original entity after multiple iterations.

5. The audit log intrusion detection method according to claim 4, characterized in that: The entities h are merged into the final form by the concatenation operator: Given any interaction (h,interaction,t), h, t represent the interacting entities, and interaction represents the interaction relationship between them. The inner product is applied to the system entity representation to predict the probability that the system entity h does not interact with another entity t: If y is greater than a predefined threshold, the interaction is further marked as a potential network threat and the parameters L in the graph neural network are learned by optimizing a pairwise loss higher : Among them, (h ′ ,r0,t ′ ) indicates that no triplet is observed, G K represents all observed triplets, Then it represents the corresponding inner product used to represent the possibility of interaction.

6. The audit log intrusion detection method according to claim 1, characterized in that: By setting a threshold in advance, the interaction is scored and compared with the threshold. If it is greater than the threshold, it is further marked as a potential network threat.

7. An audit log intrusion detection device, characterized in that: Includes the following connected in sequence: The traceability graph generation module is used to obtain system audit logs and generate traceability graphs; A log relationship extraction module is used to process the traceability graph and extract the corresponding relationship between the entities therein; A log entity extraction module, used for constructing a bipartite graph corresponding to the entity according to the corresponding relationship between the entities; The knowledge graph construction module is used to construct the knowledge graph and mark the internal high-order connectivity; The training analysis module is used to put the constructed knowledge graph into the graph attention network model for training; and to obtain a new representation of the entity through multiple iterations of the graph attention network; The predictive analysis module is used to perform node intrusion detection analysis using the trained model.

8. An audit log intrusion detection device according to claim 7, characterized in that: The log relationship extraction module is specifically used to extract the corresponding relationship between the entities therein, including the causal dependency relationship between system entities and the timestamp of the record occurrence.

9. The audit log intrusion detection device according to claim 7, characterized in that: The log entity extraction module is specifically used to construct a bipartite graph according to the corresponding relationship between the entities, including: extracting the interaction data between entities and representing them as an entity-entity bipartite graph G1, defined as {(u, y ui ,i)|u∈U,i∈I},y ui = 0 means there is no observed interaction between entities, otherwise y ui =1, where u and i represent the two entities that interact with each other, and U and I represent the categories to which the corresponding entities belong.

10. The audit log intrusion detection device according to claim 7, characterized in that: The training analysis module is specifically used to obtain entity h after L iterations of information propagation and aggregation. A series of representations, among which, represents the original entity in the graph attention network model, Represents the new entity obtained by the graph attention network model from the original entity after multiple iterations.

11. An audit log intrusion detection device according to claim 10, characterized in that: The training analysis module specifically merges the entity h into the final form through the concatenation operator: Given any interaction (h,interaction,t), h, t represent the interacting entities, and interaction represents the interaction relationship between them. The inner product is applied to the system entity representation to predict the probability that the system entity h does not interact with another entity t: If y is greater than a predefined threshold, the interaction is further marked as a potential network threat and the parameters L in the graph neural network are learned by optimizing a pairwise loss higher : Among them, (h ′ ,r0,t ′ ) indicates that no triplet is observed, G K represents all observed triplets, Then it represents the corresponding inner product used to represent the possibility of interaction.

12. The audit log intrusion detection device according to claim 10, characterized in that: The training analysis module also pre-sets a threshold value, scores the interaction and compares it with the threshold value, and if it is greater than the threshold value, it is further marked as a potential network threat.

13. An electronic device, characterized in that: The electronic device comprises: processor; A memory having a computer program stored thereon, wherein the computer program, when executed by the processor, performs the steps according to any one of claims 1 to 6.

14. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps according to any one of claims 1 to 6 are executed.