Network security risk identification method and device, medium, electronic equipment and program product

By obtaining and analyzing the business attributes and security characteristics in the target network topology map, security risks in the cloud environment are identified, which solves the problem of long security risk assessment and repair time in the cloud environment, and improves business stability and response efficiency.

CN118555128AActive Publication Date: 2024-08-27BEIJING VOLCANO ENGINE TECH CO LTD

Patent Information

Application Number
CN202410870283.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-08-27
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

In a cloud environment, network security risks caused by heterogeneous assets, heterogeneous permissions, and inconsistent security policies provided by cloud vendors are difficult to accurately assess, resulting in long repair times and affecting business development.

Method used

By obtaining the target network topology map and analyzing the attack links based on the business attributes and security characteristics of assets, we can identify security risks in the network, thereby accurately identifying key risks, reducing repair risks, and ensuring business continuity.

Benefits of technology

It achieves accurate identification and rapid response to network security risks, reduces business interruptions caused by security issues, and improves the efficiency of risk repair and business stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555128A
    Figure CN118555128A
Patent Text Reader

Abstract

The invention relates to a network security risk identification method and device, a medium, electronic equipment and a program product. The method comprises the following steps: acquiring a target network topological graph based on a target object, wherein the target network topological graph is used for representing a relationship between the target object and related assets thereof; and carrying out attack link analysis on the target network topological graph based on the business attributes and the security characteristics of the assets in the target network topological graph to identify security risks in the target network topological graph. Therefore, attack link analysis can be carried out based on an attacker view by utilizing the network topological graph, combining the risk with the business attributes and security characteristics of assets in the network topological graph, so that the key risk can be identified more accurately, the quantity of business repair risks is reduced, the risk which can cause loss of the assets can be focused, the continuity of a key business process is ensured, and the security of the assets in the network topological graph is improved. And service interruption caused by security problems is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network security technology, and in particular, to a network security risk identification method, device, medium, electronic device and program product. Background Art

[0002] As businesses migrate to the cloud, the popularity of multi-cloud and hybrid cloud environments has brought new security challenges. In the cloud environment, the heterogeneous assets and permissions provided by various cloud vendors, as well as the inconsistent security policies, have led to increasing risks in load, configuration, and permissions. A large number of risks and vulnerabilities leave the business team without manpower to repair them, making it difficult for business development and security convergence to be compatible. At this stage, cloud vendors usually determine the severity of risks based on risk classification and destructive power, such as vulnerabilities being divided into high-risk, medium-risk, and low-risk. However, for businesses, some high-risk vulnerabilities are in isolated environments, or some serious configuration anomalies are in test environments. The severity of the risk cannot truly reflect the urgency of risk repair, and the risk magnitude is large, resulting in a longer time spent repairing unnecessary risks, which affects business development. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a network security risk identification method, comprising: obtaining a target network topology map based on a target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets; based on the business attributes and security characteristics of the assets in the target network topology map, performing attack link analysis on the target network topology map to identify security risks in the target network topology map.

[0005] In a second aspect, the present disclosure provides a network security risk identification device, comprising: a first acquisition module, used to acquire a target network topology map based on a target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets; a link analysis module, used to perform attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map.

[0006] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the network security risk identification method provided in the first aspect of the present disclosure.

[0007] In a fourth aspect, the present disclosure provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of the network security risk identification method provided in the first aspect of the present disclosure.

[0008] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the network security risk identification method provided in the first aspect of the present disclosure.

[0009] In the above technical solution, a target network topology map based on the target object is obtained; then, based on the business attributes and security characteristics of the assets in the target network topology map, an attack link analysis is performed on the target network topology map to identify the security risks in the target network topology map. In this way, the network topology map can be used to combine the risks with the business attributes and security characteristics of the assets in the network topology map, and the attack link analysis is performed based on the attacker's perspective, so that key risks can be identified more accurately, the number of business repair risks can be reduced, and the risks that can cause the most asset damage can be focused on, so as to ensure the continuity of key business processes and reduce business interruptions caused by security issues. In addition, through automated attack link analysis, potential security threats can be quickly identified, so that repairs can be responded to quickly and the impact of security incidents on the business can be reduced. In addition, only the target network topology map related to the target object is generated, rather than the network topology map of the entire business system. In this way, a multi-layer topology effect can be achieved with less storage space, so that key risks can be identified in a targeted manner, and through the target network topology map, risk repair personnel can clearly see the asset losses caused by failure to repair, which increases the repair motivation of risk repair personnel.

[0010] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:

[0012] Figure 1 It is a core principle diagram of a network security risk identification method according to an exemplary embodiment.

[0013] Figure 2 The present invention is a flowchart of a network security risk identification method according to an exemplary embodiment.

[0014] Figure 3It is a flowchart of a method for generating a target network topology map according to a connection relationship between assets and a mapping relationship between elastic public IP addresses and assets, according to an exemplary embodiment.

[0015] Figure 4 It is a flowchart of a method for adding assets and elastic public IPs related to a current node to a first network topology diagram according to a connection relationship between assets and a mapping relationship between elastic public IPs and assets, shown according to an exemplary embodiment.

[0016] FIG. 5A to FIG. 5D The present invention is a schematic diagram of a process of generating a target network topology diagram according to a connection relationship between assets and a mapping relationship between elastic public IP addresses and assets, according to an exemplary embodiment.

[0017] Figure 6 The present invention is a flowchart of a network security risk identification method according to another exemplary embodiment.

[0018] Figure 7 The present invention is a flowchart of a network security risk identification method according to another exemplary embodiment.

[0019] Figure 8 The present invention is a block diagram of a network security risk identification device according to an exemplary embodiment.

[0020] Fig. 9 is a schematic structural diagram of an electronic device according to another exemplary embodiment. DETAILED DESCRIPTION

[0021] Before introducing the specific embodiments of the present disclosure, the terminology involved in the present disclosure and the core principles of security risk identification are first introduced and explained.

[0022] Elastic Compute Service (ECS) is a cloud computing service that allows users to rent virtual servers in the cloud to run applications and process data.

[0023] In the field of information security and risk management, assets usually refer to an organization's information assets, including hardware, software, data, documents, services, etc. These assets are critical to the organization's operations, decision-making, and competitiveness, and therefore need to be properly protected and managed. For example, assets can be ECS, Virtual Private Cloud (VPC), subnet, network card, Server Load Balancer (SLB), Network Address Translation (NAT), virtual IP, container, Elastic IP (EIP), etc.

[0024] Assets can be divided into core assets and non-core assets according to business attributes. Among them, core assets are a group of assets that need to be protected to run core businesses, and are assets that attackers ultimately want to obtain or destroy. Core assets are assets that meet preset conditions, which can be assets with core tags. Core assets and non-core assets can be classified manually. Core assets include but are not limited to data assets, equipment assets, and operating systems that need to be protected. Non-core assets refer to assets that are less important to the organization. They may have a certain impact on daily operations, but even if they are damaged or lost, they will not cause serious or long-term impact on the organization.

[0025] Public network exposure usually refers to the fact that certain devices, services or data are not properly protected or hidden on the public network, making them vulnerable to unauthorized access or attacks. In the field of network security, this is usually a serious problem because it may lead to risks such as leakage of sensitive information, system intrusion or data tampering.

[0026] In the field of network security, lateral movement is the process by which an attacker exploits vulnerabilities or improper configurations to move from one infected system or network node to another in order to expand the scope of attack or obtain more sensitive information. This movement can be achieved through trust relationships in the internal network, by exploiting known credentials, or by exploiting other system vulnerabilities. Once an attacker successfully moves laterally, it may pose a greater threat to the entire network, including data leakage, system paralysis, or business interruption.

[0027] A web shell is a script or program that executes commands through a scripting language on a web server, usually used to remotely manage a web server. It allows users to execute system commands through a web interface, just like operating directly on the server's command line.

[0028] Cloud Security Posture Management (CSPM) is a strategy and technology focused on improving security performance in cloud environments. The goal of CSPM is to ensure that cloud resource configurations meet security standards, detect and fix security vulnerabilities in a timely manner, and continuously monitor the security status of cloud resources.

[0029] Cloud Identity and Event Management (CIEM) is a cloud security solution that focuses on managing identities and cloud permissions through the principle of least privilege.

[0030] Distributed Denial of Service (DDoS) is a common network attack method. Attackers control or use a large number of computers or network devices to send a large number of useless requests or data packets to the target server to consume its bandwidth, CPU and memory resources, making it unable to process normal requests or provide normal services.

[0031] A bastion host, also known as an operation and maintenance security audit system, is a system that uses various technical means to monitor and record the operations of operation and maintenance personnel on servers, network equipment, security equipment, databases and other equipment within the network in a specific network environment in order to protect the network and data from intrusion and damage from external and internal users, so as to facilitate centralized alarm, timely processing and auditing.

[0032] Log4j is an open source project of the open source software foundation Apache, which provides a powerful log management tool for Java. It aims to set the logging behavior at runtime through the configuration file, so that the output format, output destination (such as console, file, GUI component, etc.) and log level of the log can be flexibly controlled.

[0033] Git is an open source distributed version control system used to track file changes in a project. It allows developers to record every update and modification of file content and manage multiple versions of project history.

[0034] One-Liner Shell usually refers to a very short script code that can be embedded in a web page or uploaded to the server through other means. Although this code is short, it is powerful and allows attackers to execute remote commands or gain control of the server. It is usually contained in one line of code, so it is called "one line".

[0035] A prefix list is a set of rules used to match the destination network segment address or next hop address in routing information. A prefix list usually includes a prefix (i.e., IP address) and a mask length range. These rules are used to filter the routing information published and received by the routing protocol. Specifically, a prefix list can be used to specify which networks are reachable and which are not reachable, thereby controlling the propagation of routing information. A prefix list has two main parameters: prefix and prefix length (or subnet mask). The prefix is ​​the specified routing prefix (network segment), while the prefix length specifies the length of the subnet mask.

[0036] The following is an explanation of the core principles of security risk identification. Figure 1 As shown in the figure, attackers usually have two entrances to break into core assets: one entrance is public network exposure, which is a network layer entrance. Through public network exposure, attackers can reach core assets on the network path, for example, by moving laterally from compromised non-core assets to core assets; the other entrance is secret leakage.

