Network security situation analysis method based on improved dynamic bayesian attack graph

By improving the dynamic Bayesian attack graph method and combining random sampling and Bayesian updates, the problem of inaccurate risk assessment after converting static attack graphs into dynamic attack graphs is solved. This enables a rapid and comprehensive reflection of the actual risk level of the network system, improving the accuracy and completeness of risk assessment.

CN117459246BActive Publication Date: 2026-11-20GUANGZHOU UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311185681.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2026-11-20
Estimated Expiration
2043-09-13

AI Technical Summary

Technical Problem

In existing technologies for network security situation assessment, after converting a static attack graph into a dynamic attack graph, the probability of atomic attacks remains unchanged, and the dependencies between attack step nodes are ignored, resulting in inaccurate risk assessments and an inability to fully reflect the actual risk level of the network system.

Method used

An improved dynamic Bayesian attack graph method is adopted. By determining the complete dominance set of the nodes where the intrusion occurs, and combining random sampling, forward update, and backward update, the dynamic reachability probability is calculated, the atomic attack probability of some attack nodes is updated, and a dynamic Bayesian attack graph is generated for comprehensive risk assessment.

Benefits of technology

It enables rapid and scientific reflection of the actual risk level of a network system when the network security situation changes, reduces the size of the dynamic attack graph, comprehensively updates the dynamic reachability probability, and improves the accuracy and completeness of risk assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117459246B_ABST
    Figure CN117459246B_ABST
Patent Text Reader

Abstract

The application discloses a network security situation analysis method based on an improved dynamic Bayesian attack graph, and establishes an original logical attack graph for a network system by using mulval software; the value of a vulnerability in the network system is calculated by using a CVSS environment metric index, and is normalized as an initial atomic attack probability table of an attack node; a static Bayesian attack graph is generated and static risk calculation is carried out; when an intrusion behavior is detected to cause a network security situation change, the static Bayesian attack graph is converted into a dynamic Bayesian attack graph, a complete domination set of an intrusion behavior occurrence node is determined based on a static risk calculation result, useless edges and nodes in the dynamic Bayesian attack graph are removed, and a new atomic attack probability table of part of attack nodes is obtained by updating the atomic attack probability; random sampling, forward updating and backward updating are combined, and dynamic reachable probabilities of nodes except the complete domination set are calculated; and the application can scientifically and comprehensively reflect the actual risk level of the network system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of network security and Bayesian attack graphs, specifically relating to a network security situation analysis method based on an improved dynamic Bayesian attack graph. Background Technology

[0002] Perceiving and understanding cyberattacks is a meaningful task. Existing technologies utilize attack graph techniques to model network systems and combine them with CVSS basic metrics, Bayesian formulas, and other methods to perform static assessments of network risks. The risk status of each node is represented in the form of static reachability probabilities, guiding defenders to allocate defense resources and prevent cyberattacks. However, once attacker actions have occurred and caused changes in the network situation, the static risk assessment values ​​will no longer be accurate; it can be said that at this point, the static attack graph has been transformed into a dynamic attack graph.

[0003] Existing technologies for assessing network security posture generally suffer from three drawbacks: 1) After converting a static attack graph into a dynamic attack graph, it is assumed that the atomic attack probability of the attack steps remains a fixed value calculated previously. This does not match the actual attack scenario and affects the accuracy of dynamic risk assessment. For example, if it is detected that an attacker has successfully exploited vulnerability V1 on machine H, it means that the attacker has the privileges, capabilities, conditions, and experience to exploit vulnerability V1. If the same vulnerability V1 exists in other locations in the network, the AC (attack complexity) and PR (privilege level) in its environmental metrics should be reduced for the attacker, the vulnerability exploitability index should be increased, and the atomic attack probability of the corresponding attack steps should be increased. 2) Existing technologies, whether static or dynamic reachability probabilities, only calculate OR nodes (i.e., privileged nodes), ignoring attack step nodes. This makes it impossible to update the metric values ​​of the vulnerability corresponding to the attack step nodes based on changes in reachability probabilities, and it cannot handle situations where an attack step requires multiple predecessor privileged nodes. 3) Existing technologies, in the initial stage of dynamic attack graph generation, only set the dynamic reachability probability of all nodes that have been detected to 1, without making full use of the attack graph topology and the available information generated during the static attack graph generation process.

[0004] The invention patent application with application number 2022104770999 proposes a network intrusion intent analysis method based on Bayesian attack graphs. It derives the atomic execution probability of attack steps (i.e., the probability that the attack will execute if all its parent nodes are satisfied) by combining CVSS basic indicators and attack execution cost and benefit methods. It then quantifies the attack graph using Bayesian belief networks and establishes a static attack graph model to calculate the static reachability probability. When intrusion intent is detected, the dynamic reachability probability of the parent nodes of S (the node whose intrusion behavior was detected) is updated using Bayesian formulas. However, since only the reachability probability of the parent nodes of nodes in S is updated in reverse, subsequent nodes and other nodes are ignored, resulting in an incomplete network risk assessment. In their paper "Dynamic Network Security Analysis Based on Bayesian Attack Graphs," Li Jiarui et al. proposed a forward update approach, combining forward and backward updates. This approach can directly reflect and predict the attacker's next actions, and also cover every node in the attack graph, correcting and adjusting previously predicted probabilities to more scientifically and comprehensively reflect the actual risk level in the network. However, when the number of nodes in the attack graph is large, the update of reachability probabilities will be limited for a long time to the area around the attack path where node S is located, preventing defenders from quickly grasping the most important information, such as the damage already caused by the attacker and the most vulnerable nodes in the network. Therefore, a real-time calculation strategy for the reachability probabilities of nodes in dynamic Bayesian attack graphs is needed to predict attacker behavior, reduce asset losses in the network system, and prevent the deterioration of the system's network security posture. Summary of the Invention

[0005] The main objective of this invention is to overcome the shortcomings and deficiencies of existing technologies and provide a network security situation analysis method based on an improved dynamic Bayesian attack graph. This method transforms a static Bayesian attack graph into a dynamic Bayesian attack graph when the network security situation changes, determines the complete dominance set of nodes where intrusion occurs, updates the atomic attack probabilities of some attacking nodes, and then calculates the dynamic reachability probabilities of nodes other than the complete dominance set through a combination of random sampling, forward update, and backward update. This provides a complete risk assessment of the network system, scientifically and comprehensively reflecting the actual risk level of the network system and supporting network system defense.

[0006] To achieve the above objectives, the present invention employs a network security situation analysis method based on an improved dynamic Bayesian attack graph, comprising the following steps:

[0007] S1. Use mulval software to establish the original logical attack graph LAG={GA,GP,GC} for the network system; where GA is the set of attack nodes, GP is the set of privileged nodes, and GC is the set of configuration nodes.

[0008] S2. Use CVSS environmental metrics to calculate the value score of vulnerabilities in the network system, and normalize it as the atomic attack probability of the attacking node to obtain the initial atomic attack probability table.

[0009] S3. Considering node dependencies, use Bayesian inference to generate a static Bayesian attack graph S_BAG and perform static risk calculation, calculating the possible branch domination set, absolute branch domination set, and static reachability probability of all nodes.

[0010] S4. When an intrusion is detected that causes a change in the network security situation, the static Bayesian attack graph S_BAG is transformed into a dynamic Bayesian attack graph D_BAG. Based on the static risk calculation results, the complete dominance set of the node where the intrusion occurred is quickly determined. At the same time, edges and nodes that are not useful for subsequent risk assessment in the dynamic Bayesian attack graph D_BAG are removed, the atomic attack success rate of some attack nodes is updated, and a new atomic attack probability table is obtained.

[0011] S5. Combine random sampling, forward update, and backward update to calculate the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set.

[0012] As a preferred technical solution, the establishment of the original logical attack graph (LAG) specifically includes:

[0013] The Nessus / OVAL scanner report, network topology information provided by firewall management tools, and network management policies provided by network administrators are integrated and input into the open-source logical attack graph generation tool Mulval. The internal derivation engine then derives the attack process and generates the original logical attack graph LAG={GA,GP,GC}.

[0014] As a preferred technical solution, the calculation of the value of vulnerabilities in the network system using the CVSS environmental metrics is based on the following formula:

[0015]

[0016] in, The scope of the vulnerability is defined by C, where C indicates a mutable scope and U indicates a non-mutable scope. The exploitability of the vulnerability is calculated using the following formula: AC stands for attack complexity, AV for attack vector, PR for privilege retrieval level, and UI for user interaction level; Impact is the vulnerability impact, calculated as follows:

[0017]

[0018] ISC is the median value, and the calculation formula is: , For the sake of integrity, For integrity requirements, Due to confidentiality issues, For confidentiality requirements, A represents availability impact, and AR represents availability requirements.

[0019] As a preferred technical solution, the calculation of the possible branch dominance set, absolute branch dominance set, and static reachability probability of all nodes specifically involves:

[0020] Suppose that the static reachability probability of the starting node in the static Bayesian attack graph S_BAG is 1;

[0021] The dependency of nodes in a static Bayesian attack graph S_BAG is determined using d-separation sets, and is represented as follows:

[0022]

[0023]

[0024] in, Let S_BAG contain all nodes, N be any set of nodes in GN, and D be the d-separation set corresponding to any node in N. Let N be the joint probability of being reachable from any of the nodes in N. Let be the joint conditional probability that all nodes in D are reachable, and all nodes in N are reachable. Let be the joint probability that all nodes in D are reachable. Let n be the conditional probability that any node n in N is reachable given that all nodes in D are reachable.

[0025] For attackers of network systems, setting Let be the absolute probability that node n is reachable, i.e., the static reachability probability. , Let n be the probability that node n is unreachable; for a set of nodes... ,make Represents each node The joint probability that both are reachable;

[0026] Perform static risk calculations on all nodes in the static Bayesian attack graph, including: calculating the possible branch dominance set of all nodes. Absolute branch dominance set and static reachability probability Specifically:

[0027] For the starting node n0 in a static Bayesian attack graph, its static reachability probability 1. Possible branch dominance set Absolute branch dominance set ;

[0028] For an attacking node that has a direct predecessor set W among its nodes (excluding the starting node), if the static risk of the nodes in the direct predecessor set of the attacking node has already been calculated, then the formula for calculating the static risk of the attacking node is:

[0029]

[0030]

[0031]

[0032]

[0033] in, Let n be the static reachability probability of an attack node n with a direct predecessor set W. Let be the joint probability that an attack node n is reachable from a set of direct predecessors W. Let ei be the atomic attack probability of attack node n with a direct predecessor set W; Indicates when all nodes The conditional probability that node n is reachable when the reachability is determined in the manner specified in set A; For all nodes When the reachability is determined in the manner specified in set A, the joint conditional probability of all nodes in the direct predecessor set W being reachable. Let W be the set of possible branches that dominate an attacking node n with a direct predecessor set W. Let W be the set of possible branch dominance of node w in the direct predecessor set W; This is the set of all privileged nodes that have multiple direct successors. Let n be the absolute branch dominance set of attacking nodes n with a direct predecessor set W. Let W be the absolute branch dominance set of node w in the direct predecessor set W;

[0034] For a privileged node that has a direct predecessor set W among all nodes except the starting node, if the static risk of the nodes in the direct predecessor set of the privileged node has already been calculated, then the formula for calculating the static risk of the privileged node is:

[0035]

[0036]

[0037]

[0038]

[0039] in, Let W be the joint conditional probability that all nodes in the direct predecessor set W are unreachable. For all nodes The joint conditional probability that all nodes in the direct predecessor set W are unreachable when the reachability is determined in the manner specified in set A.

[0040] As a preferred technical solution, in step S4, when an intrusion is detected that causes a change in the network security situation, the static Bayesian attack graph S_BAG is transformed into a dynamic Bayesian attack graph D_BAG for dynamic risk calculation, specifically as follows:

[0041] First, set the initial dynamic reachability of all nodes in the dynamic Bayesian attack graph D_BAG to the static reachability, set the dynamic reachability of nodes and nodes in the absolute branch dominance set to 1, and put them into the dom set.

[0042] Iterate through all nodes in the dom collection to capture the remaining nodes whose dynamic reachability probability is determined to be 1 and store them in the dom_new collection. Update the atomic attack success rate of some attack nodes, including:

[0043] Step 1: If the current node s is the attacking node, and the unique direct successor node post and the direct predecessor set pre[s] of the current node s have:

[0044] Φ_d(post) =1; Φ_d(pre_node) =1; pre_node∈pre[s];

[0045] Where Φ_d(post) is the dynamic reachability probability of the direct successor node post; Φ_d(pre_node) is the dynamic reachability probability of the direct predecessor node pre_node in the direct predecessor set pre[s].

[0046] Add post and pre[s] to the set dom_new, execute Step 2 for pre_node∈pre[s], and then remove the edge between the direct predecessor node pre_node and the attack node s from the original logical attack graph LAG; reduce the attack complexity and privilege level of vulnerability v corresponding to attack node s by one level, and update the atomic attack probability table;

