A method and system for visual analysis of external attack surfaces based on graph technology

Through the external attack surface visual analysis method based on graph technology, the graph model is constructed and graph visualization technology is used to solve the problems of many, unintuitive and difficult to analyze external attack surface data in the existing technology, and the visual management of external attack surfaces is realized. Quick sorting has improved the analysis and decision-making capabilities of security personnel.

CN114745171BActive Publication Date: 2024-11-08SHENZHEN MOFANG SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210366107.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2024-11-08
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

In the prior art, the external attack surface lacks standard definition and unified analysis methods, resulting in the problem of lots of data, not intuitive and difficult to analyze, and it is difficult to assist security personnel in quickly analyzing attack exposure surfaces and determining vulnerability priorities.

Method used

Using the external attack surface visual analysis method based on graph technology, by obtaining internal and external network asset data and association mapping relationships, building a graph model and depositing it into the graph database, using graph visualization technology and G6's force-oriented layout to display risk data in real time, real-time visualization analysis is realized .

Benefits of technology

Improve the ability of security personnel to quickly sort out and manage external attack surfaces, solve the problems of multi-, unintuitive and difficult analysis of data in the traditional two-dimensional matrix table form, accelerate the understanding and analysis of multi-dimensional aggregated information, and realize the external attack surface. Visual management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114745171B_ABST
    Figure CN114745171B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for visual analysis of external attack surfaces based on graph technology, the method comprising: obtaining asset data of internal and external networks and the associated mapping relationship corresponding to each asset; analyzing and processing the asset data and the associated mapping relationship to obtain node information and edge information, thereby constructing a graph model and storing it in a graph database; querying the graph database using pre-defined high-risk data in combination with a variety of graph relationship query methods to query corresponding risk data; through graph visualization technology, using G6's force-directed layout to display risk data to security personnel in real time to achieve visual analysis; its beneficial effects are: using graph technology to help users quickly sort out, making the external attack surface more macroscopic, facilitating in-depth interactive analysis, and accelerating security personnel's understanding, analysis and judgment of multi-dimensional aggregated information, thereby overcoming the defects of two-dimensional matrices such as tables, such as large amounts of data, non-intuitiveness and difficulty in analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network information security technology, and in particular to a method and system for visual analysis of external attack surfaces based on graph technology. Background Art

[0002] As one of the important directions for the future development of network security, attack surface management is increasingly valued by security teams. The core content of attack surface management is to conduct risk control on the assets of an enterprise from an external perspective, thereby achieving comprehensive management of the attack surface and reducing the probability of the enterprise being attacked in various activities.

[0003] At present, there is no standard definition, unified process and analysis method for the "external attack surface". Security vendors in the industry all use data tables to show security personnel the organizational structure, business relationships, asset internal and external network mapping relationships, and information data flows such as supply chains involved in the external attack surface. This presentation and interaction method cannot well assist security personnel in business scenarios such as rapid attack exposure analysis and vulnerability priority determination. In addition, the data organization and presentation method of two-dimensional matrices such as tables is not conducive to mining and analyzing the correlation relationship of data, resulting in the defects of too much data, non-intuitiveness and difficulty in analysis. Summary of the invention

[0004] In view of the technical defects in the prior art, the purpose of the embodiments of the present invention is to provide a method and system for visual analysis of external attack surfaces based on graph technology, so as to overcome the defects of the prior art such as large amount of data, non-intuitiveness and difficulty in analysis.

[0005] To achieve the above objectives, in a first aspect, an embodiment of the present invention provides a method for visual analysis of external attack surfaces based on graph technology, the method comprising:

[0006] Obtaining asset data of the internal and external networks and the associated mapping relationship corresponding to each asset; wherein the asset data includes internal and external network assets, vulnerability data, organizational structure and asset ownership data;

[0007] Analyze and process the asset data and associated mapping relationships to obtain node information and edge information, thereby constructing a graph model and storing it in a graph database;

[0008] Query the graph database using predefined high-risk data and combining multiple graph relationship query methods to query corresponding risk data;

[0009] Through graph visualization technology, G6's force-directed layout is used to display the risk data to security personnel in real time to achieve visual analysis.

[0010] In a second aspect, an embodiment of the present invention further provides a system for visual analysis of external attack surfaces based on graph technology, the system comprising:

[0011] An acquisition unit is used to acquire asset data of the internal and external networks and the associated mapping relationship corresponding to each asset; wherein the asset data includes internal and external network assets, vulnerability data, organizational structure and asset ownership data;

