Network asset vulnerability data detection method

Through TCP or SYN scanning and Web fingerprint recognition technology combined with the asynchronous processing of the Celery framework, the problem of low efficiency of traditional network asset vulnerability detection is solved, rapid and accurate vulnerability detection and monitoring is achieved, and the security of network assets is ensured.

CN118540131APending Publication Date: 2024-08-23DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410655697.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Traditional network asset vulnerability detection methods are inefficient, prone to false negatives and false positives, and cannot meet the needs for rapid detection of large-scale network assets. Especially when network assets change dynamically, asset information needs to be updated and maintained in a timely manner.

Method used

Use TCP or SYN scanning to establish a connection, use Zmap to scan multiple network segments to obtain open ports, combine Web fingerprinting technology and the Celery framework to achieve asynchronous processing, and use the producer-consumer mode and multi-threaded Nmap for vulnerability scanning, data storage and synchronous use. ElasticSearch and CloudCanal for distributed scaling.

Benefits of technology

It realizes automated and rapid network asset vulnerability detection and monitoring, improves the accuracy and efficiency of detection, provides real-time vulnerability monitoring and alarm functions, and ensures the security and stability of network assets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540131A
    Figure CN118540131A
Patent Text Reader

Abstract

The invention discloses a network asset vulnerability data detection method, which comprises the following steps of: establishing connection between a host end and a server end by adopting a TCP (Transmission Control Protocol) or SYN (Synchronization) scanning mode, scanning a plurality of network segments by using Zmap to obtain open ports, and processing and writing survival ports into a queue; detecting inventory network assets, and identifying an open port of the inventory network assets and version information of a server corresponding to the port; identifying keyword information of a Web sensitive background based on a Web fingerprint identification technology so as to obtain link information and a theme name of the sensitive background; a vulnerability scanning task is scheduled, a service waits for a producer to provide the service in a consumer form, the producer is a network asset detection and identification service, and asynchronous processing is carried out on scanned and analyzed data by using a Celery framework; the method comprises the following steps: scanning and analyzing data, storing a detection result, carrying out rapid retrieval and distributed expansion on a scanned and analyzed result, storing various collected data into a database, and carrying out data synchronization and migration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network asset data security, and in particular to a network asset vulnerability data detection method. Background Art

[0002] With the rapid development of Internet technology, the Internet and various Internet devices have become important carriers of people's lives and work. Nowadays, various network assets on the Internet and even in corporate intranets are increasing explosively. As various devices and systems are continuously connected to the network, the exposure of various network security vulnerabilities is increasing. In order to timely discover various network assets, deal with and investigate various vulnerabilities and hidden dangers, enterprises need efficient means to sort out network assets, analyze asset-related information, and quickly discover network asset vulnerabilities.

[0003] There are some problems with traditional network asset vulnerability detection and monitoring methods. First, traditional manual detection methods are inefficient and cannot meet the needs of rapid detection of large-scale network assets. Second, traditional detection methods rely on manual analysis, which is prone to omissions and false positives. In addition, the dynamic changes of network assets also bring challenges to vulnerability detection, and asset information needs to be updated and maintained in a timely manner. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention discloses a network asset vulnerability data detection method, which specifically includes the following steps:

[0005] Use TCP or SYN scanning to establish a connection between the host and the server, use Zmap to scan multiple network segments to obtain open ports, and process the surviving ports and write them into the queue;

[0006] Detect inventory network assets and identify open ports of inventory network assets and version information of servers corresponding to the ports;

[0007] Identify keyword information of sensitive web backgrounds based on web fingerprint recognition technology, thereby obtaining link information and topic names of sensitive backgrounds;

[0008] Scheduling vulnerability scanning tasks, where the service waits for the producer to provide services in the form of consumers. The producer is the network asset detection and identification service, and uses the Celery framework to asynchronously process the scanned and analyzed data;

[0009] The detection results are stored, the results after scanning and analysis are quickly retrieved and distributed, the collected data is stored in the database, and data is synchronized and migrated.

[0010] The processing of survival ports includes IP extraction, duplicate IP deletion, port filtering and output format adjustment, and the detection of IP and port survival.

[0011] When detecting inventory network assets, selective initialization vulnerability scanning is enabled for newly added inventory network assets. Different types of vulnerability scanning scripts are called in the background according to different services. At the same time, multi-threaded Nmap is used to identify the server, the target operating system, banner information and port service information.

[0012] Use Python crawler technology to obtain server type information, programming language information and front-end framework information, perform fingerprint identification on network assets, and match them with corresponding application systems.

[0013] In the scanning task scheduling process, the producer and consumer model is applied. The producers and consumers do not communicate directly, but use buffers to achieve communication, and use the Celery distributed framework for asynchronous data processing.

[0014] The service waits for the producer to provide services in the form of consumers. The producer is a network asset detection and identification service. For tasks that are executed immediately, the Celery distributed framework based on the Python language is used. The consumer and buffer are set up, and the asynchronous framework is in a task waiting state. The upper end only needs to call the function as a producer to submit multiple tasks. The consumer obtains the task through the buffer, and returns the result to the producer after concurrent execution. The producer processes the data.