[0047] Step 2: If the current node s is a privileged node and has only one direct predecessor node pre, then set the dynamic reachability probability of the direct predecessor node pre to 1, add it to the set dom_new, and execute Step 1 for the direct predecessor node pre, removing the edge between the current node s and the direct predecessor node pre from the original logical attack graph LAG; if the current node s has multiple direct predecessor nodes or no predecessor node, then no processing is performed.

[0048] After traversal, the dom set and the dom_new set are merged to obtain the fully dominated set D_dom; useless edges and useless nodes are deleted, and the final dynamic Bayesian attack graph D_BAG and its node set D_GN are updated.

[0049] As a preferred technical solution, in step S5, calculating the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set, specifically involves:

[0050] Let D_uncertain be the set of nodes in the dynamic Bayesian attack graph D_BAG other than the complete domination set, and let D_uncertain = {Sa | Sa belongs to D_GN and Φ_d(Sa) ≠ 1}, where Sa is any node in the set, D_GN is the set of nodes in the dynamic Bayesian attack graph D_BAG, and Φ_d(Sa) is the dynamic reachability probability of node Sa.

[0051] Mark all nodes in the set D_uncertain as not_updated, indicating that their dynamic reachability probabilities have not been calculated; mark all nodes in the fully dominated set D_dom as updated, indicating that their dynamic reachability probabilities have been calculated.

[0052] Randomly sample nodes marked as not_updated in the set D_uncertain, and calculate and update the dynamic reachability probability of the sampled nodes Sa:

[0053] If the sampled node Sa has more than 0 direct predecessor nodes S_pre marked as updated, then a forward update is performed, that is, the possible branch domination set, absolute branch domination set, and static reachability probability of the sampled node Sa are calculated, and the dynamic reachability probability of the sampled node Sa is updated in the forward direction. After the update is completed, the direct predecessor nodes S_pre that do not belong to the complete domination set D_dom and the direct successor nodes other than the sampled node Sa are remarked as not_updated, and the sampled node Sa is remarked as updated, indicating that it will not be selected again in the next sampling, and then the next random sampling is performed.

[0054] If the sampled node Sa has more than 0 direct successor nodes S_post marked as updated, then reverse update is performed, that is, the dynamic reachability probability of the sampled node Sa is updated in reverse using the extended Bayes formula; after the update is completed, the direct successor nodes S_post that do not belong to the complete dominating set D_dom and their direct predecessor nodes other than the sampled node Sa are remarked as not_updated, the sampled node Sa is remarked as updated, and then the next random sampling is performed;

[0055] If the sampled node Sa has both a direct predecessor node and a direct successor node marked as updated, then reverse update is performed, and all direct predecessor nodes that do not belong to the complete dominating set D_dom are marked as not_updated.

[0056] If the sampled node Sa has neither a direct predecessor nor a direct successor node marked as updated, then the sampled node Sa will be marked as updated and the next random sampling will be performed.

[0057] As a preferred technical solution, the extended Bayesian formula is:

[0058]

[0059] in, Let be the dynamic reachability probability of node s. Given that node s is reachable, what is the conditional reachability probability of its direct successor node S_post? Let be the static reachability probability of node s. The static reachability probability of the direct successor node S_post. This represents the dynamic reachability probability of the direct successor node S_post.

[0060] As a preferred technical solution, the node marked as updated will be unconditionally remarked as not_updated after time Δt, returning to the random sampling range where the dynamic reachability probability needs to be updated or calculated.

[0061] In another aspect, the present invention also provides a network security situation analysis system based on an improved dynamic Bayesian attack graph, which is applied to the above-mentioned network security situation analysis method based on an improved dynamic Bayesian attack graph, including an LAG establishment module, a probability table calculation module, a static risk calculation module, a D_BAG acquisition module, and a dynamic risk calculation module.

[0062] The LAG establishment module is used to establish the original logical attack graph LAG={GA,GP,GC} for the network system using mulval software; where GA is the attack node set, GP is the privileged node set, and GC is the configuration node set.

[0063] The probability table calculation module is used to calculate the value score of vulnerabilities in the network system using CVSS environmental metrics, and normalize it as the atomic attack probability of the attacking node to obtain the initial atomic attack probability table.

[0064] The static risk calculation module is used to consider node dependencies, generate a static Bayes attack graph S_BAG using Bayesian inference, and perform static risk calculation, calculating the possible branch domination set, absolute branch domination set, and static reachability probability of all nodes.

[0065] The D_BAG acquisition module is used to transform the static Bayesian attack graph S_BAG into a dynamic Bayesian attack graph D_BAG when an intrusion behavior is detected that causes a change in the network security situation. Based on the static risk calculation results, it quickly determines the complete dominance set of the nodes where the intrusion behavior occurred. At the same time, it removes edges and nodes in the dynamic Bayesian attack graph D_BAG that are not useful for subsequent risk assessment, updates the atomic attack success rate of some attack nodes, and obtains a new atomic attack probability table.

[0066] The dynamic risk calculation module is used to combine random sampling, forward update and reverse update to calculate the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set.

[0067] In another aspect, the present invention provides a computer-readable storage medium storing a program that, when executed by a processor, implements the aforementioned network security situation analysis method based on an improved Bayesian attack graph.

[0068] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0069] 1. After detecting changes in network security situation, existing technologies only set the dynamic probability of the node s that has been detected to 1. This approach does not fully utilize the information in the static attack graph. This invention, based on the known absolute branch dominance set of node s in the static attack graph and some logical rules, quickly identifies other nodes besides s whose dynamic reachability probability is also necessarily 1 due to node dependencies. Furthermore, based on Bayesian theory, it removes edges and nodes that are useless for risk assessment after the situation changes, thus reducing the size of the dynamic attack graph. Simultaneously, since the branch dominance set consists of privileged nodes with multiple direct successors, it effectively transmits the influence of the monitored node to other attack paths through the absolute branch dominance set.

[0070] 2. Existing technologies assume that the atomic attack probability of attack steps is constant or only changes over time, which does not conform to actual attack scenarios. This invention combines CVSS environmental metrics to modify the value of the corresponding vulnerability based on the attacker's determined attack behavior (i.e., attack nodes with a dynamic reachability probability of 1), thereby changing the atomic attack probability of other attack steps associated with the vulnerability.