[0012] A graph database construction unit is used to analyze and process the asset data and the associated mapping relationship to obtain node information and edge information, thereby constructing a graph model and storing it in a graph database;

[0013] A query unit, used to query the graph database using predefined high-risk data and in combination with a plurality of graph relationship query methods, so as to query corresponding risk data;

[0014] The visualization unit is used to display the risk data to the security personnel in real time by using the graph visualization technology and the force-directed layout of G6 to realize visualization analysis.

[0015] By implementing the embodiments of the present invention, graph technology is used to help users quickly sort out and manage external attack surfaces, which greatly improves the rapid convergence of exposure surfaces. Compared with two-dimensional matrix table forms such as page tables in traditional technologies, the external attack surface presented by graph visualization technology is more macroscopic and convenient for in-depth interactive analysis. At the same time, it will also greatly speed up security personnel's understanding, analysis and judgment of multi-dimensional aggregate information, thereby solving the historical problems of two-dimensional matrices such as tables, such as "too much data, non-intuitive, and difficult to analyze", and realizing visual management of external attack surfaces. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the drawings required for use in the specific implementation or the description of the prior art will be briefly introduced below.

[0017] Figure 1 It is a flow chart of a method for visual analysis of external attack surfaces based on graph technology provided by an embodiment of the present invention;

[0018] Figure 2 It is a structural schematic diagram of a graph model provided by an embodiment of the present invention;

[0019] Figure 3 It is a logic flow chart of an interactive query provided by an embodiment of the present invention;

[0020] Figure 4 It is a logic flow chart based on threat intelligence provided by an embodiment of the present invention;

[0021] Figure 5It is a schematic diagram of the framework of a system for visual analysis of external attack surfaces based on graph technology provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the present invention belongs.

[0024] Please refer to Figures 1 to 3 , an embodiment of the present invention provides a method for visual analysis of external attack surfaces based on graph technology, the method comprising:

[0025] S101, obtaining asset data of the internal and external networks and the associated mapping relationship corresponding to each asset; wherein the asset data includes internal and external network assets, vulnerability data, organizational structure and asset ownership data.

[0026] Specifically, in this embodiment, mature cyberspace mapping and related leak scanning technologies are used to obtain information, and related products are directly used to map the internal and external networks to obtain detailed internal and external network assets, vulnerability data, and asset ownership information. Related organizational structure information can be obtained by manual import or docking with other systems (ldap).

[0027] Internal and external network assets mainly include internal and external network hosts and their open ports and services;

[0028] Vulnerability data mainly includes vulnerabilities, high-risk ports and high-risk services existing in internal and external network hosts;

[0029] Asset ownership information is the information of the main management group or person responsible for the assets of each unit;

[0030] Association mapping relationships, that is, various association relationships obtained, including port mapping relationships between internal and external networks, load balancing relationships between assets, binding relationships between elastic IPs, relationships between assets and organizational structures, and relationships between vulnerability data and affected assets.

[0031] S102, analyzing and processing the asset data and the associated mapping relationship to obtain node information and edge information, thereby constructing a graph model and storing it in a graph database.

[0032] Specifically, the process is as follows:

[0033] 1. Obtain host data (must include IP, host name, operating system, physical address, asset ownership and organizational structure information, detailed information of development port services, etc.), domain name data (must include domain name, email address and other basic information), vulnerability data (must include vulnerability name, CPE, vulnerability description, vulnerability level, CVE, CNNVD and vulnerability port or service information, etc.), client application information (including service interface used by application), port mapping, port forwarding table data and proxy and load balancing information data of LVS, Nginx, HAproxy and other proxies;

[0034] 2. Use domain name resolution technology to resolve the domain name in the domain name data to obtain an IP set, merge the IP set with the host data, remove duplicates, add default values, and delete non-basic information to obtain a host node data set, and record the corresponding domain name resolution relationship in the process; similarly, use reverse domain name resolution technology to resolve the IP of the host data to obtain a domain name set, and then merge the domain name set with the domain name data, remove duplicates, add default values, and delete non-basic information to obtain a domain name node data set, and record the corresponding IP domain name reverse resolution relationship in the process; finally, combine the domain name resolution relationship and domain name reverse resolution relationship in the two processes to generate the domain name-host edge data set and the host-domain name edge data set;

[0035] 3. Traverse the host data to obtain the open ports of each host to obtain the host-port edge data set, sort all the port data to obtain the port node data set, and use the host-port edge data set combined with the host-domain name edge data set to calculate and generate the domain name-port edge data set;

