Network asset attack path prediction method and device, equipment and storage medium
By generating network asset topology diagrams, vulnerability testing and vulnerability risk verification, the mapping relationship between attacker behavior and vulnerability impact paths is established, which solves the problem of poor network attack path prediction accuracy in the existing technology and improves the security protection capabilities of the power system.
Patent Information
- Application Number
- CN202411152874.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-15
AI Technical Summary
Existing technologies have poor accuracy in predicting network attack paths, especially in new power system scenarios, which lack security monitoring, comprehensive assessment and automated response capabilities for distributed energy access equipment.
Generate a network asset topology diagram by obtaining the connection relationship between network assets in the target system, conduct vulnerability testing based on attacker behavior, verify vulnerability risks, and establish a mapping relationship between attacker behavior, vulnerability risks and vulnerability impact paths to predict The vulnerability impact path corresponding to the attacker's behavior.
It improves the prediction accuracy of network attack paths, provides the accuracy of vulnerability risks, avoids the contingency of risk occurrence, saves processing time, adapts to the variability of attackers' behavior, and improves processing efficiency.
Smart Images

Figure CN118784369A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power monitoring system security protection technology, and in particular to a network asset attack path prediction method, device, equipment and storage medium. Background Art
[0002] The security protection of power monitoring system is a complex system engineering, and its overall security protection level depends on the security level of the weakest point in the system.
[0003] At present, with the deepening of digital transformation and the acceleration of the construction of new power systems, a large number of new energy sites and third-party market players have been connected, and the exposure of network risks has also expanded. The boundaries of network security protection have gradually blurred, and the difficulty of security management has increased. The existing protection system lacks the ability to monitor, comprehensively evaluate and automatically respond to distributed energy access equipment in the new power system scenario. In particular, how to accurately predict the path of network attacks has become a problem that needs to be solved.
[0004] At present, although most network systems are known trusted assets, many network attacks originate from unknown sources, and the attack behaviors are unknown and changeable during the attack, which easily leads to poor accuracy in predicting the path of network attacks. Summary of the invention
[0005] The present invention provides a network asset attack path prediction method, device, equipment and storage medium to improve the accuracy of predicting network attack paths.
[0006] According to one aspect of the present invention, a network asset attack path prediction method is provided, comprising:
[0007] Acquire the connection relationship between network assets in the target system, and generate a network asset topology map based on the connection relationship;
[0008] Performing a vulnerability test on the network assets based on the attacker's behavior to obtain the vulnerability risk of the assets to be verified in the target system;
[0009] Performing validity verification on the asset vulnerability risk to be verified, and obtaining the target asset vulnerability risk in the target system when the verification passes;
[0010] Based on the target asset vulnerability risk and the network asset topology map, determine candidate vulnerability impact paths, and evaluate the candidate vulnerability impact paths to obtain a target vulnerability impact path;
[0011] A mapping relationship between the attacker behavior, target asset vulnerability risk and target vulnerability impact path corresponding to the target system is established, so that when the target system is affected by the current attacker behavior, the current vulnerability impact path corresponding to the current attacker behavior is predicted based on the mapping relationship.
[0012] According to another aspect of the present invention, there is provided a network asset attack path prediction device, comprising:
[0013] An asset topology map generation module is used to obtain the connection relationship between network assets in the target system and generate a network asset topology map based on the connection relationship;
[0014] An asset weakness testing module is used to perform a weakness test on the network assets based on the attacker's behavior to obtain the asset vulnerability risk to be verified in the target system;
[0015] A vulnerability risk determination module is used to verify the validity of the vulnerability risk of the asset to be verified, and obtain the vulnerability risk of the target asset in the target system when the verification passes;
[0016] An impact path determination module is used to determine candidate vulnerability impact paths based on the target asset vulnerability risk and the network asset topology map, and evaluate the candidate vulnerability impact paths to obtain a target vulnerability impact path;
[0017] The current path prediction module is used to establish a mapping relationship between the attacker behavior, target asset vulnerability risk and target vulnerability impact path corresponding to the target system, so as to predict the current vulnerability impact path corresponding to the current attacker behavior based on the mapping relationship when the target system is affected by the current attacker behavior.
[0018] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0019] at least one processor;
[0020] and a memory communicatively connected to the at least one processor; wherein,
[0021] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network asset attack path prediction method described in any embodiment of the present invention.
[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network asset attack path prediction method described in any embodiment of the present invention when executed.
[0023] The technical solution of the embodiment of the present invention obtains the connection relationship between network assets in the target system, generates a network asset topology map based on the connection relationship; performs weakness testing on network assets based on attacker behavior to obtain the vulnerability risk of assets to be verified in the target system; performs validity verification on the vulnerability risk of assets to be verified, and obtains the target asset vulnerability risk in the target system when the verification passes; determines the candidate vulnerability impact path based on the target asset vulnerability risk and the network asset topology map, and evaluates the candidate vulnerability impact path to obtain the target vulnerability impact path; establishes a mapping relationship between the attacker behavior corresponding to the target system, the vulnerability risk of the target asset, and the target vulnerability impact path, so that when the target system is affected by the current attacker behavior, the current vulnerability impact path corresponding to the current attacker behavior is predicted based on the mapping relationship. The technical problem of poor accuracy in predicting network attack paths in the prior art is solved, and the accuracy of vulnerability risk identification is improved by performing weakness testing on network assets and validating the effectiveness, thereby avoiding the contingency of risk occurrence, saving processing time, and improving processing efficiency. By simulating the attack behavior of the attacker corresponding to the asset vulnerability risk of the asset in each affected asset according to the order of assets in the path, we can better adapt to the variability of the attacker's behavior, avoid the impact of path changes caused by the unknown and changeable attack behavior in the attack, and improve the accuracy of predicting network attack paths.
[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 A flowchart of a network asset attack path prediction method provided in Embodiment 1 of the present invention;
[0027] Figure 2 A flowchart of a network asset attack path prediction method provided in Embodiment 2 of the present invention;
[0028] Figure 3 A schematic diagram of the structure of a network asset attack path prediction device provided in Embodiment 3 of the present invention;
[0029] Figure 4This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1 This is a flow chart of a network asset attack path prediction method provided in the first embodiment of the present invention. This embodiment is applicable to the situation of accurately predicting the impact path of network asset attacks. The method can be executed by a network asset attack path prediction device, which can be implemented in the form of hardware and / or software, and the device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0034] S110: Acquire connection relationships between network assets in the target system, and generate a network asset topology map based on the connection relationships.
[0035] Among them, the target system may be a power network system; and the connection relationship may be a communication connection relationship.
[0036] Specifically, the connection relationships of various network assets in the system are collected, including the communication paths between servers, network devices, applications, etc. Through the connection relationships of network assets, a network asset topology map of the interaction between various assets is determined.
[0037] In an embodiment of the present invention, the method of obtaining the connection relationship between network assets in the target system and generating a network asset topology map based on the connection relationship includes: automatically discovering the network assets in the target system through a network scanning tool; capturing the network traffic of the network assets through a traffic analysis tool, and analyzing the network traffic to determine the communication relationship between the network assets; and creating the network asset topology map according to the communication relationship between the network assets through a network visualization tool.
[0038] The network assets include at least one of a server, a network device and an application, and the number of network assets is more than two.
[0039] Specifically, you can use network scanning tools (such as Nmap, Nessus, etc.) to automatically discover all network assets in the network, including servers, network devices, applications, etc. Then, record detailed information about the assets, including IP addresses, MAC addresses, operating systems, service ports, etc., manually or using a configuration management database (CMDB).
[0040] Furthermore, traffic analysis tools (such as Wireshark, tcpdump, etc.) are used to capture the network traffic of assets, and the network traffic is analyzed to determine which network assets are communicating with each other and to determine the communication relationship between each network asset.
[0041] Among them, the network traffic is analyzed to determine which assets are communicating with each other. Specifically, the port number, IP address, and type of data transmitted can be viewed through the network traffic, and the port number is matched with the open port number, IP address, and type of data transmitted of each asset. If the match is successful, it is determined that the two assets are communicating with each other.
[0042] Finally, use network visualization tools (such as Visio, Lucidchart, PRTG Network Monitor, etc.) to create a network topology diagram based on the communication relationship between each network asset. Specifically, draw each asset and the communication connection relationship between them based on the collected data.
[0043] In a preferred embodiment, the interaction is determined based on the network topology diagram, including analyzing which assets have frequent data exchanges through network traffic, and considering security policies, such as which devices can access each other through firewall rules.
[0044] Update the network topology diagram regularly to reflect changes in the network architecture. Update records promptly when new assets are added to the network or old assets are retired. Create detailed documents to explain the elements in the network topology diagram and their functions. Record the specific network configuration or security policies of each asset.
[0045] S120: Perform a vulnerability test on the network assets based on the attacker's behavior to obtain the vulnerability risk of the assets to be verified in the target system.
[0046] Among them, the vulnerability risk of unverified assets refers to potential security vulnerabilities found in network assets, which may be maliciously exploited to cause unauthorized access, data leakage, system damage or other adverse consequences. Weakness testing of network assets (also known as vulnerability assessment or penetration testing) is a process of identifying security vulnerabilities in network assets. This process can help organizations determine whether their network infrastructure is vulnerable to attacks and take necessary measures to mitigate these risks.
[0047] Specifically, the attacker's behavior can be simulated to test the weaknesses of network assets and obtain multiple asset vulnerability risks to be verified.
[0048] In an embodiment of the present invention, the vulnerability test of the network assets based on the attacker's behavior is performed to obtain the vulnerability risk of the assets to be verified in the target system, including: performing a vulnerability exploitation test on the network assets remotely and locally to simulate the attacker's attack behavior to attack the network assets to obtain a first asset vulnerability risk of a successful attack; performing a security test on the network assets simulating the attacker's test behavior to obtain a second asset vulnerability risk that fails the test; and determining the first asset vulnerability risk and the second asset vulnerability risk as the asset vulnerability risk to be verified.
[0049] Among them, the attacker's attack behavior includes at least one of information collection, vulnerability verification, password dictionary verification and protection bypass; the first asset vulnerability risk refers to the vulnerability risk determined by the attacker's attack behavior. Security testing includes at least one of injection testing, input verification testing, malicious file upload testing, and permission and access control testing; the first asset vulnerability risk refers to the vulnerability risk determined by the attacker's test behavior.
[0050] Specifically, by conducting vulnerability exploitation tests on network assets remotely and on-site, simulating the attacker's attack behavior to attack network assets, the asset vulnerability risk of a successful attack is obtained as the first asset vulnerability risk. The attacker's attack behavior includes information collection, vulnerability verification, password dictionary verification, and protection bypass.
[0051] Among them, information collection includes passive reconnaissance and active reconnaissance. Passive reconnaissance is to use search engines (such as Google Hacking), WHOIS query, DNS query and other tools and technologies to collect basic information about the target. Active reconnaissance is to use network scanning tools (such as Nmap) to discover active hosts, open ports and services.
[0052] Vulnerability verification is to integrate known vulnerability databases and vulnerability library information, including various types of publicly disclosed vulnerabilities. By scanning the vulnerabilities of assets, extracting vulnerability features from the scanned vulnerabilities, matching the vulnerability features with the vulnerability database, and obtaining the asset vulnerabilities that have been successfully matched based on feature comparison.
[0053] Password dictionary authentication uses password cracking tools such as John the Ripper or Hashcat to try to crack weak passwords, perform dictionary attacks on common username and password combinations, and also perform brute force attempts on login pages.
[0054] Protection bypass is an attempt to bypass firewalls, WAFs (Web Application Firewalls) and other security measures, using techniques such as SQL injection, XSS (Cross-site Scripting), CSRF (Cross-site Request Forgery) to test the security of web applications, and trying to exploit known vulnerabilities or configuration errors to bypass authentication and authorization mechanisms.
[0055] Simulate attacker test behaviors to conduct comprehensive security tests on network assets, including injection tests, input validation tests, malicious file upload tests, and permission and access control tests. Identify and provide asset vulnerability risks in network assets through these test results (those that fail the test), and treat those that fail the test as the second asset vulnerability risk.
[0056] Among them, injection testing includes SQL injection, command injection and DAP injection. SQL injection: Try to trick the application into performing unexpected operations by constructing special SQL statements. The specific implementation is to use tools such as BurpSuite or OWASPZAP to modify the parameters in the HTTP request. Command injection: Try to execute commands by inserting operating system commands into the input field. The specific implementation is to try to inject different test strings, such as 'OR1=1-- or 'DROPTABLEusers;--. LDAP injection: If the application uses LDAP for authentication or data retrieval, try to inject malicious LDAP queries, observe the changes in the application's behavior, and check for abnormal or unexpected behavior.
[0057] Input validation tests include: XSS (cross-site scripting) attacks and XXE (XML external entity) attacks. XSS (cross-site scripting) attacks attempt to inject different types of malicious scripts or data into input fields, and XXE (XML external entity) attacks parse the application's XML files and attempt to inject external entities to leak sensitive information, monitor the application's response, and see if any scripts are executed or data is leaked.
[0058] Malicious file upload testing includes file type bypass and file name tampering. File type bypass is to prepare a malicious file, such as an image file containing a PHP shell, upload the malicious file, and observe whether the file is successfully uploaded and executed by the server even if the application restricts the type of uploaded files. File name tampering is to try to change the file extension in the upload request or use special characters to bypass the file, and observe whether the file is successfully uploaded and the server performs type checks.
[0059] Permission and access control testing includes horizontal permission access, vertical permission access, and unauthorized access. Horizontal permission access is to use multiple accounts (ordinary users, administrators, etc.) to try to access the same resource. Vertical permission access is to try to use URL manipulation or API calls to access restricted resources, such as trying to access administrator-level resources or functions. Unauthorized access is to try to access functions or data that do not require authentication. Check whether there is an authorization mechanism to prevent unauthorized access.
[0060] S130: Verify the validity of the asset vulnerability risk to be verified, and obtain the target asset vulnerability risk in the target system when the verification passes.
[0061] Among them, the target asset vulnerability risk refers to the vulnerability risk of the asset to be verified that has passed the validity verification.
[0062] It is understandable that after conducting weakness testing and identifying the vulnerability risks of the assets to be verified, these risks can be verified for effectiveness. The purpose of the effectiveness verification is to confirm whether the previously detected vulnerabilities actually exist.
[0063] Specifically, an attempt is made to reproduce the attack scenario of the discovered asset vulnerability risk (i.e., use the same attacker behavior to attack). If the asset vulnerability risk still exists after the attack scenario is reproduced, the effectiveness of the vulnerability is verified. The number of reproductions can be multiple times, with no limit, and the more the more accurate.
[0064] In an embodiment of the present invention, the validity of the asset vulnerability risk to be verified is verified, and the target asset vulnerability risk in the target system is obtained when the verification passes, including: re-attacking the asset vulnerability risk to be verified based on the attacker's behavior, and if the asset vulnerability risk to be verified still exists, determining that the validity verification of the asset vulnerability risk to be verified has passed; and determining the asset vulnerability risk to be verified that has passed the validity verification as the target asset vulnerability risk.
[0065] S140: Based on the target asset vulnerability risk and the network asset topology map, determine candidate vulnerability impact paths, and evaluate the candidate vulnerability impact paths to obtain a target vulnerability impact path.
[0066] Specifically, a topological analysis is performed on the asset vulnerability risks that have passed the validity verification in the network asset topology map to determine the candidate vulnerability impact path. The candidate impact path refers to the possible attack path if the network asset is attacked. After the candidate vulnerability impact path is determined, the candidate vulnerability impact path can be evaluated, and the target vulnerability impact path can be determined from the candidate vulnerability impact path based on the evaluation result.
[0067] S150, establishing a mapping relationship between the attacker behavior, target asset vulnerability risk and target vulnerability impact path corresponding to the target system, so as to predict the current vulnerability impact path corresponding to the current attacker behavior based on the mapping relationship when the target system is affected by the current attacker behavior.
[0068] Specifically, a mapping relationship between the attacker behavior, target asset vulnerability risk, and target vulnerability impact path corresponding to the target system can be established, and the current vulnerability impact path corresponding to the current attacker behavior can be predicted accordingly.
[0069] For example, data on attacker behavior, target asset vulnerability risk, and target vulnerability impact path are collected. The collected data is sorted and analyzed to build a mapping table or database to associate attacker behavior, target asset vulnerability risk, and target vulnerability impact path. When the target system is attacked in a new way, the attacker's behavior is captured and analyzed in real time, and the current attacker behavior is matched with the mapping relationship; based on the matching results, the potential vulnerability impact path of the current attack behavior is predicted. Based on the predicted vulnerability impact path, defense strategies are formulated in advance, such as isolating the affected system parts, updating security patches, or configuring firewall rules.
[0070] The beneficial effect of this is that it is possible to predict the vulnerability impact path based on the attacker's behavior, thereby responding to security threats more quickly and reducing potential damage.
[0071] The technical solution of the embodiment of the present invention obtains the connection relationship between network assets in the target system, generates a network asset topology map based on the connection relationship; performs weakness testing on network assets based on attacker behavior to obtain the vulnerability risk of assets to be verified in the target system; performs validity verification on the vulnerability risk of assets to be verified, and obtains the target asset vulnerability risk in the target system when the verification passes; determines the candidate vulnerability impact path based on the target asset vulnerability risk and the network asset topology map, and evaluates the candidate vulnerability impact path to obtain the target vulnerability impact path; establishes a mapping relationship between the attacker behavior corresponding to the target system, the vulnerability risk of the target asset, and the target vulnerability impact path, so that when the target system is affected by the current attacker behavior, the current vulnerability impact path corresponding to the current attacker behavior is predicted based on the mapping relationship. The technical problem of poor accuracy in predicting network attack paths in the prior art is solved, and the accuracy of vulnerability risk identification is improved by performing weakness testing on network assets and validating the effectiveness, thereby avoiding the contingency of risk occurrence, saving processing time, and improving processing efficiency. By simulating the attack behavior of the attacker corresponding to the asset vulnerability risk of the asset in each affected asset according to the order of assets in the path, we can better adapt to the variability of the attacker's behavior, avoid the impact of path changes caused by the unknown and changeable attack behavior in the attack, and improve the accuracy of predicting network attack paths.
[0072] Embodiment 2
[0073] Figure 2 This is a flowchart of a network asset attack path prediction method provided in the second embodiment of the present invention. Based on the above embodiment, this embodiment further refines the process of determining the target vulnerability impact path. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Figure 2 As shown, the method includes:
[0074] S210: Acquire the connection relationship between network assets in the target system, and generate a network asset topology map based on the connection relationship.
[0075] S220: Perform a vulnerability test on the network assets based on the attacker's behavior to obtain the vulnerability risk of the assets to be verified in the target system.
[0076] S230: Verify the validity of the asset vulnerability risk to be verified, and obtain the target asset vulnerability risk in the target system when the verification passes.
[0077] S240: Match the target asset vulnerability risk with the network assets in the network asset topology map to obtain a target network asset that matches the target asset vulnerability risk.
[0078] Specifically, a topological analysis is performed on the target asset vulnerability risk in the network asset topology map to match the target asset vulnerability risk with the network assets in the network asset topology map to obtain the target network asset.
[0079] S250: Determine an initial vulnerability impact path according to the connection relationship of the target network asset in the network asset topology map.
[0080] Specifically, according to the connection relationship between multiple target network assets in the network asset topology map, a vulnerability impact path is determined as the initial vulnerability impact path.
[0081] S260: Based on the initial vulnerability impact path, traverse the target network assets in sequence to obtain multiple vulnerability impact sub-paths, and determine the candidate vulnerability impact path based on the initial vulnerability impact path and the multiple vulnerability impact sub-paths.
[0082] Specifically, in the initial vulnerability impact path, the first network asset in the path is used as the starting point for traversal, wherein the traversed network assets are marked as traversed, and the untraversed assets are traversed.
[0083] During the traversal process, determine whether the currently traversed network asset has asset vulnerability risk. If it is determined that there is an asset vulnerability risk, then determine multiple vulnerability impact sub-paths of the currently traversed network asset within the scope constrained by the initial vulnerability impact path based on the initial vulnerability impact path corresponding to the asset vulnerability risk. If it is determined that there is no asset vulnerability risk, proceed to the next network asset traversal.
[0084] Within the scope constrained by the initial vulnerability impact path, each vulnerability impact sub-path is traversed and the previous step is repeated until all network assets are marked as traversed, forming multiple candidate vulnerability impact paths.
[0085] S270: Evaluate the candidate vulnerability impact paths to obtain a target vulnerability impact path.
[0086] Specifically, experts score the hazard degree index and possibility index of each candidate vulnerability impact path, assign a risk rating to each candidate vulnerability impact path, and screen out the candidate vulnerability impact path with the highest risk rating as the final target vulnerability impact path.
[0087] In an embodiment of the present invention, the candidate vulnerability impact paths are evaluated to obtain a target vulnerability impact path, including: using a hazard degree index and a possibility index as evaluation system indicators, and using a hierarchical analysis method to determine the weight of each of the evaluation system indicators; scoring the evaluation system indicators of each of the candidate vulnerability impact paths by an expert scoring method, and performing a weighted calculation using the weights to obtain a total score for each of the candidate vulnerability impact paths; and selecting the highest-scoring candidate vulnerability impact path as the target vulnerability impact path based on the total score.
[0088] Specifically, the hazard degree index and possibility index are selected as evaluation system indicators. The weight of each evaluation system indicator is selected by the hierarchical analysis method. The evaluation system indicators of each candidate vulnerability impact path are scored by the expert scoring method, and the weights are used for weighted calculation to obtain the total score of each candidate vulnerability impact path. According to the total score, the candidate vulnerability impact path with the highest score is selected as the final target vulnerability impact path, and the mapping relationship between attacker behavior-vulnerability risk-vulnerability impact path is established.
[0089] S280, establishing a mapping relationship between the attacker behavior, target asset vulnerability risk and target vulnerability impact path corresponding to the target system, so as to predict the current vulnerability impact path corresponding to the current attacker behavior based on the mapping relationship when the target system is affected by the current attacker behavior.
[0090] In an embodiment of the present invention, when the target system is affected by the current attacker behavior, the current vulnerability impact path corresponding to the current attacker behavior is predicted based on the mapping relationship, including: matching the current attack behavior with the attacker behavior in the mapping relationship to obtain the current vulnerability impact path corresponding to the current attacker behavior.
[0091] The technical solution of the embodiment of the present invention obtains the connection relationship between network assets in the target system, generates a network asset topology map based on the connection relationship; performs weakness testing on network assets based on attacker behavior to obtain the vulnerability risk of assets to be verified in the target system; performs validity verification on the vulnerability risk of assets to be verified, and obtains the target asset vulnerability risk in the target system when the verification passes; determines the candidate vulnerability impact path based on the target asset vulnerability risk and the network asset topology map, and evaluates the candidate vulnerability impact path to obtain the target vulnerability impact path; establishes a mapping relationship between the attacker behavior corresponding to the target system, the vulnerability risk of the target asset, and the target vulnerability impact path, so that when the target system is affected by the current attacker behavior, the current vulnerability impact path corresponding to the current attacker behavior is predicted based on the mapping relationship. The technical problem of poor accuracy in predicting network attack paths in the prior art is solved, and the accuracy of vulnerability risk identification is improved by performing weakness testing on network assets and validating the effectiveness, thereby avoiding the contingency of risk occurrence, saving processing time, and improving processing efficiency. By simulating the attack behavior of the attacker corresponding to the asset vulnerability risk of the asset in each affected asset according to the order of assets in the path, we can better adapt to the variability of the attacker's behavior, avoid the impact of path changes caused by the unknown and changeable attack behavior in the attack, and improve the accuracy of predicting network attack paths.
[0092] Embodiment 3
[0093] Figure 3 This is a schematic diagram of the structure of a network asset attack path prediction device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:
[0094] The asset topology map generation module 310 is used to obtain the connection relationship between network assets in the target system and generate a network asset topology map based on the connection relationship;
[0095] An asset weakness testing module 320 is used to perform a weakness test on the network assets based on the attacker's behavior to obtain the asset vulnerability risk to be verified in the target system;
[0096] The vulnerability risk determination module 330 is used to verify the validity of the vulnerability risk of the asset to be verified, and obtain the vulnerability risk of the target asset in the target system when the verification passes;
[0097] An impact path determination module 340 is used to determine candidate vulnerability impact paths based on the target asset vulnerability risk and the network asset topology map, and evaluate the candidate vulnerability impact paths to obtain a target vulnerability impact path;
[0098] The current path prediction module 350 is used to establish a mapping relationship between the attacker behavior, target asset vulnerability risk and target vulnerability impact path corresponding to the target system, so as to predict the current vulnerability impact path corresponding to the current attacker behavior based on the mapping relationship when the target system is affected by the current attacker behavior.
[0099] The technical solution of the embodiment of the present invention obtains the connection relationship between network assets in the target system, generates a network asset topology map based on the connection relationship; performs weakness testing on network assets based on attacker behavior to obtain the vulnerability risk of assets to be verified in the target system; performs validity verification on the vulnerability risk of assets to be verified, and obtains the target asset vulnerability risk in the target system when the verification passes; determines the candidate vulnerability impact path based on the target asset vulnerability risk and the network asset topology map, and evaluates the candidate vulnerability impact path to obtain the target vulnerability impact path; establishes a mapping relationship between the attacker behavior corresponding to the target system, the vulnerability risk of the target asset, and the target vulnerability impact path, so that when the target system is affected by the current attacker behavior, the current vulnerability impact path corresponding to the current attacker behavior is predicted based on the mapping relationship. The technical problem of poor accuracy in predicting network attack paths in the prior art is solved, and the accuracy of vulnerability risk identification is improved by performing weakness testing on network assets and validating the effectiveness, thereby avoiding the contingency of risk occurrence, saving processing time, and improving processing efficiency. By simulating the attack behavior of the attacker corresponding to the asset vulnerability risk of the asset in each affected asset according to the order of assets in the path, we can better adapt to the variability of the attacker's behavior, avoid the impact of path changes caused by the unknown and changeable attack behavior in the attack, and improve the accuracy of predicting network attack paths.
[0100] Optionally, the asset topology map generating module 310 is specifically used to:
[0101] Automatically discovering network assets in the target system by using a network scanning tool, wherein the network assets include at least one of a server, a network device, and an application, and the number of the network assets is at least two;
[0102] Capturing the network traffic of the network assets by means of a traffic analysis tool, and analyzing the network traffic to determine the communication relationship between the network assets;
[0103] The network asset topology map is created according to the communication relationship between the network assets through a network visualization tool.
[0104] Optionally, the asset weakness testing module 320 is specifically used to:
[0105] Conduct vulnerability exploitation testing on the network assets remotely and locally, simulate the attacker's attack behavior to attack the network assets, and obtain the vulnerability risk of the first asset if the attack is successful; wherein the attacker's attack behavior includes at least one of information collection, vulnerability verification, password dictionary verification, and protection bypass;
[0106] Simulate the attacker's test behavior to perform security testing on the network assets to obtain the vulnerability risk of the second asset that fails the test; wherein the security test includes at least one of an injection test, an input verification test, a malicious file upload test, and a permission and access control test;
[0107] The first asset vulnerability risk and the second asset vulnerability risk are determined as the asset vulnerability risks to be verified.
[0108] Optionally, the vulnerability risk determination module 330 is specifically configured to:
[0109] Re-attack the asset vulnerability risk to be verified based on the attacker's behavior, and if the asset vulnerability risk to be verified still exists, determine that the validity verification of the asset vulnerability risk to be verified has passed;
[0110] The vulnerability risk of the asset to be verified that has passed the validity verification is determined as the target asset vulnerability risk.
[0111] Optionally, the impact path determination module 340 is specifically configured to:
[0112] Matching the target asset vulnerability risk with the network assets in the network asset topology map to obtain a target network asset that matches the target asset vulnerability risk;
[0113] Determine an initial vulnerability impact path according to a connection relationship of the target network asset in the network asset topology map;
[0114] Based on the initial vulnerability impact path, the target network assets are traversed in sequence to obtain a plurality of vulnerability impact sub-paths, and based on the initial vulnerability impact path and the plurality of vulnerability impact sub-paths, the candidate vulnerability impact path is determined.
[0115] Optionally, the impact path determination module 340 is further configured to:
[0116] Taking the hazard degree index and the possibility index as evaluation system indicators, the weight of each evaluation system indicator is determined by using the hierarchical analysis method;
[0117] Scoring the evaluation system indicators of each candidate vulnerability impact path by an expert scoring method, and performing weighted calculation using the weights to obtain a total score for each candidate vulnerability impact path;
[0118] The candidate vulnerability impact path with the highest score is screened out according to the total score as the target vulnerability impact path.
[0119] Optionally, the current path prediction module 350 includes:
[0120] The current attack behavior is matched with the attacker behavior in the mapping relationship to obtain a current vulnerability impact path corresponding to the current attacker behavior.
[0121] The network asset attack path prediction device provided in the embodiment of the present invention can execute the network asset attack path prediction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0122] Embodiment 4
[0123] Figure 4 A schematic diagram of the structure of an electronic device provided for Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0124] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0125] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0126] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a network asset attack path prediction method.
[0127] In some embodiments, the network asset attack path prediction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the network asset attack path prediction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the network asset attack path prediction method in any other appropriate manner (e.g., by means of firmware).
[0128] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0130] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0131] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0132] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0133] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0134] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0135] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A network asset attack path prediction method, characterized in that: include: Acquire the connection relationship between network assets in the target system, and generate a network asset topology map based on the connection relationship; Performing a vulnerability test on the network assets based on the attacker's behavior to obtain the vulnerability risk of the assets to be verified in the target system; Performing validity verification on the asset vulnerability risk to be verified, and obtaining the target asset vulnerability risk in the target system when the verification passes; Based on the target asset vulnerability risk and the network asset topology map, determine candidate vulnerability impact paths, and evaluate the candidate vulnerability impact paths to obtain a target vulnerability impact path; A mapping relationship between the attacker behavior, target asset vulnerability risk and target vulnerability impact path corresponding to the target system is established, so that when the target system is affected by the current attacker behavior, the current vulnerability impact path corresponding to the current attacker behavior is predicted based on the mapping relationship.
2. The method according to claim 1, characterized in that The obtaining of connection relationships between network assets in the target system and generating a network asset topology map based on the connection relationships includes: Automatically discovering network assets in the target system by using a network scanning tool, wherein the network assets include at least one of a server, a network device, and an application, and the number of the network assets is at least two; Capturing the network traffic of the network assets by means of a traffic analysis tool, and analyzing the network traffic to determine the communication relationship between the network assets; The network asset topology map is created according to the communication relationship between the network assets through a network visualization tool.
3. The method according to claim 1, characterized in that The vulnerability test of the network assets based on the attacker's behavior to obtain the vulnerability risk of the assets to be verified in the target system includes: Conduct vulnerability exploitation testing on the network assets remotely and locally, simulate the attacker's attack behavior to attack the network assets, and obtain the vulnerability risk of the first asset if the attack is successful; wherein the attacker's attack behavior includes at least one of information collection, vulnerability verification, password dictionary verification, and protection bypass; Simulate the attacker's test behavior to perform security testing on the network assets to obtain the vulnerability risk of the second asset that fails the test; wherein the security test includes at least one of an injection test, an input verification test, a malicious file upload test, and a permission and access control test; The first asset vulnerability risk and the second asset vulnerability risk are determined as the asset vulnerability risks to be verified.
4. The method according to claim 1, characterized in that The validity verification of the vulnerability risk of the asset to be verified and obtaining the vulnerability risk of the target asset in the target system when the verification passes includes: Re-attack the asset vulnerability risk to be verified based on the attacker's behavior, and if the asset vulnerability risk to be verified still exists, determine that the validity verification of the asset vulnerability risk to be verified has passed; The vulnerability risk of the asset to be verified that has passed the validity verification is determined as the target asset vulnerability risk.
5. The method according to claim 1, characterized in that The determining of candidate vulnerability impact paths based on the target asset vulnerability risk and the network asset topology map includes: Matching the target asset vulnerability risk with the network assets in the network asset topology map to obtain a target network asset that matches the target asset vulnerability risk; Determine an initial vulnerability impact path according to a connection relationship of the target network asset in the network asset topology map; Based on the initial vulnerability impact path, the target network assets are traversed in sequence to obtain a plurality of vulnerability impact sub-paths, and based on the initial vulnerability impact path and the plurality of vulnerability impact sub-paths, the candidate vulnerability impact path is determined.
6. The method according to claim 1, characterized in that The step of evaluating the candidate vulnerability impact paths to obtain a target vulnerability impact path includes: Taking the hazard degree index and the possibility index as evaluation system indicators, the weight of each evaluation system indicator is determined by using the hierarchical analysis method; Scoring the evaluation system indicators of each candidate vulnerability impact path by an expert scoring method, and performing weighted calculation using the weights to obtain a total score for each candidate vulnerability impact path; The candidate vulnerability impact path with the highest score is screened out according to the total score as the target vulnerability impact path.
7. The method according to claim 1, characterized in that When the target system is affected by the current attacker's behavior, predicting the current vulnerability impact path corresponding to the current attacker's behavior based on the mapping relationship includes: The current attack behavior is matched with the attacker behavior in the mapping relationship to obtain a current vulnerability impact path corresponding to the current attacker behavior.
8. A network asset attack path prediction device, characterized in that: include: An asset topology map generation module is used to obtain the connection relationship between network assets in the target system and generate a network asset topology map based on the connection relationship; An asset weakness testing module is used to perform a weakness test on the network assets based on the attacker's behavior to obtain the asset vulnerability risk to be verified in the target system; A vulnerability risk determination module is used to verify the validity of the vulnerability risk of the asset to be verified, and obtain the vulnerability risk of the target asset in the target system when the verification passes; An impact path determination module is used to determine candidate vulnerability impact paths based on the target asset vulnerability risk and the network asset topology map, and evaluate the candidate vulnerability impact paths to obtain a target vulnerability impact path; The current path prediction module is used to establish a mapping relationship between the attacker behavior, target asset vulnerability risk and target vulnerability impact path corresponding to the target system, so as to predict the current vulnerability impact path corresponding to the current attacker behavior based on the mapping relationship when the target system is affected by the current attacker behavior.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network asset attack path prediction method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network asset attack path prediction method according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Network threat analysis method and device, equipment and storage medium
CN119109704A
Vulnerability-customizable network attack exercise method, device, equipment, medium and program product
CN119276620A
Intelligent operation and maintenance method and system based on CMDB
CN120934999A
Network communication transmission node vulnerability assessment method and system
CN122137659A