[0037] like Figure 1 As shown in the figure, attackers can expose core assets through the public network. If non-core assets (such as Figure 1 The cloud resources shown in the figure, such as ECS and containers, are bound to EIPs. Attackers can gain access to the above assets through the following attack methods, and reach core assets through unreasonable network configuration, expanded permissions, lateral movement, etc.:

[0038] (a1) Exploitable network vulnerabilities: attacks through exploitable network vulnerabilities, such as log4j vulnerabilities;

[0039] (a2) Exploitable Web Shell / Malware: Attackers upload Web Shells through Web applications or allow users to deploy malware through malicious images;

[0040] (a3) The attacker breaks into non-core assets through attacks such as shells;

[0041] (a4) Attackers break into non-core assets through brute force cracking and weak passwords.

[0042] When resource codes such as plaintext access keys (AK), secret keys (SK), and database passwords are deployed on non-core assets, attackers can further expand their attacks and gain access to core assets, that is, reach core assets through unreasonable network configuration. Figure 1As shown in the figure, the core assets can be reached through CSPM. When non-core assets can access database resources such as relational database service (RDS) and MongoDB, attackers can further brute force and amplify permissions to obtain core data (i.e. reach core assets). Figure 1 As shown in Figure 1, the core assets can be reached through CIEM. After the non-core assets are breached, the compromised non-core assets can be moved horizontally to the core assets.

[0043] like Figure 1 As shown in the figure, attackers can also attack core assets from the perspective of identity authority, that is, break through core assets through secret leakage. There are several specific ways:

[0044] (b1) If some core assets are not set up for authorized access (i.e. anonymous access), attackers can easily obtain core data, i.e. reach core assets;

[0045] (b2) If AK is leaked, for example, if a developer embeds AK plaintext or SK plaintext into the code and uploads it to Git, the core assets can be easily compromised by attackers;

[0046] (b3) When internal users use their own permissions to steal core confidential data, resulting in data leakage (i.e. Figure 1 Abnormal users shown in );

[0047] (b4) If an attacker obtains a cloud identity, due to CSPM anomalies, the identity authority is amplified, and the attacker can obtain more cloud resources, that is, through the secret leakage entrance, through the authority amplification to reach the core assets (i.e. Figure 1 Reaching core assets through CSPM as shown in ).

[0048] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0049] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0050] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0051] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0052] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0053] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0054] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0055] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0056] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0057] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0058] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0059] Figure 2 FIG. 1 is a flow chart of a method for identifying network security risks according to an exemplary embodiment. Figure 2 As shown, the above network security risk identification method may include the following S101 and S102.

[0060] In S101, a target network topology map based on a target object is obtained.

[0061] In the present disclosure, the target object can be an object pre-set by the user, or it can be determined based on a security risk identification request initiated by the user. Among them, the security risk identification request is used to indicate the identification of security risks related to the target object, the security risk identification request may include the target object, and the target network topology map is used to characterize the relationship between the target object and its related assets. Among them, the target object may include one of an asset, an identity, and a resource. Among them, identity entities can be divided into five types, namely users, user groups, roles, services, and identity providers (Identity Provider, IDP); resources include databases, and assets may include at least one of virtual private clouds VPC, subnets, network cards, elastic computing services, and containers.

[0062] In S102, based on the business attributes and security characteristics of the assets in the target network topology map, an attack link analysis is performed on the target network topology map to identify security risks in the target network topology map.

[0063] In this disclosure, the business attributes of assets are used to characterize whether the corresponding assets are core assets, and the security characteristics of assets may include lateral movement of assets, public network exposure, etc. Using the network topology map, the risks are combined with the business attributes and security characteristics of assets in the network topology map, and attack link analysis is performed from the attacker's perspective.

[0064] In the above technical solution, a target network topology map based on the target object is obtained; then, based on the business attributes and security characteristics of the assets in the target network topology map, an attack link analysis is performed on the target network topology map to identify the security risks in the target network topology map. In this way, the network topology map can be used to combine the risks with the business attributes and security characteristics of the assets in the network topology map, and the attack link analysis can be performed from the attacker's perspective, so that key risks can be identified more accurately, the number of business repair risks can be reduced, and the risks that can cause the most asset damage can be focused on, so as to ensure the continuity of key business processes and reduce business interruptions caused by security issues. In addition, through automated attack link analysis, potential security threats can be quickly identified, so that repairs can be responded to quickly and the impact of security incidents on the business can be reduced. In addition, only the target network topology map related to the target object can be generated, rather than the network topology map of the entire business system. In this way, a multi-layer topology effect can be achieved with less storage space, so that key risks can be identified in a targeted manner, and through the target network topology map, risk repair personnel can clearly see the asset losses caused by failure to repair, which increases the repair motivation of risk repair personnel.

[0065] The specific implementation method of obtaining the target network topology map based on the target object in the above S101 is described in detail below.

[0066] Specifically, when obtaining a target network topology map based on a target object, it is possible to first detect whether a network topology map based on the target object has been generated within a preset time period before the current moment. If a network topology map based on the target object has been generated within a preset time period before the current moment, the generated network topology is directly used as the target network topology map; if a network topology map based on the target object has not been generated within the preset time period before the current moment, different topology map generation methods can be used to generate the target network topology map according to different types of target objects.

[0067] In one embodiment, the target object is an asset, which may specifically include a target asset. In this case, a target network topology diagram representing the relationship between the target asset and other related assets may be generated based on the connection relationship between assets and the mapping relationship between elastic public network IPs and assets.

[0068] In the present disclosure, the connection relationship between assets may include the relationship between different VPCs, the relationship between subnets, the relationship between a subnet and the assets or IPs in its VPC, the relationship between a bastion host and an ECS, the relationship between an EIP and a cloud wall, the relationship between a web application firewall (WAF) and a service group, the restriction relationship between WAF and the Internet, etc. Among them, the restriction relationship between WAF and the Internet is mainly reflected in WAF's prevention of Web application attacks and the restriction of access ports.

[0069] In another embodiment, the target object is a resource or an identity, and may specifically include a target resource or a target identity. In this case, a target network topology map based on the target object may be generated by following the steps (c1) to (c4):

[0070] Step (c1): obtaining a permission topology map based on the target object, wherein the permission topology map is used to represent the relationship between identity and resources.

[0071] In one embodiment, the target object is a target resource. In this case, the identity corresponding to the target resource can be obtained based on the pre-established correspondence between the identity and the resource (used to characterize the resources that can be accessed by different identities). After that, a topological graph is used to characterize the connection relationship between the target resource and its corresponding identity, thereby obtaining a permission topological graph based on the target resource.

[0072] In another embodiment, the target object is a target identity. In this case, the resources corresponding to the target identity can be obtained based on the pre-established correspondence between the identity and the resources. Afterwards, a topological graph is used to represent the connection relationship between the target identity and its corresponding resources, thereby obtaining a permission topological graph based on the target identity.

[0073] The attributes of the connection relationship between the resource and the identity may include read-only, read-write, management, privilege (for example, including all permissions such as read-write and management), etc.

[0074] Step (c2): Based on the pre-built correspondence between assets and resources, determine the assets related to the resources in the permission topology diagram.

[0075] In the present disclosure, each resource is usually configured with a whitelist, and only the assets in the whitelist can access the corresponding resources. The corresponding relationship between assets and resources can be constructed based on the whitelist corresponding to each resource.

[0076] Step (c3): Obtain a tenth network topology diagram based on relevant assets.

[0077] In the present disclosure, if a network topology map based on related assets has been generated within a preset time before the current moment, the generated network topology will be directly used as the tenth network topology map; if a network topology map based on related assets has not been generated within the preset time before the current moment, the tenth network topology map based on related assets can be generated based on the connection relationship between assets and the mapping relationship between elastic public network IP and assets.

[0078] Step (c4): adding the tenth network topology map to the authority topology map to obtain a target network topology map based on the target object.

[0079] The target network topology map based on the target identity or target resource not only includes the relationship between identity and resource, but also the relationship between resource and asset. In this way, the identity and asset can be associated, thereby turning secret leaks into attack entry points and exploring more security risks.

[0080] The following is a detailed description of the construction method of the connection relationship between the above assets. Specifically, it can be achieved through the following steps (d1) to (d3):

[0081] Step (d1): Collect assets in the business system.

[0082] In the present disclosure, assets in a business system may be queried based on asset identifiers (eg, IDs), and an association relationship between the assets and the asset identifiers may be established.

[0083] Step (d2): Perform relationship processing on the collected assets.

