Attack traceability graph non-key node optimization method based on graph information entropy

By optimizing the attack source graph based on graph information entropy, the problem of data imbalance and noise interference in APT attack detection is solved, and the accuracy of attack behavior identification is improved.

CN118740423APending Publication Date: 2024-10-01成都市新都区智慧蓉城运行中心 +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410713101.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, APT attack detection is difficult to identify the attack mode, and the model is overly adapted to the normal mode, resulting in data imbalance and noise interference, which reduces the accuracy of attack behavior identification.

Method used

The non-critical node optimization method of the attack source graph based on graph information entropy is used to obtain the audit log data, generate the initial attack source graph, calculate the graph information entropy, traverse and delete sub-nodes, and determine the graph information entropy difference to optimize the noisy nodes and form the target Attack traceability diagram.

Benefits of technology

It improves the accuracy of attack behavior identification, eliminates redundant low information entropy nodes, optimizes the attack source graph, reduces noise interference, and provides a better foundation for the anomaly detection algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740423A_ABST
    Figure CN118740423A_ABST
Patent Text Reader

Abstract

The invention relates to an attack traceability graph non-key node optimization method based on graph information entropy. The method comprises the following steps: firstly, acquiring audit log data; then, generating an initial attack traceability graph based on the audit log data; then, calculating a graph information entropy based on the initial attack traceability graph; then, traversing the initial attack traceability graph, and sequentially deleting child nodes; and finally, calculating a graph information entropy difference value after the child nodes are deleted, determining whether the deleted child nodes are non-key nodes based on the graph information entropy difference value, and determining the traceability graph with the non-key nodes deleted as a target attack traceability graph. Noise nodes of the attack traceability graph are accurately optimized, further, a foundation is laid for a subsequent anomaly detection algorithm, and the attack behavior recognition accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network attack detection, and in particular to a method for optimizing non-critical nodes of an attack traceability graph based on graph information entropy. Background Art

[0002] APT attacks (Advanced Persistent Threat) have become the main threat facing my country's cyberspace. Existing endpoint detection (EDR) systems have defects such as the inability to associate information system contexts, making it difficult to detect APT attacks. Cybersecurity practitioners and researchers now detect APT attacks by analyzing system audits and other related events in source data, and inferring threat entities through the method of traceability graphs, that is, converting audit logs into traceability graphs that reveal the relationships between entities and actions in attack events. This method involves comprehensive modeling of the graph structure to learn the implicit behavior patterns and relationships between entities in the graph, and finally identifying potential attack behaviors in the graph by training the model.

[0003] However, in the existing technology, due to the massive node data accumulated in the long-term operation of the system and the relatively small number of attack samples, the model may over-adapt to the normal mode during the modeling process, thereby weakening the ability to recognize the attack mode and causing data imbalance problems. In addition, since the temporal and spatial boundaries between attack behavior and normal behavior are relatively vague, the traceability graph constructed based on long-span logs is significantly interfered by noise during the detection process.

[0004] Therefore, in the relevant technology, there is an urgent need for a method that can optimize the noise nodes in the attack tracing graph and improve the accuracy of attack behavior identification. Summary of the invention

[0005] Based on this, it is necessary to provide a non-critical node optimization method for attack tracing graph based on graph information entropy, which can optimize the noise nodes in the attack tracing graph and improve the accuracy of attack behavior identification, in order to address the above technical problems.

[0006] In a first aspect, the present application provides a method for optimizing non-critical nodes of an attack traceability graph based on graph information entropy. The method comprises:

[0007] Get audit log data;

[0008] Generate an initial attack source traceability graph based on the audit log data;

[0009] Calculate graph information entropy based on the initial attack tracing graph;

[0010] Traversing the initial attack source tracing graph, and deleting child nodes one by one;

[0011] Calculate the graph information entropy difference after deleting the child node, determine whether the deleted child node is a non-critical node based on the graph information entropy difference, and determine that the tracing graph after deleting the non-critical node is the target attack tracing graph.

