A hybrid approach to asset identification

By combining active detection and passive matching, and using preset libraries and rule comparisons, the problem of inaccurate identification of invisible assets under the client's active detection method is solved, and the accuracy of network asset identification is significantly improved.

CN117857411BActive Publication Date: 2024-09-24BEIJING HUASHUN XIN AN TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311738149.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-16
Publication Date
2024-09-24
Estimated Expiration
2043-12-16

AI Technical Summary

Technical Problem

In the existing technology, when invisible assets are identified through active client detection, they may be filtered by the target network, resulting in inaccurate identification.

Method used

Using a hybrid asset identification method, combining active detection and passive matching, the target asset information is compared through the preset asset IP library and the public network IP library, and comparison and analysis is performed according to the asset identification rules to ensure the accuracy of the identification.

Benefits of technology

The accuracy of network asset identification is improved, especially the identification of invisible assets. Through multiple detection methods and rule comparisons, the comprehensiveness and accuracy of identification are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117857411B
    Figure CN117857411B
Patent Text Reader

Abstract

The present application relates to an asset identification method based on a hybrid method, which belongs to the field of asset identification technology. The method includes: obtaining a detection area, a detection method and a detection tool, and establishing a detection task for the asset to be detected based on the detection area, the detection method and the detection tool; the detection method includes active detection and passive matching; detecting the asset to be detected according to the detection task to obtain the asset information to be detected; comparing the asset information to be detected based on a preset asset IP library and a preset public network IP library to obtain the target asset information; comparing and analyzing the target asset information according to the preset asset identification rules to obtain complete asset information, and completing the identification of the asset to be detected. The present application has the effect of effectively improving the accuracy of network asset identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of asset identification, and in particular to an asset identification method based on a hybrid approach. Background Art

[0002] As enterprise networks continue to grow, various business platforms and management systems are increasing, and some businesses are extending from traditional physical computer rooms to cloud resources, resulting in more and more asset types and a wider range of business platforms and management systems; at the same time, the time span of asset lifecycle management is getting longer and longer, and the asset distribution range is getting more and more dispersed, which ultimately leads to a large number of invisible assets in the enterprise. These invisible assets are usually gradually forgotten by administrators, resulting in the invisible assets being left unmaintained for a long time, which in turn poses security risks.

[0003] In the prior art, invisible assets are usually actively surveyed and identified by installing clients on business platforms and management systems. The identification method is to actively send constructed detection data packets to target network assets, extract target features from the relevant information of the returned response data packets, and match them with the feature fingerprints in the built-in feature library to achieve the detection of invisible assets.

[0004] In view of the above prior art, the applicant believes that since the investigation and identification of invisible assets through the client is an active detection method, the detection target may filter some common detection data packet requests, making some invisible assets unable to be identified, and thus unable to accurately identify the invisible assets. Summary of the invention

[0005] In order to effectively improve the accuracy of network asset identification, the present application provides an asset identification method based on a hybrid approach.

[0006] In the first aspect, the present application provides an asset identification method based on a hybrid approach using the following technical solutions:

[0007] An asset identification method based on a hybrid approach, comprising:

[0008] Acquire a detection area, a detection method and a detection tool, and establish a detection task for the asset to be detected based on the detection area, the detection method and the detection tool; the detection method includes active detection and passive matching;

[0009] Detect the asset to be detected according to the detection task to obtain information about the asset to be detected;

[0010] Compare the asset information to be tested based on a preset asset IP library and a preset public network IP library to obtain target asset information;

[0011] The target asset information is compared and analyzed according to the preset asset identification rules to obtain complete asset information and complete the identification of the asset to be tested.

[0012] By adopting the above technical solution, the identification of network assets not only adopts the active detection method but also the passive matching method, thereby effectively improving the accuracy of network asset identification; at the same time, first establish the detection task, and then compare and analyze the target asset information according to the asset identification rules, which further effectively improves the accuracy of network asset identification.

[0013] Optionally, detecting the asset to be detected according to the detection task to obtain information about the asset to be detected includes:

[0014] If the detection method is active detection, perform asset survival scanning on the transport layer, network layer and data link layer in the TCP / IP five-layer model to obtain surviving assets, and obtain surviving asset information of the surviving assets;

[0015] The surviving asset information is integrated to obtain the asset information to be tested.

[0016] By adopting the above technical solution, during active detection, asset survival scans are performed on three layers of the TCP / IP five-layer model, making it easier to conduct comprehensive scanning and identification of invisible assets.

[0017] Optionally, if the detection method is active detection, performing asset survival scanning on the transport layer, network layer, and data link layer in the TCP / IP five-layer model to obtain surviving assets includes:

[0018] Detect the target asset according to the address resolution protocol of the data link layer, and call the three-layer protocol to perform cross-segment detection on the target asset to obtain the surviving asset;