[0084] In the present disclosure, relationship processing may specifically include: for each VPC in the business system, building a correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset; building a mapping relationship between EIP and the asset; building a correspondence between NAT and ECS, and building a correspondence between SLB and ECS; associating the access control list (ACL) with the subnet, and abstracting the ACL into a unified structure permission; associating the cloud wall's policy (i.e., the cloud wall's permission list) with the assets bound to the cloud wall, and abstracting the cloud wall's policy into a unified structure permission; abstracting the security group's policy (i.e., the security group's permission list) into a unified structure permission.

[0085] Permission usually refers to a data structure or object model that encapsulates access control rules and attributes. This structure can contain multiple elements, such as operation (allow / deny), protocol type (such as TCP, UDP, ICMP), port range, address information (including source IP address, destination IP address, network segment, etc.). Cloud Wall policies are divided into two categories: one is EIP-based cloud wall policy, and the other is cross-VPC cloud wall policy.

[0086] Step (d3): Based on the processing results of the assets, a connection relationship between the above assets is constructed.

[0087] In the public, you can build the relationship between different VPCs, the relationship between subnets, and the relationship between subnets and assets or IPs in the VPC to which they belong by traversing the routing table in the business system. Specifically, this can be achieved in the following ways:

[0088] First, for each routing table in the business system, the VPC and subnet to which the routing table belongs are found according to the identifier of the VPC and the identifier of the subnet to which the routing table belongs; then, the routing table is associated with the VPC and subnet to which it belongs, and at the same time, the routing entries in the routing table are obtained and traversed, where the routing entries are classified and processed according to the next hop type, and the routing entries consist of (destination IP address, next hop type, next hop identifier).

[0089] Specifically, if the destination IP address in the current routing entry is 100.64.0.0 / 10, it is ignored, that is, no relationship association operation is performed; if the destination IP address in the current routing entry is the default gateway (for example, 0.0.0.0 / 0), the next-hop asset is obtained according to the next-hop identifier in the routing entry, and a one-way connection relationship between the VPC to which the routing table belongs and the next-hop asset is established, and the next-hop asset is marked as a "gateway"; if the destination IP address in the current routing entry is not 100.64.0.0 / 10 and is not the default gateway, the relationship is established according to the next-hop type in the current routing entry.

[0090] Among them, the relationship can be constructed in the following ways according to the next hop type in the current routing entry:

[0091] If the next hop type in the current routing entry is an internal subnet (InnerSubnet), then according to the correspondence between the VPC identifier, the asset identifier and the IP segment of the asset constructed in the above step (d2), the first target asset identifier corresponding to the destination IP address in the current routing entry is determined, and according to the association relationship between the asset and the asset identifier constructed in the above step (d1), the first target asset (specifically the target subnet) corresponding to the first target asset identifier is determined; then, a unidirectional connection relationship is established between the subnet to which the routing table belongs and the target subnet, and the connection relationship is marked as "intra-VPC connection".

[0092] If the next hop type in the current routing entry is a prefix list, then according to the next hop identifier (i.e., the prefix list identifier), obtain the IP prefix object (i.e., the target prefix list) corresponding to the next hop identifier; then, according to the correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset constructed in the above step (d2), determine the first target IP segment that matches the IP prefix object, and the second target asset identifier corresponding to the first target IP segment; next, according to the association relationship between the asset and the asset identifier constructed in the above step (d1), determine the second target asset corresponding to the second target asset identifier, and establish a connection relationship between the subnet to which the routing table belongs and the second target asset.

[0093] If the next hop type in the current routing entry is any one of a cloud server, an auxiliary network card, a NAT gateway, a high-availability virtual IP, and an IPv6 gateway, then according to the correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset constructed in the above step (d2), determine the second target IP segment consistent with the destination IP address in the current routing entry, and the third target asset identifier corresponding to the second target IP segment, and according to the association relationship between the asset and the asset identifier constructed in the above step (d1), determine the third target asset corresponding to the third target asset identifier; then, establish a unidirectional connection relationship between the subnet to which the routing table belongs and the third target asset, and mark the connection relationship as "intra-VPC connection". If there is no IP segment consistent with the destination IP address in the correspondence between the VPC identifier, the asset identifier and the IP segment of the asset, and the destination IP address is a subset of a certain IP segment in the correspondence (hereinafter referred to as the third target IP segment), then based on the correspondence, the fourth target asset identifier corresponding to the third target IP segment is determined, and based on the association relationship between the asset and the asset identifier constructed in the above step (d1), the fourth target asset corresponding to the fourth target asset identifier is determined; then, a unidirectional connection relationship is established between the subnet to which the routing table belongs and the fourth target asset, and the connection relationship is marked as "limited connection", and the destination IP address is attached to the relationship.

[0094] If the next hop type in the current routing entry is any one of Cloud Enterprise Network, VPN Gateway, Transit Router, and Dedicated Line, obtain the connection asset corresponding to the next hop identifier in the current routing entry, and find the peer asset based on the connection asset; then, establish a unidirectional relationship between the VPC to which the routing table belongs and the peer asset, and mark the connection relationship as "connection between VPCs".

[0095] In order to facilitate the user to make timely corrections when there are problems with the relationship, after the above relationship is established, the routing table identifier and the current routing entry identifier can be attached to the relationship as sources for establishing the relationship.

[0096] The following is a detailed description of the specific construction method for the relationship between the above WAF and service group, and the restriction relationship between WAF and the Internet. Specifically, when the user turns on WAF: if the WAF is an SLB WAF, the relationship between SLB and WAF is established. If the WAF is a canonical name (CNAME) WAF, the public network provided by the WAF is obtained, and the relationship between the EIP of the public network and the WAF is established. The backend server IP list bound to the WAF is obtained, and the IP list is converted into assets, and the relationship between the WAF and the converted assets is established.

[0097] In addition, you can obtain the asset instance that has cloud wall enabled, and then establish a two-way relationship between the asset instance and cloud wall, thereby building a relationship between EIP and cloud wall. And, when the ECS opens the bastion host, establish a relationship between the ECS and the bastion host.

[0098] The following is a detailed description of the specific implementation method for generating a target network topology map representing the relationship between the target asset and other related assets based on the connection relationship between assets and the mapping relationship between elastic public IP and assets. Specifically, the target asset may include at least one VPC. When generating a topology map between VPCs, the target asset may include one or more VPCs; when generating a topology map between subnets in a VPC, the target asset includes a VPC, and the target network topology map is used to represent the connection relationship between the subnets in the VPC. At this time, Figure 3 Generate the target network topology diagram by following the steps 1 to 6 shown in the figure:

[0099] Step 1: Take the first node in the target sequence as the current node.

[0100] When generating a topology diagram between VPCs, the target sequence is composed of at least one of the above-mentioned VPCs; when generating a topology diagram between subnets in a VPC, the target asset includes one VPC, and the target sequence is composed of the subnets in the one VPC.

[0101] Step 2: Determine whether the current node exists in the first network topology graph.

[0102] In the present disclosure, the first network topology map is initially empty. If the current node exists in the first network topology map, it indicates that the assets directly related to the current node have been added to the first network topology map. At this time, the current node can be ignored, and the next node of the current node in the target sequence is considered, that is, the following step 3 is directly executed; if the current node does not exist in the first network topology map, the assets directly related to the current node are considered to be added to the first network topology map, that is, the following step 4 is executed, and then step 3 is executed.

[0103] Step 3: Determine whether there is a next node for the current node.

[0104] If the current node has a next node, execute the following step 5. If the current node does not have a next node, it indicates that all related relationships have been added to the first network topology map. At this time, the first network topology map is constructed, and the latest first network topology map is determined as the target network topology map, that is, execute the following step 6.

[0105] Step 4: According to the connection relationship between assets and the mapping relationship between elastic public IP and assets, the assets and elastic public IP related to the current node are added to the first network topology map.

[0106] Step 5: Set the next node of the current node in the target sequence as the current node and return to the above step 2.

[0107] Step 6: determine the first network topology map as the target network topology map.

[0108] The following is a detailed description of the specific implementation method of adding the assets and elastic public IPs related to the current node to the first network topology diagram based on the connection relationship between assets and the mapping relationship between elastic public IPs and assets in the above step 4. Specifically, Figure 4 Steps 21 to 28 in the above code are used to implement the following:

[0109] Step 21, adding the current node to the target node set.

[0110] Among them, the target node set is initially empty.

[0111] In step 22, a target connection relationship related to the current node is determined based on the connection relationship between assets.

[0112] In the present disclosure, the target connection relationship is used to characterize the relationship between the current node and its assets of the same type.

[0113] In one implementation, the current node is a VPC, and the asset of the same type as the current node is also a VPC. In this case, the target connection relationship is used to characterize the relationship between the current VPC and its related VPCs.

[0114] In another embodiment, the current node is a subnet, and an asset of the same type as the current node is also a subnet. In this case, the target connection relationship is used to characterize the relationship between the current subnet and its related subnets, wherein the current subnet and its related subnets belong to the same VPC.

[0115] Step 23: Add the target connection relationship to the first network topology graph.

[0116] Step 24: If there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, the corresponding relationship between the corresponding elastic public IP and the current node is added to the first network topology diagram.

[0117] In order to directly know whether an asset is exposed to the public network when identifying security risks, the elastic public IP corresponding to the current node can be added to the first network topology map.

[0118] Step 27, determining whether the newly added node based on the current node in the first network topology graph is empty.

[0119] In the present disclosure, a newly added node based on the current node refers to a node added after the target connection relationship related to the current node is added to the first network topology diagram, relative to the node added before the addition, wherein the newly added node does not include an elastic public network IP.

[0120] If the newly added node based on the current node in the first network topology graph is not empty, the following step 25 is executed; if the newly added node based on the current node in the first network topology graph is empty, the following step 28 is executed.

[0121] Step 26: For each newly added node in the target node set, use the newly added node as the current node.

[0122] Step 25: remove the current node from the target node set, and add the newly added node to the target node set.

[0123] After the current node is removed from the target node set and the newly added node is added to the target node set, the above step 26 may be performed, and then the process returns to the above step 22 to add the connection relationship related to the newly added node to the first network topology graph.

[0124] In step 28, it is determined whether the newly added nodes of each node in the target node set are all empty.

[0125] When the newly added nodes based on the current node in the first network topology map are not empty, the newly added nodes based on the current node may be one or more. At this time, the association relationship related to each newly added node may be added to the first network topology map respectively, that is, each newly added node is taken as the current node respectively, and the association relationship related to each current node is added to the first network topology map respectively; thereafter, for each newly added node, if the newly added nodes based on the newly added node are not empty, the association relationship related to the newly added node based on the newly added node is added to the first network topology map, and this cycle is repeated until the newly added nodes based on the last batch of newly added nodes (that is, one or more current nodes) are all empty, that is, until the newly added nodes based on each node in the target node set are all empty. At this time, it indicates that the association relationship directly related to the current node and the indirect association relationship have been added to the first network topology map, and the next node of the current node in the target sequence can be considered, that is, the above step 3 is executed; if the newly added nodes based on each node in the target node set are not all empty, continue to monitor whether the newly added nodes based on each node in the target node set are all empty, that is, return to step 28 to continue execution.

[0126] For example, the target sequence is VPC1, VPC3, and VPC6. At this time, the target network topology diagram can be constructed through steps (e1) to (e6):

[0127] Step (e1): VPC1 is used as the current node. At this time, the first network topology map is empty, that is, VPC1 does not exist in the first network topology map.

[0128] Step (e2): Add the current node VPC1 to the target node set. At this time, the target node set is {VPC1}.

[0129] Step (e3): Based on the connection relationship between assets, the target connection relationship related to VPC1 includes the connection relationship between VPC1 and VPC2, and the connection relationship between VPC1 and VPC3; the target connection relationship is added to the first network topology diagram to obtain Figure 5A The first network topology diagram is shown.

[0130] Step (e4): In the above mapping relationship, the elastic public IP corresponding to VPC1 is EIP1. Add the corresponding relationship between EIP1 and VPC1 to Figure 5A In the first network topology diagram shown in FIG. Figure 5B The first network topology diagram shown in .

[0131] Step (e5): At this time, the newly added nodes based on VPC1 include VPC2 and VPC3. The current node VPC1 is removed from the target node set "{VPC1}", and VPC2 and VPC3 are added to the target node set. At this time, the target node set is {VPC2, VPC3}. After that, VPC2 and VPC3 are respectively used as current nodes to add their related target connection relationships. Figure 5B The first network topology shown in FIG; wherein: for VPC2, the target connection relationship related to VPC2 determined according to the connection relationship between assets includes the connection relationship between VPC1 and VPC2, and adds it to Figure 5B After the first network topology shown in , the resulting topology does not change, that is, the newly added nodes based on VPC2 are empty. At this time, the condition that the newly added nodes based on each node in the target node set are empty is not met, and it is continued to detect whether the condition that the newly added nodes based on each node in the target node set are empty is met; for VPC3, the target connection relationship related to VPC3 determined according to the connection relationship between assets includes the connection relationship between VPC3 and VPC1, and the connection relationship between VPC3 and VPC4, and it is added Figure 5B After the first network topology diagram shown in Figure 5C In the first network topology diagram shown, there is no EIP corresponding to VPC3 in the above mapping relationship, and there is no need to perform the EIP adding operation.

[0132] Step (e6): At this time, the newly added nodes based on VPC3 include VPC4, and the current node VPC3 is removed from the target node set "{VPC2, VPC3}", and VPC4 is added to the target node set. At this time, the target node set is {VPC2, VPC4}. After that, VPC4 can be used as the current node, and the target connection relationship related to VPC4 determined based on the connection relationship between assets includes the connection relationship between VPC4 and VPC3, and it is added Figure 5C After the first network topology shown in , the resulting topology does not change, that is, the newly added node based on VPC4 is empty; at this time, the condition that the newly added node based on each node in the target node set is empty is met, and VPC3 in the target sequence can be used as the current node. Figure 5C The first network topology shown in FIG already includes VPC3. Therefore, VPC6 in the target sequence can be used as the current node. With VPC6 as the current node, the current node VPC6 is added to the target node set. At this time, the target node set is {VPC2, VPC4, VPC6}. The target connection relationship related to VPC6 determined according to the connection relationship between assets includes the connection relationship between VPC6 and VPC7. VPC6 is added to Figure 5C After the first network topology diagram shown in Figure 5D The first network topology diagram is shown.

[0133] Step (e7): There is no EIP corresponding to VPC6 in the above mapping relationship, and there is no need to perform the EIP adding operation. At this time, the newly added nodes based on VPC6 include VPC7. Afterwards, the current node VPC6 is removed from the target node set "{VPC2, VPC4, VPC6}", and VPC7 is added to the target node set. At this time, the target node set is {VPC2, VPC4, VPC6}. VPC7 can be used as the current node, and the target connection relationship related to VPC7 determined according to the connection relationship between assets includes the connection relationship between VPC7 and VPC6, which is added. Figure 5D After the first network topology shown in , the resulting topology does not change, that is, the newly added node based on VPC7 is empty. At this time, the condition that the newly added nodes based on each node in the target node set are empty is met. After that, it is determined that the next node of VPC6 in the target sequence is empty. Therefore, Figure 5D The first network topology map shown in is determined as the target network topology map.

[0134] In order to ensure the real-time accuracy of the target network topology, when there is a cloud wall between the target connection relationships, the network topology after adding the target connection relationship is corrected using the cloud wall strategy. Specifically, before the above step 24, the assets and elastic public IPs related to the current node are added to the first network topology based on the connection relationship between assets and the mapping relationship between elastic public IPs and assets, and also include:

[0135] If the target connection relationship is a cross-VPC relationship and there is a cloud wall between the target connection relationships, the first network topology diagram is modified based on the permission list of the cloud wall.

[0136] At this time, the above step 24 may include: if there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, then adding the corresponding relationship between the corresponding elastic public IP and the current node to the corrected first network topology map.

[0137] Among them, the cloud wall can include Figure 1 The firewall (Firewall, FW for short) shown in the figure can also modify the first network topology diagram based on the Secure Sockets Layer (SSL), Network Traffic Analysis (NTA) and the like.

[0138] The following is a detailed description of the specific implementation method for modifying the first network topology diagram based on the above cloud wall-based permission list. Specifically, it can be achieved through the following steps (f1) to (f5):

[0139] Step (f1): Sort the permission list of the cloud wall from low to high priority to obtain the first permission list.

[0140] Step (f2): Arrange the permission rules with the same priority in the first permission list in the order of operation rejection and operation permission to obtain a second permission list.

[0141] In the present disclosure, the cloud wall strategy is a permission list composed of permission rules, wherein the permission rules are abstracted into a permission structure, which includes elements such as operation (allow / deny), address information (IP address or IP segment), etc.

[0142] Step (f3): traverse the second permission list and determine the first target node to be processed according to the type of address information in the current permission rule.

[0143] In the present disclosure, the current permission rule is the permission rule currently traversed in the second permission list. Specifically, if the address information in the current permission rule is the default gateway, the VPC to which the cloud wall exists between the target connection relationship belongs is determined as the first target node; if the address information in the current permission rule is a security group, the address information is determined as the first target node, that is, the security group is determined as the first target node; if the address information in the current permission rule is an IP address or an IP prefix, the first target node is determined based on the address information and the correspondence between the pre-built VPC identifier, asset identifier, and the IP segment of the asset.

[0144] Step (f4): when the operation in the current authority rule is acceptance, the connection relationship between the current node and the first target node is added to the first network topology graph according to the direction information in the current authority rule.

[0145] In the present disclosure, the direction information is out or in. When the direction information is in, the connection relationship between the current node and the first target node is from the first target node to the current node, indicating that the first target node can access the current node; when the direction information is out, the connection relationship between the current node and the first target node is from the current node to the first target node, indicating that the current node can access the first target node.

[0146] Step (f5): When the operation in the current permission rule is rejection, determine and execute a target processing strategy for the first target node based on at least the type of address information in the current permission rule, wherein the target processing strategy is one of the following: remove the first target node from the first network topology graph, and modify the relationship between the current node and the first target node to a limited connection.

[0147] The following describes in detail the specific implementation method of determining the first target node based on the address information and the pre-built correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset.

[0148] Specifically, if there is a fourth target IP segment consistent with the address information in the correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset, the asset represented by the asset identifier corresponding to the fourth target IP segment in the correspondence is determined as the first target node; if there is no fourth target IP segment consistent with the address information in the correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset, and the address information is a subset of a certain IP segment in the correspondence (hereinafter referred to as the fifth target IP segment), the asset represented by the asset identifier corresponding to the fifth target IP segment in the correspondence is determined as the first target node. At this time, the connection between the current node and the first target node The relationship is a limited connection; if there is no fourth target IP segment consistent with the address information in the correspondence between the VPC identifier, the asset identifier and the IP segment of the asset, and a certain IP segment in the correspondence (hereinafter referred to as the sixth target IP segment) is a subset of the address information, the address information is split to obtain the sixth target IP segment and other IP segments. At this time, the asset represented by the asset identifier corresponding to the sixth target IP segment in the correspondence can be determined as the first target node. At the same time, the assets corresponding to other IP segments (if the corresponding assets cannot be found, they are represented by IP segments) are also determined as the first target node; if none of the above conditions are met, the address information is determined as the first target node.

[0149] The following describes in detail a specific implementation method of determining the target processing strategy for the first target node at least according to the type of address information in the current permission rule in the above step (f5).

[0150] Specifically, when the address information in the current permission rule is a default gateway or a security group, the target processing strategy is determined to remove the first target node from the first network topology map.

[0151] When the address information in the current permission rule is an IP address or an IP prefix: if there is a fourth target IP segment consistent with the address information in the correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset, or there is no fourth target IP segment consistent with the address information in the correspondence, and the address information is a subset of an IP segment in the correspondence, then the target processing strategy is determined to remove the first target node from the first network topology map; if there is no fourth target IP segment consistent with the address information in the correspondence between the VPC identifier, the asset identifier, and the IP segment of the asset, and an IP segment in the correspondence is a subset of the address information, then the relationship between the current node and the first target node is modified to a limited connection.

[0152] In order to ensure the real-time accuracy of the above target network topology, after adding the elastic public IP corresponding to the current node to the first network topology, if the elastic public IP corresponding to the current node has the cloud wall enabled, the network topology after adding the elastic public IP corresponding to the current node is corrected using the cloud wall strategy. Specifically, in the case of generating a topology between subnets in a VPC, before the above step 27, the above generation of the target network topology based on the connection relationship between assets and the mapping relationship between the elastic public IP and assets also includes:

[0153] If the elastic public network IP corresponding to the current node has the cloud wall enabled, the first network topology diagram is modified according to the permission list of the cloud wall enabled by the elastic public network IP corresponding to the current node.

[0154] At this time, the above step 27 includes: determining whether the newly added node based on the current node in the first network topology diagram obtained after correction is empty. That is, if the newly added node based on the current node in the first network topology diagram obtained after correction is not empty, the current node is removed from the target node set, and the newly added node is added to the target node set.

[0155] Among them, a method similar to the above steps (f1) to (f5) can be adopted to modify the first network topology diagram according to the permission list of the cloud wall enabled by the elastic public IP corresponding to the current node. The only difference is that: if the address information in the current permission rule is the default gateway, the Internet node (abstract node) is determined as the first target node, rather than the VPC to which the cloud wall exists between the target connection relationship is determined as the first target node.

[0156] In addition, a similar method to the above-mentioned method of generating the target network topology map based on the connection relationship between assets and the mapping relationship between elastic public IPs and assets can be adopted to generate a tenth network topology map based on related assets based on the connection relationship between assets and the mapping relationship between elastic public IPs and assets, which will not be repeated in this disclosure.

[0157] In order to improve the accuracy of the target network topology, when generating a topology between subnets in a VPC, the target network topology can be modified using the access control list bound to each subnet in the target network topology. Figure 6 As shown, before the above S102, the above network security risk identification method may further include S103 and S104.

[0158] In S103, the target network topology map is modified according to the access control list bound to each subnet in the target network topology map to obtain a second network topology map.

[0159] In S104, if there is an elastic public IP connected to both the subnet and the VPC to which the subnet belongs in the second network topology, the connection relationship between the elastic public IP connected at the same time and the VPC to which the subnet belongs is removed to obtain a third network topology.

[0160] In the present disclosure, if there is an elastic public IP in the second network topology diagram that is connected to both the subnet and the VPC to which the subnet belongs, in order to avoid relationship redundancy, only the connection relationship between the EIP and the subnet can be retained, that is, the connection relationship between the EIP and the VPC to which the subnet belongs needs to be deleted.

[0161] At this time, the above S102 may perform attack link analysis on the third network topology map based on the business attributes and security characteristics of the assets in the third network topology map.

[0162] The following is a detailed description of the specific implementation method of modifying the target network topology map according to the access control list bound to each subnet in the target network topology map in S103 to obtain the second network topology map. Specifically, it can be achieved by the following steps (g1) to (g5):

[0163] Step (g1): for each subnet in the target network topology diagram, sort the access control list of the subnet from low to high priority to obtain a first access control list.

[0164] Step (g2): Arrange the permission rules with the same priority in the first access control list in the order of operation as deny and operation as allow to obtain a second access control list.

[0165] Step (g3): traverse the second access control list and determine the second target node to be processed according to the type of address information in the current access control rule.

[0166] In the present disclosure, the current access control rule is the access control rule currently traversed in the second access control list. In addition, a method similar to the above step (f3) in which the first target node to be processed is determined according to the type of address information in the current permission rule can be adopted to determine the second target node to be processed according to the type of address information in the current access control rule. The only difference is that if the address information in the current access control rule is the default gateway, other subnets in the VPC to which the subnet belongs, except the subnet, and the VPC to which the subnet belongs are determined as the second target node.

[0167] Step (g4): When the operation in the current access control rule is acceptance, the connection relationship between the current node and the second target node is added to the target network topology map according to the direction information in the current access control rule.

[0168] In the present disclosure, the direction information is out or in. When the direction information is in, the connection relationship between the current node and the second target node is from the second target node to the current node, indicating that the second target node can access the current node; when the direction information is out, the connection relationship between the current node and the second target node is from the current node to the second target node, indicating that the current node can access the second target node.

[0169] Step (g5): When the operation in the current access control rule is rejection, determine and execute a target processing strategy for the second target node based at least on the type of address information in the current access control rule.

[0170] In the present disclosure, the target processing strategy of the second target node is one of the following: removing the second target node from the target network topology map, and modifying the relationship between the current node and the second target node to a limited connection.

[0171] In addition, a method similar to the above step (f5) in which the target processing policy for the first target node is determined based at least on the type of address information in the current permission rule can be adopted to determine the target processing policy for the second target node based at least on the type of address information in the current access control rule, which is not repeated in this disclosure.

[0172] In order to identify key risks more accurately, after building the topology map between subnets in a VPC, you can associate it with the VPC upper-layer topology. Specifically, when generating the topology map between subnets in a VPC, the target object includes a VPC, such as Figure 7 As shown, before the above S102, the above method may further include the following S105 and S106.

[0173] In S105, a fourth network topology map based on the one VPC is obtained.

[0174] In the present disclosure, the fourth network topology map is used to characterize the topological relationship between VPCs. The fourth network topology map based on the one VPC can be obtained in a manner similar to the above S101 of obtaining the target network topology map based on the target object, and the present disclosure will not repeat it.

[0175] In S106, the fourth network topology map is added to the target network topology map to obtain a fifth network topology map.

[0176] At this time, the above S102 may perform attack link analysis on the fifth network topology map based on the business attributes and security characteristics of the assets in the fifth network topology map.

[0177] In addition to building a topology map between VPCs or between subnets in a VPC, you can also build a topology map based on a network card. Specifically, the target asset includes a network card. At this time, based on the connection relationship between assets and the mapping relationship between elastic public IP and assets, the following steps (h1) to (h3) can be used to generate a target network topology map that represents the relationship between the target asset and other related assets.

[0178] Step (h1): Determine the elastic public IP corresponding to the network card based on the mapping relationship between the elastic public IP and the asset.

[0179] Step (h2): Generate a sixth network topology diagram based on the network card and its corresponding elastic public IP.

[0180] Step (h3): According to the permission list of the security group associated with the network card, the sixth network topology diagram is modified to obtain a target network topology diagram representing the relationship between the target asset and other related assets.

[0181] Specifically, the permission list of the security group associated with the network card can be sorted from low to high according to priority to obtain a third permission list; then, the permission rules with the same priority in the third permission list are arranged in the order of operation as rejection and operation as permission to obtain a fourth permission list; next, the fourth permission list is traversed to determine the third target node to be processed according to the type of address information in the current permission rule; when the operation in the current permission rule is acceptance, the connection relationship between the current node and the third target node is added to the sixth network topology map according to the direction information in the current permission rule to obtain a seventh network topology map; when the operation in the current permission rule is rejection, at least according to the type of address information in the current permission rule, a target processing strategy for the third target node is determined and executed, wherein the target processing strategy for the third target node is one of the following: removing the third target node from the sixth network topology map, and modifying the relationship between the current node and the third target node to a limited connection.

[0182] The third target node to be processed may be determined according to the type of address information in the current permission rule in a similar manner as in the above step (f3) in which the first target node to be processed is determined according to the type of address information in the current permission rule. The only difference is that if the address information in the current permission rule is the default gateway, the security group associated with the network card and the subnet where the network card is located are determined as the third target node.

[0183] In addition, a method similar to the above step (f5) in which the target processing strategy for the first target node is determined based at least on the type of address information in the current authority rule can be adopted to determine the target processing strategy for the third target node based at least on the type of address information in the current authority rule, which is not repeated in the present disclosure.

[0184] In order to more accurately identify key risks, after constructing a topology map based on a network card, it can be associated with the subnet in the VPC where the network card is located. Specifically, when generating a topology map based on a network card, the target object includes the network card. Before S102, the network security risk identification method can also include the following two steps:

[0185] Obtain a seventh network topology map based on the VPC where the network card is located, wherein the seventh network topology map is used to represent the topological relationship between subnets in the VPC;

[0186] If there is an elastic public IP connected to both the network card and the subnet to which the network card belongs in the seventh network topology diagram, remove the connection relationship between the elastic public IP connected at the same time and the subnet to which the network card belongs, and obtain an eighth network topology diagram;

[0187] At this time, the above S102 may perform attack link analysis on the eighth network topology map based on the business attributes and security characteristics of the assets in the eighth network topology map.

[0188] In the present disclosure, when there is an elastic public IP that is connected to both the network card and the subnet to which the network card belongs in the seventh network topology diagram, in order to avoid relationship redundancy, only the connection relationship between the EIP and the network card can be retained, that is, the connection relationship between the EIP and the subnet to which the network card belongs needs to be deleted.

[0189] In addition to building topology maps between VPCs, between subnets in a VPC, and based on network cards, you can also build topology maps based on ECS or containers. At this time, you can generate a target network topology map that represents the relationship between the target asset and other related assets based on the connection relationship between assets and the mapping relationship between elastic public IP addresses and assets through the following two steps:

[0190] First, determine the target network card to which the elastic computing service or container is bound;

[0191] Then, a ninth network topology map based on the target network card is obtained as the target network topology map.

[0192] In the present disclosure, a method similar to the above-mentioned method of obtaining the target network topology map based on the network card can be used to obtain the ninth network topology map based on the target network card, which will not be described in detail in the present disclosure.

[0193] The following describes in detail a specific implementation method of performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map in S102 to identify security risks in the target network topology map.

[0194] In one embodiment, the target object includes a target asset. In this case, risk assets exposed to the public network in the target network topology map can be first identified, wherein assets that are directly connected to the EIP in the target network topology map can be determined as risk assets exposed to the public network; if the risk asset does not belong to the core asset and the risk asset meets any one of the first preset conditions, it is determined whether the risk asset can be moved horizontally to the core asset; if the risk asset can be moved horizontally to the core asset, the risk asset is determined as a security risk; if the risk asset cannot be moved horizontally to the core asset, it indicates that the risk asset does not belong to a security risk.

[0195] If the risk asset does not belong to the core asset and the risk asset meets any one of the second preset conditions, the risk asset is determined to be a security risk.

[0196] If the risk asset belongs to the core asset and the risk asset meets any one of the third preset conditions, the risk asset is determined to be a security risk.

[0197] In the present disclosure, the first preset condition may include: a high-risk exploitable vulnerability, a malicious file / WebShell, a weak password, a brute force cracking attack, a database attack, a remote login, and a suspicious port monitoring.

[0198] For example, if there is a VM / container exposed to the public network in the target network topology map, and at the same time, the virtual machine (Virtual Machine, VM) / container exposed to the public network has a high-risk exploitable vulnerability and can be moved laterally to the core assets, then the VM / container exposed to the public network is determined as a security risk; if there is a VM / container exposed to the public network in the target network topology map, and at the same time, the VM / container exposed to the public network has malicious files / Web Shells and can be moved laterally to the core assets, then the VM / container exposed to the public network is determined as a security risk; if there is a VM / container exposed to the public network in the target network topology map, and at the same time, the VM / container exposed to the public network has weak passwords, brute force cracking, database collision attacks, remote logins, etc., and can be moved laterally to the core assets, then the VM / container exposed to the public network is determined as a security risk; if there is a VM / container exposed to the public network in the target network topology map, and at the same time, the VM / container exposed to the public network has suspicious port monitoring and can be moved laterally to the core assets, then the VM / container exposed to the public network is determined as a security risk;

[0199] The second preset condition may include: the resource code of the risk asset contains access credentials, and the access rights corresponding to the access credentials can access the core assets; the risk asset has an access key call, and the access key involves the core assets.

[0200] For example, if there is a VM / container exposed to the public network in the target network topology, and at the same time, the resource code of the VM / container exposed to the public network contains AK plaintext or SK plaintext, and the access permissions corresponding to the AK plaintext or SK plaintext can access core assets, then the VM / container exposed to the public network is determined to be a security risk; if there is a VM / container exposed to the public network in the target network topology, and at the same time, there is an access key call, and the access key involves core assets, then the VM / container exposed to the public network is determined to be a security risk.

[0201] In addition, if a VM / container has an alarm on the host and can spread to core assets, the VM / container is identified as a security risk.

[0202] The third preset condition may include: the presence of high-risk exploitable vulnerabilities or high-risk vulnerabilities, malicious files / WebShells, any of weak passwords, brute force cracking, database attacks, remote logins, and suspicious port monitoring.

[0203] In another embodiment, the target object includes a target resource or a target identity. In this case, an attack link analysis can be performed on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, as well as the secret leakage of the identity in the target network topology map, to identify security risks in the target network topology map.

[0204] Specifically, a similar method to the above implementation method can be used to perform attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify the key risks in the target network topology map; at the same time, based on secret leakage, further identify security risks in the target network topology map.

[0205] Among them, based on secret leakage, security risks in the target network topology map can be identified in the following ways:

[0206] If a core asset is open to the public network (the CSPM impact area is public network access, and the asset is a core asset), and there is a CSPM risk of excessive permissions, then the core asset is identified as a security risk;

[0207] If the leaked AK can access core assets, the leaked AK will be identified as a security risk;

[0208] If an account with a risk of secret leakage (for example, anonymous access, weak passwords, unauthorized access, etc., all CSPM risk impacts are secret leakage) can access core assets, the account with abnormal behavior will be identified as a security risk;

[0209] If an account with abnormal behavior can access core assets, the account with abnormal behavior will be identified as a security risk;

[0210] If there is an identity entity that can access core assets, the identity entity will be identified as a security risk.

[0211] In addition, the above method may further include the following steps:

[0212] In response to receiving a security risk identification request, a target object is determined based on the security risk identification request, wherein the security risk identification request includes the target object.

[0213] Figure 8 FIG. 1 is a block diagram of a network security risk identification device according to an exemplary embodiment. Figure 8 As shown, the device 700 includes:

[0214] A first acquisition module 701 is used to acquire a target network topology map based on a target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets;

[0215] The link analysis module 702 is used to perform attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map.

[0216] In the above technical solution, a target network topology map based on the target object is obtained; then, based on the business attributes and security characteristics of the assets in the target network topology map, an attack link analysis is performed on the target network topology map to identify the security risks in the target network topology map. In this way, the network topology map can be used to combine the risks with the business attributes and security characteristics of the assets in the network topology map, and the attack link analysis can be performed from the attacker's perspective, so that key risks can be identified more accurately, the number of business repair risks can be reduced, and the risks that can cause the most asset damage can be focused on, so as to ensure the continuity of key business processes and reduce business interruptions caused by security issues. In addition, through automated attack link analysis, potential security threats can be quickly identified, so that repairs can be responded to quickly and the impact of security incidents on the business can be reduced. In addition, only the target network topology map related to the target object can be generated, rather than the network topology map of the entire business system. In this way, a multi-layer topology effect can be achieved with less storage space, so that key risks can be identified in a targeted manner, and through the target network topology map, risk repair personnel can clearly see the asset losses caused by failure to repair, which increases the repair motivation of risk repair personnel.

[0217] Optionally, the target object includes one of an asset, an identity, and a resource;

[0218] Wherein, the resources include a database;

[0219] The assets include at least one of a virtual private cloud VPC, a subnet, a network card, an elastic computing service, and a container.

[0220] Optionally, the business attribute is used to characterize whether the corresponding asset is a core asset, and the security characteristics include public network exposure and lateral movement, wherein the core asset is an asset that meets preset conditions.

[0221] Optionally, the target object includes a target asset;

[0222] The first acquisition module 701 is used to generate the target network topology diagram representing the relationship between the target asset and other related assets according to the connection relationship between assets and the mapping relationship between elastic public IP and assets.

[0223] Optionally, the target asset includes at least one virtual private cloud VPC;

[0224] The first acquisition module 701 includes:

[0225] A first determination submodule is configured to use the first node in the target sequence as the current node, wherein when generating a topology map between VPCs, the target sequence is composed of the at least one VPC, and when generating a topology map between subnets in a VPC, the target asset includes one VPC, and the target sequence is composed of subnets in the one VPC;

[0226] The first adding submodule is used to determine whether the current node exists in the first network topology map. If not, the assets and elastic public network IPs related to the current node are added to the first network topology map according to the connection relationship between assets and the mapping relationship between elastic public network IPs and assets, and then the second determining submodule is triggered to run. If yes, the second determining submodule is directly triggered to run, wherein the first network topology map is initially empty;

[0227] The second determination submodule is used to determine whether the current node has a next node. If so, the next node of the current node in the target sequence is used as the current node, and the first joining submodule is triggered to run. If not, the first network topology diagram is determined as the target network topology diagram.

[0228] Optionally, the first adding submodule includes:

[0229] A second adding submodule, used for adding the current node to a target node set, wherein the target node set is initially empty;

[0230] A third determination submodule is used to determine a target connection relationship related to the current node according to the connection relationship between the assets, wherein the target connection relationship is used to characterize the relationship between the current node and its assets of the same type;

[0231] A third adding submodule, used to add the target connection relationship to the first network topology graph;

[0232] A fourth adding submodule, configured to add the corresponding relationship between the corresponding elastic public network IP and the current node to the first network topology graph if there is an elastic public network IP corresponding to the current node in the mapping relationship between the elastic public network IP and the asset;

[0233] A fifth adding submodule, configured to remove the current node from the target node set and add the newly added node to the target node set if the newly added node based on the current node in the first network topology graph is not empty, wherein the newly added node does not include an elastic public network IP;

[0234] The triggering submodule is used to take each newly added node in the target node set as the current node and trigger the third determining submodule until the newly added nodes of each node in the target node set are empty.

[0235] Optionally, the first adding submodule further includes:

[0236] A first correction submodule is used for, before the fourth adding submodule executes the step of adding the corresponding relationship between the corresponding elastic public network IP and the current node to the first network topology map if there is an elastic public network IP corresponding to the current node in the mapping relationship between the elastic public network IP and the asset, if the target connection relationship is a cross-VPC relationship and there is a cloud wall between the target connection relationships, then correcting the first network topology map based on the permission list of the cloud wall;

[0237] The fourth adding submodule is used to add the corresponding relationship between the corresponding elastic public network IP and the current node to the corrected first network topology diagram if there is an elastic public network IP corresponding to the current node in the mapping relationship between the elastic public network IP and the asset.

[0238] Optionally, the first correction submodule includes:

[0239] A first sorting submodule is used to sort the permission list of the cloud wall from low to high priority to obtain a first permission list;

[0240] A second sorting submodule is used to arrange the permission rules with the same priority in the first permission list in the order of operation rejection and operation permission to obtain a second permission list;

[0241] a traversal submodule, configured to traverse the second permission list and determine a first target node to be processed according to a type of address information in a current permission rule, wherein the current permission rule is a permission rule currently traversed in the second permission list;

[0242] a sixth adding submodule, configured to add a connection relationship between the current node and the first target node to the first network topology graph according to direction information in the current permission rule when the operation in the current permission rule is acceptance;

[0243] An execution submodule is used to determine and execute a target processing strategy for the first target node, at least based on the type of the address information, when the operation in the current permission rule is rejection, wherein the target processing strategy is one of the following: removing the first target node from the first network topology map, and modifying the relationship between the current node and the first target node to a limited connection.

[0244] Optionally, the traversal submodules include:

[0245] The fourth determination submodule is used to determine the VPC to which the cloud wall belongs as the first target node if the address information in the current permission rule is a default gateway;

[0246] a fifth determining submodule, configured to determine the address information as the first target node if the address information is a security group;

[0247] The sixth determination submodule is used to determine the first target node according to the address information and the correspondence between the pre-built VPC identifier, the asset identifier and the IP segment of the asset if the address information is an IP address or an IP prefix.

[0248] Optionally, in the case of generating a topology diagram between subnets in a VPC, the first adding submodule further includes:

[0249] A second correction submodule is used for, before the fifth adding submodule executes the step of removing the current node from the target node set and adding the newly added node to the target node set if the newly added node based on the current node in the first network topology is not empty, if the elastic public network IP corresponding to the current node has a cloud wall enabled, then correcting the first network topology according to the permission list of the cloud wall enabled by the corresponding elastic public network IP;

[0250] The fifth adding submodule is used for removing the current node from the target node set and adding the new node to the target node set if the new node based on the current node in the corrected first network topology graph is not empty.

[0251] Optionally, when generating a topology diagram between subnets in a VPC, the apparatus 700 further includes:

[0252] A correction module, used for correcting the target network topology map according to the access control list bound to each subnet in the target network topology map before the link analysis module 702 performs attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to obtain a second network topology map;

[0253] A first removal module is used to remove the connection relationship between the elastic public IP connected at the same time and the VPC to which the subnet belongs if there is an elastic public IP connected to the subnet and the VPC to which the subnet belongs in the second network topology map, so as to obtain a third network topology map;

[0254] The link analysis module 702 is used to perform attack link analysis on the third network topology map based on the business attributes and security characteristics of the assets in the third network topology map.

[0255] Optionally, when generating a topology diagram between subnets in a VPC, the target object includes a VPC;

[0256] The device 700 further includes:

[0257] A second acquisition module is used to acquire a fourth network topology map based on the one VPC before the link analysis module 702 performs attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, wherein the fourth network topology map is used to represent the topological relationship between the VPCs;

[0258] A adding module, used for adding the fourth network topology map to the target network topology map to obtain a fifth network topology map;

[0259] The link analysis module 702 is used to perform attack link analysis on the fifth network topology diagram based on the business attributes and security characteristics of the assets in the fifth network topology diagram.

[0260] Optionally, the target asset includes a network card;

[0261] The first acquisition module 701 includes:

[0262] A seventh determination submodule, configured to determine the elastic public network IP corresponding to the network card according to a mapping relationship between the elastic public network IP and the asset;

[0263] A generating submodule, used to generate a sixth network topology diagram based on the network card and its corresponding elastic public network IP;

[0264] The third correction submodule corrects the sixth network topology map according to the permission list of the security group associated with the network card to obtain the target network topology map representing the relationship between the target asset and other related assets.

[0265] Optionally, the target object includes a network card;

[0266] The device 700 further includes:

[0267] A third acquisition module is used to acquire a seventh network topology map based on the VPC where the network card is located before the link analysis module 702 performs attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, wherein the seventh network topology map is used to characterize the topological relationship between subnets in the VPC;

[0268] A second removal module is used to remove the connection relationship between the elastic public IP connected at the same time and the subnet to which the network card belongs if there is an elastic public IP connected to the network card and the subnet to which the network card belongs in the seventh network topology map, so as to obtain an eighth network topology map;

[0269] The link analysis module 702 is used to perform attack link analysis on the eighth network topology diagram based on the business attributes and security characteristics of the assets in the eighth network topology diagram.

[0270] Optionally, the target asset includes an elastic computing service or a container;

[0271] The first acquisition module 701 includes:

[0272] An eighth determination submodule, used to determine a target network card to which the elastic computing service or the container is bound;

[0273] The first acquisition submodule is used to acquire a ninth network topology map based on the target network card as the target network topology map.

[0274] Optionally, the target object includes a target asset;

[0275] The business attributes are used to characterize whether the corresponding assets belong to core assets, and the security features include public network exposure and lateral movement;

[0276] The link analysis module 702 includes:

[0277] An identification submodule, used to identify risky assets exposed to the public network in the target network topology diagram;

[0278] a ninth determination submodule, for determining whether the risk asset can be moved horizontally to the core asset if the risk asset does not belong to the core asset and the risk asset satisfies any one of the first preset conditions;

[0279] The tenth determination submodule is used to determine the risk asset as a security risk if the risk asset can be moved horizontally to the core asset.

[0280] Optionally, the link analysis module 702 further includes:

[0281] an eleventh determination submodule, configured to determine the risk asset as a security risk if the risk asset does not belong to a core asset and the risk asset meets any one of the second preset conditions;

[0282] Wherein, the second preset condition includes:

[0283] The resource code of the risk asset contains access credentials, and the access rights corresponding to the access credentials can access the core assets;

[0284] The risk asset has an access key call, and the access key involves the core asset.

[0285] Optionally, the link analysis module 702 further includes:

[0286] If the risk asset belongs to a core asset and the risk asset satisfies any one of the third preset conditions, the risk asset is determined to be a security risk.

[0287] Optionally, the target object includes a target resource or a target identity;

[0288] The first acquisition module 701 includes:

[0289] A second acquisition submodule is used to acquire a permission topology map based on the target object, wherein the permission topology map is used to represent the relationship between identity and resources;

[0290] A twelfth determination submodule is used to determine assets related to resources in the permission topology map based on the pre-built correspondence between assets and resources;

[0291] A third acquisition submodule, used to acquire a tenth network topology map based on the relevant assets;

[0292] The sixth adding submodule is used to add the tenth network topology map to the authority topology map to obtain the target network topology map.

[0293] Optionally, the link analysis module 702 is used to perform attack link analysis on the target network topology map based on business attributes and security characteristics of assets in the target network topology map and secret leakage of identities in the target network topology map.

[0294] In addition, the present disclosure also provides a computer-readable medium on which a computer program is stored. When the computer program is executed by a processing device, the steps of the above-mentioned network security risk identification method provided by the present disclosure are implemented.

[0295] In addition, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned network security risk identification method provided by the present disclosure.

[0296] Reference below Fig. 9 , which shows a schematic diagram of the structure of an electronic device (terminal device or server) 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0297] like Fig. 9 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0298] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0299] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0300] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0301] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0302] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0303] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a target network topology map based on the target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets; based on the business attributes and security characteristics of the assets in the target network topology map, performs attack link analysis on the target network topology map to identify security risks in the target network topology map.