[0036] 4. Traverse the host data to obtain the asset belonging group corresponding to each host and its group structure information and person in charge, and calculate and generate the asset group node data set, person in charge node data set, host-asset group edge data set, and asset group-host edge data set; then parse the parent-child structure information of the asset group to obtain the asset group-asset group edge data set, person in charge-asset group edge data set, and asset group-person in charge data set, and then generate the domain name-asset group edge data set and asset group-domain name edge data set through the host-domain name edge data set and the host-asset group edge data set;

[0037] 5. Use the vulnerability data and the port or service information where the vulnerability is located to associate the port node data to generate the port-vulnerability edge data set and the vulnerability node data set, and then combine the host-port edge data set to generate the vulnerability-host edge data set;

[0038] 6. Use the data of port mapping, port forwarding table and proxy and load balancing information data of LVS, Nginx, HAproxy and other proxies combined with port node data to generate a port-port edge data set, where there are two types of edges, one is port forwarding and the other is port mapping;

[0039] 7. Use the client application information to generate an application node data set, and then use the background service address (URL or IP:PORT) in the client application information to generate a port-service edge data set.

[0040] There are seven main node types in the graph model of this embodiment, namely, host, domain, port (which contains service information), vulnerability, application, asset group, and person in charge of assets.

[0041] There are sixteen kinds of association relationships (i.e., edge information), which are asset ownership related: manage, from the asset group to the host, indicating that the asset group manages the host; managed, from the host to the asset group, indicating that the host is managed by the asset group; dmanage, from the asset group to the domain name, indicating that the asset group manages the domain name; dmanaged, from the domain name to the asset group, indicating that the domain name is managed by the asset group; contain, from the asset group to the asset group, indicating that the starting asset group is contained by the destination asset group; inchargeof, from the person in charge to the asset group, indicating that the person in charge manages the asset group; inchargeofed, from the asset group to the person in charge, indicating that the asset group is managed by the person in charge; domain name related: backcheck, from the host to the domain name, indicating that The domain name is obtained by reverse resolution of the host; resolve, pointing from the domain name to the host, indicates that the host is obtained by domain name resolution; release, pointing from the domain name to the port, indicates that the domain name develops the port externally; port related: open, pointing from the host to the port, indicates that the host develops the port externally; forward, pointing from the port to the port, indicates that the starting port is forwarded to the destination port; mapping, pointing from the port to the port, indicates that the starting port is mapped to the destination port; has, pointing from the port to the vulnerability, indicates that the port has the vulnerability; vulnerability related: hack, calculated and generated by open and has, pointing from the vulnerability to the host, indicates that the vulnerability can be exploited to attack the host; application related: provide, pointing from the port to the application, indicates that the port service provides the basic service interface for the application.

[0042] S103, query the graph database using pre-defined high-risk data in combination with a variety of graph relationship query methods to query corresponding risk data.

[0043] Specifically, the acquired relevant data is sorted and generated according to the graph model structure and then imported into the graph database, and then various graph algorithms of the graph database can be used for query. The main query applications are as follows:

[0044] 1. Query the vulnerable external ports, hosts, affected applications, and associated internal assets.

[0045] The vulnerability data in the graph database comes from the vulnerability scan results during mapping, that is, the real vulnerabilities that currently exist. Based on these real vulnerabilities and combined with the relationship query of the graph, security personnel can quickly obtain external hosts, ports, services and applications that can be exploited by attackers, as well as their port mappings, elastic IPs and load balancing on the intranet hosts. In the graph model design of the present invention, the query is mainly done through the graph query language GSQL. The specific query logic is as follows: Figure 3 shown.

[0046] 2. Query external hosts with high-risk ports and high-risk services and related internal assets.

[0047] The high-risk data is composed of a default high-risk port number and a high-risk component service list generated by experts through threat intelligence extraction; of course, the list can be modified by the enterprise's security managers, and the entire system queries the external attack exposure surfaces of these high-risk port numbers and high-risk services based on this high-risk port number and high-risk component service list.

[0048] By adopting the above method, the corresponding external high-risk port service set, threat tag set, high, medium and low vulnerability sets and other external attack surface risk points are queried, and the organizational structure information and intranet asset set are associated and returned to the front end in real time.

[0049] S104, through graph visualization technology, using G6's force-directed layout to display the risk data to security personnel in real time to achieve visual analysis.