[0019] Detecting a surviving target host according to the control message protocol of the network layer, and calling a target tool to detect and obtain surviving assets in the target host;

[0020] Sending a test data packet to the host to be tested according to the transmission communication protocol of the transmission layer, and obtaining a feedback data packet;

[0021] If the feedback data packet is a target data packet, determining that the target host is in a live state and the first asset of the target host is in an open state;

[0022] Based on a preset port scanning program, the target port of the target host is scanned to obtain a port feedback packet, and if the port feedback packet is a target feedback packet, it is determined that the target port is in an open state;

[0023] According to the target port, the surviving asset in the first assets is detected and obtained.

[0024] By adopting the above technical solution, when performing asset survival scanning on the transport layer, network layer and data link layer in the TCP / IP five-layer model, the transport layer, network layer and data link layer use different surviving asset detection methods, which facilitates the effective identification of surviving assets.

[0025] Optionally, if the detection method is active detection, performing asset survival scanning on the transport layer, network layer and data link layer in the TCP / IP five-layer model to obtain surviving assets also includes:

[0026] Detect the target asset according to the address resolution protocol of the data link layer, and call the three-layer protocol to perform cross-segment detection on the target asset to obtain the surviving asset;

[0027] Detecting a surviving target host according to the control message protocol of the network layer, and calling a target tool to detect and obtain surviving assets in the target host;

[0028] Send a first data packet to the data port of the host to be tested, and obtain a return data packet;

[0029] If the returned data packet is a target reply packet, the data port is determined to be a closed port, and the closed port is filtered out from the data ports to obtain an open port;

[0030] According to the open port, detect and obtain surviving assets.

[0031] By adopting the above technical solution, the transport layer uses port scanning to detect surviving assets, that is, the closed ports can be determined by returning data packets. After obtaining the closed ports, the closed ports are filtered out according to the data ports to obtain open ports and surviving assets, thereby improving the flexibility of the transport layer in detecting surviving assets.

[0032] Optionally, the comparing the asset information to be tested based on a preset asset IP library and a preset public network IP library to obtain target asset information includes:

[0033] Perform protocol detection according to the service protocol of the application layer to obtain service information;

[0034] Fusing the service information with the asset information to be tested to obtain fused asset information, and comparing the fused asset information with the asset IP library and the public network IP library respectively to determine whether the fused asset information hits the asset IP library;

[0035] If the asset IP library is hit, the target asset information is compared with the preset asset fingerprint;

[0036] If the asset IP database is not hit, the public network IP database is hit, and the fused asset information is discarded;

[0037] If the asset IP library and the public network IP library are not hit, the fused asset information is used as the target asset information, and the target asset information is stored in the backup library.

[0038] By adopting the above technical solution, if the fused asset information does not hit the asset IP library and does not hit the public network IP library, it indicates that the fused asset information is an invisible asset, thereby facilitating improving the accuracy of invisible asset identification.

[0039] Optionally, detecting the asset to be detected according to the detection task to obtain the asset information to be detected further includes:

[0040] If the detection method is active detection, the access tool is called according to the target network in different detection areas;

[0041] Active detection is initiated according to the access tool to obtain the asset information to be tested.

[0042] By adopting the above technical solution, the active detection method can also first call the access tool according to the target network of different detection areas, and obtain the detection asset information based on the detection of the access tool, that is, the active detection method is not only one, and through multiple active detection methods, it is convenient to more accurately identify invisible assets.

[0043] Optionally, detecting the asset to be detected according to the detection task to obtain the asset information to be detected further includes:

[0044] If the detection method is passive matching, the core traffic of the current network is mirrored, and the network data packets are intercepted to obtain the asset information to be tested in the network data packets.

[0045] By adopting the above technical solution, when the detection method is passive matching, the core traffic is mirrored and the network data packets are intercepted to obtain the information of the asset to be tested. The detection methods for invisible assets include active detection and passive detection, which effectively improves the accuracy of invisible asset identification.

[0046] Optionally, detecting the asset to be detected according to the detection task to obtain the asset information to be detected further includes:

[0047] If the detection method is passive matching, the asset information to be tested is obtained through a preset docking log analysis system.

[0048] By adopting the above technical solution, when the detection method is passive matching, the asset information to be tested can also be obtained by connecting to the log analysis system, that is, there are multiple passive matching methods, which improves the flexibility of asset identification and detection while further improving the accuracy of invisible asset identification.

[0049] Optionally, the comparing the asset information to be tested based on a preset asset IP library and a preset public network IP library to obtain target asset information includes:

[0050] Compare the asset information to be tested with the asset IP library and the public network IP library to determine whether the asset information to be tested hits the asset IP library;

[0051] If the asset IP library is hit, the asset information to be tested is used as the target asset information, and the target asset information is compared with the preset target asset fingerprint;

[0052] If the asset IP database is not hit, the public network IP database is hit, and the asset information to be tested is discarded;