[0012] Optionally, in one embodiment of the present application, obtaining audit log data includes:

[0013] Unstructured audit log data is obtained, and the audit log data is structured.

[0014] Optionally, in one embodiment of the present application, generating an initial attack source tracing graph based on the audit log data includes:

[0015] extracting events based on the audit log data;

[0016] Arrange the events in chronological order to determine the graph flow;

[0017] Based on the graph flow, all events are traversed, and events with the same subject, operation, and object are associated to obtain the initial attack tracing graph.

[0018] Optionally, in one embodiment of the present application, calculating graph information entropy based on the initial attack source tracing graph includes:

[0019] Node scores, path scores and graph information entropy are calculated based on the nodes, paths and graphs of the initial attack tracing graph.

[0020] Optionally, in one embodiment of the present application, the node score is calculated as follows:

[0021]

[0022] Among them, normal is the deviation standardization, E total is the sum of the number of events in all graphs; E node is the number of events containing node, C is a constant of low magnitude; G total is the number of graph snapshots, G node The number of graph snapshots that contain the node.

[0023] Optionally, in one embodiment of the present application, the path score is calculated as follows:

[0024]

[0025] Among them, P total is the sum of the number of paths in all graph snapshots; P node is the number of paths that contain node in all paths of the current graph snapshot; G pat h is the number of graph snapshots containing the path, Snode Score the node.

[0026] Optionally, in one embodiment of the present application, the graph information entropy is calculated as follows:

[0027]

[0028] Among them, S path Score the path.

[0029] In a second aspect, the present application also provides a device for optimizing non-critical nodes of an attack traceability graph based on graph information entropy. The device comprises:

[0030] Data acquisition module, used to obtain audit log data;

[0031] A graph snapshot generation module, used to generate an initial attack source tracing graph based on the audit log data;

[0032] A graph information entropy calculation module, used to calculate graph information entropy based on the initial attack source tracing graph;

[0033] A node optimization module, used to traverse the initial attack source tracing graph and delete child nodes in sequence;

[0034] The attack source tracing graph determination module is used to calculate the graph information entropy difference after deleting the child node, determine whether the deleted child node is a non-critical node based on the graph information entropy difference, and determine that the source tracing graph after deleting the non-critical node is the target attack source tracing graph.

[0035] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the methods described in the above embodiments.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in each of the above embodiments are implemented.

[0037] The above-mentioned attack source tracing graph non-critical node optimization method based on graph information entropy first obtains audit log data; then, generates an initial attack source tracing graph based on the audit log data; then, calculates graph information entropy based on the initial attack source tracing graph; then, traverses the initial attack source tracing graph and deletes child nodes in sequence; finally, calculates the graph information entropy difference after deleting the child node, determines whether the deleted child node is a non-critical node based on the graph information entropy difference, and determines that the source tracing graph after deleting the non-critical node is the target attack source tracing graph. That is to say, when generating the attack source tracing graph, structured events are generated based on the collected unstructured and structured logs such as DNS logs, Firefox logs, and Event Tracing for Windows. Secondly, events are mapped to corresponding strings according to a certain strategy to form a graph stream, and all graph streams in the time period are extracted at certain time intervals to generate graph snapshots. The impact of the optimization nodes is measured by calculating the graph information entropy, and the graph snapshots containing a large number of redundant low-information entropy nodes are removed to obtain streamlined graph snapshots, which accurately optimizes the noise nodes of the attack tracing graph. Furthermore, it paves the way for subsequent anomaly detection algorithms and improves the accuracy of attack behavior recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is an application environment diagram of a non-critical node optimization method of an attack tracing graph based on graph information entropy in one embodiment;

[0039] Figure 2 It is a flowchart of a method for optimizing non-critical nodes of an attack source tracing graph based on graph information entropy in one embodiment;

[0040] Figure 3 A schematic diagram of unstructured log parsing in one embodiment;

[0041] Figure 4 A schematic diagram of events, graph flows, traceability graph relationships and transformations in one embodiment;