[0050] Specifically, during implementation, the force-directed graph of G6 is used as the basis. While implementing the traditional force-directed layout, the concept of clusters is added. When implementing the force-directed layout, cluster division is also performed based on the risk data and threat intelligence; for example, clusters are divided based on high-risk ports, vulnerabilities, threat intelligence, and intranets;

[0051] Coulomb repulsion and Hooke's elastic force are introduced into the cluster to realize cluster presentation. When presenting, only the external risk points that can be attacked are displayed, that is, the assets that can be attacked from the attacker's perspective, and the connection between external and internal network assets is displayed. At the same time, other related information such as the organizational structure of assets and managers, associated domain names and asset sources, as well as the relationship between assets are displayed in a suspended manner; interactive analysis functions such as node search, path query and asset tagging are provided.

[0052] The embodiment of the present invention mainly uses graph technology to store all data elements involved in the external attack surface (organizational structure, related components, internal and external network assets, etc.) in the form of nodes in the graph database, and then uses edges to represent the relationship between each element instance (mapping of organization and assets, mapping of internal and external network assets, and business-related mapping, etc.), and finally uses graph visualization technology to draw an external attack surface diagram to assist security personnel in analysis, judgment, and decision-making; the use of graph technology can fully display the internal relationship between element instances and more intuitively present the macro situation of the entire attack surface. Through the support of various graph algorithms, security managers are further enabled to perceive and judge attack surface management business scenarios, thereby solving the historical problems of two-dimensional matrices such as tables, such as "too much data, not intuitive, and difficult to analyze".

[0053] A graph database is a relational database that uses graph theory to store relationship information between entities. Currently, relational databases are used to store "relational" data, and there are problems such as "complex query" and "low retrieval efficiency". The graph database's new underlying design with a variety of rich and efficient graph computing technologies and algorithms makes up for this defect. In addition, the present invention mainly uses a graph database to store and query data and data relationships.

[0054] At the same time, graph visualization is a subfield of information visualization, which helps users gain insights into data by displaying elements and relationships. It has been widely used in the presentation of relational data such as flowcharts, social networks, the Internet, and protein networks. The present invention mainly converts the graph data queried by the graph database into graphics or images through graph visualization to complete functions such as information display and interaction.

[0055] Furthermore, in order to improve the real-time and scalability of threat processing, in another embodiment, based on the above technical solution, the method further includes:

[0056] Connect to the threat intelligence generated in real time, and query the graph database based on the threat intelligence to mark the affected assets.

[0057] Specifically, extract key information from the threat intelligence;

[0058] According to the key information, all assets containing the key information are queried in the graph database.

[0059] During implementation, the threat intelligence platform is connected to realize the processing chain from near real-time threat intelligence to external attack surfaces. The real-time processing process is: obtaining intelligence, processing intelligence and extracting key information, using key information to query the database, and marking affected assets.

[0060] Based on the same inventive concept, Figure 5 As shown, an embodiment of the present invention further provides a system for visual analysis of external attack surfaces based on graph technology, the system comprising:

[0061] An acquisition unit is used to acquire asset data of the internal and external networks and the associated mapping relationship corresponding to each asset; wherein the asset data includes internal and external network assets, vulnerability data, organizational structure and asset ownership data;

[0062] A graph database construction unit is used to analyze and process the asset data and the associated mapping relationship to obtain node information and edge information, thereby constructing a graph model and storing it in a graph database;

[0063] A query unit, used to query the graph database using predefined high-risk data and in combination with a plurality of graph relationship query methods, so as to query corresponding risk data;

[0064] The visualization unit is used to display the risk data to the security personnel in real time by using the graph visualization technology and the force-directed layout of G6 to realize visualization analysis.

[0065] When applying, during force-directed layout, cluster division is also performed based on the risk data and threat intelligence;

[0066] Coulomb repulsion and Hooke's elastic force are introduced into the cluster to realize the presentation of clustering. When presenting, only the external risk points that can be attacked are displayed, and the connection between external and internal network assets is displayed. At the same time, the organizational structure of assets and managers, as well as the relationship between various assets, are displayed in a suspended manner.

[0067] The visual analysis includes node search, path query and asset tagging.

[0068] Furthermore, in another embodiment, in order to improve the real-time and scalability of threat processing, on the basis of the above technical solution, the system also includes a marking unit, which is used to connect to the threat intelligence generated in real time, and query the graph database based on the threat intelligence to mark the affected assets.

