Network attack scheme recommendation method and device, electronic equipment and storage medium

By obtaining and analyzing the vulnerability and configuration information of the target network, filtering out risk hosts and forming attack paths, the problem of inefficient generation of network attack solutions is solved and network security assessment and defense capabilities are improved.

CN118972087AActive Publication Date: 2024-11-15PENG CHENG LAB
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410877244.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-11-15
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

As the target network size increases, the complexity of the attack map increases exponentially, resulting in inefficient generation of cyber attack solutions, making it difficult to effectively evaluate and prevent potential attacks.

Method used

By obtaining the vulnerability description information, service configuration information and network configuration information of the target network, combining these information with preset derivation rules, filtering out the hosts with vulnerabilities from the target network, determining the risk hosts and their attack status transfer information, and grouping them and multi-dimensional scoring to form target attack paths and simulated attack schemes.

Benefits of technology

It improves the efficiency of the generation of network attack solutions, can quickly identify the risk hosts and attack paths in the target network, and enhances the network security defense capabilities and the accuracy of simulated attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972087A_ABST
    Figure CN118972087A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network attack scheme recommendation method and device, electronic equipment and a storage medium, and belongs to the technical field of network security. The method comprises the following steps: screening a plurality of hosts with vulnerabilities from a target network in combination with vulnerability description information, service configuration information and a preset derivation rule; in combination with the service configuration information, the network configuration information and the derivation rule, screening out a plurality of risk hosts from the plurality of hosts with vulnerabilities, and obtaining attack state transition information among the risk hosts; grouping the risk hosts according to the attack state transition information, and determining grouping attack paths among the risk groups; determining a plurality of target risk hosts according to risk quantized values obtained by performing multi-dimensional scoring on each risk host according to the vulnerability description information; and generating a target simulation attack scheme corresponding to the target attack path based on the grouped attack path and the plurality of target risk hosts. The generation efficiency of the network attack scheme can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a network attack scheme recommendation method, device, electronic device and storage medium. Background Art

[0002] In order to evaluate the security of the target network and prevent potential attacks, it is necessary to conduct a network security assessment on the target network to discover security vulnerabilities and potential risks in the target network and provide suggestions for improving security. Among them, generating network attack plans is one of the important contents of network security assessment. Network attack plans can help understand the security issues of the target network and guide the security repair work of the target network.

[0003] In the related art, an attack graph formed based on the target network is often used to determine the corresponding network attack scheme. However, as the size of the target network increases, the complexity of the attack graph also increases exponentially, which makes the generation efficiency of the network attack scheme low. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a network attack plan recommendation method, device, electronic device and storage medium, which can improve the efficiency of generating network attack plans.

[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a network attack scheme recommendation method, the method comprising:

[0006] Obtain vulnerability description information, service configuration information, and network configuration information of the target network;

[0007] Combine the vulnerability description information, the service configuration information and a preset derivation rule to screen and obtain a plurality of hosts with vulnerabilities from the target network;

[0008] Combine the service configuration information, the network configuration information and the derivation rule to screen multiple risk hosts from the multiple hosts with vulnerabilities, and obtain attack state transfer information between the risk hosts;

[0009] The risk hosts are grouped according to the attack state transfer information, and group attack paths between the risk groups are formed according to the attack state transfer information;

[0010] Perform multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determine multiple target risk hosts according to the risk quantification value;

[0011] A target attack path is formed based on the group attack path and the plurality of target risk hosts, and a target simulation attack plan corresponding to the target attack path is generated.

[0012] In some embodiments, combining the vulnerability description information, the service configuration information and a preset derivation rule to screen multiple hosts with vulnerabilities from the target network includes:

[0013] Parsing the vulnerability description information and the service configuration information respectively to obtain a plurality of vulnerability parsing information and a plurality of service parsing information, wherein the service parsing information includes program information for indicating a currently running host;

[0014] A vulnerability exploitation rule that matches both the vulnerability parsing information and the service configuration information is determined from the derivation rule, and the host indicated by the vulnerability exploitation rule is determined to be the host having a vulnerability in the target network.

[0015] In some embodiments, combining the service configuration information, the network configuration information and the derivation rule, screening multiple risk hosts from the multiple hosts with vulnerabilities, and obtaining attack state transfer information between the risk hosts, includes:

[0016] Parsing the network configuration information to obtain a plurality of network parsing information, wherein the network parsing information includes topology information for indicating a structure of the target network;

[0017] Determining a hazard propagation rule that matches the service configuration information from the derivation rules, and determining that the host indicated by the hazard propagation rule is a risky host;

[0018] A multi-hop network access rule matching the network configuration information is determined from the derivation rule, and attack state transfer information between risky hosts is determined according to the multi-hop network access rule.

[0019] In some embodiments, the grouping the risk hosts according to the attack state transfer information, and forming group attack paths between the risk groups according to the attack state transfer information, includes:

[0020] Determine an in-association host and an out-association host corresponding to the risk host according to the attack state transfer information, and determine that the risk hosts whose in-association host and out-association host are the same are in the same risk group;

[0021] A preceding attack group and a subsequent attack group of any of the risk groups are determined according to the attack status information, and a corresponding group attack path is formed based on the risk group and the corresponding preceding attack group and subsequent attack group.

[0022] In some embodiments, the multi-dimensional scoring of each risk host according to the vulnerability description information to obtain a corresponding risk quantification value includes:

[0023] Based on the vulnerability description information corresponding to each risk host, query and obtain corresponding vulnerability detailed information from a preset vulnerability knowledge base;

[0024] Scoring the vulnerability details from a first dimension to obtain a vulnerability impact score, and scoring the vulnerability details from a second dimension to obtain a vulnerability exploitation score;

[0025] The vulnerability impact score and the vulnerability exploitation score are weightedly calculated according to a preset first weight value and a preset second weight value, and a result of the calculation is determined as a risk quantification value of the risk host.

[0026] In some embodiments, after grouping the risky hosts according to the attack state transfer information, the method further includes:

[0027] Determine the host to be evaluated based on the attack node information input by the user;

[0028] If the host to be evaluated is one of any of the risk groups, determining the host to be evaluated as a target risk host;

[0029] Determine, according to the attack state transfer information, other risk groups associated with the risk group where the target risk host is located, and group attack paths between the risk groups;

[0030] The other target risk hosts in each of the other risk groups are determined according to the risk quantification value, a target attack path is formed based on the group attack path and all the target risk hosts, and a target simulation attack plan corresponding to the target attack path is generated.

[0031] In some embodiments, generating a target simulation attack plan corresponding to the target attack path includes:

[0032] According to the vulnerability details, determining the node attack strategy corresponding to each target risk host from a preset security knowledge base;

[0033] According to the attack sequence indicated by the target attack path, the node attack strategies are sequentially spliced ​​to generate a target simulation attack plan corresponding to the target attack path.

[0034] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a network attack scheme recommendation device, the device comprising:

[0035] An acquisition module is used to obtain vulnerability description information, service configuration information and network configuration information of the target network;

[0036] A first processing module, configured to combine the vulnerability description information, the service configuration information and a preset derivation rule to screen a plurality of hosts with vulnerabilities from the target network;

[0037] A second processing module is used to combine the service configuration information, the network configuration information and the derivation rule to screen multiple risk hosts from the multiple hosts with vulnerabilities, and obtain attack state transfer information between the risk hosts;

[0038] A grouping module, used for grouping the risk hosts according to the attack state transfer information, and forming a group attack path between each risk group according to the attack state transfer information;

[0039] A target risk host determination module is used to perform multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determine multiple target risk hosts according to the risk quantification value;

[0040] The target simulation attack scheme generating module is used to form a target attack path based on the group attack path and the plurality of target risk hosts, and to generate a target simulation attack scheme corresponding to the target attack path.

[0041] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the network attack scheme recommendation method of the above-mentioned first aspect when executing the computer program.

[0042] To achieve the above-mentioned purpose, the fourth aspect of the embodiments of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the network attack scheme recommendation method of the above-mentioned first aspect.

[0043] The network attack scheme recommendation method, device, electronic device and storage medium proposed in the embodiment of the present application obtain vulnerability description information, service configuration information and network configuration information of the target network; combine the vulnerability description information, service configuration information and preset derivation rules to screen multiple hosts with vulnerabilities from the target network; use the simplified vulnerability description information, service configuration information and network configuration information to first determine the hosts with vulnerabilities, so as to further determine the risk hosts based on the hazard propagation rules; then, combine the service configuration information, network configuration information and derivation rules to screen multiple risk hosts from the multiple hosts with vulnerabilities, and obtain attack state transfer information between each risk host; group the risk hosts according to the attack state transfer information, and form group attack paths between each risk group according to the attack state transfer information; grouping multiple risk hosts in the target network based on the attack state transfer information can speed up the speed of determining the target attack path later; perform multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determine multiple target risk hosts according to the risk quantification value; form a target attack path based on the group attack path and multiple target risk hosts, and generate a target simulation attack scheme corresponding to the target attack path. Based on the grouped attack paths and risk quantification values, it can help users quickly determine the target attack path from a large number of risky hosts in the target network, thereby improving the efficiency of the final generated target simulation attack plan. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of an application scenario of the network attack scheme recommendation device provided in an embodiment of the present application;

[0045] Figure 2 This is an optional flow chart of the network attack scheme recommendation method provided in the embodiment of the present application;

[0046] Figure 3 This is a schematic diagram of an optional visual solution recommendation interface of the network attack solution recommendation method provided in the embodiment of the present application;

[0047] Figure 4 It is a schematic diagram of an optional functional module of the network attack scheme recommendation device provided in an embodiment of the present application;

[0048] Figure 5 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

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

[0050] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0052] First, some nouns involved in this application are analyzed:

[0053] Cyber ​​Range is a technology or product based on virtualization technology that simulates and reproduces the operating status and operating environment of network architecture, system equipment, and business processes in real cyberspace, so as to more effectively realize learning, research, testing, competition, exercises and other behaviors related to network security, thereby improving the network security confrontation level of personnel and institutions.

[0054] An attack path refers to the logical sequence of all attack methods used by an attacker when attacking a single asset, or the path taken by a network attacker to infiltrate the target network application system. In other words, it refers to the relevant measures and attack methods taken by the attacker when attacking. There can be multiple attack paths, and the target attack path refers to one or more paths determined by the system from multiple attack paths.

[0055] Attackers are attackers who participate in the cyber range and test and improve information security defense capabilities by simulating real-world attack methods. It should be noted that attackers in the cyber range are committed to conducting simulation tests in a compliant and ethical manner to enhance the organization's cybersecurity capabilities, and will not conduct malicious attacks in the actual cyber world.

[0056] Defenders are those who participate in the cyber range and are responsible for protecting network systems, applications, and data from potential attackers. The goal of the cyber range defenders is to discover vulnerabilities, strengthen security policies, and improve the ability to resist real attacks. They also use these experimental opportunities to evaluate and improve the organization's security architecture and emergency response plans.

[0057] Neural network models are computational models based on interconnected artificial neurons (or nodes), which are used in the fields of machine learning and artificial intelligence. Neural network models consist of multiple layers of neurons, which are connected to each other through weighted connections to form a complex network structure. During the training process, the neural network model learns the complex relationship between input data by adjusting parameters such as connection weights and activation functions, and is able to predict or classify new data.

[0058] The natural language processing model is a model that uses computer algorithms and statistical learning methods to analyze, understand, generate and process natural language. Natural language processing (NLP) is an important branch in the field of artificial intelligence, which involves computers' understanding and generation of human language.

[0059] In order to evaluate the security of the target network and prevent potential attacks, it is necessary to conduct a network security assessment on the target network to discover security vulnerabilities and potential risks in the target network and provide suggestions for improving security. Among them, generating network attack plans is one of the important contents of network security assessment. Network attack plans can help understand the security issues of the target network and guide the security repair work of the target network.

[0060] In the related art, an attack graph formed based on the target network is often used to determine the corresponding network attack scheme. However, as the size of the target network increases, the complexity of the attack graph also increases exponentially, which makes the generation efficiency of the network attack scheme low.

[0061] Based on this, the embodiments of the present application provide a network attack plan recommendation method, device, electronic device and storage medium, which can improve the efficiency of generating network attack plans.

[0062] It can be understood that in the specific implementation of the present application, when obtaining vulnerability description information, service configuration information and network configuration information of the target network, the permission or consent of the relevant objects will be obtained first, and the collection, use and processing of the relevant data obtained will strictly comply with relevant laws, regulations and standards.

[0063] In addition, when obtaining the vulnerability description information, service configuration information and network configuration information of the target network, the separate permission or separate consent of the relevant object will be obtained through methods such as pop-up windows or jumping to a confirmation page. After obtaining clear separate permission or separate consent, the necessary vulnerability description information, service configuration information and network configuration information for the normal operation of the disclosed embodiment will be obtained.

[0064] It should be noted that the embodiments of the present application will also first obtain the permission or consent of the relevant objects when obtaining other data, and the collection, use and processing of these data will also strictly comply with relevant laws, regulations and standards, which will not be repeated here.

[0065] The network attack scheme recommendation method, device, electronic device, and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the application scenario of the network attack scheme recommendation device in the embodiments of the present application is described. Figure 1 As shown, Figure 1 : is a schematic diagram of an application scenario of a network attack scheme recommendation device provided in an embodiment of the present application, wherein the network attack scheme recommendation method provided in an embodiment of the present application can be applied to a network attack scheme recommendation device (for the sake of ease of description, hereinafter referred to as a "recommendation device"). In an application scenario, a target network A in a certain network target range includes hosts A, B, C, D and a server. First, vulnerability description information, service configuration information and network configuration information of the target network A are obtained, and this information is input into the recommendation device in the embodiment of the present application. The recommendation device can quickly determine which hosts in the target network A have risk vulnerabilities based on this information, determine the target risk hosts based on the hosts with risk vulnerabilities, determine the target attack path based on the target risk hosts, and provide a target simulation attack plan. For example, the recommendation device determines that host A, host B and server all have risk vulnerabilities, and the attacker is very likely to break into host A first, then access the server based on the host information A obtained from host A, and break into host B based on the server information obtained from the server. Therefore, the target attack path can be determined as host A→server→host B, and according to the vulnerability detailed information corresponding to each node on the target attack path, the corresponding node attack and defense strategy is searched from the preset security knowledge base, thereby forming a target simulation attack and defense plan.

