A method for building a local product rule database

By scanning IP segments and manually intervening to define feature information, a local product rule database was established, which solved the problem of difficulty in obtaining product rules in cyberspace surveying and mapping, achieved rapid search and update, and improved the efficiency and accuracy of cyberspace surveying and mapping .

CN112000852BActive Publication Date: 2024-11-15BEIJING BAIMAHUI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910598186.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-05-27
Filing Date
2019-07-04
Publication Date
2024-11-15
Estimated Expiration
2039-07-04

AI Technical Summary

Technical Problem

During the process of cyberspace surveying and mapping, it is difficult for the existing technology to effectively obtain and manage product rule information of massive Internet hardware, resulting in difficulty in exploring cyberspace security measurement and situation.

Method used

By scanning the open ports of the IP network segment, obtaining the original product string information, manually intervening in defining feature information, establishing a local product rule database, using regular matching and maintaining product rules, reducing product rule labeling time, and achieving rapid search and update.

Benefits of technology

It realizes rapid acquisition and management of product rules, reduces product rules labeling time, improves the efficiency and accuracy of cyberspace surveying and mapping, and supports cyberspace security measurement and situation exploration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000852B_ABST
    Figure CN112000852B_ABST
Patent Text Reader

Abstract

The present invention provides a method for establishing a local product rule database, including: scanning the open ports of an IP network segment to obtain the original product string information of each port; processing the original product string information of each port to obtain a fragment string with the same expression in the original product string, and defining the fragment string as the characteristic information of the product rule by manual intervention; establishing a product rule corresponding database locally, establishing, modifying or deleting known product rule information in the database, and each product rule corresponding record in the database includes the product rule and the characteristic information of the product rule; matching the characteristic information of the classification group in the product rule corresponding database, establishing a local product rule database, and storing the corresponding relationship between the product rule and the open port of the IP network segment. The method of the present invention establishes a product rule database locally, thereby providing the possibility of intuitively providing and displaying product rules to users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for establishing a local product rule database, and in particular to a method for establishing a product rule database in a network space surveying and mapping process. Background Art

[0002] Cyberspace mapping is a form of network asset management. By scanning all or specific IP segments, all port information of the IP segment is obtained. The ports of the IP segment correspond to hardware. In some application scenarios, the product rules or fingerprint information of the hardware is what users want. Therefore, it is necessary to establish a product rule database locally so that users can provide this information when they need to obtain the product rules of the hardware involved in the specified IP segment.

[0003] Hardware products are updated quickly, and manufacturers frequently change. In addition, the hardware composition of the entire Internet is also very complex. For example, on the Internet, there are both hardware devices from the early days of the Internet and the latest hardware devices. The hardware devices on the Internet are massive, which brings certain difficulties to cyberspace mapping. In summary, it is necessary to establish a product rule database locally to solve the problem of understanding product rules in cyberspace mapping.

[0004] CN108769018A discloses a multi-dimensional and multi-granular cyberspace security measurement method, which divides the network system into three levels according to logical stratification, namely reliability security, environmental security, and vulnerability security; according to these three levels, the indicators in the network system are extracted and selected, and the cyberspace security indicator system is established by using the system engineering principle and the hierarchical analysis method AHP; on the basis of the constructed cyberspace security indicator system, each level is divided into dimensions; reliability security is measured by weak connectivity dimensions and strong connectivity dimensions, environmental security is measured from two dimensions of network assets and services and asset indicator change dimensions, and vulnerability security is measured from vulnerability dimensions and attack graph dimensions; granularity is added on the basis of levels and dimensions, and within the range specified by the granularity, the measurement values ​​of each level and each dimension are obtained, and the sum is the cyberspace security measurement result. The invention proposes a measurement standard for the results after cyberspace mapping, but the implementation of this method first requires the mastery of the product rule information of cyberspace, and on this basis, the cyberspace security measurement can be accurately performed.

[0005] CN106936637A discloses a panoramic exploratory visualization field of cyberspace situation. In view of the problems existing in the prior art, a visualization method and device are provided. Human-computer interaction is carried out through a graphical interface, and the knowledge represented by the basic situation data, attack situation data and protection situation data of the cyberspace is expressed in a visual way. Users capture the subtle situations and changes of the focus based on the interactive exploration method. The evolution law of the cyberspace situation can be discovered from different angles of different views. The invention also first needs to master the product rule information of the cyberspace.

[0006] It can be seen that mastering the product rules of cyberspace is the basis for cyberspace mapping and subsequent evaluation. The present invention proposes a method for establishing a local product rule database. Summary of the invention

[0007] The present invention relates to a method for establishing a local product rule database, comprising: scanning open ports of an IP network segment to obtain product original string information of each port; processing the product original string information of each port to obtain a fragment string with the same expression in the product original string, and defining the fragment string as characteristic information of a product rule by manual intervention; establishing a product rule corresponding database locally, establishing, modifying or deleting known product rule information in the database, wherein each product rule corresponding record in the database includes a product rule name and characteristic information of the product rule; using a specific regular expression for a suspected product rule name to be captured by a system to filter out the product name from all relevant product original strings; after obtaining the product name, batch-generating a search statement for the product rule according to the rules of this batch of products, establishing a local product rule database, and storing a search statement related to the product rule name and the product; using the product name to call the search statement, so as to further search and obtain product data.