[0053] If the asset IP library and the public network IP library are not hit, the asset information to be tested is stored in the backup library.

[0054] By adopting the above technical solution, when the detection method is passive matching, the asset information to be tested that hits the asset IP library is used as the target asset information, that is, the detection method is different and the target asset information is different, which facilitates more accurate identification of the asset information of the invisible asset.

[0055] Optionally, comparing and analyzing the target asset information according to a preset asset identification rule to obtain complete asset information and complete identification of the asset to be tested includes:

[0056] Extracting an asset IP from the target asset information that hits the asset IP library, and filtering the system logs in the docking log analysis system based on the asset IP;

[0057] The log asset information in the system log is extracted, and the log asset information matching the asset IP in the preset asset IP rule library is screened for asset validity to obtain complete asset information, thereby completing the identification of the asset to be tested.

[0058] By adopting the above technical solution, the asset IP is extracted from the target asset information that hits the asset IP library, and then the log asset information that matches the asset IP in the asset IP rule library can be screened for asset validity to obtain complete asset information, complete the identification of the asset to be tested, and facilitate the identification of the asset to be tested.

[0059] In summary, the present application has at least one of the following beneficial technical effects:

[0060] 1. The identification of network assets not only adopts active detection but also passive matching, which effectively improves the accuracy of network asset identification. At the same time, the detection task is first established, and then the target asset information is compared and analyzed according to the asset identification rules, which further effectively improves the accuracy of network asset identification.

[0061] 2. The transport layer uses port scanning to detect surviving assets, that is, the closed ports can be determined by returning data packets. After obtaining the closed ports, the closed ports are filtered out according to the data ports to obtain open ports and surviving assets, which improves the flexibility of the transport layer in detecting surviving assets.

[0062] 3. When the detection method is passive matching, the asset information to be tested can also be obtained by connecting to the log analysis system, that is, there are multiple passive matching methods, which improves the flexibility of asset identification and detection while further improving the accuracy of invisible asset identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application.

[0064] Figure 2 It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application.

[0065] Figure 3 It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application.

[0066] Figure 4 It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application.

[0067] Figure 5 It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application.

[0068] Figure 6 It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application.

[0069] Figure 7 It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application.

[0070] Figure 8It is a flow chart of one implementation method of an asset identification method based on a hybrid approach in an embodiment of the present application. DETAILED DESCRIPTION

[0071] The following is combined with Figures 1 to 8 This application is described in further detail.

[0072] The embodiment of the present application discloses an asset identification method based on a hybrid approach.

[0073] Reference Figure 1 ,An asset identification method based on a hybrid approach includes the following steps:

[0074] S101. Acquire a detection area, a detection method, and a detection tool, and establish a detection task for the asset to be detected based on the detection area, the detection method, and the detection tool; the detection method includes active detection and passive matching.

[0075] Invisible assets refer to forgotten network assets. The purpose of network asset detection is to detect online hosts within the target range and their open ports, services, operating systems and other information. Online hosts within the target range refer to the detection area, which is set manually; open ports, services, operating systems and other information refer to network asset information.

[0076] Network assets refer to any resources with network connection that are valuable to the enterprise. Network assets can be classified into hardware and software, where hardware includes various communication, computing, storage and other equipment; software generally refers to various services running on hardware, such as Web services, databases, operating systems, etc. In this embodiment, network assets refer to assets classified as software.

[0077] The detection tool refers to a tool used to detect network assets. Since the detection methods include active detection and passive matching, the detection tool in this embodiment includes active detection tools and passive detection tools. For example, in active detection, when detecting network assets in the network layer, in order to find a surviving host, Ping is called to test whether the host is alive, then Ping is an active detection tool. Ping is a service command working in the application layer of the TCP / IP network architecture, mainly used to send ICMP (Internet Control Message Protocol) request messages to a specific destination host.

[0078] After the detection method, detection tool and detection area are set, it means that the detection task is to perform detection in the detection area by using the detection tool in the detection method.

[0079] Active detection means actively sending constructed data packets to the target network assets, extracting the target fingerprint from the relevant information of the returned data packets, and comparing it with the fingerprint in the asset fingerprint library to detect open ports, operating systems, services and application types. The relevant information of the returned data packets includes the protocol content of each layer, packet retransmission time, etc.

[0080] Passive matching refers to collecting the traffic of the target network and analyzing the fingerprint features of special field banners in the application layer HTTP, FTP, SMTP and other protocol packets or IP, TCP three-way handshake, DHCP and other protocol packets in the traffic, so as to realize passive detection of network asset information.

[0081] S102: Detect the asset to be detected according to the detection task to obtain information about the asset to be detected.

[0082] The asset information to be tested refers to the network asset information detected by the detection task, such as IP address, port information, operating system, MAC information, network location and other information.

[0083] S103: Compare the asset information to be tested based on the preset asset IP library and the preset public network IP library to obtain the target asset information.