[0071] 3. Most existing technologies only update the dynamic reachability probability of node s's parent node, resulting in incomplete risk assessment. Some existing technologies perform breadth-first search starting from node s, using reverse updates for predecessors and forward updates for successors. This method has two drawbacks: it doesn't consider the dependencies between node s's predecessors and successors, and it limits updates to the vicinity of node s for a period of time. This invention proposes an extended Bayesian formula that can calculate the dynamic reachability probability of all nodes in the dynamic attack graph, achieving a complete risk assessment. Furthermore, by updating the dynamic reachability probability based on random sampling and considering the dependencies between node s's direct predecessors and successors, updates are not limited to the vicinity of node s for a period of time, scientifically and comprehensively reflecting the actual risk level of the network system. Attached Figure Description

[0072] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0073] Figure 1 This is a flowchart of a network security situation analysis method based on an improved dynamic Bayesian attack graph, as described in an embodiment of the present invention.

[0074] Figure 2 This is a schematic diagram of the original logic attack graph (LAG) in an embodiment of the present invention.

[0075] Figure 3 This is a schematic diagram of the attack node A3 being attacked in an embodiment of the present invention.

[0076] Figure 4 This is a schematic diagram of the dynamic Bayesian attack graph D_BAG in an embodiment of the present invention.

[0077] Figure 5 This is a structural diagram of the network security situation analysis system based on the improved dynamic Bayesian attack graph in an embodiment of the present invention.

[0078] Figure 6 This is a structural diagram of a computer-readable storage medium in an embodiment of the present invention. Detailed Implementation

[0079] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.

[0080] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.

[0081] Please see Figure 1 This embodiment provides a network security situation analysis method based on an improved dynamic Bayesian attack graph, including the following steps:

[0082] S1. Use mulval software to establish the original logical attack graph LAG={GA,GP,GC} for the network system; where GA is the set of attack nodes, GP is the set of privileged nodes, and GC is the set of configuration nodes.

[0083] S2. Use CVSS environmental metrics to calculate the value score of vulnerabilities in the network system, and normalize it as the atomic attack probability of the attacking node to obtain the initial atomic attack probability table.

[0084] S3. Considering node dependencies, use Bayesian inference to generate a static Bayesian attack graph S_BAG, and calculate the possible branch domination set, absolute branch domination set, and static reachability probability of all nodes.

[0085] S4. When an intrusion is detected that causes a change in the network security situation, the static Bayesian attack graph S_BAG is transformed into a dynamic Bayesian attack graph D_BAG. Based on the static risk calculation results, the complete dominance set of the node where the intrusion occurred is quickly determined. At the same time, edges and nodes that are not useful for subsequent risk assessment in the dynamic Bayesian attack graph D_BAG are removed, the atomic attack success rate of some attack nodes is updated, and a new atomic attack probability table is obtained.

[0086] S5. Combine random sampling, forward update, and backward update to calculate the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set.

[0087] Furthermore, in step S1, the original logical attack graph LAG is established, specifically as follows:

[0088] The Nessus / OVAL scanner report, network topology information provided by firewall management tools, and network management policies provided by network administrators are integrated and input into the open-source logical attack graph generation tool Mulval. Its internal derivation engine deduces the attack process, generating the original logical attack graph LAG={GA,GP,GC}. In this graph, the attack node set GA is represented by circles, and each node is an AND node, meaning a single attack node can only execute if all preconditions (privileges or system configurations) are met. An attack node can only obtain one corresponding privilege. The privileged node set GP is represented by diamonds, and each node is an OR node, meaning a single network privilege can be obtained when at least one precondition (attack node or system configuration) is met. A privileged node can have multiple child attack nodes. The configuration node set GC is a set of configuration nodes without predecessors, represented by squares in the graph. Each node represents a known fact about the current network configuration, such as existing vulnerabilities or network connection information.

[0089] Furthermore, in step S2, the value of vulnerabilities in the network system is calculated using the CVSS environmental metrics. The calculation formula is as follows:

[0090]

[0091] in, The scope of the vulnerability is defined by C, where C indicates a mutable scope and U indicates a non-mutable scope. The exploitability of the vulnerability is calculated using the following formula: AC stands for attack complexity, AV for attack vector, PR for privilege retrieval level, and UI for user interaction level; Impact is the vulnerability impact, calculated as follows:

[0092]

[0093] ISC is the median value, and the calculation formula is: , For the sake of integrity, For integrity requirements, Due to confidentiality issues, For confidentiality requirements, A represents availability impact, and AR represents availability requirements.

[0094] Furthermore, in step S3, the number of nodes and topology of the static Bayesian attack graph S_BAG are actually no different from the original logical attack graph LAG. However, considering the dependencies between nodes, a static reachability probability is calculated for all nodes of the original logical attack graph LAG using Bayesian inference, resulting in the static attack graph S_BAG. Specifically:

[0095] First, assume the static reachability probability of the starting node in the static Bayesian attack graph S_BAG is 1; then, using the normalized value of the vulnerability's score as the atomic attack probability e of the attacking node, calculate the static reachability probabilities of all nodes except the starting node:

[0096] The dependency of nodes in a static Bayesian attack graph S_BAG is determined using d-separation sets, and is represented as follows:

[0097]

[0098]

[0099] in, Let S_BAG contain all nodes, N be any set of nodes in GN, and D be the d-separation set corresponding to any node in N. Let N be the joint probability of being reachable from any of the nodes in N. Let be the joint conditional probability that all nodes in D are reachable, and all nodes in N are reachable. Let be the joint probability that all nodes in D are reachable. Let n be the conditional probability that any node n in N is reachable given that all nodes in D are reachable.

[0100] For attackers of network systems, setting Let be the absolute probability that node n is reachable, i.e., the static reachability probability. , Let n be the probability that node n is unreachable; for a set of nodes... ,make Represents each node The joint probability that both are reachable;

[0101] Perform static risk calculations on all nodes in the static Bayesian attack graph, including: calculating the possible branch dominance set of all nodes. Absolute branch dominance set and static reachability probability Specifically:

[0102] For the starting node n0 in a static Bayesian attack graph, its static reachability probability 1. Possible branch dominance set Absolute branch dominance set ;

[0103] For an attacking node that has a direct predecessor set W among its nodes (excluding the starting node), if the static risk of the nodes in the direct predecessor set of the attacking node has already been calculated, then the formula for calculating the static risk of the attacking node is:

[0104]

[0105]

[0106]

[0107]