[0042] Figure 5 It is a flowchart diagram of specific steps of a method for optimizing non-critical nodes of an attack tracing graph based on graph information entropy in one embodiment;

[0043] Figure 6 It is a structural block diagram of a device for optimizing non-critical nodes of an attack source tracing graph based on graph information entropy in one embodiment;

[0044] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The attack traceability graph non-critical node optimization method based on graph information entropy provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0047] In one embodiment, Figure 2 As shown in the figure, a non-critical node optimization method for attack traceability graph based on graph information entropy is provided. Figure 1 The server in the example is used to illustrate the following steps:

[0048] S201: Obtain audit log data.

[0049] In an embodiment of the present application, first, audit log data is collected. Audit log data refers to log data used to record and analyze information such as system operations, user behaviors, and security events. Data is collected from various devices and systems through a log collector, such as Windows Event Log, Firefox, Linux Audit Log, etc. The collected data includes unstructured logs and structured logs. Optionally, structured logs can be uniformly obtained through log template methods.

[0050] S203: Generate an initial attack source tracing graph based on the audit log data.

[0051] In an embodiment of the present application, after collecting the audit log data, events are extracted based on the structured audit log data, and the events are mapped to corresponding strings according to a certain strategy to form a graph stream, and a series of traceability graph snapshot sets with a time interval of T are generated to obtain the generated initial attack traceability graph. Optionally, the strategies include time sequence, same subject, same object, same operation, etc.

[0052] S205: Calculate graph information entropy based on the initial attack tracing graph.

[0053] In the embodiment of the present application, after obtaining the initial attack tracing graph, the graph information entropy of the initial attack tracing graph is calculated. The graph information entropy is based on the nodes, paths and Figure 3 The graph score is calculated comprehensively from nodes, paths and Figure 3 The information complexity of the attack tracing graph is comprehensively reflected at each level.

[0054] S207: traverse the initial attack source tracing graph and delete child nodes one by one.

[0055] In the embodiment of the present application, after calculating the graph information entropy of the initial attack tracing graph, the initial attack tracing graph is traversed by deleting the last child node of each path of the initial attack tracing graph, i.e., the graph snapshot. In the process of node deletion, it is first necessary to determine whether the currently deleted node has a successor node. If there is a successor node, its predecessor node should be reconnected to all successor nodes one by one. At the same time, the edge is re-established using the original edge between the deleted node and the subsequent node.

[0056] S209: Calculate the graph information entropy difference after deleting the child node, determine whether the deleted child node is a non-critical node based on the graph information entropy difference, and determine that the traceability graph after deleting the non-critical node is the target attack traceability graph.

[0057] In the embodiment of the present application, each time a child node is deleted, the graph information entropy of the attack tracing graph is recalculated and compared with the graph information entropy obtained by the initial calculation to obtain the difference in graph information entropy after deleting the child node. In a specific application, the final change in graph information entropy can be calculated using the formula shown below.

[0058]

[0059] Among them, Change_Rate refers to the change amplitude of graph information entropy, S change Refers to the difference in information entropy of the graph, P graph-snapshot refers to the number of paths, and GIE refers to graph information entropy.

[0060] If the change in the graph information entropy is greater than the preset threshold, it means that the child node is a non-critical node, and the deletion of the child node is retained. The traceability graph with the non-critical node deleted is determined as the target attack traceability graph. Conversely, if the change in the graph information entropy is not greater than the preset threshold, it means that the child node is a critical node, and then consider deleting the predecessor node of the current node and re-judging to determine the final target attack traceability graph.