[0084] Both the asset IP library and the public IP library are preset. The asset IP library stores the IP addresses of the assets, and the public IP library stores the public IPs, that is, the non-reserved addresses that use the public network to connect to the Internet. After obtaining the asset information to be tested, the public IP and asset IP can be obtained based on the asset information to be tested. The public IP of the asset information to be tested can be compared with the public IP library, and the asset IP can be compared with the asset IP library to determine whether the asset information to be tested is the target asset information. If so, the target asset information can be obtained.

[0085] S104: Compare and analyze the target asset information according to the preset asset identification rules to obtain complete asset information and complete the identification of the asset to be tested.

[0086] The asset identification rule refers to comparing the asset fingerprint with the preset asset fingerprint library.

[0087] Compare and analyze the target asset information according to the preset asset identification rules to obtain complete asset information, which means that the target asset information is compared and analyzed according to the known asset fingerprint library to form complete asset information, and the asset detection tool is started for verification. After completing operations such as asset addition and update, it means that the identification of the asset to be tested is completed.

[0088] The implementation principle of this embodiment is: the identification of network assets not only adopts the active detection method but also the passive matching method, thereby effectively improving the accuracy of network asset identification; at the same time, first establish a detection task, and then compare and analyze the target asset information according to the asset identification rules, further effectively improving the accuracy of network asset identification.

[0089] exist Figure 1 In step S102 of the illustrated embodiment, when the detection mode is active detection, the transport layer, network layer and data link layer in the TCP / IP five-layer model may be detected and scanned. Figure 2 The illustrated embodiment is described in detail.

[0090] Reference Figure 2 , detecting the asset to be detected according to the detection task, and obtaining the asset information to be detected, including the following steps:

[0091] S201. If the detection method is active detection, perform asset survival scan on the transport layer, network layer and data link layer in the TCP / IP five-layer model to obtain surviving assets and obtain surviving asset information of the surviving assets.

[0092] The TCP / IP five-layer model includes application layer, transport layer, network layer, data link layer and physical layer.

[0093] When the detection method is active detection, when detecting the asset to be tested, according to the protocols of each layer of the transport layer, network layer and data link layer in the TCP / IP five-layer model, a data packet with information detection capability is constructed to perform asset survival scan on the asset to be tested. Specifically, the asset MAC scan, asset IP scan, port scan and service scan are performed on each layer through the data packet.

[0094] After performing a survival scan on the asset to be tested, the surviving asset can be extracted from the returned data packet, and the surviving asset information of the surviving asset can be obtained.

[0095] S202: Integrate the surviving asset information to obtain the asset information to be tested.

[0096] The surviving asset information is integrated according to the asset IP, asset MAC, port, protocol, etc., to form complete asset information from the surviving asset information and obtain the asset information to be tested.

[0097] The hybrid asset identification method provided in this embodiment performs asset survival scanning on three layers of the TCP / IP five-layer model during active detection, thereby facilitating comprehensive scanning and identification of invisible assets.

[0098] exist Figure 2In step S201 of the illustrated embodiment, different surviving asset detection methods may be used for the transport layer, the network layer, and the data link layer. Figure 3 The illustrated embodiment is described in detail.

[0099] Reference Figure 3 If the detection method is active detection, the transport layer, network layer and data link layer in the TCP / IP five-layer model are scanned for asset survival to obtain surviving assets, including the following steps:

[0100] S301. Detect target assets according to the address resolution protocol of the data link layer, and call the three-layer protocol to perform cross-segment detection on the target assets to obtain surviving assets.

[0101] When the detection mode is active detection, the asset MAC and asset IP detection are first performed, that is, the IP and MAC of the target asset are detected through the ARP protocol of the data link layer. The ARP protocol is the address resolution protocol. Since the ARP protocol cannot perform cross-segment detection, in order to expand the detection range of the target asset, in this embodiment, the three-layer protocol is called to perform cross-segment IP detection on the target asset to obtain the surviving asset.

[0102] The three-layer protocol refers to the IP protocol, DHCP protocol and NAT technology. The IP protocol is a network layer protocol used in the TCP / IP protocol suite, which is used to connect computer networks to communicate with each other; the DHCP protocol is a network protocol for a local area network, which uses the UDP protocol to work. It has two main uses: one is to automatically allocate IP addresses for internal networks or network service providers, and the other is to serve as a means for users or internal network administrators to centrally manage all computers; NAT technology refers to network address translation. When the host in the internal network is allocated a local IP address and needs to communicate with the host on the Internet, the NAT method can be used.

[0103] S302: Detect the surviving target host according to the control message protocol of the network layer, and call the target tool to detect and obtain the surviving assets in the target host.

[0104] The control message protocol is the ICMP protocol, which is used to transmit control messages between IP hosts and routers. Control messages refer to messages about the network itself, such as whether the network is connected, whether the host is reachable, and whether the route is available. The survival of the target host can be detected through the control message protocol of the network layer. The survival host is used to describe the address status of the target host. Determining whether the target host is alive means determining whether the target host is powered on and online, and can respond to the detection packet.