[0015] During the data migration process, all data from the specified data source will be migrated to the target data source. Multiple data sources are supported, and migration is performed using breakpoint resumption, sequential paging scanning, parallel scanning, batch writing, parallel writing, and data condition filtering.

[0016] During the data synchronization process, the incremental operation log of the source data is consumed and replayed on time on the other end data source to achieve the purpose of data synchronization. It supports multiple data sources and uses breakpoint resumption, DDL synchronization, and synchronization and verification methods for synchronization.

[0017] Due to the adoption of the above technical solution, the present invention provides a network asset vulnerability data detection method, which performs comprehensive and efficient vulnerability detection and monitoring of network assets in an automated manner, effectively improving the accuracy and efficiency of vulnerability detection. The method can quickly sort out network assets, automatically perform vulnerability scanning and data collection, and provide real-time vulnerability monitoring and alarm functions, helping enterprises and organizations to timely discover and resolve network security vulnerabilities and ensure the security and stability of network assets. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 is a flow chart of the method of the present invention;

[0020] Figure 2 It is a schematic diagram of stateless scanning in the present invention;

[0021] Figure 3 It is the Nmap function diagram in the present invention;

[0022] Figure 4 This is a schematic diagram of the producer-consumer model in the present invention;

[0023] Figure 5 This is a schematic diagram of the Celery architecture in the present invention;

[0024] Figure 6 This is a schematic diagram of the ElasticSearch architecture in the present invention. DETAILED DESCRIPTION

[0025] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention:

[0026] like Figure 1 A network asset vulnerability data detection method shown includes the following steps:

[0027] Zmap scans network segments: Scans through TCP SYN scanning. In this mode, the process of successfully establishing a connection between the host and the server is as follows: the host sends a SYN packet, the server returns a SYN / ACK packet, indicating that the port is open, and the host returns a RST packet to disconnect. Figure 2 shown.

[0028] Port detection and service identification: Nmap is mainly used for accurate port scanning. Nmap is an open source and free network discovery and security auditing tool. Nmap can be used to list network hosts, scan port details, detect version information of running services, detect operating systems, etc. The function diagram is as follows: Figure 3 shown.

[0029] Web fingerprinting technology: Web fingerprinting allows people to summarize some special information that can represent the system or service version, including servers, programming languages, and front-end frameworks. Web fingerprinting libraries are mainly used to accurately identify information such as service components. By obtaining service component features, the type and version information of the website can be identified. Most Web attacks use N-day vulnerabilities. Non-HTTP protocols generally obtain the connection banner information of the port, while HTTP or HTTPS protocols usually use keywords in web pages, Md5 values ​​of feature files, and keyword matching of returned message information.

[0030] The scanning task scheduling adopts the producer-consumer model, such as Figure 4 As shown;

[0031] Vulnerability scanning task scheduling: The service waits for the producer to provide services in the form of consumers. The producer is the network asset detection and identification service (i.e. the scanning part of the asset high-speed scanning system). The tasks that are executed immediately use the Celery distributed framework based on the Python language. After setting up the consumers and buffers, the asynchronous framework is in a task waiting state. The upper end only needs to call the function as a producer to submit multiple tasks. The consumer obtains the task through the buffer, and after concurrent execution, the result is returned to the producer, and the producer processes the data.

[0032] The Celery distributed framework supports asynchronous processing. Its architecture is as follows Figure 5 As shown;

[0033] Its main features are: simple, easy to use and maintain, with rich documentation; efficient, a single celery process can handle millions of tasks per minute; flexible, almost every part of celery can be customized and extended.

[0034] Data storage mainly uses databases, ElasticSearch, and CloudCanal to meet the synchronization and migration of full and incremental data;

[0035] ElasticSearch is a distributed, high-performance, highly available, scalable, RESTful-style search and data analysis engine. It is a near real-time full-text search engine with an architecture such as Figure 5As shown. Its functions mainly include cluster, node, shard, and replica; Cluster: A cluster is organized by one or more nodes, which jointly hold the entire data and provide indexing and search functions together. The es service based on server groups has the ability to handle large amounts of data, cope with high concurrency, and achieve high availability. Node: A node is a server in a cluster. As part of the cluster, it stores your data and participates in the cluster's indexing and search functions. A node can join a specified cluster by configuring the cluster name. By default, each node is scheduled to join a cluster called "elasticsearch", such as Figure 6 As shown. Shard: An index can store a large amount of data that exceeds the hardware limit of a single node. In the context of big data, a query may need to search in a fairly large data pool, and no node has such a large disk space; or a single node processes the search request and responds too slowly. Then, es will split the data and divide the index into multiple copies, with each shard placed in a node. When querying, es will query through the relevant shards of each relevant node, and after the query, merge the results and return them to the client. Replica: In order to improve data security and system availability, and to share concurrency and improve throughput, a shard may have several replicas. An index can also be replicated 0 times (meaning no replication) or multiple times. Once replicated, each index has a primary shard (the original shard as the replication source) and a replica shard (a copy of the primary shard). The number of shards and replicas can be specified when the index is created. After the index is created, you can dynamically change the number of replicas at any time, but you cannot change the number of shards afterwards. A replica is actually a shard, which contains all the data in the shard.