[0008] The process of matching the original product string in the product rule corresponding database includes the following steps: matching the original product string with the product rule corresponding records in the product rule corresponding database one by one; if the match is successful, exiting the matching and giving the product rule name; if the match is unsuccessful, continuing to match the next product rule name corresponding record; if all product rule corresponding records in the product rule corresponding database cannot be matched, giving that the product rule name match does not exist.

[0009] Each product rule corresponding record in the local product rule corresponding database includes at least the product rule and the characteristic information of the product rule; if the product rule changes, the database is maintained through manual intervention to correspond the changed product rule with the characteristic information of the product rule; if the correspondence between the product rule and the characteristic information of the product rule changes, a new product rule corresponding record of the product rule and the characteristic information of the product rule is established through manual intervention, or the characteristic information of the product rule is added to the existing product rule corresponding record.

[0010] After the local product rule corresponding database is maintained, the product rule database is automatically updated; the updating method is to maintain each record in the product rule database using the maintained product rule corresponding record.

[0011] The local product rule database stores product rule content including IP related information, including IP, IP latitude and longitude, ASN, country, province, etc. This information has been entered before the rules are automatically collected.

[0012] The way to maintain each record in the product rule database is to first correspond the product rules to the classification groups one by one, and when it is necessary to display the product rules of the open ports of the IP network segment, obtain the product rule information of the open ports of the IP network segment from the classification group.

[0013] After the local product rule database is established, when the search engine calls the local product rule database, the search statement of the product rules in the local product rule database is provided to the search engine according to the instruction of the search engine.

[0014] The local product rule database has a distributed architecture.

[0015] The beneficial effects of the present invention are:

[0016] 1) The present invention can provide product rules for users by establishing a local product rule database;

[0017] 2) The present invention can reduce the time for matching product rules with the original product character strings representing the product rules by establishing a product rule corresponding database. In the case of a large IP network segment or even a full IP network segment, the time for marking product rules is effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Flow chart of the method of the present invention. DETAILED DESCRIPTION

[0019] See also Figure 1The flowchart of the method of the present invention is presented. In the process of cyberspace mapping, it is necessary to understand the product rules of the hardware. Product rules can also be called fingerprints. Usually, product rules are entered one by one. The process of entering product rules is very cumbersome and consumes a lot of manpower. In fact, product rules have certain rules. For example, if a website contains a string such as "var productname=...", it is followed by Huawei products; for example, Samsung's CLX printers all have a common feature that the header contains the Samsung CLX string, so information can be collected according to this rule, so that the product names of Samsung's CLX series can be collected. For example, if the page contains location.href="login.html?logoffSubmit", it is a series of Sharp printers. By collecting all the data containing this string, we can analyze the related product names. For another example, if the page contains class="forBgsH1" and Netgear, it is a Netgear firewall. By collecting these pages, we can analyze the product names of this series of Netgear. The system can collect data according to such rules and then analyze the data, so as to collect the rule name.

[0020] See also Figure 1 Flowchart, first scan the open ports of the IP network segment to obtain the original string information of the product of each port; for example, the website contains a string like "var productname=...", by identifying the string, we can find "var productname=..."; the strings containing "varproductname=...." are all a certain series of products, and the product name is after productname=. At this time, the product name of each page will be matched through regular expression, so that all the product names of this rule are obtained, and according to this rule we can automatically generate specific product rules, for example, var productname="HG8245D", then the name of the product rule is HG8245D.

[0021] A product rule corresponding database is established locally. After collecting characteristic information such as "var productname =...", this characteristic information is manually labeled and used to establish a product rule corresponding record in the database. The product rule corresponding record includes the product rule and the characteristic information of the product rule. As the number of records in the database increases, new hardware needs to be updated. After identifying new characteristic information, the database needs to be maintained.

[0022] As the IP network segment scan proceeds, the scanned information is matched according to regular expressions to match the names of suspected products. The product rule corresponding database gives product rule suggestions based on the matching results. Product rules can be added directly to the product rule database based on the product rule suggestions, or they can be added to the product rule database after manual intervention based on the suggestions. Of course, the original product string can also be directly matched in the product rule corresponding database. The product rule corresponding database gives product rule suggestions based on the matching results. Product rules can be added directly to the product rule database based on the product rule suggestions, or they can be added to the product rule database after manual intervention based on the suggestions. The database structure of the local product rule database is pre-determined. The database defines various attribute field information. Product rules are used to record search statements for searching products in the database. When the user searches for the product, he directly enters the product name, and the database will correspond to the search statement for searching the product, and the corresponding product data can be found through the search statement. At this point, a local product rule database has been established. After establishing a local product rule database, you can search for products using the rule name (natural language) of the product rule through the FOFA search engine, or create other search terms to obtain information about the product, including IP, port, geographical location of unknown IP, ASN number, product banner information, etc., and then display this information to users through the interface.