[0061] In the above-mentioned attack source tracing graph non-critical node optimization method based on graph information entropy, first, the audit log data is obtained; then, the initial attack source tracing graph is generated based on the audit log data; then, the graph information entropy is calculated based on the initial attack source tracing graph; then, the initial attack source tracing graph is traversed, and the child nodes are deleted in sequence; finally, the graph information entropy difference after deleting the child nodes is calculated, and whether the deleted child nodes are non-critical nodes is determined based on the graph information entropy difference, and the source tracing graph after deleting the non-critical nodes is determined to be the target attack source tracing graph. That is to say, when generating the attack source tracing graph, structured events are generated based on the collected DNS logs, Firefox logs, Event Tracing for Windows and other unstructured and structured logs. Secondly, events are mapped to corresponding strings according to a certain strategy to form a graph stream, and all graph streams in the time period are extracted at certain time intervals to generate graph snapshots. The impact of the optimization nodes is measured by calculating the graph information entropy, and the graph snapshots containing a large number of redundant low-information entropy nodes are removed to obtain streamlined graph snapshots, which accurately optimizes the noise nodes of the attack tracing graph. Furthermore, it paves the way for subsequent anomaly detection algorithms and improves the accuracy of attack behavior recognition.

[0062] In one embodiment of the present application, obtaining audit log data includes:

[0063] Unstructured audit log data is obtained, and the audit log data is structured.

[0064] In one embodiment of the present application, a large amount of unstructured audit log data is collected from sources such as Windows Event Log, Firefox, and Linux Audit Log. A method of extracting log templates is used to perform log parsing on the unstructured audit log data to obtain log templates. The newly obtained unstructured audit log is matched with the existing log template to obtain structured audit log data. Log parsing can be regarded as the reverse process of log printing, and the template is obtained by reverse processing the log. Log parsing includes three steps: length criterion and template extraction, keyword classification, and template reuse. Specifically, length is the key criterion for template extraction. A tree structure is used. The first layer of the tree adopts different extraction methods for logs of different lengths, and logs of different lengths are diverted. The keywords in the log represent different business occurrences in the system. After distinguishing the logs from the length, different templates are classified by different keywords. After extracting the template content, if the template does not exist in the system, a unique identifier will be assigned to it, and it will be reused when parsing the same template log.

[0065] In specific applications, such as Figure 3As shown in the figure, it is a schematic diagram of unstructured log parsing. For the template "*GET*HTTP / 1.1*", with parameters IP=192.168.10.1, URI= / home / index.html, Timestamp=1582934402, applying the print function print() can generate a specific log: "192.168.10.1GET / home / index.html1582934402". By changing the parameter values, such as IP=127.0.0.1, URI= / login / login.html, Timestamp=1582935555, another log can be generated: "127.0.0.1GET / login / login.html 1582935555". For the log Receive from node blk_3587, first extract its length of 4, so the leftmost subtree will be walked in the first layer of the tree, then extract each keyword in the log, the first keyword is Receive, that is, the next step will be to walk the left second subtree, and finally replace the blk_3587 variable with * to get the template Receive from node*. The same processing flow is used for the log Send120bytes to blk_4612 to get the log template Send*bytes to*.

[0066] In this embodiment, by acquiring unstructured audit log data and performing structured processing on the audit log data, the efficiency and accuracy of attack behavior identification can be improved.

[0067] In one embodiment of the present application, generating an initial attack source tracing graph based on the audit log data includes:

[0068] S301: Extracting events based on the audit log data.

[0069] S303: Arrange the events in chronological order to determine the graph flow.

[0070] S305: Traverse all events based on the graph flow, associate events with the same subject, operation, and object, and obtain an initial attack tracing graph.

[0071] In one embodiment of the present application, first, events are extracted from structured audit log data at a certain time interval, and then the extracted events are arranged in chronological order to form a graph stream, which refers to the collection of all events within the time interval T. After that, all events in each graph stream are traversed, and if there are events with the same subject, operation, and object but occurring at different times, their timestamps are updated. Subsequently, each graph stream is traversed to generate an initial attack traceability graph, i.e., a graph snapshot. Figure 4 As shown in the figure, it is a schematic diagram of the relationship and transformation between events, graph flows, and traceability graphs. In a certain period of time, 6 events were parsed from the log, and then the events were parsed into graph flows. In the figure, the process / bin / bash is mapped to the node with ID 4, and the attribute of this node is a, which means that this node is a process. Similarly, the execve operation of / bin / bash on the / bin / tar file is mapped to the attribute p of the edge. When all events are mapped to graph flows, the graph flows are traversed in sequence to generate the corresponding traceability graph. On the contrary, if there is a traceability graph, all the events in the graph can also be obtained in this way.

