Multi-stage attack scene dynamic construction method based on attack path graph
By obtaining alarm information and network change factors, periodically updating the attack path map, calculating the attack path probability, and constructing multi-stage attack scenarios, it solves the problem of dynamic representation of complex network attack scenarios and realizes the dynamic construction and update of multi-stage attacks. Enhanced network security defense capabilities.
Patent Information
- Application Number
- CN202410880134.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-15
AI Technical Summary
It is difficult for existing technologies to comprehensively capture and represent complex multi-stage network attack scenarios. Especially in the multi-step, multi-host approach of modern network attacks, the attack path diagram becomes complex and difficult to dynamically update and represent.
By obtaining alarm information and filtering false alarms, an attack path diagram is generated. Based on changes in network structure, changes in host information and changing factors of new attack generation, the attack path diagram is periodically updated, a collection of attack chains is generated, the probability of the attack path is calculated, and a Multi-stage attack scenario.
It realizes the dynamic construction and update of multi-stage network attacks, intuitively represents the development direction of attack scenarios, reflects the correlation between attack paths, and enhances the defense capabilities of network security.
Smart Images

Figure CN118784303A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a method for dynamically constructing a multi-stage attack scenario based on an attack path graph. Background Art
[0002] A lot of research has been done on attack scenario construction methods. Some of this work transforms professional domain knowledge into rules, and the experience-based scenario construction method uses rule matching algorithms to restore the network attack process and comprehensively reconstruct the attack scenario.
[0003] Since there are many possible vulnerabilities and attack methods in the network, attackers can choose multiple different paths to achieve their attack goals. This requires that the update of the attack path map needs to consider more possibilities and scenarios. Modern network attacks often use a multi-step, multi-host approach to gradually penetrate the entire network. This attack method makes the attack path map extremely complex and difficult to fully capture and represent.
[0004] Therefore, it is necessary to propose a method that can comprehensively represent the dynamic changes of multi-stage attack scenarios in order to protect network security. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a method for dynamically constructing a multi-stage attack scenario based on an attack path graph.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A method for dynamically constructing a multi-stage attack scenario based on an attack path graph comprises the following steps:
[0008] S1: Obtain alarm information and filter false alarms to obtain construction parameters;
[0009] S2: Generate attack path graph based on construction parameters;
[0010] S3: Set an update cycle and obtain the change factors of the attack path map at the beginning of each cycle;
[0011] S4: according to the change factors of the attack path graph, the attack path graph is updated using the corresponding attack path graph updating method;
[0012] S5: traverse the updated attack path graph to generate the final set of victim nodes;
[0013] S6: According to the set of related attack predecessor paths of the victim node set, the probability of the predecessor attack path occurring when the current attack occurs is calculated, the conditional probabilities of the related predecessor attack paths are compared, and the maximum value is added to the attack chain set until all related predecessor attack paths are added to the attack chain set;
[0014] S7: Generate a set of attack chains corresponding to the attack path graph based on the attack chain set, that is, a multi-stage attack scenario.
[0015] Furthermore, factors that cause the attack path graph to change include changes in network structure, changes in host information, and changes in the attack path graph caused by the generation of new attacks.
[0016] Furthermore, when the network structure changes, the corresponding attack path graph updating method includes the following steps:
[0017] Check changes in network nodes to determine whether to add or delete network nodes; when adding a network node, create a new attack path based on the alarm information of the node; when deleting a network node, delete all paths from the node at the same time.
[0018] Furthermore, when the host information changes, the corresponding attack path map updating method includes the following steps:
[0019] The node where the host information is changed is obtained, and the internal probability of the attack path starting from the node and the internal probability of the attack path of the related subsequent path are calculated.
[0020] Furthermore, when a new attack is generated, the corresponding attack path graph updating method includes the following steps:
[0021] Based on the attack preceding path and internal probability of the new attack, the probability of the new attack is generated, and the probabilities of all attack paths from the target node of the new attack to the victim node are updated.
[0022] Furthermore, the probability of the current attack occurring is expressed as:
[0023]
[0024] 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.
[0025] Furthermore, a victim node is a node whose probability of being attacked is greater than or equal to 50%.
[0026] Furthermore, the alarm information includes alarm density, alarm cycle, number of alarm destinations and number of alarm sources.
[0027] Furthermore, the construction parameters include vulnerability score, attack cost, attack benefit, and alarm truth rate.
[0028] Furthermore, the attack path graph is represented by a binary tuple <op,e i,k > indicates that op = {I, D} indicates the operation type, op = I indicates an add operation, and op = D indicates a delete operation; e i,j Represents the attack path op associated with the operation in the attack path graph.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] 1) The present invention designs an attack chain generation algorithm based on an attack path graph, periodically detects the system's attacked state, restores the multi-stage attack path in the network based on the change factors of the attack path graph, generates an attack chain, and reconstructs the attack scenario. The attack path graph describes the impact process of the multi-stage network attack, calculates the probability of the preceding attack path occurring when the current attack occurs, and thus constructs an attack chain set, which reflects the correlation between the multi-stage attack processes and realizes the dynamic construction of the attack scenario.
[0031] 2) The present invention comprehensively considers the influencing factors of multi-step attacks through three main aspects: network structure change, host information change, and new attack generation, and designs an attack scenario dynamic update algorithm based on network change factors to achieve network structure update.
[0032] 3) The present invention can realize the intuitive representation of attack scenarios and the dynamic update of attack scenarios, highlighting the possible development direction of the attack. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0034] Figure 2 This is a schematic diagram of the attack path map before the update.
[0035] Figure 3 Schematic diagram of the dynamic attack scenario sequence.
[0036] Figure 4 is a schematic diagram of the updated attack path map.
[0037] Figure 5a This is the attack path diagram at 10 o'clock.
[0038] Figure 5b This is the attack path diagram at 11 o'clock.
[0039] Figure 5c Attack chain at 11 o'clock.
[0040] Figure 5d A complete attack path diagram. DETAILED DESCRIPTION
[0041] 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.
[0042] Example 1
[0043] like Figure 1 As shown, the present invention is a method for dynamically constructing a multi-stage attack scenario based on an attack path graph, comprising the following steps:
[0044] S1: Obtain alarm information and filter false alarms to obtain construction parameters;
[0045] S2: Generate attack path graph based on construction parameters;
[0046] S3: Set an update cycle and obtain the change factors of the attack path map at the beginning of each cycle;
[0047] S4: according to the change factors of the attack path graph, the attack path graph is updated using the corresponding attack path graph updating method;
[0048] S5: traverse the updated attack path graph to generate the final set of victim nodes;
[0049] S6: According to the set of related attack predecessor paths of the victim node set, the probability of the predecessor attack path occurring when the current attack occurs is calculated, the conditional probabilities of the related predecessor attack paths are compared, and the maximum value is added to the attack chain set until all related predecessor attack paths are added to the attack chain set;
[0050] S7: Generate a set of attack chains corresponding to the attack path graph based on the attack chain set, that is, a multi-stage attack scenario.
[0051] S1: Filter false alarms. Use the four key feature indicators of alarm density, alarm cycle, number of alarm destinations and number of alarm sources to distinguish between real alarms and false alarms. Using the alarm data detected by the IDS, calculate and extract the four key features of each alarm data, and use the extracted features to train the neural network model. The four features of alarm density, alarm cycle, number of alarm destinations and number of alarm sources are used as inputs, and the categories of real alarms and false alarms are used as labels. Train the neural network and use the trained neural network for false alarm filtering.
[0052] S2: Generate an attack path graph based on the construction parameters. The construction parameters include vulnerability score, attack cost, attack benefit, and alarm true rate. Calculate the internal probability of the attack based on these four parameters to obtain the potential impact of the attack itself on the attack result. Then, match the attack stage of the current attack path through the network direction of the alarm, and combine with the attack type to obtain the pre-attack path for each attack according to the chronological order of the attack stage and the logical order of event occurrence, resulting in a set of pre-attack paths. In this embodiment, attack a k is represented as an edge e in the attack path graph i,k . Under the influence of relevant pre-attack paths and internal factors, the probability of the current attack occurring is represented by P(e i,k ), and the calculation is as follows:
[0053]
[0054] In the formula, a j ∈PrA(e i,k ) is a pre-attack; n is the number of pre-attack paths of e i,k ; p(e i,k ) is the internal probability of the attack.
[0055] The pre-attack paths are in an "or" relationship, that is, any pre-attack that occurs can reach this attack e i,k . The probability of the pre-attack occurring and the internal probability of the current attack occurring are in an "and" relationship, that is, only when the pre-attack occurs and the current internal conditions are met, can the attack e i,k be completed. When e i,k has no relevant pre-attack, the probability of the attack e i,k occurring is the internal probability P(e i,k ) = p(e i,k ). The edge set of the generated attack path graph includes the alarm occurrence time, attack type, and internal probability. Before the update, assuming t1 < t2 < t3 < t4, further calculate the conditional probability of the edge. Finally, construct an attack path graph G that includes a conditional probability distribution table of the edges. The structure of the attack path graph G at this time is as Figure 2 shown.
[0056] S3: Set an update period to achieve dynamic reconstruction of the attack path. The dynamic update order of the attack scenario is AP = {<time i , AC i >| time i = time i-1 +Δt}, where AC i is the set of attack chains generated according to the attack path graph G i at time i ; Δt is the update period.
[0057] like Figure 3 As shown in Figure 1, in the attack cycle Δt, the attack path graph changes with the changes in the network. The attack chain is generated by the attack path graph of the first cycle, that is, the attack chain set of AC1 at time1. i Finally, we get the dynamic attack scenario sequence:
[0058] AP = {<time1,AC1> ,<time2,AC2> ,<time3,AC3>}
[0059] S4: Consider the changes in the attack path graph caused by changes in network structure, host information, and new attacks, and use the attack path graph update method to update the attack path graph. The update of the attack path graph consists of a binary tuple <op,e i,k > indicates that op = {I, D} indicates the operation type, op = I indicates an add operation, and op = D indicates a delete operation; e i,j represents the attack path op associated with the operation in the attack path graph. k When the update operation is k ={ <op1,e 1,j >,…, <op n ,e n,m >}. The change of the attack path graph is actually the addition or deletion of nodes, the addition or deletion of edges, and the change of network parameters. Since the change will cause a series of changes in the related attack paths, one change may correspond to multiple update operations.
[0060] The network structure change means that when the network structure changes, it will cause the addition or deletion of nodes in the attack path graph. However, if the added node does not trigger any new alarm, no new attack path will be created. In addition, if the node v i If it points to a certain node, all attack paths starting from this node will be deleted. j,k )’s attack path j,k V i Points to node v j As an update PrA(e j,k ) Related v i , and then update all related subsequent attack paths in sequence.
[0061] Changing the host information means changing the vulnerability information of the host, thereby affecting the internal probability of the attack path starting from this node. Since the conditional probability of the attack path is determined by the pre-attack path probability and the internal probability, it is necessary to update the attack path probability starting from this node, as well as the probability of the related subsequent attack paths.
[0062] New attack generation means adding a new attack to the attack path graph, which means adding a new edge. Assume that in this embodiment, an attack path e is to be added. i,k , from v i to v j .e i,k The probability of attacking the preceding path PrA(e i,k ) and internal probability p(e i,k ), generated using the attack path graph generation method. Then, its related subsequent attack path probability needs to be updated. Determine v j If Outdegree(v j )>0 then v j It may be the intermediate node of the attack. Next, update from v j The probability of all attack paths to the victim node.
[0063] The update of the attack path graph consists of a binary tuple <op,e i,k > indicates that op = {I, D} indicates the operation type, op = I indicates an add operation, and op = D indicates a delete operation; e i,j represents the attack path op associated with the operation in the attack path graph. k When the update operation is k ={ <op1,e 1,j >,…, <op n ,e n,m >}.The changes in the attack path graph are actually the addition or deletion of nodes, the addition or deletion of edges, and the changes in network parameters. Since the changes will cause a series of changes in the related attack paths, one change may correspond to multiple update operations.
[0064] like Figure 4 As shown in Figure 2, a new node appears in the changing network structure. At t5, a node v6 is added and an attack e directed at v6 is launched. 4,1 , where t5>t4. Assume that the internal probability p(e 4,2 )=0.9, we can deduce e 4,1 The conditional probability p(e 4,1 )=0.65.
[0065] S5: Traverse the attack path graph and generate the final set of victim nodes. Nodes with a probability of being attacked less than 50% have a low probability of being successfully attacked, so they are not included in the generated attack chain. j Initially, this embodiment compares the probability P(e j-1,k ). Then the attack path with the highest probability is e j-1,r Add to attack chain set ac(vj )middle.
[0066] S6: According to the relevant attack front path set prA(e j-1,r ), combined with edge e j-1,r According to the conditional probability distribution table above, when the current attack occurs, the probability of the preceding attack path occurring is calculated in turn. The probability of the preceding attack path occurring is as follows:
[0067]
[0068] Where n represents PrA(e j-1,r ) quantity.
[0069] Compare the conditional probabilities of the related preceding attack paths. Select the attack path with the highest probability. j-2,m As the most likely cause j-1,r Then add this path to the attack chain set ac(v j )middle.
[0070] S7: When the relevant pre-attack path set e of the attack j-1,r When it is empty, the victim node v is completed. j For other victim nodes, the process continues until all attack chains are constructed.
[0071] This embodiment uses two attack scenarios included in the public dataset DARPA 2000 of the attack traffic dataset provided by Lincoln Laboratory: LLSDDOS1.0 and LLSDDOS2.0.2. The two datasets have the same attack starting host and the same target host. In addition, both contain five attack stages. The attack is divided into five stages: scanning the host, sending vulnerability query messages, attacking the host, implanting DDoS software in the target host, and launching a DDoS attack through the DDoS software. The main difference between the two lies in some of the processes that constitute a multi-stage attack. In LLSDDOS2.0.2, the attacker detects the host, platform, and operating system by performing DNS HINFO queries instead of scanning ports. The attacker first attacks one host in Eyrie instead of attacking each host separately. LLSDOS1.0 is used to construct a dynamic attack scenario. The scenario corresponds to five stages consisting of five steps. The dataset contains records from 9:25 to 12:00 on March 7, 2000. Therefore, this embodiment constructs an attack path diagram in sequence at intervals of 1 hour according to the occurrence time of the five steps. As shown in Figure 5a , Figure 5b , Figure 5c , Figure 5d As shown, the process of building the LLS_DOS1.0 attack scenario is given in sequence, showing the building process at 10:00, 11:00 and 12:00.
[0072] First, an attack path diagram is generated at 10 o'clock. This is the attack path diagram corresponding to the first stage, such as Figure 5a The attacker scans three target networks 172.16.115.0 / 24, 172.113.0 / 24, and 172.16.112.0 / 24 from the source address 202.77.162.213. The attacker sends ICMP echo requests and listens to the replies to detect the openness of the hosts in the network. Due to the lack of node vulnerability information and the same current state attack type, most of the path probabilities are the same, and the current attack chain and attack path diagram are also the same. The attack path diagram at 11 o'clock is as follows Figure 5b As shown in Figure 1, this is the attack path diagram after the fourth stage. In addition, the attack chain of this stage can also be obtained, such as Figure 5c As shown. The attacker sends an RPC request to the online host, requesting the sadmind service. The attacker queries the hosts running the query sadmind service and then uses them as puppet machines. The attacker successfully obtains the root privileges of the puppet machine by exploiting the buffer overflow vulnerability. The attacker injects DDoS attack software into the puppet machine. Through the attack chain, this embodiment can find the process that reflects the attacker scanning the host and accessing the hosts 172.16.112.10, 172.16.112.50 and 172.16.115.20. By analogy, this embodiment finally reconstructs the attack scenario and obtains the following Figure 5d The attack chain shown. The attacker will use 172.16.112.10, 172.16.112.50 and 172.16.115.20 to send a large amount of malicious information with false IP addresses to the target host 131.84.1.31. This embodiment omits the false IP addresses and obtains the final attack scenario. The final attack chain set restored by this embodiment is multiple attack paths related to 172.16.115.20, 172.16.112.50 and 172.16.112.10. In this case, 202.77.162.213 is used as the starting host of the attack, and 131.84.1.31 is used as the target host of the attack.
[0073] 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 dynamically constructing a multi-stage attack scenario based on an attack path graph, characterized in that: The following steps are involved: S1: Obtain alarm information and filter false alarms to obtain construction parameters; S2: Generate attack path graph based on construction parameters; S3: Set an update cycle and obtain the change factors of the attack path map at the beginning of each cycle; S4: according to the change factors of the attack path graph, the attack path graph is updated using the corresponding attack path graph updating method; S5: traverse the updated attack path graph to generate the final set of victim nodes; S6: According to the set of related attack predecessor paths of the victim node set, the probability of the predecessor attack path occurring when the current attack occurs is calculated, the conditional probabilities of the related predecessor attack paths are compared, and the maximum value is added to the attack chain set until all related predecessor attack paths are added to the attack chain set; S7: Generate a set of attack chains corresponding to the attack path graph based on the attack chain set, that is, a multi-stage attack scenario.
2. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 1, characterized in that: The attack path map change factors include changes in network structure, host information, and attack path map changes caused by new attacks.
3. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 2 is characterized in that: When the network structure changes, the corresponding attack path graph update method includes the following steps: Check changes in network nodes to determine whether to add or delete network nodes; when adding a network node, create a new attack path based on the alarm information of the node; when deleting a network node, delete all paths from the node at the same time.
4. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 2, characterized in that: When the host information changes, the corresponding attack path map update method includes the following steps: The node where the host information is changed is obtained, and the internal probability of the attack path starting from the node and the internal probability of the attack path of the related subsequent path are calculated.
5. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 2, characterized in that: When a new attack is generated, the corresponding attack path graph update method includes the following steps: Based on the attack preceding path and internal probability of the new attack, the probability of the new attack is generated, and the probabilities of all attack paths from the target node of the new attack to the victim node are updated.
6. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 1, characterized in that: The 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.
7. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 1, characterized in that: The victim node is a node whose probability of being attacked is greater than or equal to 50%.
8. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 1, characterized in that: The alarm information includes alarm density, alarm cycle, number of alarm destinations and number of alarm sources.
9. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 1, characterized in that: The construction parameters include vulnerability score, attack cost, attack benefit and alarm truth rate.
10. The method for dynamically constructing a multi-stage attack scenario based on an attack path graph according to claim 1, characterized in that: The attack path graph is represented by a binary tuple <op,e i,k > indicates that op = {I, D} indicates the operation type, op = I indicates an add operation, and op = D indicates a delete operation; e i,j Represents the attack path op associated with the operation in the attack path graph.