[0066] It is understandable that the network range improves network security protection capabilities by simulating attack and defense drills in a real network environment. Then, the target network where the attacker is located can quickly determine the target simulation attack and defense plan through the recommendation device, so as to subsequently break into the target network or test the security performance of each node of the target network; on the other hand, the target network where the defender is located can also quickly determine the target simulation attack and defense plan through the recommendation device, so as to repair the target network according to the target simulation attack and defense plan, and prevent possible risks to enhance the security performance of the target network. That is, the recommendation device provided in the embodiment of the present application can improve the generation efficiency of the network attack plan (target simulation attack and defense plan), and then, for the attacker, it can improve the accuracy and efficiency of the simulated attack; for the defender, it can systematically repair the target network and improve the network security defense capability.

[0067] Next, the optimization scheduling method based on reinforcement learning in the embodiments of the present application is specifically described through the following examples.

[0068] In the embodiment of the present application, the network attack scheme recommendation device will be described from the dimension of the network attack scheme recommendation device, and the recommendation device can be integrated into a computer device, such as a server. Figure 2 As shown, Figure 2 is an optional flow chart of a network attack scheme recommendation method (hereinafter referred to as “recommendation method” for ease of description) provided in an embodiment of the present application. Figure 2 The method in the embodiment may include but is not limited to the following steps 101 to 105, wherein the specific process of the recommendation device when executing the recommendation method is as follows. It should be noted that the present embodiment Figure 2 The order of step 101 to step 105 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0069] Step 101, obtaining vulnerability description information, service configuration information and network configuration information of the target network.

[0070] The following is a detailed description of step 101.

[0071] In some embodiments, in order to finally determine the target simulation attack scheme corresponding to the target network, it is necessary to first obtain the vulnerability description information, service configuration information and network configuration information corresponding to the target network. The target network can be an internal local area network (LAN) or wide area network (WAN) of an enterprise, cloud infrastructure and services, mobile application back-end servers, Internet of Things devices and related infrastructure, personal computers, home networks or small office networks, etc., and the embodiments of the present application do not make specific restrictions.

[0072] Among them, the vulnerability description information can be obtained by scanning with a vulnerability scanning tool. The vulnerability description information is used to characterize a brief description of the vulnerability existing in the target network. For example, the vulnerability description information includes the vulnerability number corresponding to the vulnerability. In this way, the vulnerability description information with simple content can help the recommendation device to quickly determine the corresponding vulnerability exploitation rules in the subsequent process.

[0073] Furthermore, common vulnerability numbers include the following:

[0074] Common Vulnerabilities and Exposures (CVE), a vulnerability database maintained by MITRE, where each vulnerability has a unique number, such as CVE-2023-4634;

[0075] China National Vulnerability Database (CNVD), a vulnerability database maintained by the National Information Security Vulnerability Database, in which each vulnerability has a unique number, such as CNVD-2023-4634;

[0076] SUSE Security Advisories (SUSE) are security advisories released by SUSE. Each vulnerability has a unique number, such as SUSE-SA:2023:4634.

[0077] The service configuration information may be pre-set by relevant personnel, and may include but is not limited to information such as relevant software, services, protocols, and ports of each host in the target network. The service configuration information indicates the software currently running on the target network and its related information.

[0078] Further, the service configuration information can also be obtained by scanning a vulnerability scanning tool. Wherein, the vulnerability scanning tool can be a system vulnerability scanning and analysis software (Nessus), an open vulnerability assessment system (Openvas) or a quality sentinel software (QualysGuard), etc., or other software or devices that can scan out target network vulnerabilities, and the present application embodiment does not specifically limit this. Since the content recorded in the operation document has an update delay, the service configuration information and network configuration information of the current target network can be obtained in real time through a network scanning tool, so that the corresponding vulnerability utilization rules and hazard propagation rules can be more accurately determined according to the service configuration information and the network configuration information, thereby improving the accuracy of the target simulation attack scheme finally determined.

[0079] Among them, the network configuration information is usually pre-set by relevant operators. The network configuration information may include but is not limited to the protocol address (IP address), subnet mask, gateway, virtual local area network configuration (VLAN configuration), router configuration and firewall rules. The network configuration information indicates the relevant information of the host currently running in the target network, as well as the topology information between the hosts. For example, all hosts can be grouped according to the IP address corresponding to each host to determine multiple subnets in the target network and determine the attack state transfer information of each host before.

[0080] For example, the service configuration information and the network configuration information may be pre-set in an operation document by relevant personnel, and the service configuration information and the network configuration information corresponding to the target network may be acquired by reading the operation document.

[0081] Step 102, combining the vulnerability description information, the service configuration information and the preset derivation rules, and screening out multiple hosts with vulnerabilities from the target network.

[0082] The following is a detailed description of step 102.

[0083] In some embodiments, the derivation rules include vulnerability exploitation rules and hazard propagation rules. The vulnerability derivation rules are used to match the acquired vulnerability description information with the service configuration information to screen out hosts with vulnerabilities from multiple hosts in the target network.

[0084] For example, a vulnerability description information indicates that the vulnerability affects Apache HTTP Server version 2.4.41, and can only be exploited if the target host opens port 80. At the same time, the obtained service configuration information indicates that a host D in the target network has opened port 80 and is running Apache HTTP Server version 2.4.41. At this time, it can be determined that host D has a vulnerability through vulnerability exploitation rules.

[0085] It is understandable that in the related art, vulnerability scanning tools are used to perform a detailed scan on each host to determine which hosts have vulnerabilities, so as to determine the risky hosts later. However, in a network target field with a large number of hosts, such a method is often not feasible due to its low efficiency, that is, only by quickly determining the risky nodes can the efficiency of the target simulation attack plan be improved. Based on this, the embodiment of the present application improves the efficiency of determining the risky host by scanning the target network to obtain the simplified vulnerability description information, service configuration information and network configuration information; further, when determining the risky host, the efficiency of determining the risky host can also be improved by sampling scanning, for example, only one of the hosts in the host group with the same configuration can be scanned; in addition, in addition to using the vulnerability scanning tool, the risk information can also be obtained from the vulnerability knowledge base according to the host configuration information provided by the user (including but not limited to the system software and hardware version, the running service information); in this way, it is not necessary to determine the final target simulation attack and defense plan based on the detailed information of all hosts in the target network, thereby improving the efficiency of finally generating the target simulation attack and defense plan.

[0086] In some embodiments, the vulnerability description information, the service configuration information and the preset derivation rules are combined to screen multiple hosts with vulnerabilities from the target network, including the following steps 201 to 203:

[0087] Step 201 , respectively parse vulnerability description information and service configuration information to obtain a plurality of vulnerability resolution information and a plurality of service resolution information, wherein the service resolution information includes program information for indicating a currently running host.

[0088] Step 202, determining a vulnerability exploitation rule that matches both the vulnerability parsing information and the service configuration information from the derivation rules, and determining that the host indicated by the vulnerability exploitation rule is a host with a vulnerability in the target network.

[0089] Steps 201 to 202 are described in detail below.

[0090] In some embodiments, the vulnerability description information and the service configuration information are used to jointly determine the corresponding vulnerability exploitation rules, so as to determine which hosts in the target network have vulnerabilities according to the vulnerability exploitation rules. In order to further extract more critical information from the vulnerability description information and the service configuration information, it is necessary to parse the vulnerability description information and the service configuration information, remove unnecessary parsed content, and use the vulnerability parsed information obtained after parsing to enable the recommendation device to further understand the current risk vulnerability, and use the parsed service configuration information to enable the recommendation device to further understand the status of the software on the currently running host.

[0091] Furthermore, in order to facilitate the recommendation device to better understand the vulnerability analysis information and service configuration information, they can be converted into a unified language, such as data query language (Datalog), and the derivation rules are also expressed in Datalog language. In this way, the recommendation device can better match the vulnerability description information and service configuration information with the derivation rules, and accelerate the determination of vulnerability exploitation rules through a unified information recording method, thereby improving the efficiency of determining the target simulation attack plan.

[0092] Furthermore, since the service configuration information includes information such as the relevant software, services, protocols, and ports of each host, the service configuration information obtained by parsing also includes key information such as the corresponding relevant software, services, protocols, and ports, or, according to the preset derivation rules, only key information such as protocols and ports can be parsed, that is, the specific content of the service configuration information can be obtained by setting the content specifically associated with the derivation rules, and the embodiments of the present application do not make specific restrictions. Exemplarily, the derivation rules in the embodiments of the present application include vulnerability exploitation rules. Since the vulnerability exploitation rules include vulnerability exploitation rules related to port information, the service configuration information obtained by parsing in the embodiments of the present application includes port information of the currently running host.

[0093] Further, the following is an example of a vulnerability exploit rule logic expression,

[0094] execCode(Attacker,Host,Priv):

[0095] vulExists(Host,VulID,Program),

[0096] vulProperty(VulID,remoteExploit,privEscalation),

[0097] networkService(Host,Program,Protocol,Port,Priv),

[0098] netAccess(Attacker,Host,Protocol,Port),

[0099] malicious(Attacker)

[0100] Among them, execCode(Attacker,Host,Priv) means that the attacker can execute arbitrary code on the host Host with the permission Priv. netAccess(Attacker,Host,Protocol,Port) means that the subject Attacker can send data packets to the port Port on the computer Host through the protocol Protocol. The above logical expressions can be set in detail according to the actual situation. For example, execCode1(Attacker1,Host1,Priv1) and execCode2(Attacker2,Host2,Priv2) are two different logical exploitation rules.

[0101] Furthermore, the multiple vulnerability parsing information and service configuration information obtained by parsing are matched with multiple vulnerability exploitation rules to determine the corresponding vulnerability exploitation rules. In Example 1, when the target network B is parsed, vulnerability parsing information b and service configuration information b are obtained, wherein vulnerability parsing information b includes vulnerability number (VulID1), vulnerability name (Name1), vulnerability impact (Priv1), vulnerability description ("allow unauthenticated remote attackers to execute malicious code"), and service configuration information b includes service (remoteExploit1), program (Program1), port information (Port1), protocol (Protocol1), access path (Path1), and then vulExists1 (Host1, VulID1, Program1) in the vulnerability exploitation rule can be determined as the target vulnerability exploitation rule, and according to the target vulnerability exploitation rule, host Host1 can be determined as the host with a vulnerability.

[0102] Alternatively, it is determined that the vulnerability parsing information b and service configuration information b in the above example 1 match networkService1 (Host1, Program1, Protocol1, Port1, Priv1) in the vulnerability exploitation rule, and then the host Host1 is determined to be the host with a vulnerability. When the vulnerability parsing information and service configuration information match one of the multiple vulnerability exploitation rules, the matched rule can be determined to be the target vulnerability exploitation rule.

[0103] It is understandable that since the network target range involves multiple hosts, the amount of vulnerability resolution information and service configuration information obtained through analysis is usually large, while the content contained in the vulnerability resolution information and service configuration information obtained through analysis is relatively concise, that is, it highly summarizes the vulnerability situation in the network and the running software situation. Therefore, in a large-scale network environment, by comparing the vulnerability resolution information and service configuration information with the vulnerability exploitation rules, the host with the vulnerability can be quickly identified.

[0104] Step 103 , combining the service configuration information, the network configuration information and the derivation rules, screening out multiple risk hosts from multiple hosts with vulnerabilities, and obtaining the attack state transfer information between the risk hosts.

[0105] The following is a detailed description of step 103.

[0106] In some embodiments, a host with vulnerabilities does not necessarily have risks, but a host with risks indicates that the relevant vulnerabilities have a very high probability of being actually exploited, thereby affecting the host and the system in which it is located. Therefore, in order to have a deeper understanding of the potential risks and threats in the target network, the embodiments of the present application not only need to determine which hosts have vulnerabilities, but also need to determine the risky hosts with risks and the attack state transfer information between the risky hosts based on the determination of the hosts with vulnerabilities, so as to determine the target attack path formed by the target risky hosts from the risky hosts.

[0107] In some embodiments, the service configuration information, the network configuration information and the derivation rules are combined to screen multiple risk hosts from multiple hosts with vulnerabilities, and to obtain attack state transfer information between the risk hosts, including the following steps 301 to 303:

[0108] Step 301: parse network configuration information to obtain a plurality of network parsing information, wherein the network parsing information includes topology information for indicating the structure of a target network.

[0109] Step 302: Determine a hazard propagation rule that matches the service configuration information from the derivation rules, and determine that the host indicated by the hazard propagation rule is a risky host.

[0110] Step 303: determine a multi-hop network access rule that matches the network configuration information from the derivation rules, and determine attack state transfer information between risky hosts according to the multi-hop network access rule.

[0111] Steps 301 to 303 are described in detail below.

[0112] In some embodiments, the service configuration information and the network configuration information are used to jointly determine the corresponding hazard propagation rules, so as to determine which hosts are risky hosts and the attack status transfer information between the risky hosts according to the hazard propagation rules. In order to further extract more critical information from the network configuration information, it is necessary to parse the network configuration information, remove unnecessary parsed content, and use the network parsed information obtained after parsing to enable the recommendation device to further understand the current network topology.

[0113] Furthermore, in order to facilitate the recommendation device to better perform data processing, the network analysis information can also be converted into Datalog language. In this way, the speed of determining the hazard propagation rules is accelerated through a unified information recording method, thereby improving the efficiency of determining the target simulation attack plan.