[0304] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0305] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0306] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the first acquisition module may also be described as a "module for acquiring a target network topology map based on a target object".

[0307] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0308] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. 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.

[0309] According to one or more embodiments of the present disclosure, Example 1 provides a network security risk identification method, including: obtaining a target network topology map based on a target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets; based on the business attributes and security characteristics of the assets in the target network topology map, performing attack link analysis on the target network topology map to identify security risks in the target network topology map.

[0310] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein the target object includes one of an asset, an identity, and a resource; wherein the resource includes a database; and the asset includes at least one of a virtual private cloud VPC, a subnet, a network card, an elastic computing service, and a container.

[0311] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein the business attributes are used to characterize whether the corresponding assets are core assets, and the security characteristics include public network exposure and lateral movement, wherein the core assets are assets that meet preset conditions.

[0312] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 1, wherein the target object includes a target asset; obtaining a target network topology map based on the target object includes: generating the target network topology map characterizing the relationship between the target asset and other related assets based on the connection relationship between assets and the mapping relationship between elastic public network IP and assets.

[0313] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, wherein the target assets include at least one virtual private cloud VPC; the target network topology diagram is generated according to the connection relationship between assets and the mapping relationship between elastic public IP and assets, including: the target network topology diagram representing the relationship between the target asset and other related assets is generated according to the connection relationship between assets and the mapping relationship between elastic public IP and assets, including: step 1, taking the first node in the target sequence as the current node, wherein, when generating the topology diagram between VPCs, the target sequence is composed of the at least one VPC, and when generating the topology diagram between subnets in the VPC, the target The target asset includes a VPC, and the target sequence is composed of subnets in the VPC; Step 2, determine whether the current node exists in the first network topology map, if not, add the assets and elastic public IP related to the current node to the first network topology map based on the connection relationship between assets and the mapping relationship between elastic public IP and assets, and then execute step 3, if yes, directly execute step 3, wherein the first network topology map is initially empty; Step 3, determine whether the current node has a next node, if yes, take the next node of the current node in the target sequence as the current node, and return to step 2, if not, determine the first network topology map as the target network topology map.