[0069] During implementation, the threat intelligence platform is connected to realize the processing chain from near real-time threat intelligence to external attack surfaces. The main intelligence real-time processing process is to obtain intelligence, process intelligence and extract key information, use key information to query the database, and mark the affected assets; thus, the application and service code leakage query based on threat intelligence can be realized to affect the high-risk external ports and hosts and the associated intranet hosts.

[0070] It should be noted that for more specific work processes in the system embodiment, please refer to the records in the aforementioned method embodiment part, which will not be repeated here.

[0071] The implementation of the above solution uses graph technology to help users quickly sort out and manage external attack surfaces, which greatly improves the rapid convergence of exposure surfaces. Compared with two-dimensional matrix table forms such as page tables in traditional technologies, the external attack surface presented by graph visualization technology is more macroscopic and convenient for in-depth interactive analysis. At the same time, it will also greatly speed up security personnel's understanding, analysis and judgment of multi-dimensional aggregate information, thereby solving the historical problems of two-dimensional matrices such as tables, such as "too much data, non-intuitive, and difficult to analyze", and realizing visual management of external attack surfaces.

[0072] Those of ordinary skill in the art will appreciate that the steps and units of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0073] In the several embodiments provided in this application, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device or system, or some features can be ignored or not executed.

[0074] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention.

Claims

1. A method for visual analysis of external attack surfaces based on graph technology, characterized in that: The method comprises: Obtaining asset data of the internal and external networks and the associated mapping relationship corresponding to each asset; wherein the asset data includes internal and external network assets, vulnerability data, organizational structure and asset ownership data; Analyze and process the asset data and associated mapping relationships to obtain node information and edge information, thereby constructing a graph model and storing it in a graph database; the associated mapping relationships include port mapping relationships between internal and external networks, load balancing relationships between assets, binding relationships between elastic IPs, relationships between assets and organizational structures, and relationships between vulnerability data and affected assets; According to the acquired asset data and associated mapping relationship, the node information and edge information are obtained. The process is as follows: Obtain host data, domain name data, vulnerability data, client application information, port mapping, port forwarding table data, and proxy and load balancing information data of LVS, Nginx, and HAproxy; Use domain name resolution technology to resolve the domain name in the domain name data to obtain an IP set, merge the IP set with the host data, remove duplicates, add default values ​​and delete non-basic information to obtain the host node data set, and at the same time, record the corresponding domain name resolution relationship in the process; Reverse domain name resolution technology is used to resolve the IP of the host data to obtain a domain name set, and then the domain name set is merged with the domain name data, duplicates are removed, default values ​​are added, and non-basic information is deleted to obtain the domain name node data set; At the same time, the corresponding IP domain name reverse resolution relationship is recorded in the process; finally, the domain name resolution relationship and domain name reverse resolution relationship in the two processes are combined to generate the domain name-host edge dataset and host-domain name edge dataset; Traverse the host data to obtain the open ports of each host to obtain the host-port edge data set, sort all the port data to obtain the port node data set, and use the host-port edge data set combined with the host-domain name edge data set to calculate and generate the domain name-port edge data set; Traverse the host data to obtain the asset belonging group corresponding to each host and its group structure information and person in charge, and calculate and generate the asset group node data set, person in charge node data set, host-asset group edge data set, and asset group-host edge data set; then parse the parent-child structure information of the asset group to obtain the asset group-asset group edge data set, person in charge-asset group edge data set, and asset group-person in charge data set, and then generate the domain name-asset group edge data set and asset group-domain name edge data set through the host-domain name edge data set and the host-asset group edge data set; Use vulnerability data and the port or service information where the vulnerability is located to associate port node data to generate port-vulnerability edge data set and vulnerability node data set, and then combine the host-port edge data set to generate vulnerability-host edge data set; Generate an application node dataset using the client application information, and then generate a port-service edge dataset using the background service address in the client application information; The graph database is queried using predefined high-risk data and in combination with a variety of graph relationship query methods to obtain corresponding risk data; including: Query vulnerable external ports, hosts, affected applications, and associated internal assets; Query external hosts with high-risk ports and high-risk services and related internal assets; Through graph visualization technology, G6's force-directed layout is used to display the risk data to security personnel in real time to achieve visual analysis; When force-directed layout is performed, cluster division is also performed based on the risk data and threat intelligence; Coulomb repulsion and Hooke's elastic force are introduced into the cluster to realize the presentation of clustering. When presenting, only the external risk points that can be attacked are displayed, and the connection between external and internal network assets is displayed. At the same time, the organizational structure of assets and managers, as well as the relationship between various assets, are displayed in a suspended manner. The method further comprises: Connect to the threat intelligence generated in real time, and query the graph database based on the threat intelligence to mark the affected assets.