[0114] Furthermore, since the network configuration information may include but is not limited to information such as IP address, subnet mask, gateway, VLAN configuration, router configuration, and firewall rules, the parsed network resolution information also includes the corresponding key information such as IP address, subnet mask, gateway, VLAN configuration, router configuration, and firewall rules. Alternatively, only the key information such as IP address and subnet mask can be parsed according to the preset derivation rules. In other words, the specific content of the network resolution information can be obtained by setting the content specifically associated with the derivation rules, and the embodiments of the present application do not make specific restrictions. Exemplarily, the derivation rules in the embodiments of the present application include security diffusion rules. Since the security diffusion rules include hazard propagation rules related to topology information, the network resolution information parsed in the embodiments of the present application includes topology information corresponding to the target network. For example, HostA-HostB is a topology information, indicating that there is a connection between HostA-HostB. It should be noted that the topology information indicates that there is a physical or logical connection relationship between the objects involved, but there is not necessarily an actual data flow relationship.

[0115] Furthermore, the security diffusion rule includes the hazard propagation principle and the multi-hop network access rule. The following is an example A of the logical expression of the hazard propagation principle:

[0116] accessFile(Attacker,Host,Access,Path):

[0117] execCode(Attacker,Host,Owner),

[0118] filePath(Attacker,Owner,Path)

[0119] Further, the following is an example B of the logical expression of the hazard propagation principle:

[0120] execCode(Attacker,Host,Owner):

[0121] accessFile(Attacker,Host,write,Path),

[0122] filePath(Host,Owner,Path),

[0123] malicious(Attacker)

[0124] Among them, accessFile(Attacker,Host,Access,Path) means that the subject Attacker can use the Owner's permissions to access the computer Host, so he can arbitrarily access the files owned by the Owner; execCode(Attacker,Host,Owner) means that the subject Attacker can execute any code on the computer Host with the Owner's permissions. Similarly, the above logical expressions can be set in detail according to the actual situation. For example, accessFile1(Attacker1,Host1,Access1,Path1) and accessFile2(Attacker2,Host2,Access2,Path2) are two different hazard propagation principles.

[0125] Furthermore, the following is an example of a multi-hop network access rule logic expression:

[0126] netAccess(Attacker,HostB,Protocol,Port):

[0127] execCode(Attacker,HostA,Priv),

[0128] hacl(HostA,HostB,Protocol,Port)

[0129] Among them, netAccess(Attacker,HostB,Protocol,Port) means that the subject Attacker accesses HostA with a certain permission Priv and when the target network allows HostA to access HostB through protocol Protocol and port Port, then the subject Attacker can access HostB through protocol Protocol and port Port. That is, after attacking HostA, Attacker can obtain access rights and then attack HostB.

[0130] Furthermore, the multiple vulnerability resolution information and network resolution information obtained by the analysis are matched with multiple vulnerability exploitation rules to determine the corresponding hazard propagation rules. In Example 2, after the target network B is analyzed to obtain vulnerability resolution information b, the network configuration information of the target network B is further analyzed to obtain network resolution information b, wherein the vulnerability resolution information b contains the same content as Example 1, and the network resolution information b includes Host1-Host2, Host1-Host3, indicating that Host1 is logically connected with Host2 and Host3. Based on this, we can determine that execCode1(Attacker1,Host1,Owner1) and filePath1(Attacker1,Owner1,Path1) in the hazard propagation principle are the target hazard propagation rules. According to the hazard propagation rule, we can determine that Attacker1 can obtain Owner1 permissions in Host1 and then maliciously access the directory files under Owner1 permissions; then, we determine that netAccess1(Attacker1,Host2,Protocol1,Port1) in the multi-hop network access rule determines that the attacker can attack Host2 after attacking Host1 through Protocol1 and Port Port. Therefore, we can determine that Host1 and Host2 are both risky hosts, and the attack status information corresponding to Host1 is attacking Host2, and the attack status information of Host2 is being attacked by Host1.

[0131] Furthermore, through the principle of hazard propagation, it can be determined that there are management loopholes in the Owner1 permissions of the risk host, and the defender can review and strengthen the Owner1 permission management in the target network; through the multi-hop network access rule, the direct or indirect attack status transfer information between multiple risk hosts can be determined.

[0132] Furthermore, since the topology information only defines the logical connection relationship between each host, in a network target range containing a large number of hosts, if the association between each risk host is determined by analyzing each topology information one by one, it will take a lot of computing power, and the efficiency of determining the associated hosts is usually low. The embodiment of the present application determines the corresponding hazard propagation rule by matching the service configuration information and the network resolution information. Since the content contained in the service configuration information and the network resolution information is relatively concise, the recommendation device can quickly determine the corresponding hazard propagation rule, and then use the hazard propagation rule and topology information to quickly determine the attack state transfer information between each risk host.

[0133] Furthermore, in addition to vulnerability exploitation rules, hazard propagation principles, and multi-hop network access rules, derivation rules can also be customized so that the recommendation device can more quickly determine the risk host, the attack state transfer information between risk hosts, or other functional content based on the customized derivation rules. It can be set according to actual conditions, and the embodiments of the present application do not make specific restrictions.

[0134] Step 104: group the risky hosts according to the attack state transfer information, and form group attack paths between the risky groups according to the attack state transfer information.

[0135] Step 104 is described in detail below.

[0136] In some embodiments, after determining the attack state transfer information corresponding to each risk host, it is usually necessary to group the risk hosts according to the attack state information, so as to then form a group attack path corresponding to each risk group according to the attack state transfer information, so as to improve the generation efficiency of the target attack path.

[0137] It is understandable that both the attacker and the defender hope to find the shortest and most effective target attack path. In this way, within a limited time, grouping multiple risk hosts in the target network based on the attack state transfer information can speed up the subsequent determination of the target attack path, and thus speed up the efficiency of generating the target simulation attack plan, so that the target simulation attack plan can be used by the attacker or the defender.

[0138] In some embodiments, risk hosts are grouped according to attack state transfer information, and group attack paths between risk groups are formed according to the attack state transfer information, including the following steps 401 to 402:

[0139] Step 401: determine the input-association host and the output-association host corresponding to the risk host according to the attack state transfer information, and determine that the risk hosts having the same input-association host and the same output-association host are in the same risk group.

[0140] Step 402: determine a preceding attack group and a succeeding attack group of any risk group according to the attack status information, and form a corresponding group attack path based on the risk group and the corresponding preceding attack group and succeeding attack group.

[0141] Steps 401 to 402 are described in detail below.

[0142] In some embodiments, the in-association host represents other risky hosts that can attack the risky host, and the out-association host represents other risky hosts that can be attacked by the risky host. The risky hosts are grouped according to the in-association host and the out-association host corresponding to each risky host.

[0143] Exemplarily, the attack status information of risk host A and risk host B indicates that they can both access the same protocol and port of risk host C and risk host D, and risk host E and risk host F can access risk host A and risk host B, then risk host E and risk host F are determined to be group a, risk host C and risk host D are group b, and risk host A and risk host B are group c.