[0314] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 5, which adds the assets and elastic public IP related to the current node to the first network topology map based on the connection relationship between assets and the mapping relationship between elastic public IP and assets, including: step 21, adding the current node to the target node set, wherein the target node set is initially empty; step 22, determining the target connection relationship related to the current node based on the connection relationship between the assets and assets, wherein the target connection relationship is used to characterize the relationship between the current node and its assets of the same type; step 23, adding the target connection relationship to the first network topology map; step 24, if the elastic If there is an elastic public IP corresponding to the current node in the mapping relationship between the public IP and the asset, the corresponding relationship between the corresponding elastic public IP and the current node is added to the first network topology map; step 25, if the newly added nodes based on the current node in the first network topology map are not empty, the current node is removed from the target node set, and the newly added node is added to the target node set, wherein the newly added node does not include the elastic public IP; step 26, for each of the newly added nodes in the target node set, the newly added node is used as the current node, and steps 22 to 26 are repeated until the newly added nodes of each node in the target node set are empty.

[0315] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 6, before the step of adding the corresponding relationship between the corresponding elastic public IP and the current node to the first network topology map if there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, the assets and elastic public IP related to the current node are added to the first network topology map according to the connection relationship between assets and the mapping relationship between the elastic public IP and the asset, and also includes: if the target connection relationship is a cross-VPC relationship and there is a cloud wall between the target connection relationship, then based on the permission list of the cloud wall, the first network topology map is corrected; if there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, then the corresponding relationship between the corresponding elastic public IP and the current node is added to the first network topology map, including: if there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, then the corresponding relationship between the corresponding elastic public IP and the current node is added to the corrected first network topology map.