[0072] In this embodiment, events are extracted based on audit log data, the events are arranged in chronological order, the graph flow is determined, all events are traversed based on the graph flow, and events with the same subject, operation, and object are associated to obtain the initial attack tracing graph. The graph flow is used to store graph snapshots, which is not limited by the space and time of traditional storage structures, and is convenient for subsequent optimization of non-critical nodes.

[0073] In one embodiment of the present application, calculating graph information entropy based on the initial attack source tracing graph includes:

[0074] Node scores, path scores and graph information entropy are calculated based on the nodes, paths and graphs of the initial attack tracing graph.

[0075] In one embodiment of the present application, the calculation of graph information entropy fully considers the nodes, paths and Figure 3 The factors at each level are used to calculate the node score, path score and graph information entropy. Figure 3 The information complexity of the graph is fully reflected at each level. Specifically, the calculation of the node score fully considers the number of node-related events and the unique distribution of the node in the entire graph. The calculation of the path score considers the comprehensive score of all nodes contained in the path and the importance of each path in the graph and all graphs. The calculation of the graph information entropy is to obtain the graph score by summarizing the scores of all paths in the graph. The graph score expresses the information entropy level of the entire graph.

[0076] In this embodiment, by calculating the node score, path score and graph information entropy based on the nodes, paths and graphs of the initial attack tracing graph, the information complexity of the graph can be fully reflected from different levels and the information entropy can be accurately quantified.

[0077] In one embodiment of the present application, the node score is calculated as follows:

[0078]

[0079] Among them, normal is the deviation standardization, E total is the sum of the number of events in all graphs; Enode is the number of events containing node, C is a constant of low magnitude; G total is the number of graph snapshots, g node The number of graph snapshots that contain the node.

[0080] In one embodiment of the present application, Formula E total / (E node +C) ensures that the proportion of normal nodes and abnormal nodes in the overall events has a large gap. At the same time, due to a common situation that after the computer system is breached and a backdoor is implanted, the attacker uses this backdoor to perform operations such as stealing confidential files and moving horizontally, resulting in a significant increase in the number of events related to the attacking entity. Therefore, combined with formula G total / (G node +C) Multiplying the score of each node by a weight in the graph snapshot generated throughout the system life cycle helps to better consider the impact of the attacking entity in the entire system history. In addition, the calculation formula of the deviation normal is as follows.

[0081]

[0082] Among them, X refers to the current data.

[0083] In this embodiment, the importance of the node can be evaluated by calculating the node score.

[0084] In one embodiment of the present application, the path score is calculated as follows:

[0085]

[0086] Among them, P total is the sum of the number of paths in all graph snapshots; P node is the number of paths that contain node in all paths of the current graph snapshot; G path is the number of graph snapshots containing the path, S node Score the node.

[0087] In one embodiment of the present application, the path score is composed of the entity scores contained in the path from the root node to the leaf node, and is also affected by the importance of the current path. total +C) / ∑ node∈path P node Considering the importance of the current path, similarly, (G total +C) / G path represents the frequency of occurrence of this path throughout the life cycle of the system, where C is a constant that helps smooth the calculation. Finally, the two scores and the sum of the node scores on the path are multiplied to obtain the comprehensive score of the path.

[0088] In this embodiment, the contribution and importance of the path are comprehensively evaluated by calculating the path score.

[0089] In one embodiment of the present application, the graph information entropy is calculated as follows:

[0090]

[0091] Among them, S path Score the path.

[0092] In one embodiment of the present application, the current graph information entropy is calculated by the sum of the path scores, from the nodes, paths and Figure 3 These levels fully reflect the information complexity of the graph.