[0108] in, Let n be the static reachability probability of an attack node n with a direct predecessor set W. Let be the joint probability that an attack node n is reachable from a set of direct predecessors W. Let ei be the atomic attack probability of attack node n with a direct predecessor set W; Indicates when all nodes The conditional probability that node n is reachable when the reachability is determined in the manner specified in set A; For all nodes When the reachability is determined in the manner specified in set A, the joint conditional probability of all nodes in the direct predecessor set W being reachable. Let W be the set of possible branches that dominate an attacking node n with a direct predecessor set W. Let W be the set of possible branch dominance of node w in the direct predecessor set W; This is the set of all privileged nodes that have multiple direct successors. Let n be the absolute branch dominance set of attacking nodes n with a direct predecessor set W. Let W be the absolute branch dominance set of node w in the direct predecessor set W;

[0109] For a privileged node that has a direct predecessor set W among all nodes except the starting node, if the static risk of the nodes in the direct predecessor set of the privileged node has already been calculated, then the formula for calculating the static risk of the privileged node is:

[0110]

[0111]

[0112]

[0113]

[0114] in, Let W be the joint conditional probability that all nodes in the direct predecessor set W are unreachable. For all nodes The joint conditional probability that all nodes in the direct predecessor set W are unreachable when the reachability is determined in the manner specified in set A.

[0115] Furthermore, in step S4, when an intrusion is detected that causes a change in the network security posture, the static Bayesian attack graph S_BAG is transformed into a dynamic Bayesian attack graph D_BAG for dynamic risk calculation, specifically as follows:

[0116] First, set the initial dynamic reachability of all nodes in the dynamic Bayesian attack graph D_BAG to the static reachability, set the dynamic reachability of nodes and nodes in the absolute branch dominance set to 1, and put them into the dom set.

[0117] Iterate through all nodes in the dom collection to capture the remaining nodes whose dynamic reachability probability is determined to be 1 and store them in the dom_new collection. Update the atomic attack success rate of some attack nodes, including:

[0118] Step 1: If the current node s is the attacking node, and the unique direct successor node post and the direct predecessor set pre[s] of the current node s have:

[0119] Φ_d(post) =1; Φ_d(pre_node) =1; pre_node∈pre[s];

[0120] Where Φ_d(post) is the dynamic reachability probability of the direct successor node post; Φ_d(pre_node) is the dynamic reachability probability of the direct predecessor node pre_node in the direct predecessor set pre[s].

[0121] Add post and pre[s] to the set dom_new, execute Step 2 for pre_node∈pre[s], and then remove the edge between the direct predecessor node pre_node and the attack node s from the original logical attack graph LAG; reduce the attack complexity and privilege level of vulnerability v corresponding to attack node s by one level, and update the atomic attack probability table;

[0122] Step 2: If the current node s is a privileged node and has only one direct predecessor node pre, then set the dynamic reachability probability of the direct predecessor node pre to 1, add it to the set dom_new, and execute Step 1 for the direct predecessor node pre, removing the edge between the current node s and the direct predecessor node pre from the original logical attack graph LAG; if the current node s has multiple direct predecessor nodes or no predecessor node, then no processing is performed.

[0123] After traversal, the dom set and the dom_new set are merged to obtain the fully dominated set D_dom; useless edges and useless nodes are deleted, and the final dynamic Bayesian attack graph D_BAG and its node set D_GN are updated.

[0124] During the above traversal, the deleted edges and the resulting free nodes are called useless edges and useless nodes. According to Bayesian tail-to-head theory, they no longer have any impact on the risk assessment of any node.

[0125] Furthermore, in step S5, the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set, is calculated as follows:

[0126] Let D_uncertain be the set of nodes in the dynamic Bayesian attack graph D_BAG other than the complete domination set, and let D_uncertain = {Sa | Sa belongs to D_GN and Φ_d(Sa) ≠ 1}, where Sa is any node in the set, D_GN is the set of nodes in the dynamic Bayesian attack graph D_BAG, and Φ_d(Sa) is the dynamic reachability probability of node Sa.

[0127] First, mark all nodes in the set D_uncertain as not_updated, indicating that the dynamic reachability probability has not been calculated; mark all nodes in the completely dominated set D_dom as updated, indicating that the dynamic reachability probability has been calculated.

[0128] Randomly sample nodes marked as not_updated in the set D_uncertain (i.e., the random sampling range is defined as the nodes marked as not_updated in the set D_uncertain), and calculate and update the dynamic reachability probability of the sampled nodes Sa:

[0129] If the sampled node Sa has more than 0 direct predecessor nodes S_pre marked as updated, then a forward update is performed, that is, the possible branch domination set, absolute branch domination set, and static reachability probability of the sampled node Sa are calculated, and the dynamic reachability probability of the sampled node Sa is updated in the forward direction. After the update is completed, the direct predecessor nodes S_pre that do not belong to the complete domination set D_dom and the direct successor nodes other than the sampled node Sa are remarked as not_updated, and the sampled node Sa is remarked as updated, indicating that it will not be selected again in the next sampling, and then the next random sampling is performed.

[0130] If the sampled node Sa has more than 0 direct successor nodes S_post marked as updated, then a reverse update is performed, that is, the dynamic reachability probability of the sampled node Sa is updated in reverse using the extended Bayes formula. After the update is completed, the direct successor nodes S_post that do not belong to the complete dominating set D_dom and their direct predecessor nodes other than the sampled node Sa are remarked as not_updated, and the sampled node Sa is remarked as updated, and then the next random sampling is performed. The extended Bayes formula is:

[0131]

[0132] in, Let be the dynamic reachability probability of node s. Given that node s is reachable, what is the conditional reachability probability of its direct successor node S_post? Let be the static reachability probability of node s. The static reachability probability of the direct successor node S_post. This represents the dynamic reachability probability of the direct successor node S_post.

[0133] If the sampled node Sa has both a direct predecessor node and a direct successor node marked as updated, then reverse update is performed, and all direct predecessor nodes that do not belong to the complete dominating set D_dom are marked as not_updated.

[0134] If the sampled node Sa has neither a direct predecessor nor a direct successor node marked as updated, then the sampled node Sa will be marked as updated and the next random sampling will be performed.

[0135] Furthermore, in step S5 above, nodes marked as updated will be unconditionally remarked as not_updated after time Δt or Δn random samplings, returning to the random sampling range where updates or calculations of dynamic reachability probabilities are needed.

[0136] To further illustrate the effectiveness of the method in this application, this embodiment is illustrated through a specific example, such as... Figure 2As shown, the original logical attack graph (LAG) for a network system is established using the mulval software. The privileged node set GP contains five privileged nodes: {P0, P1, P2, P3, P4}, where P0 and P4 are the starting and target nodes of the original logical attack graph LAG, respectively. The attack node set GA contains five attack nodes: {A1, A2, A3, A4, A5}. Each attack node has a specific vulnerability configuration node vi as its direct predecessor, and vi belongs to the configuration node set GC. By default, configuration nodes other than the vulnerability configuration nodes (such as network connections) have no impact on subsequent risk assessment, so they are removed from the original attack graph LAG.