[0316] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 7, which modifies the first network topology map based on the permission list of the cloud wall, including: sorting the permission list of the cloud wall from low to high priority to obtain a first permission list; arranging the permission rules with the same priority in the first permission list in the order of operation as rejection and operation as permission to obtain a second permission list; traversing the second permission list, and determining the first target node to be processed according to the type of address information in the current permission rule, wherein the current permission rule is the permission rule currently traversed in the second permission list; when the operation in the current permission rule is acceptance, according to the direction information in the current permission rule, adding the connection relationship between the current node and the first target node to the first network topology map; when the operation in the current permission rule is rejection, at least according to the type of the address information, determining and executing the target processing strategy for the first target node, wherein the target processing strategy is one of the following: removing the first target node from the first network topology map, and modifying the relationship between the current node and the first target node to a limited connection.

[0317] According to one or more embodiments of the present disclosure, Example 9 provides the method of Example 8, which determines the first target node to be processed according to the type of address information in the current permission rule, including: if the address information in the current permission rule is a default gateway, determining the VPC to which the cloud wall belongs as the first target node; if the address information is a security group, determining the address information as the first target node; if the address information is an IP address or an IP prefix, determining the first target node based on the address information, and the correspondence between a pre-built VPC identifier, an asset identifier, and an IP segment of the asset.