[0093] The following is a specific example to illustrate the specific implementation steps of the method for optimizing non-critical nodes in the attack traceability graph based on graph information entropy of the present application. Figure 5 As shown, first, S401, obtain audit log data. Specifically, S403, obtain unstructured audit log data, and perform structured processing on the audit log data.

[0094] After that, S405 generates an initial attack traceability graph based on the audit log data. Specifically, S407-S411 extracts events based on the audit log data; arranges the events in chronological order to determine the graph flow; traverses all events based on the graph flow, associates events with the same subject, operation, and object, and obtains an initial attack traceability graph.

[0095] Afterwards, S413, the graph information entropy is calculated based on the initial attack tracing graph; specifically, S415, the node score, path score and graph information entropy are calculated based on the nodes, paths and graph of the initial attack tracing graph, respectively.

[0096] Among them, S417, the node score calculation method is:

[0097]

[0098] Among them, normal is the deviation standardization, E total is the sum of the number of events in all graphs; E node is the number of events containing node, C is a constant of low magnitude; G total is the number of graph snapshots, G node The number of graph snapshots that contain the node.

[0099] S419, the path score is calculated as follows:

[0100]

[0101] Among them, P total is the sum of the number of paths in all graph snapshots; P node is the number of paths that contain node in all paths of the current graph snapshot; G pat h is the number of graph snapshots containing the path, S node Score the node.

[0102] S421, the graph information entropy is calculated as follows:

[0103]

[0104] Among them, S path Score the path.

[0105] After that, S423, the initial attack traceability graph is traversed, and the child nodes are deleted in sequence. Finally, S425, the graph information entropy difference after the child nodes are deleted is calculated, and based on the graph information entropy difference, it is determined whether the deleted child nodes are non-critical nodes, and the traceability graph after the non-critical nodes are deleted is determined to be the target attack traceability graph.

[0106] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0107] Based on the same inventive concept, the embodiment of the present application also provides a device for optimizing non-critical nodes of attack tracing graph based on graph information entropy for realizing the above-mentioned method for optimizing non-critical nodes of attack tracing graph based on graph information entropy. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more device embodiments for optimizing non-critical nodes of attack tracing graph based on graph information entropy provided below can refer to the limitations of the method for optimizing non-critical nodes of attack tracing graph based on graph information entropy above, and will not be repeated here.

[0108] In one embodiment, Figure 6 As shown, a device 600 for optimizing non-critical nodes of an attack source tracing graph based on graph information entropy is provided, comprising: a data acquisition module 601, a graph snapshot generation module 603, a graph information entropy calculation module 605, a node optimization module 607 and an attack source tracing graph determination module 609, wherein:

[0109] The data acquisition module 601 is used to acquire audit log data.

[0110] The graph snapshot generation module 603 is used to generate an initial attack source tracing graph based on the audit log data.

[0111] The graph information entropy calculation module 605 is used to calculate the graph information entropy based on the initial attack tracing graph.

[0112] The node optimization module 607 is used to traverse the initial attack source tracing graph and delete child nodes in sequence.

[0113] The attack source tracing graph determination module 609 is used to calculate the graph information entropy difference after deleting the child node, determine whether the deleted child node is a non-critical node based on the graph information entropy difference, and determine that the source tracing graph after deleting the non-critical node is the target attack source tracing graph.

[0114] In one embodiment of the present application, the data acquisition module is further used to:

[0115] Unstructured audit log data is obtained, and the audit log data is structured.

[0116] In one embodiment of the present application, the graph snapshot generation module is further used to:

[0117] extracting events based on the audit log data;

[0118] Arrange the events in chronological order to determine the graph flow;

[0119] Based on the graph flow, all events are traversed, and events with the same subject, operation, and object are associated to obtain the initial attack tracing graph.

[0120] In one embodiment of the present application, the graph information entropy calculation module is further used to:

[0121] Node scores, path scores and graph information entropy are calculated based on the nodes, paths and graphs of the initial attack tracing graph.