[0144] Furthermore, after the grouping is completed, the preceding attack group and the subsequent attack group of each risk group are determined according to the attack state transfer information between the groups, and then the corresponding group attack path is determined. For example, in the above example, the group attack path is determined to be group a->group c->group b. Furthermore, if the risk host A and the risk host B can also access the risk host G and the risk host H, the risk host G and the risk host H are determined to be group d, and the group attack path can also include group a->group c->group d.

[0145] Step 105 , performing multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determining a plurality of target risk hosts according to the risk quantification value.

[0146] Step 105 is described in detail below.

[0147] In some embodiments, the target risk host is used to indicate the nodes involved in forming the final target attack path. The target risk host needs to be determined based on the risk quantification value corresponding to each risk host. The risk quantification is used to indicate the expected degree of damage of the corresponding risk host.

[0148] Furthermore, by comparing each risk quantification value with a preset first threshold, it is determined which risk hosts are target risk hosts, wherein the first threshold may be set by relevant personnel based on experience, or may be determined by a neural network model based on historical data. The first threshold may be determined based on the number of target risk hosts in actual conditions, and the embodiments of the present application do not impose specific limitations thereto.

[0149] Furthermore, the group attack paths between the groups and the risk quantification values ​​within each group can be calculated in parallel, so that the needs of the target network to determine the target attack path can be quickly responded to, and the efficiency of generating the target simulation attack plan can be improved.

[0150] In some embodiments, performing a multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value includes the following steps 501 to 503:

[0151] Step 501: Based on the vulnerability description information corresponding to each risk host, the corresponding vulnerability detailed information is queried from a preset vulnerability knowledge base.

[0152] Step 502, scoring the vulnerability details from the first dimension to obtain a vulnerability impact score, and scoring the vulnerability details from the second dimension to obtain a vulnerability exploitation score.

[0153] Step 503: weighted calculation is performed on the vulnerability impact score and the vulnerability exploitation score according to the preset first weight value and the second weight value, and the calculated result is determined as the risk quantification value of the risk host.

[0154] Steps 501 to 503 are described in detail below.

[0155] In some embodiments, the risk quantification value is used to characterize the severity of the vulnerability of the corresponding risk host; the vulnerability detailed information is determined based on the vulnerability description information. The vulnerability description information is different from the vulnerability detailed information. The vulnerability description information is a relatively general description of the corresponding information of the vulnerability, while the vulnerability detailed information elaborates on the specific information of the vulnerability. The purpose of this is to enable the recommendation device to quickly determine the vulnerability exploitation rules based on the vulnerability description information, and then determine the risk host in the target network through the vulnerability exploitation rules. Afterwards, the vulnerability detailed information of the risk host is determined to calculate the risk level of the risk host, avoiding the waste of computing resources caused by using complex information to determine the risk host at the beginning, and improving the efficiency of generating the final target simulation attack plan.

[0156] For example, the following is a vulnerability detail:

[0157] {Vulnerability Name: Heartbleed

[0158] Vulnerability ID: CVE-2014-0160

[0159] Vulnerability type: Buffer overflow vulnerability

[0160] Affected scope: OpenSSL (OpenSSL) versions 1.0.1 to 1.0.1f (excluding 1.0.1g and above)

[0161] Vulnerability description: The Heartbleed vulnerability originates from the implementation of the Heartbeat Extension of the Transport Layer Security Protocol (TLS) and / or Datagram Transport Layer Security Protocol (DTLS) in OpenSSL. Since the payload length sent in the heartbeat request is not properly verified, an attacker can construct a malicious heartbeat request to cause the server to return redundant data, thereby leaking sensitive information in the server memory, such as private keys, user credentials, etc.

[0162] Potential impact: Attackers can exploit the Heartbleed vulnerability to obtain sensitive data in the server memory, which may lead to user privacy leakage or even system intrusion and control.}

[0163] Furthermore, the recommendation device can query the vulnerability detailed information corresponding to the vulnerability description information from a preset vulnerability knowledge base, wherein the vulnerability knowledge base can be the National Vulnerability Database (NVD), the Common Vulnerabilities and Exposures (CVE) or the Open Sourced Vulnerability Database (OSVDB), etc. The vulnerability knowledge base can be set according to actual needs, and the embodiment of the present application does not make specific limitations. Moreover, it can be found from the above-mentioned example of vulnerability detailed information that the vulnerability detailed information is more comprehensive and richer than the content contained in the vulnerability description information, so that it can be convenient to conduct a multi-dimensional risk assessment of the risk host based on the detailed vulnerability detailed information, thereby improving the credibility of the assessment.

[0164] Furthermore, the first dimension is used to indicate the impact of the vulnerability on the target network, such as the potential impact information in the vulnerability details is within the judgment range of the first dimension, and the second dimension is used to indicate the exploitability of the vulnerability, such as the vulnerability description information is within the judgment range of the second dimension. It should be noted that the impact of the vulnerability is different from the exploitability. The impact focuses on the impact of the vulnerability on the target network after it is breached, while the exploitability refers to the difficulty or possibility of the vulnerability being breached. A vulnerability with a large impact does not necessarily mean that it is highly exploitable.

[0165] Furthermore, the natural language processing model built into the recommendation device can be used to extract and analyze the vulnerability details and compare them with preset high, medium, and low thresholds to determine the corresponding vulnerability impact score and vulnerability exploitation score.

[0166] Furthermore, the higher the vulnerability impact score, the greater the impact of the vulnerability on the target network. The attacker can significantly reduce the overall security of the target network by breaking the vulnerability on the risk host; the higher the vulnerability exploitation score, the easier it is to break the vulnerability. The attacker can easily break the vulnerability, but it does not necessarily reduce the security of the target network to a very large extent. Therefore, when determining the risk quantification value corresponding to the risk host, different degrees of emphasis can be placed on the two. For example, when the attacker / defender pursues the success rate of attack / defense, a higher weight can be assigned to the vulnerability exploitation score, so as to ensure that the attacker can gradually cause actual damage to the target network from easy to difficult, or to ensure that the defender can repair the target network as quickly as possible, thereby improving the overall security performance of the target network.

[0167] It should be noted that potential threats can also be used as a third dimension, and the vulnerability details can be scored from the third dimension to obtain corresponding scores, or the vulnerability details can be scored from multiple other dimensions according to actual conditions. The weight value of each dimension can also be set according to actual conditions, and the embodiments of the present application do not make specific restrictions.

[0168] Furthermore, the risk quantification value can be calculated based on the weight values ​​corresponding to different dimensions. The risk quantification value is a quantifiable value obtained after evaluating and analyzing the risk host from multiple dimensions. The risk quantification value can be used to more intuitively observe the comprehensive risk situation of the risk host, so that the target risk host that is currently the most threatening in the target network can be more accurately determined based on the risk quantification value.

[0169] Furthermore, the method used in the embodiments of the present application can help the attacker / defender determine an effective attack / defense path from a large number of risky hosts in the target network based on the grouped attack paths and risk quantification values. For the attacker, it can cause overall damage to the target network, and the attack effect is better; and for the defender, it improves the overall defense performance and response capability of the target network.

[0170] Step 106: forming a target attack path based on the grouped attack paths and the multiple target risk hosts, and generating a target simulated attack plan corresponding to the target attack path.

