Risk assessment method and system for dual-stack parser
Through multi-dimensional security risk evaluation indicators and detection analysis, the security risks of dual-stack parsers are quantitatively assessed, solving the problem of information leakage and security threats of dual-stack parsers, and improving risk investigation capabilities.
Patent Information
- Application Number
- CN202410476353.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-08-23
AI Technical Summary
While dual-stack parsers provide a wider range of services, there are information leaks and potential security threats. It is difficult to effectively assess their security risks with existing technology.
By establishing multi-dimensional security risk assessment indicators, including dual-stack security protection measure configuration awareness, dual-stack component implementation effect awareness, and IPv6 address embedded information awareness, detection analysis is used to calculate the security risk assessment score of the dual-stack parser and quantify its potential Security risks.
It realizes rapid risk investigation and quantitative assessment of security risks for dual-stack parsers, and improves the ability to identify and prevent potential security threats.
Smart Images

Figure CN118540102A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology and relates to a dual-stack parser risk assessment method and system. Background Art
[0002] The Domain Name System (DNS) is a distributed network directory service that carries the addressing needs of most applications on the Internet. Its main structure includes clients, resolvers, and authoritative domain name servers. The resolver, as an important intermediate component between the client and the server, is responsible for receiving the client's domain name resolution request and actively querying the authoritative domain name server for records. It is a very important network infrastructure.
[0003] At the same time, in 1996, the Internet Engineering Task Force (IETF) designed IPv6 (Internet Protocol Version 6) to replace the IPv4 protocol to solve the problem of address shortage. The number of addresses is said to be enough to encode an address for every grain of sand in the world. This has greatly promoted the rapid development of various upper-level Internet applications, including DNS. Since IPv4 and IPv6 are incompatible with each other, and network applications based on the two protocols have their own domain name resolution requirements, dual-stack resolvers that have the ability to serve both protocols are very popular and play an important role in the DNS ecosystem.
[0004] From the perspective of cyberspace security, dual-stack resolvers have a wider range of services but also increase the potential attack surface. Due to differences in the security protection configuration, component implementation, and IPv6 address allocation methods of different dual-stack resolvers, some dual-stack resolvers have information leakage problems and even face potential security threats.
[0005] Therefore, a new risk assessment method is urgently needed to improve the risk investigation capability for dual-stack parsers. Summary of the invention
[0006] In view of the problems existing in the prior art, the purpose of the present invention is to provide a dual-stack parser risk assessment method and system. The present invention is divided into two steps: potential security risk mining and discovery, and parser security risk quantitative assessment.
[0007] First, the first step is to establish security risk evaluation indicators in multiple dimensions and obtain measurement results through actual packet detection; the second step is to calculate the overall score based on the detection results of each evaluation indicator to measure the severity of the risk of the parser, that is, the quantitative assessment of the parser security risk.
[0008] The dual stack parser risk assessment method of the present invention comprises:
[0009] Dual-stack security protection configuration awareness. Through the detection of multiple network protocols, the protection measures of the target dual-stack resolver to be evaluated on the IPv4 and IPv6 protocols are analyzed, focusing on analyzing whether the protection strength under the two protocols is consistent, so as to evaluate whether the security protection configuration of the target dual-stack resolver is sound.
[0010] The dual-stack component implementation effect perception: By analyzing the network behavior of the target dual-stack resolver on the IPv4 and IPv6 protocols, the implementation effect of the target dual-stack resolver on dual-stack support is analyzed.
[0011] IPv6 address embedded information perception: Analyze the IPv6 address string of the target dual-stack resolver to determine whether the set sensitive semantics and device information can be restored from it.
[0012] Dual-stack parser risk assessment. With the analysis results of the first three steps, a point system is used to calculate the corresponding dual-stack parser security risk assessment score to quantify the severity of potential security risks faced by different dual-stack parsers.
[0013] The technical solution of the present invention is:
[0014] A dual-stack parser risk assessment method, the steps of which include:
[0015] 1) Using the dual-stack security protection configuration perception module to detect the protection strength of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol, and evaluating the security protection configuration index value of the target dual-stack resolver according to the protection strength;
[0016] 2) Using the dual-stack component implementation effect perception module to detect the network behavior performance of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol, and evaluating the implementation effect index value of the target dual-stack resolver on dual-stack support based on the network behavior performance;
[0017] 3) parse the IPv6 address string of the target dual-stack resolver using the IPv6 address embedded information perception module, and detect whether the parsing result contains the set sensitive semantics and device information; evaluate the information leakage index value of the target dual-stack resolver based on the detection result;
[0018] 4) The dual-stack parser risk assessment module calculates the security risk assessment score of the target dual-stack parser based on the security protection configuration index value, the implementation effect index value of dual-stack support and the information leakage index value of the target dual-stack parser, and quantifies the degree of security risk faced by the dual-stack parser.
[0019] Furthermore, the method for detecting the protection strength of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol and obtaining the security protection configuration index value of the target dual-stack resolver is as follows:
[0020] 11) Send an ICMP Echo request to the target dual-stack resolver. If a response is received, the risk value increases by one;
[0021] 12) Send an ICMPv6 Echo request to the target dual-stack resolver. If a response is received, the risk value increases by one.
[0022] 13) Send a domain name query to the IPv4 address of the target dual-stack resolver. If a response is received, the risk value is increased by one;
[0023] 14) Send a domain name query to the IPv6 address of the target dual-stack resolver. If a response is received, the risk value increases by one;
[0024] 15) Sending a request to the IPv4 address of the target dual-stack resolver by forging an arbitrary source IP address to detect whether the DNS service of the target dual-stack resolver is configured with source address authentication; if it is determined that source address authentication is not configured, the risk value of the target dual-stack resolver is increased by one;
[0025] 16) Sending a request to the IPv6 address of the target dual-stack resolver by forging an arbitrary source IP address to detect whether the DNS service of the target dual-stack resolver is configured with source address authentication; if it is determined that source address authentication is not configured, the risk value of the target dual-stack resolver is increased by one;
[0026] 17) Sending the detection tool zmap for constructing ICMP packets and the detection tool IPv6-Toolkit optimized for the IPv6 protocol to the target dual-stack resolver respectively, and depending on whether the protection measures of the target dual-stack resolver on the IPv4 / IPv6 protocols are consistent, the risk value is increased by one for each pair of inconsistent protection measures;
[0027] 18) The security protection configuration index value of the target dual-stack parser is calculated based on the risk values obtained in steps 11) to 17).
[0028] Furthermore, the method for evaluating the information leakage index value of the target dual-stack parser is as follows: the IPv6 address embedded information perception module parses the IPv6 address string of the target dual-stack parser; if the IPv6 address string contains the MAC information of the device, the risk value is increased by one; if the IPv6 address is allocated based on the IPv4 address embedding method, the risk value is increased by one; and then the information leakage index value of the target dual-stack parser is obtained according to the detection results.
[0029] Furthermore, the set sensitive semantics is that the IPv6 address includes allocation based on the IPv4 address embedding method; the device information is the MAC information of the device deployed by the target dual-stack resolver.
[0030] Furthermore, the target dual-stack resolver's implementation effect indicator value for dual-stack support is a cross-IP stack amplification attack risk value.
[0031] Furthermore, the dual-stack component implementation effect perception module sends an IPv4DNS request and an IPv6 DNS request to the target dual-stack resolver respectively. If the size difference between the response data packet corresponding to the IPv4 DNS request and the response data packet corresponding to the IPv6 DNS request is greater than a set threshold, it is determined that there is a risk of cross-IP stack amplification attack, and the implementation effect index value of the target dual-stack resolver for dual-stack support is obtained.
[0032] Furthermore, the set threshold is 1000 bytes.
[0033] A dual-stack resolver risk assessment system, characterized by comprising a dual-stack security protection measures configuration perception module, a dual-stack component implementation effect perception module, an IPv6 address embedded information perception module and a dual-stack resolver risk assessment module;
[0034] The dual-stack security protection measures configuration perception module is used to detect the protection strength of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol respectively, and evaluate the security protection configuration index value of the target dual-stack resolver according to the protection strength;
[0035] The dual-stack component implementation effect perception module is used to detect the network behavior performance of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol respectively, and evaluate the implementation effect index value of the target dual-stack resolver on the dual-stack support according to the network behavior performance;
[0036] The IPv6 address embedded information perception module is used to parse the IPv6 address string of the target dual-stack resolver and detect whether the parsing result contains the set sensitive semantics and device information; and evaluate the information leakage index value of the target dual-stack resolver according to the detection result;
[0037] The dual-stack parser risk assessment module calculates the security risk assessment score of the target dual-stack parser based on the security protection configuration index value, the implementation effect index value of dual-stack support and the information leakage index value of the target dual-stack parser, and quantifies the degree of security risk faced by the dual-stack parser.
[0038] A server, characterized in that it comprises a memory and a processor, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program comprises instructions for executing each step in the above method.
[0039] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the above method when executed by a processor.
[0040] The advantages of the present invention are as follows:
[0041] The present invention establishes risk assessment indicators in different dimensions, analyzes the security status of the dual-stack resolver from three aspects: security protection configuration, dual-stack component implementation, and possible information leakage in IPv6 addresses, and realizes rapid investigation of potential security risks of dual-stack resolver services. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 Flowchart of the risk assessment method for dual-stack parsers. DETAILED DESCRIPTION
[0043] The present invention is further described in detail below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention but not to limit the scope of the present invention.
[0044] Figure 1 The flowchart of the dual-stack parser risk assessment method provided by the present invention is shown. The method first performs active detection and analysis on the dual-stack parser based on evaluation indicators of multiple dimensions, and draws a target portrait according to the network behavior performance of the parser as much as possible. Next, a point system is scored based on the detection and analysis results to comprehensively evaluate and measure the severity of security risks faced by different dual-stack parsers, and efficiently complete the risk assessment and vulnerability investigation of dual-stack parsers. The evaluation indicators set by the method are shown in Table 1 below:
[0045] Table 1 is the evaluation index table
[0046]
[0047]
[0048] The main steps of this method include:
[0049] (I) Dual-stack security protection configuration awareness
[0050] Due to the important position of DNS service in the modern Internet ecosystem, it faces the threat of potential attacks in different ways every day. In order to enhance the defense capability of the resolver, managers often use a series of protection measures for it, and the effectiveness of these measures depends on whether the configuration of the protection measures is sound. Therefore, this step focuses on ICMP / v6 and DNS protocols to analyze whether the resolver has the corresponding protection measures.
[0051] Specifically, for indicators 1-2, if the resolver can respond to the ICMP / v6 protocol, the attacker can analyze the network topology to reach the resolver and the operating system configuration of the resolver. Therefore, it is necessary to determine whether the service limits active detection to prevent network scanning by whether the address responds to ICMP (v6) Echo requests.
[0052] For indicators 3 to 6, it is necessary to deploy a controllable authoritative domain name server and register a domain name to make the analysis process controllable. This method configures the same A record for the wildcard domain name by building a self-built authoritative server. Whether the service restricts domain name queries of any IP can be determined by whether the corresponding record can be queried using the dual-stack DNS service. For indicators 3 to 4, some attacks against the resolver use a carefully constructed domain name resolution process and are initiated through specific requests. Therefore, if the resolver can accept requests from any host, such attacks are more likely to succeed. For indicators 5 to 6, based on the local sending of data packets (indicators 3 to 4), the DNS service is examined by forging a request with an arbitrary source IP address to check whether the source address validation (SAV) is configured. If it is determined that the source address validation is not configured, the target dual-stack resolver is at risk. Since the test domain name is resolved by the self-built authoritative server, it is possible to determine whether the resolver accepts the forged domain name request by whether the authoritative server receives the same domain name record query request.
[0053] In particular, for indicator 7, since IPv4 and IPv6 protocols are not compatible with each other, protection measures need to consider both protocols at the same time. However, inexperienced managers often perform dual-stack transformation on the original IPv4 resolver, but do not add additional configuration for IPv6 or the protection tools do not support IPv6, thus causing network security risks.
[0054] Common implementation methods for this step include zmap, a detection tool that can send constructed ICMP packets, and IPv6-Toolkit, a detection tool optimized for the IPv6 protocol. Authoritative domain name server implementation tools include bind, coredns, etc. Domain names can be registered at domain name registrars such as Alibaba Cloud, DNSpod, and GoDaddy.
[0055] (II) Dual-stack components to achieve effect perception
[0056] This step includes indicator 10, which focuses on the differences between dual-stack DNS services in network communications. Due to the design of the IPv6 protocol, attackers can use smaller IPv4 DNS requests to trigger the resolver to send larger IPv6 DNS requests, forming an amplification attack across the IP stack. This system combines the relevant data results of previous work and regards the difference in packet length less than 1000 bytes as the security risk threshold. If the difference between request packets of different IP protocols is higher than this threshold, it is considered to be a risk. The implementation tool can be a packet capture tool such as wireshark and tcpdump.
[0057] 3. IPv6 address embedded information perception
[0058] This step includes indicators 8 to 9, focusing on the allocation method of IPv6 addresses. The address allocation method based on EUI-64 includes the MAC address information of the service. Previous results show that this method may cause the leakage of service deployment environment information. The allocation method based on IPv4 address embedding is a common IPv6 address allocation method in dual-stack services. Although IPv6 addresses naturally have the advantage of anti-network service scanning due to the advantage of address length, the allocation method based on embedded IPv4 addresses may be used to discover the existence of IPv6 entry addresses through IPv4 addresses that are easily scanned. This method starts from the standard definition and uses the definition of the EUI-64 format address generation process in the RFC standard to use whether the 23rd to 26th bits of the IPv6 address string are "fffe" as the classification standard for the EUI-64 format. Similarly, by comparing the string similarity of the last 64 bits of the IPv4 address of the service and the interface identifier of the IPv6 address, it can be determined whether the IPv6 address is generated based on the IPv4 address embedding method. This step can be implemented by writing text string analysis code.
[0059] (IV) Dual-stack parser risk assessment
[0060] Using the measurement results of steps (1) to (3), the risk of the dual-stack parser in different dimensions is scored. The specific scoring rules are shown in Table 2:
[0061] Table 2 is the scoring criteria table
[0062] Index No. Scoring Rules 1 If a response is received, the risk value increases by 1; otherwise it is 0 2 If a response is received, the risk value increases by 1; otherwise it is 0 3 If a response is received, the risk value increases by 1; otherwise it is 0 4 If a response is received, the risk value increases by 1; otherwise it is 0 5 If there is a cache, the risk value increases by 1; otherwise it is 0 6 If there is a cache, the risk value increases by 1; otherwise it is 0 7 For every pair of unequal indicators, the risk value increases by 1 8 If the address pattern is met, the risk value increases by 1; otherwise it is 0 9 If the address pattern is met, the risk value increases by 1; otherwise it is 0 10 If the difference in response packet size exceeds 1000 bytes, the risk value increases by 1.
[0063] According to the scoring criteria table, we can form quantitative security risk scoring results for different dual-stack parsers and complete the risk assessment of dual-stack parsers.
[0064] Example
[0065] In order to make the above features and advantages of the present invention more clearly understood, examples are given below for illustration.
[0066] Example 1
[0067] The target dual-stack resolver has a pair of IPv4 and IPv6 addresses, namely: 1.2.3.4
[0069] 2100:abcd::3432:acff:fe45:67a1
[0070] The detection results and index scores of the parser are shown in Table 3 below:
[0071] Table 3 is the detection results and index scoring table
[0072] Index No. Detection results score 1 No ICMP response received from resolver 0 2 No ICMPv6 response received from resolver 0 3 No DNS response was received from the resolver based on the IPv4 protocol 0 4 Received the resolver's DNS response based on IPv6 protocol 1 5 The resolver sends a DNS request based on the IPv4 protocol to the self-built authoritative server 1 6 The resolver sent a DNS request based on the IPv6 protocol to the self-built authoritative server 1 7 The parser has a pair of indicators that are inconsistent between IPv4 and IPv6 protocols 1 8 The resolver IPv6 address conforms to the EUI-64 address format. 1 9 The resolver IPv6 address does not conform to the format of IPv4 address embedding 0 10 The difference between the parser response packet size on IPv4 and IPv6 protocols is less than 1000 bytes 0
[0073] Based on the information in the table, we can conclude that the risk assessment score of this parser is 5, which is a medium risk state.
[0074] Example 2
[0075] The target dual-stack resolver has a pair of IPv4 and IPv6 addresses, namely: 115.116.117.118
[0077] 2100:abcd::115:116:117:118
[0078] The detection results and index scores of the parser are shown in Table 4 below:
[0079] Table 4 shows the detection results and index scoring table
[0080]
[0081]
[0082] Based on the information in the comprehensive table, it can be concluded that the risk assessment score of the parser is 8, which is in a high risk state.
[0083] Although the specific embodiments of the present invention are disclosed for the purpose of illustration, the purpose is to help understand the content of the present invention and implement it accordingly, those skilled in the art will understand that various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the content disclosed in the best embodiment, and the scope of the present invention is subject to the scope defined in the claims.
Claims
1. A dual-stack parser risk assessment method, the steps of which include: 1) Using the dual-stack security protection configuration perception module to detect the protection strength of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol, and evaluating the security protection configuration index value of the target dual-stack resolver according to the protection strength; 2) Using the dual-stack component implementation effect perception module to detect the network behavior performance of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol, respectively, and evaluating the implementation effect index value of the target dual-stack resolver on dual-stack support based on the network behavior performance; 3) parse the IPv6 address string of the target dual-stack resolver using the IPv6 address embedded information perception module, and detect whether the parsing result contains the set sensitive semantics and device information; evaluate the information leakage index value of the target dual-stack resolver based on the detection result; 4) The dual-stack parser risk assessment module calculates the security risk assessment score of the target dual-stack parser based on the security protection configuration index value, the implementation effect index value of dual-stack support and the information leakage index value of the target dual-stack parser, and quantifies the degree of security risk faced by the dual-stack parser.
2. The method according to claim 1, characterized in that The method for detecting the protection strength of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol and obtaining the security protection configuration index value of the target dual-stack resolver is as follows: 11) Send an ICMP Echo request to the target dual-stack resolver. If a response is received, the risk value increases by one; 12) Send an ICMPv6 Echo request to the target dual-stack resolver. If a response is received, the risk value increases by one. 13) Send a domain name query to the IPv4 address of the target dual-stack resolver. If a response is received, the risk value is increased by one; 14) Send a domain name query to the IPv6 address of the target dual-stack resolver. If a response is received, the risk value increases by one; 15) Sending a request to the IPv4 address of the target dual-stack resolver by forging an arbitrary source IP address to detect whether the DNS service of the target dual-stack resolver is configured with source address authentication; if it is determined that source address authentication is not configured, the risk value of the target dual-stack resolver is increased by one; 16) Sending a request to the IPv6 address of the target dual-stack resolver by forging an arbitrary source IP address to detect whether the DNS service of the target dual-stack resolver is configured with source address authentication; if it is determined that source address authentication is not configured, the risk value of the target dual-stack resolver is increased by one; 17) Sending the detection tool zmap for constructing ICMP packets and the detection tool IPv6-Toolkit optimized for the IPv6 protocol to the target dual-stack resolver respectively, and depending on whether the protection measures of the target dual-stack resolver on the IPv4 / IPv6 protocols are consistent, the risk value is increased by one for each pair of inconsistent protection measures; 18) The security protection configuration index value of the target dual-stack parser is calculated based on the risk values obtained in steps 11) to 17).
3. The method according to claim 1, characterized in that The method for evaluating the information leakage index value of the target dual-stack resolver is as follows: the IPv6 address embedded information perception module parses the IPv6 address string of the target dual-stack resolver; if the IPv6 address string contains the MAC information of the device, the risk value is increased by one; If the IPv6 address is allocated based on the IPv4 address embedding method, the risk value is increased by one; then the information leakage index value of the target dual-stack resolver is obtained based on the detection result.
4. The method according to claim 1, characterized in that: The set sensitive semantics is that the IPv6 address includes allocation based on the IPv4 address embedding method; the device information is the MAC information of the device deployed by the target dual-stack resolver.
5. The method according to claim 1, characterized in that The implementation effect indicator value of the target dual-stack resolver for dual-stack support is the cross-IP stack amplification attack risk value.
6. The method according to claim 5, characterized in that The dual-stack component implementation effect perception module sends an IPv4 DNS request and an IPv6 DNS request to the target dual-stack resolver respectively. If the difference in size between the response data packet corresponding to the IPv4 DNS request and the response data packet corresponding to the IPv6 DNS request is greater than a set threshold, it is determined that there is a risk of cross-IP stack amplification attack, and the implementation effect index value of the target dual-stack resolver for dual-stack support is obtained.
7. The method according to claim 6, characterized in that The set threshold is 1000 bytes.
8. A dual-stack parser risk assessment system, characterized in that: It includes dual-stack security protection measures configuration perception module, dual-stack component implementation effect perception module, IPv6 address embedded information perception module and dual-stack resolver risk assessment module; The dual-stack security protection measures configuration perception module is used to detect the protection strength of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol respectively, and evaluate the security protection configuration index value of the target dual-stack resolver according to the protection strength; The dual-stack component implementation effect perception module is used to detect the network behavior performance of the target dual-stack resolver on the IPv4 protocol and the IPv6 protocol respectively, and evaluate the implementation effect index value of the target dual-stack resolver on the dual-stack support according to the network behavior performance; The IPv6 address embedded information perception module is used to parse the IPv6 address string of the target dual-stack resolver and detect whether the parsing result contains the set sensitive semantics and device information; and evaluate the information leakage index value of the target dual-stack resolver according to the detection result; The dual-stack parser risk assessment module calculates the security risk assessment score of the target dual-stack parser based on the security protection configuration index value, the implementation effect index value of dual-stack support and the information leakage index value of the target dual-stack parser, and quantifies the degree of security risk faced by the dual-stack parser.
9. A server, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program comprises instructions for executing each step in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Dynamic micro-isolation method and system for SDN (Software Defined Network) financial terminal under IPv6 dual stacks
CN122457376A