[0105] The control message protocol can be used to determine the network communication status or the status of the target host. By calling Ping, Fping, and Hping to discover the asset IP, you can detect and obtain surviving assets. Fping is a small command line tool used to send ICMP protocol response requests to network hosts; Hping is a TCP / IP data packet assembly and analysis tool used in the command line, which includes a routing tracking mode for transferring files between two mutually inclusive channels.

[0106] S303: Send a test data packet to the host to be tested according to the transmission communication protocol of the transport layer, and obtain a feedback data packet.

[0107] In this embodiment, the transport layer adopts TCP mode. TCP is a connection-oriented, reliable transmission communication protocol that can send SYN packets. If the target host returns a SYN / ACK or RST packet, it can be proved that the target host is alive. That is, the transport communication protocol is the TCP protocol, the test packet is the SYN packet, and the feedback packet is used to determine whether the target host is alive. Specifically, SYN means to establish a connection, ACK means to respond, and RST means to reset the connection. The process is as follows: first, a SYN packet is sent to detect the asset IP; secondly, the target address feedback and return SYN / ACK or RST packets, indicating that this IP is open.

[0108] S304: If the feedback data packet is a target data packet, determine that the target host is in a live state and the first asset of the target host is in an open state.

[0109] As can be seen from step S303, the target address feeds back and returns a SYN / ACK or RST data packet, indicating that the IP is in an open state, that is, the first asset is in an open state, and the target data packet refers to a SYN / ACK or RST data packet.

[0110] S305 . Scan the target port of the target host based on a preset port scanning program to obtain a port feedback packet. If the port feedback packet is a target feedback packet, it is determined that the target port is in an open state.

[0111] When it is determined that the asset IP is open and the target host is alive, it is necessary to determine whether the port is open. At this time, the target port of the target host is scanned based on the port scanner, and the port feedback packet returned by the target port is obtained. If the port feedback packet is a target feedback packet, the target port is determined to be open. Specifically, the target feedback packet is SYN+ACK. If the port feedback packet is not SYN+ACK, it means that the port is not open.

[0112] S306: Detect and obtain the surviving assets in the first assets according to the target port.

[0113] When the target port is open, the surviving assets in the first assets can be detected and obtained.

[0114] The asset identification method based on a hybrid approach provided in this embodiment uses different surviving asset detection methods for the transport layer, network layer and data link layer in the TCP / IP five-layer model when performing asset survival scanning, so as to effectively identify surviving assets.

[0115] exist Figure 2 In step S201 of the embodiment shown, the asset active detection for the transport layer can be performed in a UDP mode in addition to the TCP mode. Figure 4 The illustrated embodiment is described in detail.

[0116] Reference Figure 4 If the detection method is active detection, the transport layer, network layer and data link layer in the TCP / IP five-layer model are scanned for asset survival to obtain surviving assets, and the following steps are also included:

[0117] S401. Detect target assets according to the address resolution protocol of the data link layer, and call the three-layer protocol to perform cross-segment detection on the target assets to obtain surviving assets.

[0118] S402: Detect the surviving target host according to the control message protocol of the network layer, and call the target tool to detect and obtain the surviving assets in the target host.

[0119] It should be noted that the detection of the data link layer and the network layer in the active detection mode in step S401 to step S402 is consistent with step S301 to step S302. The difference is that the active detection mode of the transport layer in step S403 to step S404 is UDP mode. UDP is used to provide connectionless network communication services using IP. If the target host is in an active state, but the target port is in a closed state, an ICMP data packet will be returned; if the host is in an inactive state, no information will be returned.

[0120] S403: Send a first data packet to the data port of the host to be tested, and obtain a return data packet.

[0121] In this embodiment, the first data packet is a UDP data packet, that is, a UDP data packet is constructed in advance, and then the UDP data packet is sent to the data port of the host to be tested, and a returned return data packet is received.

[0122] S404: If the returned data packet is a target reply packet, determine that the data port is a closed port, and filter out the closed port from the data ports to obtain an open port.

[0123] Since multiple return data packets are received, the return data packets are traversed at this time, and it is determined whether the return data packet returned by the data port is an ICMP reply packet, that is, a target reply packet. If it is a target reply packet, it indicates that the data port is not open and is a closed port. At this time, the closed ports are filtered out from all data ports, and the remaining data ports are open ports.

[0124] S405: Detect and obtain surviving assets based on open ports.

[0125] After obtaining the open port, the surviving assets can be detected based on the open port.

[0126] The asset identification method based on a hybrid approach provided in this embodiment uses a port scanning method at the transport layer to detect surviving assets, that is, the closed ports can be determined by returning data packets. After the closed ports are obtained, the closed ports are filtered out according to the data ports to obtain open ports and surviving assets, thereby improving the flexibility of the transport layer in detecting surviving assets.