[0137] Next, the CVSS environmental metrics are used to calculate the value score of vulnerabilities in the network system and normalize it as the atomic attack probability of the attack step. To simplify the calculation, it is assumed that the atomic attack probability ei of each node is 0.75, that is, under the condition that all attack premises are met, the probability of attacking node Ai being successfully attacked is 0.75. The initial atomic attack probability table is shown in Table 1 below:

[0138]

[0139] Table 1

[0140] Regenerate the static Bayesian attack graph and calculate the possible branch dominance set, absolute branch dominance set, and static reachability probability of all nodes, as shown in Table 2 below:

[0141]

[0142] Table 2

[0143] When an intrusion is detected that leads to a change in the network security posture, such as Figure 3 As shown, an attacker was detected targeting node A3 (circled in the diagram, indicating a dynamic reachability probability of 1). First, it's necessary to identify all nodes other than A3 whose dynamic reachability probability is guaranteed to be 1. Then, based on the results, the atomic attack success rate of certain attack nodes is updated, specifically as follows:

[0144] Set the dynamic reachability probabilities of nodes in A3 and δ(A3) to 1, and add them to the set dom, resulting in:

[0145] dom={A3,P1,P0}; Φ'(node)=1, node∈dom;

[0146] At this point, the DOM does not yet include all nodes with a dynamic reachability probability of 1;

[0147] Then, iterate through all nodes in the dom set, updating the atomic attack success rate of the attacking nodes. After the iteration, merge the dom set and the dom_new set to obtain the complete domination set, i.e., D_dom = dom ∪ dom_new = {P0, A1, P1, A3, P3}. At this point, the complete domination set includes all nodes with a dynamic reachability probability of 1. Delete useless edges and nodes to obtain the dynamic Bayesian attack graph D_BAG and its node set D_GN, as shown below. Figure 4 As shown, the node whose atomic attack probability needs to be updated is {A4}. Since the vulnerability V3 (configuration node) corresponding to A4 has already been successfully exploited by attackers at A3, the privilege requirement level (PR) and attack complexity (AC) of vulnerability V3 are reduced. This results in the updated atomic attack probability table (assuming the updated CVSS environment metric value is 0.9), as shown in Table 3 below:

[0148]

[0149] Table 3

[0150] Among them, the atomic attack probabilities e1 and e3 do not need to be updated because, according to Bayesian tail-to-head theory, nodes A1 and A3 no longer have any impact on the risk assessment of any node.

[0151] exist Figure 4 In the current random sampling, the nodes within the sampling range include {A6, A2, P2, A4, A5, P4}. The nodes whose dynamic reachability probabilities are updated after sampling are {A6, A2, A5}, and all are updated forward. If the first random sampling selects node A2 and updates its dynamic reachability probability to 0.75000, then A2 is marked as updated. The next random sampling can select nodes including {A6, P2, A4, A5, P4}, and the nodes whose dynamic reachability probabilities are updated after sampling are {A6, A5, P2}, and all are updated forward (the new atomic attack probabilities in Table 3 should be used in the calculation, not the initial ones). (Initial atomic attack probability); If the second random sampling selects P2 and updates its dynamic reachability probability to 0.9375, then P2 is marked as updated. The nodes that can be selected for the next random sampling include {A6, A4, A5, P4}. The nodes whose dynamic reachability probabilities will be updated after sampling are {A6, A4, A5}. A5 and A4 should be updated forward, and A6 should be updated backward. If the fourth sampling selects node A6, then its dynamic reachability probability is updated to 0.78947 according to the extended Bayes formula. After time Δt, nodes that have been sampled, such as A2 and P2, can return to the random sampling range.

[0152] It should be noted that, for the sake of simplicity, the aforementioned method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously.

[0153] Following the same principle as the network security situation analysis method based on improved dynamic Bayesian attack graphs in the above embodiments, this invention also provides a network security situation analysis system based on improved dynamic Bayesian attack graphs. This system can be used to execute the aforementioned network security situation analysis method based on improved dynamic Bayesian attack graphs. For ease of explanation, the structural diagram of the embodiment of the network security situation analysis system based on improved dynamic Bayesian attack graphs only shows the parts related to the embodiments of this invention. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0154] Please see Figure 5 Another embodiment of the present invention provides a network security situation analysis system based on an improved dynamic Bayesian attack graph, including an LAG establishment module, a probability table calculation module, a static risk calculation module, a D_BAG acquisition module, and a dynamic risk calculation module.

[0155] The LAG establishment module is used to establish the original logical attack graph LAG={GA,GP,GC} for the network system using the mulval software; where GA is the set of attack nodes, GP is the set of privileged nodes, and GC is the set of configuration nodes.

[0156] The probability table calculation module is used to calculate the value score of vulnerabilities in the network system using CVSS environmental metrics, and normalize it as the atomic attack probability of the attacking node to obtain the initial atomic attack probability table.

[0157] The static risk calculation module is used to consider node dependencies, generate a static Bayes attack graph S_BAG using Bayesian inference methods, and perform static risk calculation, calculating the possible branch domination set, absolute branch domination set, and static reachability probability of all nodes.

[0158] The D_BAG acquisition module is used to transform the static Bayesian attack graph S_BAG into a dynamic Bayesian attack graph D_BAG when an intrusion is detected that causes a change in the network security situation. Based on the static risk calculation results, it quickly determines the complete dominance set of the nodes where the intrusion occurred. At the same time, it removes edges and nodes in the dynamic Bayesian attack graph D_BAG that are not useful for subsequent risk assessment, updates the atomic attack success rate of some attack nodes, and obtains a new atomic attack probability table.

[0159] The dynamic risk calculation module combines random sampling, forward update, and backward update to calculate the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set.

[0160] In the above embodiments of the network security situation analysis system based on the improved dynamic Bayesian attack graph, the logical division of each program module is only an example. In actual applications, the above functions can be assigned to different program modules as needed, for example, for the sake of corresponding hardware configuration requirements or software implementation convenience. That is, the internal structure of the network security situation analysis system based on the improved dynamic Bayesian attack graph is divided into different program modules to complete all or part of the functions described above.

[0161] like Figure 6 As shown, in one embodiment, a computer-readable storage medium is provided, storing a program in a memory. When the program is executed by a processor, it implements the network security situation analysis method based on the improved dynamic Bayesian attack graph, specifically:

[0162] S1. Use mulval software to establish the original logical attack graph LAG={GA,GP,GC} for the network system; where GA is the set of attack nodes, GP is the set of privileged nodes, and GC is the set of configuration nodes.

[0163] S2. Use CVSS environmental metrics to calculate the value score of vulnerabilities in the network system, and normalize it as the atomic attack probability of the attacking node to obtain the initial atomic attack probability table.

[0164] S3. Considering node dependencies, use Bayesian inference to generate a static Bayesian attack graph S_BAG and perform static risk calculation, calculating the possible branch domination set, absolute branch domination set, and static reachability probability of all nodes.

[0165] S4. When an intrusion is detected that causes a change in the network security situation, the static Bayesian attack graph S_BAG is transformed into a dynamic Bayesian attack graph D_BAG. Based on the static risk calculation results, the complete dominance set of the node where the intrusion occurred is quickly determined. At the same time, edges and nodes that are not useful for subsequent risk assessment in the dynamic Bayesian attack graph D_BAG are removed, the atomic attack success rate of some attack nodes is updated, and a new atomic attack probability table is obtained.

[0166] S5. Combine random sampling, forward update, and backward update to calculate the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set.

[0167] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0168] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.

Claims

1. A network security situation analysis method based on an improved dynamic Bayesian attack graph, characterized in that, Includes the following steps: S1. Use mulval software to establish the original logical attack graph LAG={GA,GP,GC} for the network system; where GA is the set of attack nodes, GP is the set of privileged nodes, and GC is the set of configuration nodes. S2. Use CVSS environmental metrics to calculate the value score of vulnerabilities in the network system, and normalize it as the atomic attack probability of the attacking node to obtain the initial atomic attack probability table. S3. Considering node dependencies, use Bayesian inference to generate a static Bayesian attack graph S_BAG and perform static risk calculation, calculating the possible branch domination set, absolute branch domination set, and static reachability probability of all nodes. S4. When an intrusion is detected that causes a change in the network security situation, the static Bayesian attack graph S_BAG is transformed into a dynamic Bayesian attack graph D_BAG. Based on the static risk calculation results, the complete dominance set of the node where the intrusion occurred is quickly determined. At the same time, edges and nodes that are not useful for subsequent risk assessment in the dynamic Bayesian attack graph D_BAG are removed, the atomic attack success rate of some attack nodes is updated, and a new atomic attack probability table is obtained. S5. Combine random sampling, forward update and reverse update to calculate the dynamic reachability probability of nodes other than the fully dominated set in the dynamic Bayes attack graph D_BAG. In step S4, when an intrusion is detected that causes a change in the network security posture, the static Bayesian attack graph S_BAG is transformed into a dynamic Bayesian attack graph D_BAG for dynamic risk calculation, specifically as follows: First, set the initial dynamic reachability of all nodes in the dynamic Bayesian attack graph D_BAG to the static reachability, set the dynamic reachability of nodes and nodes in the absolute branch dominance set to 1, and put them into the dom set. Iterate through all nodes in the dom collection to capture the remaining nodes with a dynamic reachability probability of 1 and store them in the dom_new collection. Also update the atomic attack success rate of some attack nodes, including: Step 1: If the current node s is the attacking node, and the unique direct successor node post and the direct predecessor set pre[s] of the current node s have: Φ_d(post) =1; Φ_d(pre_node) =1; pre_node∈pre[s]; Where Φ_d(post) is the dynamic reachability probability of the direct successor node post; Φ_d(pre_node) is the dynamic reachability probability of the direct predecessor node pre_node in the direct predecessor set pre[s]. Add post and pre[s] to the set dom_new, execute Step 2 for pre_node∈pre[s], and then remove the edge between the direct predecessor node pre_node and the attack node s from the original logical attack graph LAG; reduce the attack complexity and privilege level of vulnerability v corresponding to attack node s by one level, and update the atomic attack probability table; Step 2: If the current node s is a privileged node and has only one direct predecessor node pre, then set the dynamic reachability probability of the direct predecessor node pre to 1, add it to the set dom_new, and execute Step 1 for the direct predecessor node pre, removing the edge between the current node s and the direct predecessor node pre from the original logical attack graph LAG; if the current node s has multiple direct predecessor nodes or no predecessor node, then no processing is performed. After traversal, the dom set and the dom_new set are merged to obtain the fully dominated set D_dom; useless edges and useless nodes are deleted, and the final dynamic Bayesian attack graph D_BAG and its node set D_GN are updated.

2. The network security situation analysis method based on the improved dynamic Bayesian attack graph according to claim 1, characterized in that, The establishment of the original logical attack graph (LAG) is specifically as follows: The Nessus / OVAL scanner report, network topology information provided by firewall management tools, and network management policies provided by network administrators are integrated and input into the open-source logical attack graph generation tool Mulval. The internal derivation engine then derives the attack process and generates the original logical attack graph LAG={GA,GP,GC}.

3. The network security situation analysis method based on the improved dynamic Bayesian attack graph according to claim 1, characterized in that, The formula for calculating the value of vulnerabilities in a network system using CVSS environmental metrics is as follows: in, The scope of the vulnerability is defined by C, where C indicates a mutable scope and U indicates a non-mutable scope. The exploitability of the vulnerability is calculated using the following formula: AC stands for attack complexity, AV for attack vector, PR for privilege retrieval level, and UI for user interaction level; Impact is the vulnerability impact, calculated as follows: ISC is the median value, and the calculation formula is: , I represents the impact on integrity. For integrity requirements, Due to confidentiality issues, For confidentiality requirements, A represents availability impact, and AR represents availability requirements.