[0036] RESTful API: hides the various services of the es cluster and simplifies various applications.

[0037] CloudCanal is a data migration and synchronization tool that quickly builds high-quality data circulation channels. Its community Docker version is free and open, and its main functions include data migration, data synchronization, structure migration, and data verification.

[0038] Data migration: All data from the specified data source is migrated to the target data source. It supports multiple data sources and has features such as breakpoint resumption, sequential paging scanning, parallel scanning, batch writing, parallel writing, and data condition filtering. It has little impact on the source data source and good performance, while meeting the needs of light data processing. Data migration can be optionally combined with structure migration, data synchronization for a specified period of time after migration, and data verification to meet possible business smooth switching needs;

[0039] Data synchronization: By consuming the incremental operation log of the source data, it is replayed in the peer data source in quasi-real time to achieve the purpose of data synchronization. It supports multiple data sources and has the characteristics of breakpoint resumption, DDL synchronization, synchronization and verification, peer transaction retention, high-performance peer writing, data condition filtering, etc. Data synchronization can be optionally matched with structure migration, data initialization (full migration), single or scheduled full data verification, which is both convenient and can meet the data quality requirements of long-term business data synchronization;

[0040] Structural migration: helps users quickly mirror the specified data source structure. It has features such as type conversion, database dialect conversion, and naming mapping. It can be used independently or as a preparation step for data migration or data synchronization, and can flexibly meet the needs of new data construction.

[0041] Data verification: Makes data quality measurable. It can be used alone or in conjunction with data migration or data synchronization. It has features such as full verification, incremental verification, sampling rate, scheduled execution, and verification data condition filtering to meet users' flexible data quality verification needs.

[0042] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A network asset vulnerability data detection method, Features include: Use TCP or SYN scanning to establish a connection between the host and the server, use Zmap to scan multiple network segments to obtain open ports, and process the surviving ports and write them into the queue; Detect inventory network assets and identify open ports of inventory network assets and version information of servers corresponding to the ports; Identify keyword information of sensitive web backgrounds based on web fingerprint recognition technology, thereby obtaining link information and topic names of sensitive backgrounds; Scheduling vulnerability scanning tasks, where the service waits for the producer to provide services in the form of consumers. The producer is the network asset detection and identification service, and uses the Celery framework to asynchronously process the scanned and analyzed data; The detection results are stored, the results after scanning and analysis are quickly retrieved and distributed, the collected data is stored in the database, and data is synchronized and migrated.

2. A network asset vulnerability data detection method according to claim 1, Features: The processing of survival ports includes IP extraction, duplicate IP deletion, port filtering and output format adjustment, and the detection of IP and port survival.

3. A network asset vulnerability data detection method according to claim 1, Features: When detecting inventory network assets, selective initialization vulnerability scanning is enabled for newly added inventory network assets. Different types of vulnerability scanning scripts are called in the background according to different services. At the same time, multi-threaded Nmap is used to identify the server, the target operating system, banner information and port service information.

4. A method for detecting network asset vulnerability data according to claim 1, Features: Use Python crawler technology to obtain server type information, programming language information and front-end framework information, perform fingerprint identification on network assets, and match them with corresponding application systems.

5. A network asset vulnerability data detection method according to claim 4, Features: In the scanning task scheduling process, the producer and consumer model is applied. The producers and consumers do not communicate directly, but use buffers to achieve communication, and use the Celery distributed framework for asynchronous data processing.

6. A network asset vulnerability data detection method according to claim 5, Features: The service waits for the producer to provide services in the form of consumers. The producer is a network asset detection and identification service. For tasks that are executed immediately, the Celery distributed framework based on the Python language is used. The consumer and buffer are set up, and the asynchronous framework is in a task waiting state. The upper end only needs to call the function as a producer to submit multiple tasks. The consumer obtains the task through the buffer, and returns the result to the producer after concurrent execution. The producer processes the data.

7. A network asset vulnerability data detection method according to claim 1, Features: During the data migration process, all data from the specified data source will be migrated to the target data source. Multiple data sources are supported, and migration is performed using breakpoint resumption, sequential paging scanning, parallel scanning, batch writing, parallel writing, and data condition filtering.

8. A network asset vulnerability data detection method according to claim 7, Features: During the data synchronization process, the incremental operation log of the source data is consumed and replayed on time on the other end data source to achieve the purpose of data synchronization. It supports multiple data sources and uses breakpoint resumption, DDL synchronization, and synchronization and verification methods for synchronization.