[0318] According to one or more embodiments of the present disclosure, Example 10 provides the method of Example 6. In the case of generating a topology map between subnets in a VPC, before the step of removing the current node from the target node set and adding the new node to the target node set if the newly added node based on the current node in the first network topology map is not empty, the assets and elastic public IP related to the current node are added to the first network topology map according to the connection relationship between assets and the mapping relationship between elastic public IPs and assets, and also includes: if the elastic public IP corresponding to the current node has a cloud wall enabled, the first network topology map is corrected according to the permission list of the cloud wall enabled by the corresponding elastic public IP; if the newly added node based on the current node in the first network topology map is not empty, the current node is removed from the target node set and the new node is added to the target node set, including: if the newly added node based on the current node in the first network topology map obtained after correction is not empty, the current node is removed from the target node set and the new node is added to the target node set.

[0319] According to one or more embodiments of the present disclosure, Example 11 provides the method of Example 1. When generating a topology map between subnets in a VPC, before the step of performing an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, the method also includes: modifying the target network topology map according to the access control list bound to each subnet in the target network topology map to obtain a second network topology map; if there is an elastic public network IP in the second network topology map that is simultaneously connected to the subnet and the VPC to which the subnet belongs, removing the connection relationship between the simultaneously connected elastic public network IP and the VPC to which the subnet belongs to obtain a third network topology map; performing an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map includes: performing an attack link analysis on the third network topology map based on the business attributes and security characteristics of the assets in the third network topology map.

[0320] According to one or more embodiments of the present disclosure, Example 12 provides the method of Example 1, when generating a topology map between subnets in a VPC, the target object includes a VPC; before the step of performing an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, the method also includes: obtaining a fourth network topology map based on the one VPC, wherein the fourth network topology map is used to characterize the topological relationship between VPCs; adding the fourth network topology map to the target network topology map to obtain a fifth network topology map; performing an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map includes: performing an attack link analysis on the fifth network topology map based on the business attributes and security characteristics of the assets in the fifth network topology map.

[0321] According to one or more embodiments of the present disclosure, Example 13 provides the method of Example 4, wherein the target asset includes a network card; the target network topology map representing the relationship between the target asset and other related assets is generated based on the connection relationship between assets and the mapping relationship between the elastic public IP and assets, including: determining the elastic public IP corresponding to the network card based on the mapping relationship between the elastic public IP and the asset; generating a sixth network topology map based on the network card and its corresponding elastic public IP; and modifying the sixth network topology map based on the permission list of the security group associated with the network card to obtain the target network topology map representing the relationship between the target asset and other related assets.

[0322] According to one or more embodiments of the present disclosure, Example 14 provides the method of Example 1, wherein the target object includes a network card; before the step of performing an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, the method also includes: obtaining a seventh network topology map based on the VPC where the network card is located, wherein the seventh network topology map is used to characterize the topological relationship between subnets in the VPC; if there is an elastic public network IP in the seventh network topology map that is simultaneously connected to the network card and the subnet to which the network card belongs, then the connection relationship between the simultaneously connected elastic public network IP and the subnet to which the network card belongs is removed to obtain an eighth network topology map; performing an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map includes: performing an attack link analysis on the eighth network topology map based on the business attributes and security characteristics of the assets in the eighth network topology map.

[0323] According to one or more embodiments of the present disclosure, Example 15 provides the method of Example 4, wherein the target asset includes an elastic computing service or a container; the target network topology map characterizing the relationship between the target asset and other related assets is generated based on the connection relationship between assets and the mapping relationship between the elastic public network IP and assets, including: determining the target network card to which the elastic computing service or the container is bound; obtaining a ninth network topology map based on the target network card as the target network topology map. According to one or more embodiments of the present disclosure, Example 16 provides the method of Example 1, wherein the target object includes a target asset; the business attributes are used to characterize whether the corresponding asset belongs to a core asset, and the security characteristics include public network exposure and lateral movement; based on the business attributes and security characteristics of the assets in the target network topology map, the target network topology map is subjected to attack link analysis to identify security risks in the target network topology map, including: identifying risky assets exposed to the public network in the target network topology map; if the risky asset does not belong to a core asset and the risky asset satisfies any one of the first preset conditions, determining whether the risky asset can move laterally to the core asset; if the risky asset can move laterally to the core asset, determining the risky asset as a security risk.

[0324] According to one or more embodiments of the present disclosure, Example 17 provides the method of Example 16, which performs an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map, and also includes: if the risk asset does not belong to a core asset and the risk asset meets any one of the second preset conditions, the risk asset is determined to be a security risk; wherein the second preset condition includes: the resource code of the risk asset contains access credentials, and the access rights corresponding to the access credentials can access the core assets; the risk asset has an access key call, and the access key involves the core assets.

[0325] According to one or more embodiments of the present disclosure, Example 18 provides the method of Example 16, wherein based on the business attributes and security characteristics of the assets in the target network topology map, the target network topology map is subjected to attack link analysis to identify security risks in the target network topology map, and further comprises: if the risk asset belongs to a core asset and the risk asset satisfies any one of the third preset conditions, the risk asset is determined as a security risk. According to one or more embodiments of the present disclosure, Example 19 provides the method of Example 1, wherein the target object includes a target resource or a target identity; the acquisition of a target network topology map based on the target object comprises: acquiring a permission topology map based on the target object, wherein the permission topology map is used to characterize the relationship between identity and resource; based on the pre-built correspondence between assets and resources, determining assets related to resources in the permission topology map; acquiring a tenth network topology map based on the related assets; and adding the tenth network topology map to the permission topology map to obtain the target network topology map.

[0326] According to one or more embodiments of the present disclosure, Example 20 provides the method of Example 19, which performs an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, including: performing an attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, and the secret leakage of identities in the target network topology map.

[0327] According to one or more embodiments of the present disclosure, Example 21 provides the method of Example 1, in response to receiving a security risk identification request, determining the target object based on the security risk identification request, wherein the security risk identification request includes the target object.

[0328] According to one or more embodiments of the present disclosure, Example 22 provides a network security risk identification device, comprising: a first acquisition module, used to acquire a target network topology map based on a target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets; a link analysis module, used to perform attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map.

[0329] According to one or more embodiments of the present disclosure, Example 23 provides a computer-readable medium having a computer program stored thereon, which implements the steps of any of the methods described in Examples 1-21 when executed by a processing device.

[0330] According to one or more embodiments of the present disclosure, Example 24 provides an electronic device, including:

[0331] A storage device having a computer program stored thereon; and a processing device for executing the computer program in the storage device to implement the steps of the method described in any one of Examples 1-21.

[0332] According to one or more embodiments of the present disclosure, Example 25 provides a computer program product, including a computer program, which implements the steps of any one of the methods of Examples 1 to 21 when executed by a processor.

[0333] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0334] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0335] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A network security risk identification method, characterized in that: include: Acquire a target network topology map based on the target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets; Based on the business attributes and security characteristics of the assets in the target network topology map, an attack link analysis is performed on the target network topology map to identify security risks in the target network topology map.