2. The method for visual analysis of external attack surfaces based on graph technology according to claim 1, characterized in that: The querying the graph database based on the threat intelligence specifically includes: Extract key information from the threat intelligence; According to the key information, all assets containing the key information are queried in the graph database.

3. A system for visual analysis of external attack surfaces based on graph technology, characterized in that: The system comprises: An acquisition unit is used to acquire asset data of the internal and external networks and the associated mapping relationship corresponding to each asset; wherein the asset data includes internal and external network assets, vulnerability data, organizational structure and asset ownership data; A graph database construction unit is used to analyze and process the asset data and the associated mapping relationship to obtain node information and edge information, thereby constructing a graph model and storing it in a graph database; A query unit, used to query the graph database using predefined high-risk data and in combination with a plurality of graph relationship query methods to query corresponding risk data; comprising: Query vulnerable external ports, hosts, affected applications, and associated internal assets; Query external hosts with high-risk ports and high-risk services and related internal assets; A visualization unit, used to display the risk data to security personnel in real time by using graph visualization technology and force-directed layout of G6 to achieve visualization analysis; The associated mapping relationships include the port mapping relationship between the internal and external networks, the load balancing relationship between assets, the binding relationship between elastic IP addresses, the relationship between assets and organizational structures, and the relationship between vulnerability data and affected assets. According to the acquired asset data and associated mapping relationship, the node information and edge information are obtained. The process is as follows: Obtain host data, domain name data, vulnerability data, client application information, port mapping, port forwarding table data, and proxy and load balancing information data of LVS, Nginx, and HAproxy; Use domain name resolution technology to resolve the domain name in the domain name data to obtain an IP set, merge the IP set with the host data, remove duplicates, add default values ​​and delete non-basic information to obtain the host node data set, and at the same time, record the corresponding domain name resolution relationship in the process; Reverse domain name resolution technology is used to resolve the IP of the host data to obtain a domain name set, and then the domain name set is merged with the domain name data, duplicates are removed, default values ​​are added, and non-basic information is deleted to obtain the domain name node data set; At the same time, the corresponding IP domain name reverse resolution relationship is recorded in the process; finally, the domain name resolution relationship and domain name reverse resolution relationship in the two processes are combined to generate the domain name-host edge dataset and host-domain name edge dataset; Traverse the host data to obtain the open ports of each host to obtain the host-port edge data set, sort all the port data to obtain the port node data set, and use the host-port edge data set combined with the host-domain name edge data set to calculate and generate the domain name-port edge data set; Traverse the host data to obtain the asset belonging group corresponding to each host and its group structure information and person in charge, and calculate and generate the asset group node data set, person in charge node data set, host-asset group edge data set, and asset group-host edge data set; then parse the parent-child structure information of the asset group to obtain the asset group-asset group edge data set, person in charge-asset group edge data set, and asset group-person in charge data set, and then generate the domain name-asset group edge data set and asset group-domain name edge data set through the host-domain name edge data set and the host-asset group edge data set; Use vulnerability data and the port or service information where the vulnerability is located to associate port node data to generate port-vulnerability edge data set and vulnerability node data set, and then combine the host-port edge data set to generate vulnerability-host edge data set; Generate an application node dataset using the client application information, and then generate a port-service edge dataset using the background service address in the client application information; The system further includes a marking unit, which is used to connect to threat intelligence generated in real time, and query the graph database based on the threat intelligence to mark the affected assets; When force-directed layout is performed, cluster division is also performed based on the risk data and threat intelligence; Coulomb repulsion and Hooke's elastic force are introduced into the cluster to realize cluster presentation. During presentation, only external risk points that can be attacked are displayed, and the connection between external and internal network assets is displayed. At the same time, the organizational structure of assets and managers, as well as the relationship between assets, are displayed in a suspended manner.

4. A system for visual analysis of external attack surfaces based on graph technology as claimed in claim 3, characterized in that: The querying the graph database based on the threat intelligence specifically includes: Extract key information from the threat intelligence; According to the key information, all assets containing the key information are queried in the graph database.

5. The system for visual analysis of external attack surfaces based on graph technology according to claim 4, characterized in that: The visual analysis includes node search, path query and asset tagging.