A Domain Name System Security Testing Method Based on Automatic Load Generation
Through automatic load generation and fingerprint detection technology, the security testing of domain name systems has been solved, and the lack of security assessment in the online environment of DNS in the existing technology has been achieved, efficient and accurate security testing has been achieved, and the reliability and pertinence of the test has been improved.
Patent Information
- Application Number
- CN202411068317.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The existing technology is difficult to effectively evaluate and test the security of domain name systems (DNS) in online environments, especially when facing abnormal traffic and attack behaviors in complex network environments, traditional methods cannot accurately identify implementation errors and defects of DNS software. , and lack targetedness and reliability.
Using the domain name system security testing method based on automatic load generation, through the construction of a load library and fingerprint detection technology, the security test payload for the target server is automatically generated, combined with the server's fingerprint characteristics for testing, evaluate the vulnerability and risk of nodes, and provide targeted targets. and reliable safety testing.
It improves the efficiency and accuracy of DNS security testing, provides effective means for the field of domain name system security testing, improves the reliability of software security testing, and provides a reliable reference for the security upgrade of DNS server software.
Smart Images

Figure CN118631586B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of network security, and in particular relates to a domain name system security testing method based on automatic load generation. Background Art
[0002] The Domain Name System (DNS) is a multi-level distributed database system based on TCP / IP networks. It maps domain names and IP addresses to each other, allowing users to access the Internet more conveniently. The functions of the domain name system are mainly implemented by forwarders, resolvers, and name servers.
[0003] When the user enters the domain name of the server in the browser address bar, the user host will first retrieve the IP address corresponding to the domain name in its own DNS cache. If it cannot be found locally, it must use other DNS servers on the Internet to forward its domain name, and the server is set as a forwarder. It will be responsible for handling external communications, establishing a cache of external DNS information, and using cached data to resolve most external DNS queries, thereby reducing the response time of communication. DNS name servers are also called authoritative servers, which store authoritative data records of domain names under their jurisdiction. Any domain name server only manages a part of the domain name system. According to the functions of the domain name system, the domain name system can be divided into four different categories: root domain name server, top-level domain name server, authoritative domain name server, and local domain name server. With the help of the authoritative server, the local domain name server sends an iterative retrieval message to the root domain name server, and the host's retrieval to the local domain name server is usually through recursive retrieval. The resolver provides recursive resolution services to users, thereby improving query efficiency.
[0004] Currently, there are two main methods for security testing of network infrastructure (online DNS software and its services):
[0005] The first method is fuzz testing, which discovers software vulnerabilities by providing unexpected inputs to the target system and monitoring abnormal results. The main task of fuzz testing is to find unknown vulnerabilities. Fuzz testing is also used to test and discover software vulnerabilities, but it is more suitable for DNS software security threat testing in offline scenarios rather than evaluating the security of online services.
[0006] The second method is to evaluate based on DNS protocol data packets. It analyzes the server's resolution behavior, data, and configuration to evaluate the system security. This security testing method only uses the RFC specification as the standard. Therefore, this security only considers the server configuration and ignores the defects caused by RFC implementation errors in DNS software. The security fixes made according to this solution are difficult to deal with abnormal traffic and attack behaviors in real complex network environments. Therefore, it is not suitable for security testing of online DNS service scenarios. Summary of the invention
[0007] In order to evaluate the security of the domain name system, provide an effective, reliable and intuitive security testing method for the security risks of the domain name system node equipment, and provide a specific and operational security modification plan based on this, the present invention starts from the idea of software security testing, combines server fingerprint detection and modeling technology, and proposes a domain name system security testing method based on automatic load generation. The method is endorsed by the existing vulnerabilities and security defects in the domain name security field that are clearly traceable. Through the automatic load generation method and target fingerprint detection technology, it can automatically generate test loads for node vulnerabilities, and test and evaluate the vulnerability and risk of nodes.
[0008] A first aspect of the present invention provides a domain name system security testing method based on automatic load generation, the method comprising:
[0009] Step S1, using prior knowledge to form a security test payload to build a payload library, wherein the payload refers to a script for vulnerability exploitation and vulnerability detection;
[0010] Step S2: obtaining a test target for security testing of the target server, and determining a load template and parameter requirements corresponding to the test target from a load library;
[0011] Step S3: According to the parameter requirements, the target server is detected by the detection node, and the fingerprint characteristics of the target server are extracted from the detection process;
[0012] Step S4: calling the load library, combining the fingerprint feature and the load template to generate a security test load, and forming a load execution list, so as to perform a security test on the target server;
[0013] According to the method of the first aspect of the present invention, in step S1, a priori knowledge is used to form a safety test load to construct a load library; specifically, the method includes:
[0014] Collect different types of vulnerabilities, build different types of security test payloads based on vulnerability attack principles and vulnerability attack processes, and store them in the payload library by category;
[0015] Among them, the security test load stored in the load library satisfies the load generation process and target attribute constraints; the load generation process includes the definition of the template, parameters, and protocol of the security test load; the target attribute constraints include the definition of the attack effect, collection method, and evaluation standard of the security test load.
[0016] According to the method of the first aspect of the present invention, in step S2: obtain the test target for security testing of the target server, and the test target refers to the effect expected to be achieved during the security testing process; pull the load template corresponding to the test target and the parameter requirements of the load template from the load library.
[0017] According to the method of the first aspect of the present invention, in step S3, according to the parameter requirements, the target server is detected by the detection node, and the fingerprint characteristics of the target server are extracted from the detection process; specifically including:
[0018] The detection node sends a specific query to the IP address of the target server, receives a specific response corresponding to the specific query returned by the target server, and extracts the fingerprint information of the target server from the specific response;
[0019] The specific query is used to query the version information, type information, and domain name system configuration information of the target server.
[0020] According to the method of the first aspect of the present invention, in step S4, the load library is called, a security test load matching the fingerprint feature is generated based on the load template, and a load execution list is formed, and the security test load in the load execution list is sent to the target server to perform security testing on the target server.
[0021] According to the method of the first aspect of the present invention, in step S4, when executing the security test, a query request is sent to the target server through the observation node, and verification information returned by the target server is received, and the status of the target server is judged based on the verification information to further determine the security risks corresponding to the security test load existing in the target server.
[0022] The second aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, a domain name system security testing method based on automatic load generation according to the first aspect of the present invention is implemented.
[0023] In summary, the present invention adopts a software security testing method, builds a load library, builds a security test load based on existing attack principles and processes, industry vulnerability disclosures, and academic vulnerability knowledge, and combines the fingerprint detection method to obtain the target server fingerprint information. By matching the fingerprint information and the fingerprint model of the load in the load library, the optimal load is automatically selected to perform accurate software security testing on the server, which solves the problem of lack of target targeting and existing knowledge support in security testing in existing methods, improves the test efficiency and accuracy in the field of domain name system security testing, improves the reliability of software security testing methods, and provides reliable DNS server software security upgrade references, etc. Provide effective network measurement means. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 The flowchart of the domain name system security testing method based on automatic load generation according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0027] The main concepts and definitions covered in this article include:
[0028] The Domain Name System (DNS) is a multi-level distributed database system based on TCP / IP networks. It maps domain names and IP addresses to each other, allowing users to access the Internet more conveniently.
[0029] Security testing in software testing refers to the process of verifying the security level of an application and identifying potential security flaws. The main purpose of application-level security testing is to find security risks in the software's own programming and to check the application's ability to prevent illegal intrusions. The testing strategies vary according to different security indicators.
[0030] There are many kinds of testing methods available for security testing. There are three main types of security testing methods:
[0031] Static code security testing: mainly through security scanning of source code, matching the program's data flow, control flow, semantics and other information with its unique software security rule base to find potential security vulnerabilities in the code.
[0032] Dynamic penetration testing: Penetration testing is also a commonly used security testing method. It uses automated tools or manual methods to simulate hacker input and conduct offensive testing on the application system to find out the security vulnerabilities that exist at runtime.
[0033] Program data scanning. For a software with high security requirements, the data cannot be damaged during operation, otherwise it will lead to buffer overflow type attacks. The means of data scanning is usually to perform memory testing, which can find many vulnerabilities such as buffer overflow.
[0034] The payloads mentioned in this article refer to vulnerability exploits and vulnerability detection scripts, namely EXP and PoC.
[0035] Fingerprint detection refers to the process of collecting and analyzing the responses and behaviors of the target system or application to determine its type, version, configuration, and other characteristics. The server fingerprint image formed by the fingerprint detection results helps to understand the basic information and security attributes of the target server. The loads matched and filtered based on this will be more targeted and effective. In other words, invalid loads can be quickly eliminated based on fingerprint detection, and problems with the target server can be more accurately located.
[0036] Fuzz testing is a testing method that discovers software vulnerabilities by providing unexpected inputs to the target system and monitoring abnormal results.
[0037] The present invention proposes a domain name system security testing solution based on automatic load generation.
[0038] The goal of the domain name system security testing method based on automatic load generation is to use prior knowledge to form a load library for security test loads, and based on the fingerprint detection process, detect and draw the fingerprint image of the target node, that is, the detection node sends a specific query to the IP address of the target server to be tested, so that the target server returns a specific response, receives the response and extracts the fingerprint information of the target server. Fingerprint information includes basic DNS attributes and other security attributes, such as whether the server supports EDNS, DNS software version information, whether 0x20 encoding is supported, whether specific options that affect security are enabled, etc. Then, according to the characteristics of the returned fingerprint information, load the load template that exploits the corresponding security defects or covers the target security attribute status (whether a specific DNS server configuration option is enabled), and automatically generate the test load. Finally, the security test system will start the security test process, send the load to be tested to the target server one by one, and after the sending is completed, send a query request through the observation node to verify and judge the server status, and compare the status with the expected status (if the implementation is successful, the DNS server to be tested will be in a state such as denial of service). If the matching condition is met, it can be considered that the node has a security risk corresponding to the test load.
[0039] The core contents include: security test load database, security test load automatic generation process, and domain name system security test framework. For these three contents, three key problems need to be solved: first, how to build a load library based on existing vulnerability knowledge; second, how to make the load library have the ability to automatically generate loads; third, how to perform domain name system security testing based on security test loads. Corresponding to these three contents, specifically, the method described in the present invention mainly includes the following key technical points:
[0040] 1. Design of Safety Test Load Library
[0041] The security test payload library is a database that stores security test payloads and is the basis for automated payload generation. According to the overall system design, the design and implementation of the payload library must address the following two issues: (1) Since the automated payload generation system is based on prior knowledge, in order to establish a payload library that is practical, representative, and usable, it is necessary to collect and evaluate the value of vulnerabilities according to certain standards. (2) Since the attack targets include a variety of different infrastructures such as resolvers, name servers, and forwarders, and the attack effects are varied, different security test implementation methods are significantly different. In order to facilitate the implementation of specific attacks based on different attack effects and different fingerprint features, it is necessary to design a database that is compatible with the overall design to meet the needs of automated security test payload generation.
[0042] Since the composition of the payload library needs to include payloads with practical use value and meet the parameter requirements for automated safety test payload generation, these elements need to be designed:
[0043] 1. Collection and analysis of existing vulnerabilities, and construction of a payload resource library. First, it is necessary to collect various types of vulnerabilities, and then build security test payloads according to the attack principles and attack processes of the vulnerabilities. According to the attributes of the security test payloads, they are classified and stored in the payload resource library so that they can adapt to the process of payload entity generation and target attribute constraints. To this end, pre-requirements are made for the vulnerability attack effects, vulnerability collection methods, and vulnerability assessment standards involved in the process, and vulnerabilities that can achieve online attacks, have accurate attack ranges, high attack effects, and moderate implementation difficulty are selected to build a payload library.
[0044] 2. Organization and construction of the load library The basis for the construction of load resources is the analysis of the attack process of related vulnerabilities. Based on the protocol foundation and vulnerability-related principles, a protocol standard model is constructed. On this basis, protocol constraints are imposed to construct a security test load model, and the automatic generation of security test loads is realized on this basis. The present invention saves the unrendered template of the security test load and the parameter requirements of the automatic generation process in the form of a data table in the mysql database for future use.
[0045] 2. Design of Automated Security Test Payload Generation Process
[0046] The implementation of automated payload generation requires solving and clarifying three issues: (1) fingerprint detection of the target server and its importance, (2) how to design a security test payload template, and (3) the implementation of the automated payload generation process.
[0047] 1. Fingerprint detection of the target server. On the one hand, it is the detection of the target server version information. Generally speaking, security vulnerabilities exist in multiple different software manufacturers and versions, and are related to the system kernel. The version information obtained by the CHAOS type record query and the DNS software version detection tool can be combined to obtain the version information of the target server. This will help narrow the list of security test payloads and improve the efficiency and accuracy of the test. On the other hand, it is the type of server. For example, the resolution behavior of authoritative servers and recursive servers is quite different, and the corresponding vulnerability types are also different. The third aspect is other DNS configuration information, such as EDNS extensions. Fingerprint detection of this information helps to improve the efficiency of the automatic load generation process and improve the accuracy and pertinence of the load.
[0048] The configuration of the DNS software has a great impact on whether there are specific vulnerabilities in the DNS software. Specific vulnerabilities often only exist in servers of specific versions and specific configurations. When the test tool is tested without knowing the fingerprint profile of the target server, it will have to test all known payloads. This has a great negative impact on the test efficiency and will cause the test speed to drop significantly. In addition, in the absence of specific fingerprint information, the test tool cannot complete the specific information for the test payload, resulting in the payload being unavailable. Therefore, it is very necessary to introduce the fingerprint detection stage and obtain the fingerprint information of the target server. Relying on the fingerprint information, you can quickly understand which payloads are easy to take effect, which greatly reduces the time cost of the test. At the same time, it also improves the reliability and availability of the test, and makes it easy to generate a reliable security test payload queue.
[0049] 2. The security test template reserves the IP, port and other parameter bits of the target server. Based on the fingerprint information of the specified target, the corresponding positions are filled and the template is rendered to generate the security test payload.
[0050] 3. According to the overall design, the automated payload generation process includes: fingerprint detection, payload resource loading, payload list generation, target fingerprint constraint, payload generation process, attack implementation and effect verification. The present invention designs corresponding components respectively and calls corresponding fields in the payload library to implement corresponding functions.
[0051] 3. Design of Domain Name System Security Testing Framework
[0052] Domain name system security testing requires a testing framework as support. This technical point mainly solves this problem. With the DNS server to be tested as the center, different components are set to complete different functions. (1) Security test implementation point. Automatically generate security payloads and implement the sending and implementation process of security test payloads. (2) Auxiliary DNS server. The implementation of some attacks, such as amplification attacks, requires specific recursive resolvers to provide resolution services. Depending on their functions, such servers can be resolvers, authoritative servers, or forwarders. (3) Target anomaly observation point. After the attack is implemented, it is necessary to constantly observe whether the security test payload is effective on the target server. A target anomaly observation point is established to simulate normal user behavior, provide sending of specific normal requests, and determine whether the target has specific abnormal responses, behaviors, or server status. Based on this, it is determined whether the payload is effective, that is, whether the corresponding DNS server to be tested has the security threat.
[0053] The first aspect of the present invention provides a domain name system security testing method based on automatic load generation. Figure 1 As shown, the method includes:
[0054] Step S1, using prior knowledge to form a security test payload to build a payload library, wherein the payload refers to a script for vulnerability exploitation and vulnerability detection;
[0055] Step S2: obtaining a test target for security testing of the target server, and determining a load template and parameter requirements corresponding to the test target from a load library;
[0056] Step S3: According to the parameter requirements, the target server is detected by the detection node, and the fingerprint characteristics of the target server are extracted from the detection process;
[0057] Step S4: calling the load library, combining the fingerprint feature and the load template to generate a security test load, and forming a load execution list, so as to perform a security test on the target server;
[0058] According to the method of the first aspect of the present invention, in step S1, a priori knowledge is used to form a safety test load to construct a load library; specifically, the method includes:
[0059] Collect different types of vulnerabilities, build different types of security test payloads based on vulnerability attack principles and vulnerability attack processes, and store them in the payload library by category;
[0060] Among them, the security test load stored in the load library satisfies the load generation process and target attribute constraints; the load generation process includes the definition of the template, parameters, and protocol of the security test load; the target attribute constraints include the definition of the attack effect, collection method, and evaluation standard of the security test load.
[0061] According to the method of the first aspect of the present invention, in step S2: obtain the test target for security testing of the target server, and the test target refers to the effect expected to be achieved during the security testing process; pull the load template corresponding to the test target and the parameter requirements of the load template from the load library.
[0062] According to the method of the first aspect of the present invention, in step S3, according to the parameter requirements, the target server is detected by the detection node, and the fingerprint characteristics of the target server are extracted from the detection process; specifically including:
[0063] The detection node sends a specific query to the IP address of the target server, receives a specific response corresponding to the specific query returned by the target server, and extracts the fingerprint information of the target server from the specific response;
[0064] The specific query is used to query the version information, type information, and domain name system configuration information of the target server.
[0065] According to the method of the first aspect of the present invention, in step S4, the load library is called, a security test load matching the fingerprint feature is generated based on the load template, and a load execution list is formed, and the security test load in the load execution list is sent to the target server to perform security testing on the target server.
[0066] According to the method of the first aspect of the present invention, in step S4, when executing the security test, a query request is sent to the target server through the observation node, and verification information returned by the target server is received, and the status of the target server is judged based on the verification information to further determine the security risks corresponding to the security test load existing in the target server.
[0067] In some embodiments, since the test is a black box test (the tester does not know the configuration and other information of the DNS server to be tested before the test begins, and white box testing can also be implemented if the authority allows), the fingerprint information and service operation status of the target server are not allowed to be directly obtained. Based on fingerprint detection and server service status detection, security testing can be implemented without the need for control of the target server to ensure the authority security of the controller of the tested server. In the current network environment, the software used by the DNS server is almost all known open source DNS software and there is a lag in version updates, and security defects are widespread. After obtaining the fingerprint features, the security test load formed by the known vulnerability knowledge of the open source DNS software can verify the security of the domain name system, and it has high effectiveness, pertinence and reliability.
[0068] In some embodiments, the domain name security system testing process is as follows:
[0069] (1) Build a security test auxiliary DNS server including a recursive resolver, an authoritative server, and a forwarder, and ensure that it is within the access range of the server to be tested, and is responsible for providing security test loads to achieve the special needs of the attack target. For example, the public network DNS server with IP address: X1.X2.X3.X4;
[0070] (2) The test system is guided by the input test target (attack effect to be tested), pulls the corresponding load template and information from the load database, and generates a load template attribute list;
[0071] (3) The payload selector detects the fingerprint information of the target to be tested according to the input IP address of the attack target and the parameter requirements in the attribute list. First, the method of detecting fingerprint information is: according to different program flows, send specific detection data packets such as DNS software version, EDNS0, 0x20 support, target server type, etc., and determine its fingerprint information based on the value, delay, and behavior pattern of the response packet. Finally, the fingerprint is integrated into a fingerprint profile of the target server.
[0072] (4) The payload pruner compares the fingerprint feature requirements of the attack implementation in the payload list with the actual results of fingerprint detection, and removes the security test payloads that do not meet the attack conditions;
[0073] (5) Based on the results of fingerprint detection and the basic target information entered by the user, the payloads in the payload list are automatically rendered one by one (filling in parameters and script generation), and finally the security test payload is saved in the payload list;
[0074] (6) Load the security test payloads one by one from the payload list, and attack the target server to be tested with the specified IP address X1.X2.X3.X4. At the same time, the target anomaly observation point implements the effect verification process based on the attack in the attribute list, and sends a request to the target server to verify its service status;
[0075] (7) Save the security test payload and attack implementation effect verification results, generate and save them as a detection report.
[0076] In some embodiments, by investigating current security issues, the effects of vulnerability attacks are summarized: remote code execution, denial of service attacks, amplification attacks, dynamic updates of DNS records, subdomain takeover, DNSSEC-related vulnerabilities, cache poisoning, subdomain takeover vulnerabilities, etc.
[0077] The collection of DNS security vulnerabilities is mainly based on relevant findings in academia and vulnerability disclosures in the industry. Since DNS-related vulnerabilities are highly linked to specific software and software versions, we can use DNS-related software with a high adoption rate in the current network environment as a clue to build a keyword list of manufacturer and product names, use various vulnerability databases for automatic collection, and screen and organize the generated list according to the pre-agreed evaluation method. Whether a vulnerability is adopted requires certain evaluation criteria, which are mainly divided into the following aspects: the scope of the vulnerability, the degree of harm of the vulnerability, the exploitability, and the details of the vulnerability.
[0078] The security test payload library is a payload library with unrendered payload templates as the core. The payload database contains unrendered security test payload templates and annotates the security test payload related attributes: payload name, payload source, vulnerability type, DNS software type, DNS software name, vulnerability applicable version conditions, security test payload template, payload parameter dependency, additional parameters, and attack effect verification process, as shown in Table 1.
[0079] Table 1: Safety test load library structure
[0080]
[0081] In some embodiments, taking the dynamic update security test payload as an example, the attack effect is: maliciously inserting a DNS resource record into the target server record. The authoritative server to be tested is configured on a server with a public IP of Y1.Y2.Y3.Y4.
[0082] (1) Establish a host in the intranet or public network that is responsible for detecting the effect of the attack by sending specific requests. For example, the intranet centos host node with IP address: Z1.Z2.Z3.Z4;
[0083] (2) Input the expected attack effect of polluting the corresponding server DNS record into the test system, pull the corresponding payload template and information from the payload database, and generate a payload template attribute list. The payload list at this time includes all types of payloads such as dynamic updates and cache poisoning;
[0084] (3) When the payload list reaches the payload selector, according to the goal set by the tester, "maliciously inserting a DNS resource record into the target server record", the tool needs to detect all the fingerprint information indicated by the payload template attribute list (related to "maliciously inserting a DNS resource record into the target server record"). For example, in this example, according to the input IP Y1.Y2.Y3.Y4 of the attack target and the parameter requirements in the attribute list, it is confirmed that the target host should support the EDNS extension and can complete TSIG-related services. Therefore, the support for EDNS extension and TSIG-related services should be detected. At this point, the test process enters the fingerprint detection stage, sending various detection data packets to detect the fingerprint information of the target to be tested, and forming a fingerprint profile of the DNS server to be tested.
[0085] (4) The payload pruner compares the fingerprint feature requirements of the attack implementation in the payload list with the actual results of the fingerprint detection. If it is found that the target server version, server type and other related fingerprints only meet the attack conditions with a small number of payloads, the security test payloads that do not meet the attack conditions are removed, and the payloads with sufficient conditions are retained;
[0086] (5) Based on the results of fingerprint detection and the target IP information input by the user, fill in the parameters to generate a payload script including dynamic updates of the payload, and save the security test payload to the payload list;
[0087] (6) Load the security test payloads one by one from the payload list, and attack the target server to be tested with the specified IP address Y1.Y2.Y3.Y4. The generated payload will insert a malicious A record in the target server, pointing the IP address F1.F2.F3.F4 to the domain name www.example.com. According to the attack implementation effect verification process instructions in the attribute list, the IP address corresponding to www.example.com should be queried through an A record query request to verify its service status. If the A record IP address of the response knowledge is the set F1.F2.F3.F4, this dynamic update vulnerability exists in the server;
[0088] (7) Save the security test payload and attack implementation effect verification results, generate and save them as a detection report.
[0089] The second aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, a domain name system security testing method based on automatic load generation according to the first aspect of the present invention is implemented.
[0090] In summary, the present invention adopts a software security testing method, builds a load library, builds a security test load based on existing attack principles and processes, industry vulnerability disclosures, and academic vulnerability knowledge, and combines the fingerprint detection method to obtain the target server fingerprint information. By matching the fingerprint information and the fingerprint model of the load in the load library, the optimal load is automatically selected to perform accurate software security testing on the server, which solves the problem of lack of target targeting and existing knowledge support in security testing in existing methods, improves the test efficiency and accuracy in the field of domain name system security testing, improves the reliability of software security testing methods, and provides reliable DNS server software security upgrade references, etc. Provide effective network measurement means.
[0091] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.
Claims
1. A domain name system security testing method based on automatic load generation, It is characterized in that The method comprises: Step S1, using prior knowledge to form a security test payload to build a payload library, wherein the payload refers to a script for vulnerability exploitation and vulnerability detection; Step S2: obtaining a test target for security testing of the target server, and determining a load template and parameter requirements corresponding to the test target from a load library; Among them, the test objectives are: inputting expected pollution into the test system, corresponding to the attack effect of the server DNS record; Step S3: According to the parameter requirements, the target server is detected by the detection node, and the fingerprint characteristics of the target server are extracted from the detection process; Step S4: calling the load library, combining the fingerprint feature and the load template to generate a security test load, and forming a load execution list, so as to perform a security test on the target server; specifically including: The payload pruner compares the fingerprint feature requirements of the attack implementation in the payload list with the actual results of fingerprint detection, and removes the security test payloads that do not meet the attack conditions; According to the results of fingerprint detection and the basic target information input by the user, the loads in the load list are automatically rendered one by one, and finally the security test load is saved in the load list; Load security test payloads one by one from the payload list and attack the target server to be tested; The fingerprint features include version information, type information, and domain name system configuration information of the target server.
2. According to claim 1, a method for testing the security of a domain name system based on automatic load generation, It is characterized in that In the step S1, a priori knowledge is used to form a safety test load to construct a load library; specifically, the step includes: Collect different types of vulnerabilities, build different types of security test payloads based on vulnerability attack principles and vulnerability attack processes, and store them in the payload library by category; Among them, the security test load stored in the load library satisfies the load generation process and target attribute constraints; the load generation process includes the definition of the template, parameters, and protocol of the security test load; the target attribute constraints include the definition of the attack effect, collection method, and evaluation standard of the security test load.
3. According to claim 2, a method for testing the security of a domain name system based on automatic load generation, It is characterized in that In the step S2: obtaining a test target for security testing of the target server, wherein the test target refers to the effect expected to be achieved during the security testing process; and pulling a load template corresponding to the test target and parameter requirements of the load template from the load library.
4. According to claim 3, a method for testing the security of a domain name system based on automatic load generation, It is characterized in that In the step S3, according to the parameter requirements, the target server is detected by the detection node, and the fingerprint features of the target server are extracted from the detection process; specifically, the following steps are included: The detection node sends a specific query to the IP address of the target server, receives a specific response corresponding to the specific query returned by the target server, and extracts the fingerprint information of the target server from the specific response; The specific query is used to query the version information, type information, and domain name system configuration information of the target server.
5. According to claim 4, a method for testing the security of a domain name system based on automatic load generation, It is characterized in that In step S4, the load library is called to generate a security test load matching the fingerprint feature based on the load template, and a load execution list is formed. The security test load in the load execution list is sent to the target server to perform security testing on the target server.
6. A method for testing the security of a domain name system based on automatic load generation according to claim 5, It is characterized in that In step S4, when executing the security test, a query request is sent to the target server through the observation node, and verification information returned by the target server is received. The state of the target server is judged based on the verification information to further determine the security risks corresponding to the security test load in the target server.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the domain name system security testing method based on automatic load generation according to any one of claims 1 to 6 is implemented.