2. The method according to claim 1, characterized in that The target object includes one of an asset, an identity, and a resource; Wherein, the resources include a database; The assets include at least one of a virtual private cloud VPC, a subnet, a network card, an elastic computing service, and a container.

3. The method according to claim 1, characterized in that The business attributes are used to characterize whether the corresponding assets are core assets, and the security characteristics include public network exposure and lateral movement, wherein the core assets are assets that meet preset conditions.

4. The method according to claim 1, characterized in that The target object includes a target asset; The obtaining of a target network topology map based on the target object includes: The target network topology diagram representing the relationship between the target asset and other related assets is generated according to the connection relationship between assets and the mapping relationship between the elastic public network IP and assets.

5. The method according to claim 4, characterized in that The target assets include at least one virtual private cloud VPC; The generating of the target network topology diagram representing the relationship between the target asset and other related assets according to the connection relationship between assets and the mapping relationship between the elastic public network IP and assets includes: Step 1: taking the first node in the target sequence as the current node, wherein when generating a topology diagram between VPCs, the target sequence is composed of the at least one VPC, and when generating a topology diagram between subnets in a VPC, the target asset includes one VPC, and the target sequence is composed of the subnets in the one VPC; Step 2, determine whether the current node exists in the first network topology map. If not, add the assets and elastic public IPs related to the current node to the first network topology map according to the connection relationship between assets and the mapping relationship between elastic public IPs and assets, and then execute step 3. If yes, directly execute step 3, wherein the first network topology map is initially empty. Step 3, determine whether there is a next node for the current node. If so, take the next node of the current node in the target sequence as the current node and return to step 2. If not, determine the first network topology map as the target network topology map.

6. The method according to claim 5, characterized in that The adding the assets and the elastic public IP related to the current node to the first network topology map according to the connection relationship between the assets and the mapping relationship between the elastic public IP and the assets includes: Step 21, adding the current node to a target node set, wherein the target node set is initially empty; Step 22, determining a target connection relationship related to the current node according to the connection relationship between the assets, wherein the target connection relationship is used to characterize the relationship between the current node and its assets of the same type; Step 23, adding the target connection relationship to the first network topology graph; Step 24: if there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, then add the corresponding relationship between the corresponding elastic public IP and the current node to the first network topology graph; Step 25: If the newly added node based on the current node in the first network topology graph is not empty, remove the current node from the target node set and add the newly added node to the target node set, wherein the newly added node does not include an elastic public network IP; Step 26: for each of the newly added nodes in the target node set, use the newly added node as the current node, and repeat steps 22 to 26 until the newly added nodes of each node in the target node set are empty.

7. The method according to claim 6, characterized in that Before the step of adding the corresponding relationship between the corresponding elastic public IP and the current node to the first network topology map if there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, the step of adding the assets and elastic public IP related to the current node to the first network topology map according to the connection relationship between assets and the mapping relationship between the elastic public IP and the asset further includes: If the target connection relationship is a cross-VPC relationship and a cloud wall exists between the target connection relationships, the first network topology diagram is modified based on the permission list of the cloud wall; If there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, adding the corresponding relationship between the corresponding elastic public IP and the current node to the first network topology diagram, including: If there is an elastic public IP corresponding to the current node in the mapping relationship between the elastic public IP and the asset, the corresponding relationship between the corresponding elastic public IP and the current node is added to the corrected first network topology map.

8. The method according to claim 7, characterized in that The modifying of the first network topology diagram based on the permission list of the cloud wall includes: Sort the permission list of the cloud wall from low to high priority to obtain a first permission list; Arrange the permission rules with the same priority in the first permission list in the order of denying the operation and allowing the operation to obtain a second permission list; Traversing the second permission list, and determining a first target node to be processed according to a type of address information in a current permission rule, wherein the current permission rule is a permission rule currently traversed in the second permission list; When the operation in the current permission rule is acceptance, adding the connection relationship between the current node and the first target node to the first network topology graph according to the direction information in the current permission rule; When the operation in the current authority rule is rejection, a target processing strategy for the first target node is determined and executed at least based on the type of the address information, wherein the target processing strategy is one of the following: removing the first target node from the first network topology map, and modifying the relationship between the current node and the first target node to a limited connection.

9. The method according to claim 8, characterized in that The determining, according to the type of address information in the current permission rule, the first target node to be processed includes: If the address information in the current permission rule is the default gateway, the VPC to which the cloud wall belongs is determined as the first target node; If the address information is a security group, determining the address information as the first target node; If the address information is an IP address or an IP prefix, the first target node is determined according to the address information and a pre-built correspondence between a VPC identifier, an asset identifier, and an IP segment of the asset.

10. The method according to claim 6, characterized in that In the case of generating a topology map between subnets in a VPC, before the step of removing the current node from the target node set and adding the newly added node to the target node set if the newly added node based on the current node in the first network topology map is not empty, the step of adding the assets and elastic public IP related to the current node to the first network topology map according to the connection relationship between assets and the mapping relationship between the elastic public IP and the assets further includes: If the elastic public network IP corresponding to the current node has a cloud wall enabled, the first network topology diagram is modified according to the permission list of the cloud wall enabled by the corresponding elastic public network IP; If the newly added node based on the current node in the first network topology graph is not empty, the current node is removed from the target node set, and the newly added node is added to the target node set, including: If the newly added node based on the current node in the corrected first network topology graph is not empty, the current node is removed from the target node set, and the newly added node is added to the target node set.

11. The method according to claim 1, characterized in that In the case of generating a topology diagram between subnets in a VPC, before the step of performing attack link analysis on the target network topology diagram based on the business attributes and security characteristics of the assets in the target network topology diagram, the method further includes: According to the access control list bound to each subnet in the target network topology map, the target network topology map is modified to obtain a second network topology map; If there is an elastic public IP connected to both the subnet and the VPC to which the subnet belongs in the second network topology, remove the connection relationship between the elastic public IP connected at the same time and the VPC to which the subnet belongs, and obtain a third network topology; The performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map includes: Based on the business attributes and security characteristics of the assets in the third network topology map, an attack link analysis is performed on the third network topology map.

12. The method according to claim 1, characterized in that When generating a topology diagram between subnets in a VPC, the target object includes a VPC; Before the step of performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, the method further includes: Obtaining a fourth network topology map based on the one VPC, wherein the fourth network topology map is used to characterize a topological relationship between VPCs; Adding the fourth network topology map to the target network topology map to obtain a fifth network topology map; The performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map includes: Based on the business attributes and security characteristics of the assets in the fifth network topology map, an attack link analysis is performed on the fifth network topology map.

13. The method according to claim 4, characterized in that The target assets include a network card; The generating of the target network topology diagram representing the relationship between the target asset and other related assets according to the connection relationship between assets and the mapping relationship between the elastic public network IP and assets includes: Determine the elastic public network IP corresponding to the network card according to the mapping relationship between the elastic public network IP and the asset; Generate a sixth network topology diagram based on the network card and its corresponding elastic public network IP; The sixth network topology map is modified according to the permission list of the security group associated with the network card to obtain the target network topology map representing the relationship between the target asset and other related assets.

14. The method according to claim 1, characterized in that The target object includes a network card; Before the step of performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map, the method further includes: Obtain a seventh network topology map based on the VPC where the network card is located, wherein the seventh network topology map is used to characterize the topological relationship between subnets in the VPC; If there is an elastic public IP connected to both the network card and the subnet to which the network card belongs in the seventh network topology diagram, remove the connection relationship between the elastic public IP connected at the same time and the subnet to which the network card belongs, and obtain an eighth network topology diagram; The performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map includes: Based on the business attributes and security characteristics of the assets in the eighth network topology map, an attack link analysis is performed on the eighth network topology map.

15. The method according to claim 4, characterized in that The target asset includes an elastic computing service or a container; The generating of the target network topology diagram representing the relationship between the target asset and other related assets according to the connection relationship between assets and the mapping relationship between the elastic public network IP and assets includes: Determine a target network card to which the elastic computing service or the container is bound; A ninth network topology map based on the target network card is obtained as the target network topology map.

16. The method according to claim 1, characterized in that The target object includes a target asset; The business attributes are used to characterize whether the corresponding assets belong to core assets, and the security features include public network exposure and lateral movement; The performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map includes: Identify risky assets exposed to the public network in the target network topology diagram; If the risk asset does not belong to the core asset and the risk asset meets any one of the first preset conditions, determining whether the risk asset can be moved horizontally to the core asset; If the risk asset can be moved horizontally to the core asset, the risk asset is determined to be a security risk.

17. The method according to claim 16, characterized in that The performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map also includes: If the risk asset does not belong to the core asset and the risk asset meets any one of the second preset conditions, the risk asset is determined as a security risk; Wherein, the second preset condition includes: The resource code of the risk asset contains access credentials, and the access rights corresponding to the access credentials can access the core assets; The risk asset has an access key call, and the access key involves the core asset.

18. The method according to claim 16, characterized in that The performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map also includes: If the risk asset belongs to a core asset and the risk asset satisfies any one of the third preset conditions, the risk asset is determined to be a security risk.

19. The method according to claim 1, characterized in that The target object includes a target resource or a target identity; The obtaining of a target network topology map based on the target object includes: Acquire a permission topology map based on the target object, wherein the permission topology map is used to represent the relationship between identity and resources; Determine the assets related to the resources in the permission topology diagram based on the pre-built correspondence between assets and resources; Obtaining a tenth network topology map based on the relevant assets; The tenth network topology map is added to the authority topology map to obtain the target network topology map.

20. The method according to claim 19, characterized in that The performing attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map includes: Based on the business attributes and security characteristics of the assets in the target network topology map, and the secret leakage of the identity in the target network topology map, the target network topology map is subjected to attack link analysis.

21. The method according to claim 1, characterized in that The method further comprises: In response to receiving a security risk identification request, the target object is determined based on the security risk identification request, wherein the security risk identification request includes the target object.

22. A network security risk identification device, characterized in that: include: A first acquisition module is used to acquire a target network topology map based on a target object, wherein the target network topology map is used to characterize the relationship between the target object and its related assets; The link analysis module is used to perform attack link analysis on the target network topology map based on the business attributes and security characteristics of the assets in the target network topology map to identify security risks in the target network topology map.

23. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method described in any one of claims 1 to 21 are implemented.

24. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 21.

25. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 21 are implemented.

Citation Information

Patent Citations

  • Asset vulnerability assessment method, device and equipment, medium and product

    CN116049832A

  • Host protection method and device, computer equipment and storage medium

    CN116702159A

  • Network attack response method and device, computer equipment and storage medium

    CN116723052A

  • Equipment security management method and system based on topology network

    CN116886341A

  • Risk early warning method, device, equipment and medium

    CN117495548A

Cited By

  • Cloud platform security analysis method and device based on dynamic permission atlas modeling

    CN120811669A

  • Automatic Access Control Failure Detection System and Its Application

    TWI936787B

  • Network security risk identification method and apparatus, medium, electronic device, and program product

    WO2026001011A1