[0171] Step 106 is described in detail below.

[0172] Among them, the target attack path represents one or more most threatening attack paths. The total risk value of the corresponding attack path can be calculated according to the risk quantification value corresponding to each target risk host, and the number of target attack paths expected to be generated is pre-set. According to the number, one or more attack paths with high total risk values ​​are selected as target attack paths.

[0173] Furthermore, since it is necessary to subsequently generate corresponding target simulation attack plans based on the target risk hosts on the target attack path, using the most threatening attack path as the target attack path can make the subsequently generated target simulation attack plans more meaningful in terms of security attack / defense guidance, so as to recommend that the device concentrate resources on processing security vulnerabilities in the target network. In this way, for the defender, the most important network assets can be included first, reducing potential risks and losses.

[0174] In some embodiments, generating a target simulation attack plan corresponding to a target attack path includes the following steps 601 to 602:

[0175] Step 601, according to the vulnerability detailed information, determine the node attack strategy corresponding to each target risk host from a preset security knowledge base.

[0176] Step 602, according to the attack sequence indicated by the target attack path, the attack strategies of each node are sequentially spliced ​​to generate a target simulation attack plan corresponding to the target attack path.

[0177] Steps 601 to 602 are described in detail below.

[0178] Among them, the security knowledge base aims to provide corresponding measures and suggestions for the target risk host based on the vulnerability details. The measures and suggestions contained in the security knowledge base usually include two aspects: attack and defense. The attacker and the defender can choose according to the actual situation. For example, the attacker can only choose the node attack and defense strategy that provides attack measures, so as to simulate the attack on the target network according to the formed target simulation attack plan.

[0179] Furthermore, the security knowledge base may be a public information security knowledge base (SANS), a self-maintained security knowledge base (Vendor-specific) or a data security knowledge base (Center for Internet Security, CIS), or other security knowledge bases that can provide attack / defense measures corresponding to vulnerabilities. The embodiments of the present application do not impose specific restrictions on this.

[0180] Among them, the node attack and defense strategy is an attack recommendation formulated for the detailed vulnerability information corresponding to the target risk host. The node attack and defense strategy may include but is not limited to the authorized access strategy, data communication strategy, application update strategy and log response strategy. Of course, the node attack and defense strategy content included in the security knowledge base is usually more comprehensive, and the recommendation device can make choices based on the actual situation, and then obtain the node attack and defense strategy corresponding to each target risk host in a more targeted manner.

[0181] Furthermore, after determining the node attack and defense strategy corresponding to each target risk host, a target simulation attack plan is formed according to the attack order corresponding to each target risk host in the target attack path. For example, a target attack path is target risk host D-target risk host E-target risk host F, where target risk host D corresponds to node attack and defense strategy D, target risk host E corresponds to node attack and defense strategy E, and target risk host F corresponds to node attack and defense strategy F. Then the target simulation attack plan can be determined as node attack and defense strategy D-node attack and defense strategy E-node attack and defense strategy F.

[0182] In some embodiments, after the risk hosts are grouped according to the attack state transfer information, the following steps 701 to 704 are also included:

[0183] Step 701: determine the host to be evaluated according to the attack node information input by the user.

[0184] Step 702: If the host to be evaluated is one of any risk groups, determine that the host to be evaluated is a target risk host.

[0185] Step 703: Determine other risk groups associated with the risk group where the target risk host is located, and group attack paths between the risk groups, based on the attack state transfer information.

[0186] Step 704, determining other target risk hosts in other risk groups according to the risk quantification value, forming a target attack path based on the group attack path and all target risk hosts, and generating a target simulation attack plan corresponding to the target attack path.

[0187] Steps 701 to 704 are described in detail below.

[0188] In some embodiments, in addition to determining the most threatening one or more target attack paths based on the overall security performance of the target network, the target attack paths may also be specifically determined based on the user's different attack / defense requirements for each target risk node.

[0189] Furthermore, the recommendation device may be provided with a visual solution recommendation interface. After the recommendation device completes the determination of the target risk host in the target network, it may prompt the corresponding host as the target risk host node on the visual solution recommendation interface so that the user can select it. Figure 3 As shown, Figure 3It is a schematic diagram of an optional visual scheme recommendation interface of the network attack scheme recommendation method provided in an embodiment of the present application. The visual scheme recommendation interface displays multiple groups into which the target network is divided, and displays which hosts in each group are risky hosts. Furthermore, the recommendation device receives target node information input by the user so as to determine the corresponding target attack path based on the target node information. The target node information can be obtained by inputting through a touch screen.

[0190] Furthermore, the target node information is used to characterize the risky host that the user expects to attack / defend. Figure 3 , Group 1 and Group 2 include different risk hosts respectively, and the target node information A input by the user may be: risk host a, then the host to be evaluated is determined to be risk host a. Moreover, the recommendation device may have two different target attack path determination methods according to the input target node information. The first method is to recommend an attack path including the selected target risk node to the user according to the target node information. The attack path generated in this way may be the shortest attack path, or the attack path with the highest comprehensive risk quantification value. The specific selection may be made according to the actual needs of the user. For example, the target attack path determined according to the target node information A is risk host a-risk host b-risk host f. Attacking based on this target attack path can cause greater damage to the target network during the simulated attack. The second method is to recommend an attack path including only the selected target risk node to the user according to the target node information. For example, the target attack path determined according to the target node information A may be risk host c-risk host a. In this way, the attacker can break through the desired host node at the fastest speed during the simulated attack.

[0191] Furthermore, after determining the target simulated attack plan, the specific content of the target simulated attack plan can be displayed on the visualization plan recommendation interface, for example, the target simulated attack plan can be split into multiple node attack and defense strategies, and displayed after each host to be evaluated / target risk host, or displayed in the form of a complete plan on the visualization plan recommendation interface, so as to present the attack plan to the user more intuitively.

[0192] like Figure 4 As shown, Figure 4 : is an optional functional module diagram of a network attack scheme recommendation device provided in an embodiment of the present application, wherein the network attack scheme recommendation device may include:

[0193] The acquisition module 801 is used to acquire vulnerability description information, service configuration information and network configuration information of the target network.

[0194] The first processing module 802 is used to combine the vulnerability description information, the service configuration information and the preset derivation rules to screen out multiple hosts with vulnerabilities from the target network.

[0195] The second processing module 803 is used to combine the service configuration information, the network configuration information and the derivation rules, screen out multiple risk hosts from multiple hosts with vulnerabilities, and obtain attack state transfer information between the risk hosts.

[0196] The grouping module 804 is used to group the risky hosts according to the attack state transfer information, and form group attack paths between the risky groups according to the attack state transfer information.

[0197] The target risk host determination module 805 is used to perform multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determine multiple target risk hosts according to the risk quantification value.

[0198] The target simulation attack plan generating module 806 is used to form a target attack path based on the grouped attack path and multiple target risk hosts, and generate a target simulation attack plan corresponding to the target attack path.