[0127] exist Figure 3 or Figure 4 In the illustrated implementation, the identification of assets is all active detection, and the target asset information can be obtained by comparing the asset IP library and the public network IP library to obtain the target asset information. Figure 5 The illustrated embodiment is described in detail.

[0128] Reference Figure 5 , based on the preset asset IP library and the preset public network IP library, the asset information to be tested is compared to obtain the target asset information, including the following steps:

[0129] S501. Perform protocol detection according to the service protocol of the application layer to obtain service information.

[0130] The service protocols of the application layer can be the Domain Name System DNS protocol, FTP file transfer protocol, telnet remote terminal protocol, HTTP hypertext transfer protocol, SMTP email protocol, POP3 mail reading protocol, Telnet remote login protocol, SNMP simple network management protocol, TFTP simple file transfer protocol, etc. At this time, the service information can be obtained through the service protocol of the application layer, including server address, server port number, public network IP, asset IP, etc.

[0131] S502: Fuse the service information with the asset information to be tested to obtain fused asset information, and compare the fused asset information with the asset IP library and the public network IP library respectively to determine whether the fused asset information hits the asset IP library.

[0132] By integrating the service information with the asset information to be tested, the asset information to be tested can be improved to obtain the integrated asset information. At this time, the asset IP of the integrated asset information is compared with the asset IP library, and the public network IP is compared with the public network IP library to determine whether the integrated asset information hits the asset IP library or the public network IP library.

[0133] S503: If the asset IP library is hit, the target asset information is compared with the preset asset fingerprint.

[0134] The asset fingerprint is known. If the fused asset information hits the asset IP library, it indicates that the fused asset is an invisible asset. At this time, the target asset information is compared with the asset fingerprint to update the IP, MAC, port, etc. of the fused asset.

[0135] S504: If the asset IP database is not hit, the public network IP database is hit, and the fused asset information is discarded.

[0136] If the fused asset information does not hit the asset IP library, but hits the public network IP library, it indicates that the fused asset information is not an invisible asset, and the fused asset information is discarded.

[0137] S505: If the asset IP library and the public network IP library are not hit, the fused asset information is used as the target asset information, and the target asset information is stored in the backup library.

[0138] If the fused asset information does not hit the asset IP library and the public network IP library, the fused asset information is stored in the backup library as the target asset information for subsequent identification of invisible assets. The subsequent identification can be software identification or manual identification.

[0139] The asset identification method based on the hybrid mode provided in this embodiment, if the fused asset information does not hit the asset IP library and does not hit the public network IP library, it indicates that the fused asset information is an invisible asset, thereby facilitating improving the accuracy of invisible asset identification.

[0140] exist Figure 1 In step S102 of the embodiment shown, when the detection method is active detection, the invisible assets can also be actively detected by actively linking the management system. Figure 6 The illustrated embodiment is described in detail.

[0141] Reference Figure 6 , detecting the asset to be detected according to the detection task to obtain the asset information to be detected, and also includes the following steps:

[0142] S601: If the detection mode is active detection, call the access tool according to the target network in different detection areas.

[0143] In this embodiment, the active detection method is an active linkage management system method, that is, through linkage leakage scanning, baseline verification, virus detection, and virtual resource system, asset information such as asset IP, asset name, user account, process operation, port, operating system, and business operation is obtained.

[0144] Before using this method for active detection, you must first call a tool with target network access rights, namely an access tool, based on the target network of different detection areas that are manually set.

[0145] S602: Initiate active detection according to the access tool to obtain information about the asset to be tested.

[0146] After calling the access tool, you can initiate active detection to obtain the asset information to be tested.

[0147] Specifically, in the active linkage management system mode, there are four ways to perform detection based on access tools:

[0148] The first is the intrusive scanning method: the vulnerability scanning system performs an intrusive scan on the target network and collects assets such as IP, port, vulnerability, system version, etc. after the scan is completed;

[0149] The second is remote login verification: baseline verification system remote login assets, collect asset information such as asset IP, operating system, version number, process, port, application, etc.

[0150] The third method is Agent mode: when checking and killing viruses, they need to be implanted in the host and server, so the asset detection of the terminal agent process is carried out through the virus check control terminal;

[0151] The fourth type is API docking: the activation, use, suspension and recovery of virtual cloud hosts need to be managed through the virtual resource system. Therefore, the virtual resource system has complete and accurate private cloud asset information. By actively scheduling the asset database information of the virtual resource system through the API, virtual cloud asset information and dynamic change information can be obtained, expanding the overall asset management scope.

[0152] If the detection mode is passive matching, in this embodiment, two passive detection modes are used to detect the asset to be detected.

[0153] The steps of detecting the asset to be detected by using the first passive detection method, detecting the asset to be detected according to the detection task, and obtaining the asset information to be detected include:

[0154] If the detection method is passive matching, the core traffic of the current network is mirrored, and the network data packets are intercepted to obtain the asset information to be tested in the network data packets.

[0155] The first passive detection method is traffic analysis. To mirror the core traffic of the current network, you must first determine the mirror port and place the corresponding traffic on this port. Then, you can intercept the mirrored network data packets to obtain the IP, port, service, operating system version information, etc. in the network data packets, that is, the asset information to be tested.

[0156] The step of detecting the asset to be detected by using the second passive detection method, detecting the asset to be detected according to the detection task, and obtaining the asset information to be detected, also includes:

[0157] If the detection method is passive matching, the asset information to be tested is obtained through the preset docking log analysis system.

[0158] The second passive detection method is log analysis, which obtains asset-related attributes by connecting to log audit, SIME and other log analysis products or platforms, that is, first obtain asset IP and SYSLOG information by connecting to log analysis systems. Syslog log is a type of system log, that is, SYSLOG information refers to system log information. The asset information to be tested is the asset IP and SYSLOG information.

[0159] In this embodiment, there are two passive matching methods, which improve the flexibility of asset identification and detection while further improving the accuracy of invisible asset identification.

[0160] The asset identification method based on a hybrid approach provided in this embodiment, the active detection method can also first call the access tool according to the target network of different detection areas, and obtain the detection asset information based on the detection of the access tool, that is, the active detection method is not only one, through a variety of active detection methods, it is convenient to more accurately identify invisible assets.

[0161] exist Figure 1 In step S103 of the illustrated embodiment, when the detection mode is passive detection, the target asset information is different from that in active detection. Figure 7 The illustrated embodiment is described in detail.

[0162] Reference Figure 7 , based on the preset asset IP library and the preset public network IP library, the asset information to be tested is compared to obtain the target asset information, including the following steps:

[0163] S701. Compare the asset information to be tested with the asset IP library and the public network IP library to determine whether the asset information to be tested hits the asset IP library.

[0164] S702: If the asset IP library is hit, the asset information to be tested is used as the target asset information, and the target asset information is compared with the preset target asset fingerprint.

[0165] In the active detection mode, the target asset information is the asset information to be tested that has not hit the asset IP library and has not hit the public network IP library. In the passive detection mode, the target asset information is the asset information to be tested that has hit the asset IP library.

[0166] If the asset information to be tested hits the asset IP library, if the passive detection method is the traffic analysis method, the asset information to be tested is compared with the known target asset fingerprint to determine the asset information.

[0167] S703: If the asset IP database is not hit, the public network IP database is hit, and the asset information to be tested is discarded.

[0168] If the target asset information does not hit the asset IP database, but hits the public network IP database, it indicates that the target asset information is not an invisible asset, and the target asset information is discarded.

[0169] S704: If the asset IP library and the public network IP library are not hit, the asset information to be tested is stored in the backup library.

[0170] If the target asset information does not hit the asset IP library and the public network IP library, the target asset information is stored in the backup library for subsequent identification of invisible assets. The subsequent identification can be software identification or manual identification.

[0171] The asset identification method based on a hybrid method provided in this embodiment uses the asset information to be tested that hits the asset IP library as the target asset information when the detection method is passive matching. That is, the detection method is different and the target asset information is different, which facilitates more accurate identification of the asset information of invisible assets.

[0172] exist Figure 1 In step S104 of the illustrated embodiment, the identification of the asset to be tested can be completed through the target asset information. Figure 8 The illustrated embodiment is described in detail.

[0173] Reference Figure 8 , compare and analyze the target asset information according to the preset asset identification rules, obtain complete asset information, and complete the identification of the asset to be tested, including the following steps:

[0174] S801. Extract the asset IP from the target asset information in the hit asset IP library, and filter the system log in the docking log analysis system based on the asset IP.

[0175] If the passive detection method is the log analysis method, you must first extract the asset IP from the target asset information that hits the asset IP library, and filter the system log of the log analysis system according to the asset IP, that is, the syslog log.

[0176] S802: extract log asset information from the system log, and perform asset validity screening on the log asset information that matches the asset IP in the preset asset IP rule library to obtain complete asset information, thereby completing the identification of the asset to be tested.

[0177] Log asset information includes IP, MAC, port, operating system, service name, system version, process, user information, etc. The asset IP rule base stores valid asset information of valid assets, such as asset IP, etc. That is, after extracting the log asset information, the asset IP matching the asset IP rule base is first screened out, that is, validity screening. After the validity screening, the completed asset information can be obtained, and the identification of the asset to be tested is completed.

[0178] The asset identification method based on a hybrid approach provided in this embodiment extracts the asset IP from the target asset information that hits the asset IP library, and then performs asset validity screening on the log asset information that matches the asset IP in the asset IP rule library to obtain complete asset information, complete the identification of the asset to be tested, and facilitate the identification of the asset to be tested.