[0122] In one embodiment of the present application, the node score is calculated as follows:

[0123]

[0124] Among them, normal is the deviation standardization, E total is the sum of the number of events in all graphs; E node is the number of events containing node, C is a constant of low magnitude; G total is the number of graph snapshots, G node The number of graph snapshots that contain the node.

[0125] In one embodiment of the present application, the path score is calculated as follows:

[0126]

[0127] Among them, P total is the sum of the number of paths in all graph snapshots; P node is the number of paths that contain node in all paths of the current graph snapshot; G pat h is the number of graph snapshots containing the path, S node Score the node.

[0128] In one embodiment of the present application, the graph information entropy is calculated as follows:

[0129]

[0130] Among them, S path Score the path.

[0131] Each module in the above-mentioned attack source tracing graph non-critical node optimization device based on graph information entropy can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0132] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a non-critical node optimization method of an attack tracing graph based on graph information entropy is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0133] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0134] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0135] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0136] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0137] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0139] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for optimizing non-critical nodes of attack tracing graph based on graph information entropy, characterized in that: The method comprises: Get audit log data; Generate an initial attack source traceability graph based on the audit log data; Calculate graph information entropy based on the initial attack tracing graph; Traversing the initial attack source tracing graph, and deleting child nodes one by one; Calculate the graph information entropy difference after deleting the child node, determine whether the deleted child node is a non-critical node based on the graph information entropy difference, and determine that the tracing graph after deleting the non-critical node is the target attack tracing graph.

2. The attack source tracing graph non-critical node optimization method based on graph information entropy according to claim 1 is characterized in that: The obtaining of audit log data includes: Unstructured audit log data is obtained, and the audit log data is structured.

3. The attack traceability graph non-critical node optimization method based on graph information entropy according to claim 1 is characterized in that: Generating an initial attack source traceability graph based on the audit log data includes: extracting events based on the audit log data; Arrange the events in chronological order to determine the graph flow; Based on the graph flow, all events are traversed, and events with the same subject, operation, and object are associated to obtain the initial attack tracing graph.

4. The attack traceability graph non-critical node optimization method based on graph information entropy according to claim 1 is characterized in that: The calculating graph information entropy based on the initial attack source tracing graph includes: Node scores, path scores and graph information entropy are calculated based on the nodes, paths and graphs of the initial attack tracing graph.

5. The method for optimizing non-critical nodes of attack tracing graph based on graph information entropy according to claim 4 is characterized in that: The node score is calculated as follows: Among them, normal is the deviation standardization, E total is the sum of the number of events in all graphs; E node is the number of events containing node, C is a constant of low magnitude; G total is the number of graph snapshots, G node The number of graph snapshots that contain the node.

6. The method for optimizing non-critical nodes of attack tracing graph based on graph information entropy according to claim 5 is characterized in that: The path score is calculated as follows: Among them, P total is the sum of the number of paths in all graph snapshots; P node is the number of paths that contain node in all paths of the current graph snapshot; G pat h is the number of graph snapshots containing the path, S node Score the node.

7. The method for optimizing non-critical nodes of attack tracing graph based on graph information entropy according to claim 6 is characterized in that: The graph information entropy is calculated as follows: Among them, S path Score the path.

8. A device for optimizing non-critical nodes of attack tracing graph based on graph information entropy, characterized in that: The device comprises: Data acquisition module, used to obtain audit log data; A graph snapshot generation module, used to generate an initial attack source tracing graph based on the audit log data; A graph information entropy calculation module, used to calculate graph information entropy based on the initial attack source tracing graph; A node optimization module, used to traverse the initial attack source tracing graph and delete child nodes in sequence; The attack source tracing graph determination module is used to calculate the graph information entropy difference after deleting the child node, determine whether the deleted child node is a non-critical node based on the graph information entropy difference, and determine that the source tracing graph after deleting the non-critical node is the target attack source tracing graph.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Tracing graph cutting method and device based on graph cutting

    CN119520056A