[0199] The network attack scheme recommendation method, device, electronic device and storage medium proposed in the embodiment of the present application obtain vulnerability description information, service configuration information and network configuration information of the target network; combine the vulnerability description information, service configuration information and preset derivation rules to screen multiple hosts with vulnerabilities from the target network; use the simplified vulnerability description information, service configuration information and network configuration information to first determine the hosts with vulnerabilities, so as to further determine the risk hosts based on the hazard propagation rules; then, combine the service configuration information, network configuration information and derivation rules to screen multiple risk hosts from the multiple hosts with vulnerabilities, and obtain attack state transfer information between each risk host; group the risk hosts according to the attack state transfer information, and form group attack paths between each risk group according to the attack state transfer information; grouping multiple risk hosts in the target network based on the attack state transfer information can speed up the speed of determining the target attack path later; perform multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determine multiple target risk hosts according to the risk quantification value; form a target attack path based on the group attack path and multiple target risk hosts, and generate a target simulation attack scheme corresponding to the target attack path. Based on the grouped attack paths and risk quantification values, it can help users quickly determine the target attack path from a large number of risky hosts in the target network, thereby improving the efficiency of the final generated target simulation attack plan.

[0200] The specific implementation of the network attack plan recommendation device is basically the same as the specific implementation of the above-mentioned network attack plan recommendation method, and will not be repeated here.

[0201] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned network attack scheme recommendation method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0202] like Figure 5 As shown, Figure 5 : is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application, the electronic device includes:

[0203] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0204] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the network attack solution recommendation method of the embodiment of this application;

[0205] Input / output interface 903, used to implement information input and output;

[0206] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0207] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0208] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0209] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned network attack scheme recommendation method is implemented.

[0210] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0211] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0212] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0213] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0214] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0215] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0216] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0217] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0218] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0219] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0220] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0221] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims

1. A network attack scheme recommendation method, characterized in that: The method comprises: Obtain vulnerability description information, service configuration information, and network configuration information of the target network; Combine the vulnerability description information, the service configuration information and a preset derivation rule to screen and obtain a plurality of hosts with vulnerabilities from the target network; Combine the service configuration information, the network configuration information and the derivation rule to screen multiple risk hosts from the multiple hosts with vulnerabilities, and obtain attack state transfer information between the risk hosts; The risk hosts are grouped according to the attack state transfer information, and group attack paths between the risk groups are formed according to the attack state transfer information; Perform multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determine multiple target risk hosts according to the risk quantification value; A target attack path is formed based on the group attack path and the plurality of target risk hosts, and a target simulation attack plan corresponding to the target attack path is generated.

2. The method according to claim 1, characterized in that The combining of the vulnerability description information, the service configuration information and the preset derivation rule to screen and obtain multiple hosts with vulnerabilities from the target network includes: Parsing the vulnerability description information and the service configuration information respectively to obtain a plurality of vulnerability parsing information and a plurality of service parsing information, wherein the service parsing information includes program information for indicating a currently running host; A vulnerability exploitation rule that matches both the vulnerability parsing information and the service configuration information is determined from the derivation rule, and the host indicated by the vulnerability exploitation rule is determined to be the host having a vulnerability in the target network.

3. The method according to claim 2, characterized in that The combining of the service configuration information, the network configuration information and the derivation rule to screen out a plurality of risk hosts from the plurality of hosts with vulnerabilities and obtain attack state transfer information between the risk hosts includes: Parsing the network configuration information to obtain a plurality of network parsing information, wherein the network parsing information includes topology information for indicating a structure of the target network; Determining a hazard propagation rule that matches the service configuration information from the derivation rules, and determining that the host indicated by the hazard propagation rule is a risky host; A multi-hop network access rule matching the network configuration information is determined from the derivation rule, and attack state transfer information between risky hosts is determined according to the multi-hop network access rule.

4. The method according to claim 1, characterized in that The step of grouping the risk hosts according to the attack state transfer information and forming group attack paths between the risk groups according to the attack state transfer information includes: Determine the input-associated host and the output-associated host corresponding to the risk host according to the attack state transfer information, and determine that the risk hosts whose input-associated host and the output-associated host are the same are in the same risk group; A preceding attack group and a subsequent attack group of any of the risk groups are determined according to the attack status information, and a corresponding group attack path is formed based on the risk group and the corresponding preceding attack group and subsequent attack group.

5. The method according to claim 1, characterized in that The multi-dimensional scoring of each risk host according to the vulnerability description information to obtain a corresponding risk quantification value includes: Based on the vulnerability description information corresponding to each risk host, query and obtain corresponding vulnerability detailed information from a preset vulnerability knowledge base; Scoring the vulnerability details from a first dimension to obtain a vulnerability impact score, and scoring the vulnerability details from a second dimension to obtain a vulnerability exploitation score; The vulnerability impact score and the vulnerability exploitation score are weightedly calculated according to a preset first weight value and a preset second weight value, and a result of the calculation is determined as a risk quantification value of the risk host.

6. The method according to claim 1, characterized in that After the risk hosts are grouped according to the attack state transfer information, the method further includes: Determine the host to be evaluated based on the attack node information input by the user; If the host to be evaluated is one of any of the risk groups, determining the host to be evaluated as a target risk host; Determine, according to the attack state transfer information, other risk groups associated with the risk group where the target risk host is located, and group attack paths between the risk groups; The other target risk hosts in each of the other risk groups are determined according to the risk quantification value, a target attack path is formed based on the group attack path and all the target risk hosts, and a target simulation attack plan corresponding to the target attack path is generated.

7. The method according to claim 5, characterized in that The generating of the target simulated attack scheme corresponding to the target attack path includes: According to the vulnerability details, determining the node attack strategy corresponding to each target risk host from a preset security knowledge base; According to the attack sequence indicated by the target attack path, the node attack strategies are sequentially spliced ​​to generate a target simulation attack plan corresponding to the target attack path.

8. A network attack scheme recommendation device, characterized in that: The device comprises: An acquisition module is used to obtain vulnerability description information, service configuration information and network configuration information of the target network; A first processing module, configured to combine the vulnerability description information, the service configuration information and a preset derivation rule to screen a plurality of hosts with vulnerabilities from the target network; A second processing module is used to combine the service configuration information, the network configuration information and the derivation rule to screen multiple risk hosts from the multiple hosts with vulnerabilities, and obtain attack state transfer information between the risk hosts; A grouping module, used for grouping the risk hosts according to the attack state transfer information, and forming a group attack path between each risk group according to the attack state transfer information; A target risk host determination module is used to perform multi-dimensional scoring on each risk host according to the vulnerability description information to obtain a corresponding risk quantification value, and determine multiple target risk hosts according to the risk quantification value; The target simulation attack scheme generating module is used to form a target attack path based on the group attack path and the plurality of target risk hosts, and to generate a target simulation attack scheme corresponding to the target attack path.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the network attack scheme recommendation method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the network attack scenario recommendation method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Host risk evaluation method and device

    CN102170431A

  • Matrix visualization method based on state transition graph

    CN106549950A

  • Attack path determination method and device, equipment and storage medium

    CN114915475A

  • Network range attack path planning method and device, equipment and storage medium

    CN117714097A