4. The network security situation analysis method based on the improved dynamic Bayesian attack graph according to claim 1, characterized in that, The calculation of the possible branch dominance set, absolute branch dominance set, and static reachability probability of all nodes is specifically as follows: Suppose that the static reachability probability of the starting node in the static Bayesian attack graph S_BAG is 1; The dependency of nodes in a static Bayesian attack graph S_BAG is determined using d-separation sets, and is represented as follows: in, Let S_BAG contain all nodes, N be any set of nodes in GN, and D be the d-separation set corresponding to any node in N. Let N be the joint probability of being reachable from any of the nodes in N. Let be the joint conditional probability that all nodes in D are reachable, and all nodes in N are reachable. Let be the joint probability that all nodes in D are reachable. Let n be the conditional probability that any node n in N is reachable given that all nodes in D are reachable. For attackers of network systems, setting Let be the absolute probability that node n is reachable, i.e., the static reachability probability. , Let n be the probability that node n is unreachable; for a set of nodes... ,make Represents each node The joint probability that both are reachable; Perform static risk calculations on all nodes in the static Bayesian attack graph, including: calculating the possible branch dominance set of all nodes. Absolute branch dominance set and static reachability probability Specifically: For the starting node n0 in a static Bayesian attack graph, its static reachability probability 1. Possible branch dominance set Absolute branch dominance set ; For an attacking node that has a direct predecessor set W among its nodes (excluding the starting node), if the static risk of the nodes in the direct predecessor set of the attacking node has already been calculated, then the formula for calculating the static risk of the attacking node is: in, Let n be the static reachability probability of an attack node n with a direct predecessor set W. Let be the joint probability that an attack node n is reachable from a set of direct predecessors W. Let ei be the atomic attack probability of attack node n with a direct predecessor set W; Indicates when all nodes The conditional probability that node n is reachable when the reachability is determined in the manner specified in set A; For all nodes When the reachability is determined in the manner specified in set A, the joint conditional probability of all nodes in the direct predecessor set W being reachable. Let W be the set of possible branches that dominate an attacking node n with a direct predecessor set W. Let W be the set of possible branch dominance of node w in the direct predecessor set W; This is the set of all privileged nodes that have multiple direct successors. Let n be the absolute branch dominance set of attacking nodes n with a direct predecessor set W. Let W be the absolute branch dominance set of node w in the direct predecessor set W; For a privileged node that has a direct predecessor set W among its nodes (excluding the starting node), if the static risk of the nodes in the direct predecessor set of that privileged node has already been calculated, then the formula for calculating the static risk of that privileged node is: in, Let W be the joint conditional probability that all nodes in the direct predecessor set W are unreachable. For all nodes The joint conditional probability that all nodes in the direct predecessor set W are unreachable when the reachability is determined in the manner specified in set A.

5. The network security situation analysis method based on the improved dynamic Bayesian attack graph according to claim 1, characterized in that, In step S5, the calculation of the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set, specifically involves: Let D_uncertain be the set of nodes in the dynamic Bayesian attack graph D_BAG other than the complete domination set, and let D_uncertain = {Sa | Sa belongs to D_GN and Φ_d(Sa) ≠ 1}, where Sa is any node in the set, D_GN is the set of nodes in the dynamic Bayesian attack graph D_BAG, and Φ_d(Sa) is the dynamic reachability probability of node Sa. Mark all nodes in the set D_uncertain as not_updated, indicating that their dynamic reachability probabilities have not been calculated; mark all nodes in the fully dominated set D_dom as updated, indicating that their dynamic reachability probabilities have been calculated. Randomly sample nodes marked as not_updated in the set D_uncertain, and calculate and update the dynamic reachability probability of the sampled nodes Sa: If the sampled node Sa has more than 0 direct predecessor nodes S_pre marked as updated, then a forward update is performed, that is, the possible branch domination set, absolute branch domination set, and static reachability probability of the sampled node Sa are calculated, and the dynamic reachability probability of the sampled node Sa is updated in the forward direction. After the update is completed, the direct predecessor nodes S_pre that do not belong to the complete domination set D_dom and the direct successor nodes other than the sampled node Sa are remarked as not_updated, and the sampled node Sa is remarked as updated, indicating that it will not be selected again in the next sampling, and then the next random sampling is performed. If the sampled node Sa has more than 0 direct successor nodes S_post marked as updated, then reverse update is performed, that is, the dynamic reachability probability of the sampled node Sa is updated in reverse using the extended Bayes formula; after the update is completed, the direct successor nodes S_post that do not belong to the complete dominating set D_dom and their direct predecessor nodes other than the sampled node Sa are remarked as not_updated, the sampled node Sa is remarked as updated, and then the next random sampling is performed; If the sampled node Sa has both a direct predecessor node and a direct successor node marked as updated, then reverse update is performed, and all direct predecessor nodes that do not belong to the complete dominating set D_dom are marked as not_updated. If the sampled node Sa has neither a direct predecessor nor a direct successor node marked as updated, then the sampled node Sa will be marked as updated and the next random sampling will be performed.

6. The network security situation analysis method based on the improved dynamic Bayesian attack graph according to claim 5, characterized in that, The extended Bayes formula is: in, Let be the dynamic reachability probability of node s. Given that node s is reachable, what is the conditional reachability probability of its direct successor node S_post? Let be the static reachability probability of node s. The static reachability probability of the direct successor node S_post. This represents the dynamic reachability probability of the direct successor node S_post.

7. The network security situation analysis method based on the improved dynamic Bayesian attack graph according to claim 5, characterized in that, The nodes marked as updated will be unconditionally remarked as not_updated after time Δt, returning to the random sampling range where updates or calculations of dynamic reachability probabilities are needed.

8. A network security situation analysis system based on an improved dynamic Bayesian attack graph, characterized in that, The network security situation analysis method based on the improved dynamic Bayesian attack graph as described in any one of claims 1-7 includes an LAG establishment module, a probability table calculation module, a static risk calculation module, a D_BAG acquisition module, and a dynamic risk calculation module. The LAG establishment module is used to establish the original logical attack graph LAG={GA,GP,GC} for the network system using mulval software; where GA is the attack node set, GP is the privileged node set, and GC is the configuration node set. The probability table calculation module is used to calculate the value score of vulnerabilities in the network system using CVSS environmental metrics, and normalize it as the atomic attack probability of the attacking node to obtain the initial atomic attack probability table. The static risk calculation module is used to consider node dependencies, generate a static Bayes attack graph S_BAG using Bayesian inference, and perform static risk calculation, calculating the possible branch domination set, absolute branch domination set, and static reachability probability of all nodes. The D_BAG acquisition module is used to transform the static Bayesian attack graph S_BAG into a dynamic Bayesian attack graph D_BAG when an intrusion behavior is detected that causes a change in the network security situation. Based on the static risk calculation results, it quickly determines the complete dominance set of the nodes where the intrusion behavior occurred. At the same time, it removes edges and nodes in the dynamic Bayesian attack graph D_BAG that are not useful for subsequent risk assessment, updates the atomic attack success rate of some attack nodes, and obtains a new atomic attack probability table. The dynamic risk calculation module is used to combine random sampling, forward update and reverse update to calculate the dynamic reachability probability of nodes in the dynamic Bayesian attack graph D_BAG, excluding the fully dominated set.

9. A computer-readable storage medium storing a program, characterized in that, When the program is executed by the processor, it implements the network security situation analysis method based on the improved dynamic Bayesian attack graph as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Network security situation prediction method and device based on Bayesian network

    CN110995649A

  • Network intrusion intention analysis method based on Bayesian attack graph

    CN114844701A