[0023] In the present invention, the characteristic information of the classification group needs to be matched in the product rule corresponding database. The matching method is to match the characteristic information with the product rule corresponding records in the product rule corresponding database one by one; if the match is successful, the matching is exited, and the product rule suggestion is given, and the product rule suggestion is added to the database after automatic or manual intervention; if the match is unsuccessful, the next product rule corresponding record is matched until the matching result is achieved. If all the product rule corresponding records in the product rule corresponding database cannot be matched, the product rule matching failure is given. At this time, manual intervention is required to give a new product rule for the unmatched situation.

[0024] Each product rule corresponding record in the local product rule corresponding database includes at least the product rule and the characteristic information of the product rule; when it is found through the big data method that the characteristic information of the classification group has no corresponding product rule record in the local product rule corresponding database, the product rule is determined for the characteristic information through manual intervention, and the product rule and the characteristic information are added to the local product rule corresponding database as a new product rule corresponding record in the local product rule corresponding database; if the product rule changes, the database is maintained through manual intervention to correspond the changed product rule with the characteristic information of the product rule; if the corresponding relationship between the product rule and the characteristic information of the product rule changes, a new product rule and a product rule corresponding record of the characteristic information of the product rule are established through manual intervention, or the characteristic information of the product rule is added to the existing product rule corresponding record. For example, characteristic information such as "varproductname=..." is recorded in the database. If other characteristic information is found later and has similar rules to the aforementioned characteristic information, similar product rules can be set for the other characteristic information.

[0025] For example, feature information such as "var productname = ..." can be maintained through manual intervention, and the product rule database is updated. The local product rule database stores product rules and IP network segment open ports one by one; the one-by-one correspondence is to correspond product rules to IP network segment open ports one by one. The one-by-one correspondence method does not require the establishment of a group correspondence table, and updates need to be updated one by one. Although the database is extremely large, since product features are rarely updated, this method is used to establish the database.

[0026] After the local product rule database is established, when the search engine calls the local product rule database, the product rules and IP network segment open port information in the local product rule database are provided to the search engine according to the search engine's instructions. For example, characteristic information such as "var productname = ..." is followed by Huawei's product rules. When searching for Huawei specific products in the search engine, the interface can be displayed based on IP network segments, product types, etc.

[0027] The above contents are further detailed descriptions of the present invention in combination with specific preferred technical solutions, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. A method for establishing a local product rule database, comprising: Scan the open ports of the IP network segment to obtain the original string information of the product at each port; Process the original product string information of each port, obtain the fragment string with the same expression in the original product string, and define the fragment string as the characteristic information of the product rule through manual intervention; A product rule corresponding database is established locally, and known product rule information is created, modified or deleted in the database. Each product rule corresponding record in the database includes the product rule name and characteristic information of the product rule; For suspected product names that the system wants to capture, specific regular expressions are used to filter out product names from all relevant product original character strings. After obtaining the product names, search statements for product rules are generated in batches according to the rules of this batch of products, and a local product rule database is established to store product rule names and search statements related to the product. The search statement is called using the product name to further search and obtain product data.

2. The method according to claim 1, characterized in that: The process of matching the original product string in the product rule corresponding database includes the following steps: The original product string is matched with the product rule corresponding records in the product rule corresponding database one by one; if the match is successful, the matching is exited and the product rule name is given; if the match is unsuccessful, the next product rule corresponding record is matched; if all product rule corresponding records in the product rule corresponding database cannot be matched, the product rule name match does not exist is given.

3. The method according to claim 1, characterized in that: Each product rule corresponding record in the local product rule corresponding database includes at least the product rule and the characteristic information of the product rule; if the product rule changes, the database is maintained by manual intervention to correspond the changed product rule with the characteristic information of the product rule; If the correspondence between product rules and their characteristic information changes, a new product rule correspondence record between them is created through manual intervention, or the characteristic information of the product rules is added to the existing product rule correspondence record.

4. The method according to claim 1, characterized in that: After the local product rule corresponding database is maintained, the product rule database is automatically updated; the updating method is to maintain each record in the product rule database using the maintained product rule corresponding record.

5. The method according to claim 1, characterized in that: The local product rule database stores product rule content including IP related information.

6. The method according to claim 5, characterized in that: IP related information includes IP, IP latitude and longitude, ASN, country and province.

7. The method according to claim 1, characterized in that: The way to maintain each record in the product rule database is to first correspond the product rules to the classification groups one by one, and when it is necessary to display the product rules of the open ports of the IP network segment, obtain the product rule information of the open ports of the IP network segment from the classification group.

8. The method according to claim 1, characterized in that: After the local product rule database is established, when the search engine calls the local product rule database, the search statement of the product rules in the local product rule database is provided to the search engine according to the instruction of the search engine.

9. The method according to claim 1, characterized in that: The local product rule database has a distributed architecture.