[0179] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. An asset identification method based on a hybrid approach, characterized in that: include: Acquire a detection area, a detection method and a detection tool, and establish a detection task for the asset to be detected based on the detection area, the detection method and the detection tool; The detection method includes active detection and passive matching; Detect the asset to be detected according to the detection task to obtain information about the asset to be detected; Detecting the asset to be detected according to the detection task to obtain the asset information to be detected includes: If the detection method is active detection, perform asset survival scanning on the transport layer, network layer and data link layer in the TCP / IP five-layer model to obtain surviving assets, and obtain surviving asset information of the surviving assets; integrate the surviving asset information to obtain the asset information to be tested; If the detection method is active detection, the transport layer, network layer and data link layer in the TCP / IP five-layer model are scanned for asset survival to obtain surviving assets, including: Detect the target asset according to the address resolution protocol of the data link layer, and call the three-layer protocol to perform cross-segment detection on the target asset to obtain a surviving asset; detect the surviving target host according to the control message protocol of the network layer, and call the target tool to detect and obtain the surviving asset in the target host; send a test data packet to the host to be tested according to the transmission communication protocol of the transport layer, and obtain a feedback data packet; if the feedback data packet is a target data packet, determine that the target host is in a surviving state and the first asset of the target host is in an open state; based on a preset port scanning program, scan the target port of the target host to obtain a port feedback packet, and if the port feedback packet is a target feedback packet, determine that the target port is in an open state; detect and obtain the surviving asset in the first asset according to the target port; Or, detect the target asset according to the address resolution protocol of the data link layer, and call the three-layer protocol to perform cross-segment detection on the target asset to obtain a surviving asset; detect the surviving target host according to the control message protocol of the network layer, and call the target tool to detect and obtain the surviving asset in the target host; send a first data packet to the data port of the host to be tested, and obtain a return data packet; if the return data packet is a target reply packet, determine that the data port is a closed port, and filter out the closed port in the data port to obtain an open port; detect and obtain the surviving asset according to the open port; Compare the asset information to be tested based on a preset asset IP library and a preset public network IP library to obtain target asset information; When the detection mode is active detection, the asset information to be detected is compared based on the preset asset IP library and the preset public network IP library to obtain the target asset information, including: Perform protocol detection according to the service protocol of the application layer to obtain service information; fuse the service information with the asset information to be tested to obtain fused asset information, and compare the fused asset information with the asset IP library and the public network IP library respectively to determine whether the fused asset information hits the asset IP library; if it hits the asset IP library, compare the fused asset information with the preset asset fingerprint; if it does not hit the asset IP library, it hits the public network IP library and discards the fused asset information; if it does not hit the asset IP library and the public network IP library, use the fused asset information as the target asset information and store the target asset information in the spare library; The target asset information is compared and analyzed according to the preset asset identification rules to obtain complete asset information and complete the identification of the asset to be tested.

2. The asset identification method based on a hybrid approach according to claim 1, characterized in that: The detecting the asset to be detected according to the detection task to obtain the asset information to be detected also includes: If the detection method is active detection, the access tool is called according to the target network in different detection areas; Active detection is initiated according to the access tool to obtain the asset information to be tested.

3. The asset identification method based on a hybrid approach according to claim 1, characterized in that: The detecting the asset to be detected according to the detection task to obtain the asset information to be detected also includes: If the detection method is passive matching, the core traffic of the current network is mirrored, and the network data packets are intercepted to obtain the asset information to be tested in the network data packets.

4. The asset identification method based on a hybrid approach according to claim 2, characterized in that: The detecting the asset to be detected according to the detection task to obtain the asset information to be detected also includes: If the detection method is passive matching, the asset information to be tested is obtained through a preset docking log analysis system.

5. The asset identification method based on a hybrid approach according to claim 4, characterized in that: When the detection mode is passive matching, the asset information to be tested is compared based on the preset asset IP library and the preset public network IP library to obtain the target asset information, including: Compare the asset information to be tested with the asset IP library and the public network IP library to determine whether the asset information to be tested hits the asset IP library; If the asset IP library is hit, the asset information to be tested is used as the target asset information, and the target asset information is compared with the preset target asset fingerprint; If the asset IP database is not hit, the public network IP database is hit, and the asset information to be tested is discarded; If the asset IP library and the public network IP library are not hit, the asset information to be tested is stored in a spare library.

6. The asset identification method based on a hybrid approach according to claim 5, characterized in that: The comparing and analyzing the target asset information according to the preset asset identification rules to obtain complete asset information and complete the identification of the asset to be tested includes: Extracting an asset IP from the target asset information that hits the asset IP library, and filtering the system logs in the docking log analysis system based on the asset IP; The log asset information in the system log is extracted, and the log asset information matching the asset IP in the preset asset IP rule library is screened for asset validity to obtain complete asset information, thereby completing the identification of the asset to be tested.