Attack path graph generation method for multi-stage attacks
By analyzing IDS alarm data and calculating internal probabilities, an attack path diagram is generated, which solves the problem of difficulty in processing multi-stage network attack data in the existing technology, realizes a highly accurate attack path diagram, integrates multi-source data, and reduces the impact of false alarms. , intuitively reflects the network security status.
Patent Information
- Application Number
- CN202410825801.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-18
AI Technical Summary
Existing attack graph generation methods are difficult to handle multi-source attack data in multi-stage network attacks, resulting in fractures and errors in the generated attack graph. The structure is not intuitive and cannot effectively integrate a large amount of redundant and false alarm data.
By analyzing IDS alarm data, we can distinguish real and false alarms, calculate the true rate of alarms, extract vulnerability scores, attack costs and attack benefits, calculate internal probabilities, obtain pre-attack paths, generate attack path diagrams, and highlight the relevance of the attack process.
The generated attack path map has high accuracy, can truly reflect the network security status, integrates multi-source data of multi-stage network attacks, reduces the impact of false alarms, and improves detection accuracy.
Smart Images

Figure CN118802333A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security, and in particular to a method for generating an attack path graph for multi-stage attacks. Background Art
[0002] The widespread use of network devices has led to a trend of increasing concealment, duration and complexity of network attacks. Current network attacks often include multiple separate attack phases and attack paths, which generates a large amount of complex and disordered attack alarm data. Attack graphs can help defenders analyze the logical relevance of attacks, restore the attacker's method and process of attacking the target network, and then discover the attacker's attack intentions and strategies, which helps defenders take timely and effective countermeasures.
[0003] After searching the literature on the existing technologies, it was found that Hu et al. published an article titled "Survey of Attack Graph Based Network Security Metric" in the "Chinese Journal of Network and Information Security" in 2018, proposing a state attack graph construction method. The state attack graph can better reflect the process of node state changes in the network. The design of the state attack graph fully considers the attacker's attack strategy and helps security professionals fully understand the attacker's intentions and operation logic by showing the various steps and paths that the attacker may take. However, as the number of states in the network increases, the state attack graph cannot handle the rapidly growing state nodes and is not very intuitive in structure.
[0004] The current attack graph generation method focuses more on node information and fails to process a large amount of redundant and false alarm data, resulting in breaks and errors in the generated attack graph. Therefore, it is difficult to integrate the multi-source attack data generated by multi-stage network attacks. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide an attack path graph generation method for multi-stage attacks.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A method for generating an attack path graph for a multi-stage attack comprises the following steps:
[0008] S1: Analyze IDS alarm data, distinguish true alarms from false alarms based on alarm density, alarm cycle, number of alarm destinations, and number of alarm sources, and calculate the alarm authenticity rate;
[0009] S2: Get the attack behavior, extract the vulnerability score, attack cost and attack benefit based on the attack behavior, calculate the attack parameters, and calculate the internal probability of the attack based on the trajectory parameters and alarm truth rate.
[0010] S3: Obtaining the preceding attack path related to the attack behavior;
[0011] S4: According to the previous attack path and internal probability, the probability of the current attack is calculated, and the conditional probability distribution of the edge is further calculated. According to the conditional probability distribution of the edge, the attack path diagram is obtained.
[0012] Furthermore, the alarm density is the number of related alarms generated per unit time. The expression of alarm density is:
[0013]
[0014] In the formula, related() is the expression for calculating the number of related alarms, and MaxTime is a i The time when the relevant alarm last occurred. MinTime is a i The earliest time when the relevant alarm occurred, M is the total number of alarms, S is the ip for a i and a j The address correlation, S type for a i and a j Alarm type relevance.
[0015] Furthermore, the calculation expression of address correlation is:
[0016]
[0017] In the formula, a i .Sip and a j .Sip is respectively alarm a i and a j The source IP address of i .Dip and a j .Dip is respectively alarm a i and a j Destination IP, a i .Sport and a j .Sport is respectively alarm a i and a j The source port of i .Dport and a j .Dport is respectively alarm a i and a j The destination port of the
[0018] Furthermore, the calculation expression of the alarm type correlation is:
[0019]
[0020] In the formula, a i .AlertType and a j .AlertType is alarm a i and a j The attack type.
[0021] Furthermore, the calculation expression of the internal probability is:
[0022]
[0023] In the formula, p(e i,k ) is the internal probability, score(v i ) is the vulnerability score, income(e i,k ) is the attack benefit, true(e i,k ) is the alarm truth rate, cost(e i,k ) is the attack cost.
[0024] Furthermore, the calculation expression of the vulnerability score is:
[0025]
[0026] In the formula, Score ranges from [0,10]; round() is a function that rounds to two decimal places; Exp is the vulnerability exploitability indicator; Imp is the vulnerability impact indicator; Scope indicates whether the impact scope of the vulnerability has changed, U means unchanged; C means changed.
[0027] Furthermore, the steps of obtaining the front attack path are:
[0028] Assume that node v i and v j There is an alarm between i,k , e i,k Starting from node i, through the kth path to reach j, according to the attack node v i Indegree(v i ) to compare the correlation factors between attacks;
[0029] When Indegree(v i )=0, v i is the initial node, i.e. alarm e i,k There is no relevant preceding attack path.
[0030] When Indegree(vi )=m≥1, judge v i Whether the input edge's appearance time is earlier than the current alarm time, if it is later than the current alarm time, then v i is the initial node, Otherwise, node v i The attack stage set corresponding to each element in the preceding path is consistent with the current alarm e i,k The attack stage set stage(e i,k ) for comparison, if and only if the stages of the attack stage set corresponding to the path are all smaller than stage(e i,k ), the path belongs to the set of related preceding attack paths.
[0031] Furthermore, the calculation expression of the probability of the current attack occurring is:
[0032]
[0033] In the formula, a j ∈PrA(e i,k ) is the front attack; n is e i,k The number of preceding attack paths; p(e i,k ) is the intrinsic probability of attack.
[0034] Furthermore, the calculation expression of the conditional probability of the edge is:
[0035] P(e i,k =n|a1=x, a2=y,...,a m = z)
[0036] =P(a1=x)·P(a2=y)·...·P(a m = z)·p(e i,k )
[0037] Where n, x, y, z are 0 or 1; a1, a2, ..., a m ∈PrA(e i,k ), m is the total number of preceding attack paths.
[0038] Furthermore, the attack path is a directed graph, expressed as:
[0039] G=(V,E,X)
[0040] In the formula, G is the attack path, V is the node set, X is the node feature matrix, and E is the set of directed edges between nodes. The expression is:
[0041] E=(t,P,T)
[0042] P = {p i,k |p i,k=P(e i,k |e i-1,1 , ..., e i-1,j-1 , e i-1,j )}
[0043] Where t is the time when the alarm occurs, P is the conditional probability distribution table, and p i,k To attack i,k The degree of correlation between the attack path and its related predecessor, e i,k For slave node v i The kth alarm is triggered, j is the total number of preceding attack paths, T is e i,k The attack type.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] 1) The present invention screens the correct alarm information, considers the impact of the alarm itself on the attack results and the correlation between different attacks on the same node, and can therefore fuse the multi-source attack data generated by multi-stage network attacks, combine the true rate obtained by detection with the attack behavior, and generate an attack path map that can truly reflect the network security status with high accuracy.
[0046] 2) The present invention analyzes the correlation between different attacks through address correlation and alarm type correlation, analyzes the attacker's preference for exploiting specific vulnerabilities through vulnerability scores, quantifies the correlation strength between attacks through the conditional probability of edges, pays more attention to the attack process rather than the status of a single node, and highlights the correlation of information. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is an attack path graph generation framework.
[0048] Figure 2 is the accuracy of the false alarm filtering model.
[0049] Figure 3 It is an attack path diagram built based on LLSDDOS2.0.2. DETAILED DESCRIPTION
[0050] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0051] The present invention is a method for generating an attack path graph for multi-stage attacks. Figure 1 As shown, the present invention comprises the following steps:
[0052] S1: Calculate the alarm authenticity rate. The present invention first analyzes the IDS alarm data and selects the alarm density, alarm cycle, number of alarm destinations and number of alarm sources as key features to distinguish true alarms from false alarms. Then the four features are used as input to train the neural network model to determine whether the alarm is true or not and calculate the alarm authenticity rate. When all alarms pass through the neural network model, the true alarms are retained and S2 is executed.
[0053] Alarm density refers to the number of related alarms generated per unit time. The calculation expression is:
[0054]
[0055] In the formula, related() is the expression for calculating the number of related alarms, and MaxTime is a i The time when the relevant alarm last occurred. MinTime is a i The earliest time when the relevant alarm occurred, M is the total number of alarms, S is the ip for a i and a j The address correlation, S type for a i and a j Alarm type relevance.
[0056] The calculation expression of alarm type correlation is:
[0057]
[0058] In the formula, a i .AlertType and a j .AlertType is alarm a i and a j The attack type.
[0059] The calculation expression of internal probability is:
[0060]
[0061] In the formula, p(e i,k ) is the internal probability, score(v i ) is the vulnerability score, income(e i,k ) is the attack benefit, true(e i,k ) is the alarm truth rate, cost(e i,k ) is the attack cost.
[0062] The alarm cycle refers to the time interval between two consecutive occurrences of the same attack event. Encode the alarm data into a triple (Sip, Dip, AlertType), count the number of alarms generated by the triple in each minute, and construct an alarm event sequence {x(t), t = 1, 2, ..., N}, where x(t) represents the count of the same type of alarms in the tth minute, and N represents the total number of minutes. Then use the discrete Fourier transform function to select the maximum frequency point f and calculate the alarm cycle
[0063] The calculation expression of the discrete Fourier transform function is:
[0064]
[0065] Where DET(n) is the discrete Fourier transform function value, x(i) is the number of alarms in the i-th minute, and e 2πK =1.
[0066] The number of alarm destinations refers to the number of target IP addresses connected to the same source IP. The calculation expression is:
[0067] M i = count(a j ), j = 1, 2, ..., M, j ≠ i
[0068] Among them, M i Is the alarm i The number of alarm purposes; a j ·Sip=a i .Sip; count() means to count the number of a that meet the conditions j formula for the number of alarms; M is the number of alarms.
[0069] The number of alarm sources refers to the number of source IP addresses associated with the alarm set of a specific target IP. The calculation expression is:
[0070] S i = count(a m ), m=1,2,...,M,m≠i
[0071] In the formula, S i Is the alarm i The number of alarm sources; a m .DstIP=a i .DstIP; count() means to calculate the number of a that meet the conditions j formula for the number of alarms; M is the number of alarms.
[0072] The neural network model takes four features as input: alarm density, alarm cycle, number of alarm destinations, and number of alarm sources, and uses true alarm and false alarm categories as labels. The loss function is the Tanh function. The neural network structure includes an input layer with four inputs, three hidden layers, and finally an output layer.
[0073] Alarm true rate true(e i,k ) refers to each alarm e obtained by calculating the neural network model i,k The probability of a true alarm can effectively reduce the negative impact of undetected false alarms on subsequent steps. i,k It represents the slave node v i The kth alarm is triggered.
[0074] S2: Calculate the internal probability. The present invention extracts the vulnerability score, attack cost and attack benefit according to the attack behavior as the attack path map construction parameters. According to the calculated parameters and the alarm truth rate, the internal probability of the attack is calculated, and the potential impact of the attack itself on the attack result is obtained.
[0075] The intrinsic probability of an attack refers to the probability of an attack occurring under the influence of internal factors. i,k ), only related to the current state, the calculation expression is:
[0076]
[0077] In the formula, p(e i,k ) is the internal probability, score(v i ) is the vulnerability score, income(e i,k ) is the attack benefit, true(e i,k ) is the alarm truth rate, cost(e i,k ) is the attack cost.
[0078] The vulnerability score refers to the attacker's preference for exploiting a specific vulnerability, which is related to the severity of the vulnerability. Therefore, it is calculated based on the quantitative criteria given by the Common Vulnerability Scoring System (CVSS). i ) is calculated by the vulnerability score Score, and the calculation expression is:
[0079]
[0080] In the formula, Score ranges from [0,10]; round() is a function that rounds to two decimal places; Exp is the vulnerability exploitability indicator; Imp is the vulnerability impact indicator; Scope indicates whether the impact scope of the vulnerability has changed, U means unchanged; C means changed.
[0081] The vulnerability exploitability index Exp is calculated according to CVSS 3.0, and the calculation expression is:
[0082] Exp=8.22×AV×AC×PR×UI
[0083] Where AV represents access vector; AC represents access complexity; PR represents required permissions; and UI represents user interaction.
[0084] The vulnerability impact indicator Imp is calculated according to CVSS 3.0, as follows:
[0085]
[0086] In the formula, ISCbase=1-((1-C)(1-I)(1-A)); ISCbase is an intermediate variable.
[0087] Attack profit means: the attacker performs an attack e i,k The generated benefits. Since the attacker will not repeatedly obtain the same attack benefits, the attack benefits are related to the final state of the attack. When calculating the attack benefits, managers mainly adjust the specific weight values based on their own experience and actual conditions.
[0088] Attack cost refers to: the attacker launches the attack i,k The cost of initial investment, manpower, material resources, attack execution and other operations consumed during the attack. It is mainly calculated from the attack development cost and attack execution cost. The calculation expression is:
[0089] cost(e i,k )=1-((1-SI)(1-SP)(1-OR)(1-,R))
[0090] In the formula, SI represents vulnerability information; SP represents vulnerability platform; OR represents operation requirement; IR represents information requirement.
[0091] S3: Obtain relevant preceding attack paths. Since the attack stages are not completely independent in reality, the occurrence of the current real attack is not only affected by internal factors, but also by the preceding factors of the attack. The relevant preceding attack paths can be obtained through three factors: attack stage, attack type, and attack occurrence time.
[0092] The related front attack paths are:
[0093] 1) Let node v i and v j There is an alarm between i,k , starting from node i, and reaching j through the kth path. According to the attack node v i Indegree(v i ), compare the correlation factors between attacks, and obtain the relevant attack pre-path PrA(e i,k ) process.
[0094] 2) When one of the following two conditions is met, obtain the relevant preceding path PrA(e i,k ) process:
[0095] a) Indegree(v i )=0,v i is the initial node;
[0096] b) Indegree(v i )=m≥1,v i It may be a transition node.
[0097] Condition a) refers to node v i No in-degree, alarm e i,k There is no relevant preceding attack path.
[0098] When condition b) is met, node v i There is more than one in-degree, alarm e i,k At this time, there may be a related front attack path, so it is necessary to determine v i Whether the input edge's appearance time is earlier than the current alarm time, if it is later than the current alarm time, then v i is the initial node, Otherwise, node v i The attack stage set corresponding to each element in the preceding path is consistent with the current alarm e i,k The attack stage set stage(e i,k ) for comparison, if and only if the stages of the attack stage set corresponding to the path are all smaller than stage(e i,k ), the path belongs to the set of related preceding attack paths, which is recorded as:
[0099]
[0100] In addition, if e i,k If there are two preceding attack paths of the same type, only the attack path that appears later is retained as the preceding attack path.
[0101] The attack phase refers to the phase of the attack to which the alarm belongs. It is usually difficult for managers to determine which phase of the attack the alarm belongs to, and this process will require a lot of manual intervention. Therefore, in order to reduce manual intervention, the present invention uses the network direction of the alarm to match the possible attack phase set to which the current attack path belongs.
[0102] S4: Generate an attack path diagram. Under the influence of relevant previous attack paths and internal factors, calculate the probability P(e i,k ). The edge set of the generated attack path graph contains the alarm occurrence time, attack type and intrinsic probability. The conditional probability distribution table of the edge is further calculated to quantify the correlation strength between attacks. The present invention pays more attention to the attack process rather than the state of a single node, combines qualitative analysis with quantitative analysis, and generates an attack path graph.
[0103] The probability of an attack occurring refers to the probability of the current attack occurring, which only depends on its previous related attacks and intrinsic probability. The calculation expression is:
[0104]
[0105] In the formula, a j ∈PrA(e i,k ) is the front attack; n is e i,k The number of preceding attack paths; p(e i,k ) is the intrinsic probability of attack.
[0106] The conditional probability distribution table of an edge refers to the probability of the current attack occurring under the influence of the related previous attack paths and the intrinsic probability. Since the previous attack paths are unrelated, they can be converted into the product of the probability between the previous attack paths and the intrinsic probability of the current attack.
[0107] The edge set of the generated attack path graph contains the alarm occurrence time, attack type, intrinsic probability, and probability of attack occurrence. The conditional probability distribution table of the edge is further calculated to quantify the correlation strength between attacks. The present invention pays more attention to the attack process rather than the state of a single node, combines qualitative analysis with quantitative analysis, and generates an attack path graph.
[0108] The conditional probability distribution table of the edge refers to the probability of the current attack occurring under the influence of the related previous attack path and the intrinsic probability. Since the previous attack paths are unrelated, they can be converted into the product of the probability between the previous attack paths and the intrinsic probability of the current attack: the calculation expression is:
[0109] P(e i,k =n|a1=x, a2=y,...,a m =z)
[0110] =P(a1=x)·P(a2=y)·...·P(a m = z)·p(e i,k )
[0111] Where n, x, y, z are 0 or 1; a1, a2, ..., a m ∈PrA(e i,k ), m is the total number of preceding attack paths.
[0112] The attack path graph of the present invention is defined as a directed graph G, which is expressed as:
[0113] G=(V,E,X)
[0114] V is a node set, node v i ∈V represents the name of the node in the network, and |V|=n is the number of nodes.
[0115] E is the set of directed edges between nodes, each edge From Node v i Corresponding to an alarm, the expression is:
[0116] E=(t,P,T)
[0117] P = {p i,k |p i,k =P(e i,k |e i-1,1 , ..., e i-1,j-1 , e i-1,j )}
[0118] Where t is the time when the alarm occurs, P is the conditional probability distribution table, and p i,k To attack i,k The degree of correlation between the attack path and its related predecessor, e i,k For slave node v i The kth alarm is triggered, j is the total number of preceding attack paths, T is e i,k The attack type.
[0119] X is the node feature matrix, X i Represents node v i The feature vectors contained in include node vulnerability information, device information, etc.
[0120] Example 1
[0121] This example uses Python 3.7 in Windows as the programming environment for this experiment, and PyCharm 2018 as the programming platform. Based on the alarm data detected by the IDS, the features are extracted to train the false alarm filtering model, the potential influencing factors of the attack itself are calculated by combining the calculated alarm accuracy and attack features, and the attack path is generated by combining the causal relationship between attacks, thus realizing the attack path diagram generation method for multi-stage attacks.
[0122] False alarm filtering model training results:
[0123] In order to ensure the accuracy of false alarm filtering in the new scheme, the effectiveness of the false alarm filtering model is first verified. According to the first step, four features of the alarm are extracted from the data set as the input of the neural network model. The 5-fold cross-validation method is used to divide the training set into 5 data blocks. The ratio of true alarm and false alarm samples in each data block is the same as that of the whole set. Each data block is selected for testing in turn, and the remaining four data blocks are used for training. After 5 folds, the average of each evaluation result is taken to obtain the final accuracy, precision, recall and f1 score. The relationship between the accuracy of the model and the number of training times is shown in the figure. Figure 2 As shown in Table 1, it can be found that when the number of training times is greater than 40, the accuracy of the model tends to stabilize and no longer increases. The values of accuracy, precision, regression and f1 score for each training and the entire model are shown in Table 1. It can be found that the model has achieved a very high performance at this time.
[0124] Table 1 Model accuracy
[0125]
[0126] Attack path diagram generation results:
[0127] Then, the generation of the attack path graph is verified through experiments. According to the calculation of the vulnerability score in the second step, we can obtain the vulnerability scores of the three operating systems in the experiment, as shown in Table 2.
[0128] Table 2 Vulnerability scores
[0129]
[0130] Calculate the intrinsic probability of each attack path in the network and record it as the feature of each edge. Convert each alarm into an edge to generate an attack path graph. This embodiment uses alarm information and attack behavior to construct an attack path graph, such as Figure 3As shown in Figure 2. This dataset corresponds to five stages consisting of five steps, and contains records from 14:45 to 16:30 on April 26, 2000. Therefore, in order to verify the effectiveness of the attack path graph generation method, we only constructed the attack path graph in the final state of the dataset, that is, the attack path graph corresponding to 16:30.
[0131] The figure shows the attack process of the entire network. In this case, the attacker performed a HINFO query on the Eyrie DNS server mill.Eyrie.af.mil (172.16.115.20) from the source address 202.77.162.213. Then, the attacker successfully destroyed the Eyrie DNS service by exploiting the sadmind vulnerability. Finally, the attacker uploaded the DDoS software and attack scripts on 172.16.115.20 to attack other internal hosts 172.16.112.50 and 172.16.112.207. In these two attacks, 172.16.112.50 was successfully attacked, while the attack on 172.16.112.207 failed and terminated.
[0132] This embodiment studies the attack path graph generation method for multi-stage network attacks. This embodiment proposes to analyze the false alarm features and design a neural network model for a large amount of redundant and false alarm data. This method can effectively improve the accuracy of false alarm detection, and considers the impact of unfiltered false alarms, thereby improving the accuracy of the generated attack graph. This embodiment not only focuses on node information, but also considers the impact of the alarm itself on the attack results and the correlation between different attacks on the same nodes, so it can integrate multi-source attack data generated by multi-stage network attacks. The true rate obtained by detection is combined with the attack behavior to generate an attack path graph that can truly reflect the network security status. Finally, the effectiveness of the false alarm filtering model and the attack path graph generation method proposed in this paper were verified by experiments. On the whole, the attack path graph generation method proposed in this paper has a high false alarm detection accuracy and has the advantage of being able to intuitively understand the network security situation.
[0133] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A method for generating an attack path graph for a multi-stage attack, characterized in that: The following steps are involved: S1: Analyze IDS alarm data, distinguish true alarms from false alarms based on alarm density, alarm cycle, number of alarm destinations, and number of alarm sources, and calculate the alarm authenticity rate; S2: Get the attack behavior, extract the vulnerability score, attack cost and attack benefit based on the attack behavior, calculate the attack parameters, and calculate the internal probability of the attack based on the trajectory parameters and alarm truth rate. S3: Obtaining the preceding attack path related to the attack behavior; S4: According to the previous attack path and internal probability, the probability of the current attack is calculated, and the conditional probability distribution of the edge is further calculated. According to the conditional probability distribution of the edge, the attack path diagram is obtained.
2. The method for generating an attack path graph for a multi-stage attack according to claim 1, characterized in that: The alarm density is the number of related alarms generated per unit time. The expression of the alarm density is: In the formula, related() is the expression for calculating the number of related alarms, and MaxTime is a i The time when the relevant alarm last occurred. MinTime is a i The earliest time when the relevant alarm occurred, M is the total number of alarms, S is the ip for a i and a j The address correlation, S type for a i and a j Alarm type relevance.
3. The method for generating an attack path graph for a multi-stage attack according to claim 2, characterized in that: The calculation expression of the address correlation is: In the formula, a i .Sip and a j .Sip is respectively alarm a i and a j The source IP address of i .Dip and a j .Dip is respectively alarm a i and a j Destination IP, a i .Sport and a j .Soort is respectively alarm a i and a j The source port of i .Dport and a j .Dport is respectively alarm a i and a j The destination port of the 4. The method for generating an attack path graph for a multi-stage attack according to claim 2, characterized in that: The calculation expression of the alarm type correlation is: In the formula, a i .AlertType and a j .AlertType is alarm a i and a j The attack type.
5. The method for generating an attack path graph for a multi-stage attack according to claim 1, characterized in that: The calculation expression of the internal probability is: In the formula, p(e i,k ) is the internal probability, score(v i ) is the vulnerability score, income(e i,k ) is the attack benefit, true(e i,k ) is the alarm truth rate, cost(e i,k ) is the attack cost.
6. The method for generating an attack path graph for a multi-stage attack according to claim 1, characterized in that: The calculation expression of the vulnerability score is: In the formula, Score ranges from [0,10]; round() is a function that rounds to two decimal places; Exp is the vulnerability exploitability indicator; Imp is the vulnerability impact indicator; Scope indicates whether the impact scope of the vulnerability has changed, U means unchanged; C means changed.
7. The method for generating an attack path graph for a multi-stage attack according to claim 1, characterized in that: The steps of obtaining the front attack path are: Assume that node v i and v j There is an alarm between i,k , e i,k Starting from node i, through the kth path to reach j, according to the attack node v i Indegree(v i ) to compare the correlation factors between attacks; When Indegree(v i )=0, v i is the initial node, i.e. alarm e i,k There is no relevant preceding attack path. When Indegree(v i )=m≥1, judge v i Whether the input edge's appearance time is earlier than the current alarm time, if it is later than the current alarm time, then v i is the initial node, Otherwise, node v i The attack stage set corresponding to each element in the preceding path is consistent with the current alarm e i,k The attack stage set stage(e i,k ) for comparison, if and only if the stages of the attack stage set corresponding to the path are all smaller than stage(e i,k ), the path belongs to the set of related preceding attack paths.
8. The method for generating an attack path graph for a multi-stage attack according to claim 1, characterized in that: The calculation expression of the probability of the current attack occurring is: In the formula, a j ∈PrA(e i,k ) is the front attack; n is e i,k The number of preceding attack paths; p(e i,k ) is the intrinsic probability of attack.
9. The method for generating an attack path graph for a multi-stage attack according to claim 1, characterized in that: The calculation expression of the conditional probability of the edge is: P(e i,k =n|a1=x,a2=y,...,a m =z) =P(a1=x)·P(a2=y)·...|·P(a m =z)·p(e i,k ) Where n, x, y, z are 0 or 1; a1, a2, ..., a m ∈PrA(e i,k ), m is the total number of preceding attack paths.
10. The method for generating an attack path graph for a multi-stage attack according to claim 1, characterized in that: The attack path is a directed graph, and the expression is: G=(V,E,X) In the formula, G is the attack path, V is the node set, X is the node feature matrix, and E is the set of directed edges between nodes. The expression is: E=(t,P,T) P={p i,k |p i,k =P(e i,k |and i-1,1 ,...,And i-1,j-1 ,And i-1,j } Where t is the time when the alarm occurs, P is the conditional probability distribution table, and p i,k To attack i,k The degree of correlation between the attack path and its related predecessor, e i,k For slave node v i The kth alarm is triggered, j is the total number of preceding attack paths, T is e i,k The attack type.
Citation Information
Cited By
Security determination device, secure system design device, security determination method, and non-transitory storage medium
US12732525B2
