An assessment of Non-Authorized Domain Name Resolution provided by DNS Resolution Service Provider
<!--kg-card-begin: markdown--><h2 id="summary">Summary</h2>
<p>In a <a href="__GHOST_URL__/the-pitfall-of-threat-intelligence-whitelisting-specter-botnet-is-taking-over-top-legit-dns-domains-by-using-cloudns-service/">previous article</a>, we disclosed that the Specter botnet uses api. github[.]com and other white domains to provide C2 services as a way to evade detection by security products based on signature and threat intelligence matching. The botnet can do this because the Domain Name Resolution provider have no check for customer to claim any DNS names.</p>
<p>We were wondering what the overall situation is, so we measured and evaluated this phenomenon, i.e., whether domain name registrars/hosts, public cloud providers, and other providers that provide domain name registration and resolution services (collectively referred to as resolution service providers) are able to return correct responses to DNS requests for domains not served by them.</p>
<p>This article provides an analysis of this phenomenon.</p>
<h2 id="dataselectionandevaluationmethodology">Data Selection and Evaluation Methodology</h2>
<h3 id="domainsundertest">Domains Under Test</h3>
<p>Tested domains: Alexa top500. they were chosen because</p>
<ol>
<li>
<p>These domains use their own DNS servers, and they do not use resolution services provided by external resolution providers. So if these domains can be resolved by NS servers of external resolution service providers, they are most likely to be unauthorized.</p>
</li>
<li>
<p>It is common practice that these domains are on various security whitelists because of their well-known operations. In fact, the use of DNS traffic to rank domain names more accurately reflect the popularity of domain names. 360netlab's DNSMon system can calculate the popularity of domain names in the large network</p>
</li>
</ol>
<h3 id="thensservers">The NS servers</h3>
<p>The test NS server: that is, the resolution provider. Extracted from 360netlab's passiveDNS library, <strong>18,469</strong> NS servers that were active in the last six months and provided resolution services for more than 500 independent second-level domain names.</p>
<h3 id="testmethod">Test Method</h3>
<p>The domain name under test will be tried to resolve through the test NS server one by one (UDP/53), if the DNS return result of the test server is NOERROR (regardless of whether there is a real RDATA return), the server under test is considered to provide resolution of the domain name under test.</p>
<h2 id="evaluationresults">Evaluation Results</h2>
<h3 id="overallresolutionsituation">Overall resolution situation</h3>
<p>At the time of test, of the 18,469 NS servers, 18,154 were able to resolve to an address, accounting for 98.29% of the total. There are 17,792 servers that can resolve to the address and have a response, accounting for 96.33% of the total. Even though we screened the NS servers with resolution records in the past six months, 3.67% of the servers were inactive at the time of the test, so we can see that the infrastructure of NS service providers is in constant change.<br>
The following article uses the data of 17,792 NSs as the basis for analysis.</p>
<p>In terms of the number of resolutions, the response rate of 17,792 NS servers is 70.12% ~(6237860/(17,792*500)), which means that 30% of requests are lost when the servers are active, generally due to server timeouts.</p>
<p>Among all responses, the percentage of Rcode for Refuse is 75, and the percentage of NOERROR is about 22%. The specific distribution of the following chart<br>
<img src= "/content/images/2021/12/rcode_distrubtion-1.png" width="860px" /></p>
<p>In terms of NS servers, 17,792 NS servers, the return of NOERROR record of NS servers are 9544, accounting for about 53.64%.</p>
<p>In terms of NS server secondary domain, 17792 NS corresponds to 4149 secondary domains, of which there are 1687 secondary domains that return NOERROR records, accounting for about 40.66% of the total. That is to say, <em>in our selected test servers about 40% of NS servers will return a domain name resolution that is not their own customers</em>.</p>
<p>Based on experience, if such resolution records are added by individual users, it is guessed that the higher ranked domains are more likely to be added and resolved. So we counted the percentage of resolution of Alexa Top100 and the percentage of resolution of all tested domains (i.e. Alexa Top500) for each tested server that returned NOERROR. We sorted the resolution success rate of Alexa Top100 domains by resolution server. The statistical curves are shown below.<br>
<img src = "/content/images/2021/12/top100_vs_top500-1.png" width="860px"/></p>
<p>From the graph, it is obvious that these 9544 servers can be divided into 4 groups, namely</p>
<ul>
<li>NS servers ranked from 1 to 2250 have a resolution rate of more than 60% for top100 and top500 domain names</li>
<li>NS servers ranking 2250-3300 have a rapid decline from 60% to less than 20% of the domain names under test</li>
<li>NS servers ranked 3300-6000 are slowly decreasing from 20% to about 2%.</li>
<li>NS servers ranked after 6000 occasionally have a small amount of resolution, the proportion of basic in about 1%.</li>
</ul>
<p>In addition, it can be seen from the graph that there is no significant difference in the proportion of tested domains in Alexa Top100 and Top500. This may be due to the fact that there is little difference in the perception of users between the top 100 and 500 domains in Alexa.</p>
<h3 id="analysisofresolutionresults">Analysis of resolution results</h3>
<p>Another perspective on this data is the resolution results. Where exactly do these NS servers resolve these popular domains to.<br>
In the returned results, about 20.92% of the data on the second-level domain is not configured with a valid DNS record with a NOERROR returns, such cases are mostly for the detection of the domain name is configured with the corresponding NS server, but not configured for other types of records.</p>
<h3 id="thedomainswithips">The domains with IPs</h3>
<p>In the return results which have DNS A records, the geographic location of the resolved IPs is mainly concentrated in the United States, followed by China and Russia, and the Top 10 distribution is as follows:</p>
<pre><code>   4378 United_States
    579 China
    395 Russian_Federation
    350 United_Kingdom
    216 CLOUDFLARE.COM
    213 Netherlands
    212 Germany
    209 Japan
    195 Republic_of_Korea
    123 Singapore
</code></pre>
<p>It is worth mentioning that about 3% of the many returned A records are reserved or private addresses, and the most popular of these addresses is 127.0.0.1. The top 10 addresses are as follows:</p>
<pre><code>  33093 127.0.0.1
    856 10.10.34.35
    425 192.168.3.3
    154 10.10.10.10
     69 10.10.34.36
     52 10.152.68.117
     45 10.10.34.34
     42 192.168.1.1
     27 127.0.0.11
     22 0.0.0.0
</code></pre>
<h3 id="errorrateofresolutionresults">Error rate of resolution results</h3>
<p>We compared the results from non-authorized resolution service providers with the correct resolution results and found that 80% of the domain names (i.e. 400) had an error rate of 90% or more, and the best case domain name error rate was as high as 68%, which is a quite high.</p>
<p>Different domain name resolution error rate curves are as follows.<br>
<img src = "/content/images/2021/12/resolve_wrong_ratio-1.jpg" width="860px" /></p>
<h3 id="domainnameperspective">Domain name perspective</h3>
<p>How many NSs do the top500 domains resolve on? What is the distribution of the percentage<br>
Among the 500 domains, the least resolved domain name is express.dhl, with 1483 NS servers resolving it, and the most resolved is yts.mx, with 3114 NS servers resolving it. However, from the results of their resolution, the number of rdata resolved by different domains is relatively stable, mostly around 800. <strong>It can be seen that it is very common but very surprising for popular domains to be added to various non-authorized resolvers</strong>. The specific distribution is as follows.</p>
<img src = "/content/images/2021/12/resovler_num_and_rdata_num-1.jpg" width="860px" />
<h2 id="casestudy">Case Study</h2>
<p>Why so many popular domain names are added to be resolved by non-authorized NS servers? Let's take yts.mx and mozilla.org as examples to see what is going on here.</p>
<h3 id="ytsmx">yts.mx</h3>
<p>yts.mx was chosen for analysis because it is the domain name that resolved by most NS servers in our test.</p>
<p>yts.mx is a P2P movie downloads site, and is ranked No. 462 in the Alexa data we used. We can see there are  2886 non-authorized resolving servers that can resolve yts.mx,  and only 73 of the NS servers are giving us correct results, the incorrect resolution rate of 97.47%, and within them, the top NS servers are:<br>
<img src = "/content/images/2021/12/yts.mx-1.jpg" width = "860px"/></p>
<p>Most of this list are IT infrastructure service providers offering domain name registration, web service hosting, hosting services, etc. Not surprisingly cloudns mentioned in our last article is listed.</p>
<p>Looking at the IPs that resolved incorrectly, they point to a total of 750 IP addresses, aggregating to 149 network segments. The top10 of these segments and the usage of these segments are analyzed as follows.<br>
<img src = "/content/images/2021/12/yts.mx.wrong_rdata_detail-1.png" width = "860px" /></p>
<h3 id="mozillaorg">mozilla.org</h3>
<p>mozilla.org was chosen because mozilla.org is the official website of the Firefox browser and is well known to the public and it is ranked 182 by Alexa. We dug in our passiveDNS.cn and could see mozilla.org has been using akamai as their resolver since 2014.<br>
<img src = "/content/images/2021/12/mozilla_auth_ns-1.jpg" width="860px" /></p>
<p>Its resolution results have changed a little bit over time, after November 2020, it has been using amazon's service.<br>
<img src = "/content/images/2021/12/mozilla_auth_a-1.png" width="860px" /></p>
<p>However, in our test data, there are 2,624 NS servers capable of resolving mozilla.org, with 735 resolved IP addresses.</p>
<p>The top 10 resolvers are as follows.</p>
<pre><code>    846 hostgator.com
    520 gandi.net
    369 register.com
     83 orderbox-dns.com
     70 worldnic.com
     51 dan.hosting
     47 hostgator.mx
     33 ztomy.com
     30 cloudns.net
     16 zoneedit.com
</code></pre>
<p>This entry on this list is very similar to the yts.mx example.</p>
<p>Except akam.net and cloudflare.com, only 62 NS servers can correctly return the A records. In other words, <strong>70% of the non-authorized NS servers are returning the wrong IPs</strong>.</p>
<p>In terms of incorrectly resolved IPs, 730 incorrect IPs (5 IPs were correctly resolved) were aggregated to 153 CIDR/24 segments, with top10 segments accounting for 75.9% of the total incorrectly resolved volume. We analyzed in detail the CIDR/24 segments of the Top10 incorrectly resolved, and found that they are mainly registered by domain name registrars/resolvers, and the final resolution destination IPs are used for domain name parking, redirection and domain name sale purposes. The specific results are shown in the following chart:<br>
<img src = "/content/images/2021/12/mozilla_detail_analysis-1.jpg" width="860px" /></p>
<p>We can see from the above two cases that these non-authorized resolution service is mainly from domain name registration/resolution provider registration, and the final resolution destination IP is used to generate profits such as domain name parking, redirection and domain name sales.</p>
<h2 id="securitychallenge">Security challenge</h2>
<p>When a malicious actor can register arbitrary, especially well known DNS domains, it brings real problems, as we disclosed in our previous blog, there are botnets out there using this “feature” to make their C2 look totally legit.</p>
<p>From defense perspective, The DNS based security detection needs to be expanded to look at both the domain name and the DNS servers used by the domain name, as well as whether the resolution results are consistent with the real results.</p>
<!--kg-card-end: markdown-->
Summary


In a previous article, we disclosed that the Specter botnet uses api. github[.]com and other white domains to provide C2 services as a way to evade detection by security products based on signature and threat intelligence matching. The botnet can do this because the Domain Name Resolution provider have no check for customer to claim any DNS names.


We were wondering what the overall situation is, so we measured and evaluated this phenomenon, i.e., whether domain name registrars/hosts, public cloud providers, and other providers that provide domain name registration and resolution services (collectively referred to as resolution service providers) are able to return correct responses to DNS requests for domains not served by them.


This article provides an analysis of this phenomenon.



Data Selection and Evaluation Methodology



Domains Under Test


Tested domains: Alexa top500. they were chosen because


 1. 
    
    
    These domains use their own DNS servers, and they do not use resolution services provided by external resolution providers. So if these domains can be resolved by NS servers of external resolution service providers, they are most likely to be unauthorized.
    

 2. 
    
    
    It is common practice that these domains are on various security whitelists because of their well-known operations. In fact, the use of DNS traffic to rank domain names more accurately reflect the popularity of domain names. 360netlab's DNSMon system can calculate the popularity of domain names in the large network
    



The NS servers


The test NS server: that is, the resolution provider. Extracted from 360netlab's passiveDNS library, 18,469 NS servers that were active in the last six months and provided resolution services for more than 500 independent second-level domain names.



Test Method


The domain name under test will be tried to resolve through the test NS server one by one (UDP/53), if the DNS return result of the test server is NOERROR (regardless of whether there is a real RDATA return), the server under test is considered to provide resolution of the domain name under test.



Evaluation Results



Overall resolution situation


At the time of test, of the 18,469 NS servers, 18,154 were able to resolve to an address, accounting for 98.29% of the total. There are 17,792 servers that can resolve to the address and have a response, accounting for 96.33% of the total. Even though we screened the NS servers with resolution records in the past six months, 3.67% of the servers were inactive at the time of the test, so we can see that the infrastructure of NS service providers is in constant change.

The following article uses the data of 17,792 NSs as the basis for analysis.


In terms of the number of resolutions, the response rate of 17,792 NS servers is 70.12% ~(6237860/(17,792*500)), which means that 30% of requests are lost when the servers are active, generally due to server timeouts.


Among all responses, the percentage of Rcode for Refuse is 75, and the percentage of NOERROR is about 22%. The specific distribution of the following chart




In terms of NS servers, 17,792 NS servers, the return of NOERROR record of NS servers are 9544, accounting for about 53.64%.


In terms of NS server secondary domain, 17792 NS corresponds to 4149 secondary domains, of which there are 1687 secondary domains that return NOERROR records, accounting for about 40.66% of the total. That is to say, in our selected test servers about 40% of NS servers will return a domain name resolution that is not their own customers.


Based on experience, if such resolution records are added by individual users, it is guessed that the higher ranked domains are more likely to be added and resolved. So we counted the percentage of resolution of Alexa Top100 and the percentage of resolution of all tested domains (i.e. Alexa Top500) for each tested server that returned NOERROR. We sorted the resolution success rate of Alexa Top100 domains by resolution server. The statistical curves are shown below.




From the graph, it is obvious that these 9544 servers can be divided into 4 groups, namely


 * NS servers ranked from 1 to 2250 have a resolution rate of more than 60% for top100 and top500 domain names
 * NS servers ranking 2250-3300 have a rapid decline from 60% to less than 20% of the domain names under test
 * NS servers ranked 3300-6000 are slowly decreasing from 20% to about 2%.
 * NS servers ranked after 6000 occasionally have a small amount of resolution, the proportion of basic in about 1%.


In addition, it can be seen from the graph that there is no significant difference in the proportion of tested domains in Alexa Top100 and Top500. This may be due to the fact that there is little difference in the perception of users between the top 100 and 500 domains in Alexa.



Analysis of resolution results


Another perspective on this data is the resolution results. Where exactly do these NS servers resolve these popular domains to.

In the returned results, about 20.92% of the data on the second-level domain is not configured with a valid DNS record with a NOERROR returns, such cases are mostly for the detection of the domain name is configured with the corresponding NS server, but not configured for other types of records.



The domains with IPs


In the return results which have DNS A records, the geographic location of the resolved IPs is mainly concentrated in the United States, followed by China and Russia, and the Top 10 distribution is as follows:


   4378 United_States
    579 China
    395 Russian_Federation
    350 United_Kingdom
    216 CLOUDFLARE.COM
    213 Netherlands
    212 Germany
    209 Japan
    195 Republic_of_Korea
    123 Singapore



It is worth mentioning that about 3% of the many returned A records are reserved or private addresses, and the most popular of these addresses is 127.0.0.1. The top 10 addresses are as follows:


  33093 127.0.0.1
    856 10.10.34.35
    425 192.168.3.3
    154 10.10.10.10
     69 10.10.34.36
     52 10.152.68.117
     45 10.10.34.34
     42 192.168.1.1
     27 127.0.0.11
     22 0.0.0.0




Error rate of resolution results


We compared the results from non-authorized resolution service providers with the correct resolution results and found that 80% of the domain names (i.e. 400) had an error rate of 90% or more, and the best case domain name error rate was as high as 68%, which is a quite high.


Different domain name resolution error rate curves are as follows.





Domain name perspective


How many NSs do the top500 domains resolve on? What is the distribution of the percentage

Among the 500 domains, the least resolved domain name is express.dhl, with 1483 NS servers resolving it, and the most resolved is yts.mx, with 3114 NS servers resolving it. However, from the results of their resolution, the number of rdata resolved by different domains is relatively stable, mostly around 800. It can be seen that it is very common but very surprising for popular domains to be added to various non-authorized resolvers. The specific distribution is as follows.




Case Study


Why so many popular domain names are added to be resolved by non-authorized NS servers? Let's take yts.mx and mozilla.org as examples to see what is going on here.



yts.mx


yts.mx was chosen for analysis because it is the domain name that resolved by most NS servers in our test.


yts.mx is a P2P movie downloads site, and is ranked No. 462 in the Alexa data we used. We can see there are 2886 non-authorized resolving servers that can resolve yts.mx, and only 73 of the NS servers are giving us correct results, the incorrect resolution rate of 97.47%, and within them, the top NS servers are:




Most of this list are IT infrastructure service providers offering domain name registration, web service hosting, hosting services, etc. Not surprisingly cloudns mentioned in our last article is listed.


Looking at the IPs that resolved incorrectly, they point to a total of 750 IP addresses, aggregating to 149 network segments. The top10 of these segments and the usage of these segments are analyzed as follows.





mozilla.org


mozilla.org was chosen because mozilla.org is the official website of the Firefox browser and is well known to the public and it is ranked 182 by Alexa. We dug in our passiveDNS.cn and could see mozilla.org has been using akamai as their resolver since 2014.




Its resolution results have changed a little bit over time, after November 2020, it has been using amazon's service.




However, in our test data, there are 2,624 NS servers capable of resolving mozilla.org, with 735 resolved IP addresses.


The top 10 resolvers are as follows.


    846 hostgator.com
    520 gandi.net
    369 register.com
     83 orderbox-dns.com
     70 worldnic.com
     51 dan.hosting
     47 hostgator.mx
     33 ztomy.com
     30 cloudns.net
     16 zoneedit.com



This entry on this list is very similar to the yts.mx example.


Except akam.net and cloudflare.com, only 62 NS servers can correctly return the A records. In other words, 70% of the non-authorized NS servers are returning the wrong IPs.


In terms of incorrectly resolved IPs, 730 incorrect IPs (5 IPs were correctly resolved) were aggregated to 153 CIDR/24 segments, with top10 segments accounting for 75.9% of the total incorrectly resolved volume. We analyzed in detail the CIDR/24 segments of the Top10 incorrectly resolved, and found that they are mainly registered by domain name registrars/resolvers, and the final resolution destination IPs are used for domain name parking, redirection and domain name sale purposes. The specific results are shown in the following chart:




We can see from the above two cases that these non-authorized resolution service is mainly from domain name registration/resolution provider registration, and the final resolution destination IP is used to generate profits such as domain name parking, redirection and domain name sales.



Security challenge


When a malicious actor can register arbitrary, especially well known DNS domains, it brings real problems, as we disclosed in our previous blog, there are botnets out there using this “feature” to make their C2 look totally legit.


From defense perspective, The DNS based security detection needs to be expanded to look at both the domain name and the DNS servers used by the domain name, as well as whether the resolution results are consistent with the real results.

{"version":"0.3.1","atoms":[],"cards":[["markdown",{"markdown":"## Summary\nIn a [previous article](__GHOST_URL__/the-pitfall-of-threat-intelligence-whitelisting-specter-botnet-is-taking-over-top-legit-dns-domains-by-using-cloudns-service/), we disclosed that the Specter botnet uses api. github[.]com and other white domains to provide C2 services as a way to evade detection by security products based on signature and threat intelligence matching. The botnet can do this because the Domain Name Resolution provider have no check for customer to claim any DNS names. \n\nWe were wondering what the overall situation is, so we measured and evaluated this phenomenon, i.e., whether domain name registrars/hosts, public cloud providers, and other providers that provide domain name registration and resolution services (collectively referred to as resolution service providers) are able to return correct responses to DNS requests for domains not served by them.\n\nThis article provides an analysis of this phenomenon.\n\n## Data Selection and Evaluation Methodology\n### Domains Under Test\nTested domains: Alexa top500. they were chosen because\n\n1.\tThese domains use their own DNS servers, and they do not use resolution services provided by external resolution providers. So if these domains can be resolved by NS servers of external resolution service providers, they are most likely to be unauthorized.\n\n\n2.  It is common practice that these domains are on various security whitelists because of their well-known operations. In fact, the use of DNS traffic to rank domain names more accurately reflect the popularity of domain names. 360netlab's DNSMon system can calculate the popularity of domain names in the large network\n\n### The NS servers\nThe test NS server: that is, the resolution provider. Extracted from 360netlab's passiveDNS library, **18,469** NS servers that were active in the last six months and provided resolution services for more than 500 independent second-level domain names.\n\n### Test Method\nThe domain name under test will be tried to resolve through the test NS server one by one (UDP/53), if the DNS return result of the test server is NOERROR (regardless of whether there is a real RDATA return), the server under test is considered to provide resolution of the domain name under test.\n\n\n## Evaluation Results\n### Overall resolution situation\nAt the time of test, of the 18,469 NS servers, 18,154 were able to resolve to an address, accounting for 98.29% of the total. There are 17,792 servers that can resolve to the address and have a response, accounting for 96.33% of the total. Even though we screened the NS servers with resolution records in the past six months, 3.67% of the servers were inactive at the time of the test, so we can see that the infrastructure of NS service providers is in constant change.\nThe following article uses the data of 17,792 NSs as the basis for analysis.\n\nIn terms of the number of resolutions, the response rate of 17,792 NS servers is 70.12% ~(6237860/(17,792*500)), which means that 30% of requests are lost when the servers are active, generally due to server timeouts.\n\nAmong all responses, the percentage of Rcode for Refuse is 75, and the percentage of NOERROR is about 22%. The specific distribution of the following chart\n<img src= \"/content/images/2021/12/rcode_distrubtion-1.png\" width=\"860px\" />\n\nIn terms of NS servers, 17,792 NS servers, the return of NOERROR record of NS servers are 9544, accounting for about 53.64%.\n\nIn terms of NS server secondary domain, 17792 NS corresponds to 4149 secondary domains, of which there are 1687 secondary domains that return NOERROR records, accounting for about 40.66% of the total. That is to say, *in our selected test servers about 40% of NS servers will return a domain name resolution that is not their own customers*.\n\n\nBased on experience, if such resolution records are added by individual users, it is guessed that the higher ranked domains are more likely to be added and resolved. So we counted the percentage of resolution of Alexa Top100 and the percentage of resolution of all tested domains (i.e. Alexa Top500) for each tested server that returned NOERROR. We sorted the resolution success rate of Alexa Top100 domains by resolution server. The statistical curves are shown below.\n<img src = \"/content/images/2021/12/top100_vs_top500-1.png\" width=\"860px\"/>\n\n\nFrom the graph, it is obvious that these 9544 servers can be divided into 4 groups, namely\n\n* NS servers ranked from 1 to 2250 have a resolution rate of more than 60% for top100 and top500 domain names\n* NS servers ranking 2250-3300 have a rapid decline from 60% to less than 20% of the domain names under test\n* NS servers ranked 3300-6000 are slowly decreasing from 20% to about 2%.\n* NS servers ranked after 6000 occasionally have a small amount of resolution, the proportion of basic in about 1%.\n\nIn addition, it can be seen from the graph that there is no significant difference in the proportion of tested domains in Alexa Top100 and Top500. This may be due to the fact that there is little difference in the perception of users between the top 100 and 500 domains in Alexa.\n\n### Analysis of resolution results\nAnother perspective on this data is the resolution results. Where exactly do these NS servers resolve these popular domains to.\nIn the returned results, about 20.92% of the data on the second-level domain is not configured with a valid DNS record with a NOERROR returns, such cases are mostly for the detection of the domain name is configured with the corresponding NS server, but not configured for other types of records.\n\n### The domains with IPs\nIn the return results which have DNS A records, the geographic location of the resolved IPs is mainly concentrated in the United States, followed by China and Russia, and the Top 10 distribution is as follows:\n```\n   4378 United_States\n    579 China\n    395 Russian_Federation\n    350 United_Kingdom\n    216 CLOUDFLARE.COM\n    213 Netherlands\n    212 Germany\n    209 Japan\n    195 Republic_of_Korea\n    123 Singapore\n```\n\nIt is worth mentioning that about 3% of the many returned A records are reserved or private addresses, and the most popular of these addresses is 127.0.0.1. The top 10 addresses are as follows:\n```\n  33093 127.0.0.1\n    856 10.10.34.35\n    425 192.168.3.3\n    154 10.10.10.10\n     69 10.10.34.36\n     52 10.152.68.117\n     45 10.10.34.34\n     42 192.168.1.1\n     27 127.0.0.11\n     22 0.0.0.0\n```\n\n### Error rate of resolution results\nWe compared the results from non-authorized resolution service providers with the correct resolution results and found that 80% of the domain names (i.e. 400) had an error rate of 90% or more, and the best case domain name error rate was as high as 68%, which is a quite high.\n\nDifferent domain name resolution error rate curves are as follows.\n<img src = \"/content/images/2021/12/resolve_wrong_ratio-1.jpg\" width=\"860px\" />\n\n### Domain name perspective\nHow many NSs do the top500 domains resolve on? What is the distribution of the percentage\nAmong the 500 domains, the least resolved domain name is express.dhl, with 1483 NS servers resolving it, and the most resolved is yts.mx, with 3114 NS servers resolving it. However, from the results of their resolution, the number of rdata resolved by different domains is relatively stable, mostly around 800. **It can be seen that it is very common but very surprising for popular domains to be added to various non-authorized resolvers**. The specific distribution is as follows.\n\n<img src = \"/content/images/2021/12/resovler_num_and_rdata_num-1.jpg\" width=\"860px\" />\n\n## Case Study\nWhy so many popular domain names are added to be resolved by non-authorized NS servers? Let's take yts.mx and mozilla.org as examples to see what is going on here.\n\n### yts.mx\nyts.mx was chosen for analysis because it is the domain name that resolved by most NS servers in our test.\n\nyts.mx is a P2P movie downloads site, and is ranked No. 462 in the Alexa data we used. We can see there are  2886 non-authorized resolving servers that can resolve yts.mx,  and only 73 of the NS servers are giving us correct results, the incorrect resolution rate of 97.47%, and within them, the top NS servers are:\n<img src = \"/content/images/2021/12/yts.mx-1.jpg\" width = \"860px\"/>\n\nMost of this list are IT infrastructure service providers offering domain name registration, web service hosting, hosting services, etc. Not surprisingly cloudns mentioned in our last article is listed.\n\nLooking at the IPs that resolved incorrectly, they point to a total of 750 IP addresses, aggregating to 149 network segments. The top10 of these segments and the usage of these segments are analyzed as follows.\n<img src = \"/content/images/2021/12/yts.mx.wrong_rdata_detail-1.png\" width = \"860px\" />\n\n### mozilla.org\nmozilla.org was chosen because mozilla.org is the official website of the Firefox browser and is well known to the public and it is ranked 182 by Alexa. We dug in our passiveDNS.cn and could see mozilla.org has been using akamai as their resolver since 2014.\n<img src = \"/content/images/2021/12/mozilla_auth_ns-1.jpg\" width=\"860px\" />\n\nIts resolution results have changed a little bit over time, after November 2020, it has been using amazon's service.\n<img src = \"/content/images/2021/12/mozilla_auth_a-1.png\" width=\"860px\" />\n\nHowever, in our test data, there are 2,624 NS servers capable of resolving mozilla.org, with 735 resolved IP addresses.\n\nThe top 10 resolvers are as follows.\n```\n    846 hostgator.com\n    520 gandi.net\n    369 register.com\n     83 orderbox-dns.com\n     70 worldnic.com\n     51 dan.hosting\n     47 hostgator.mx\n     33 ztomy.com\n     30 cloudns.net\n     16 zoneedit.com\n```\n\nThis entry on this list is very similar to the yts.mx example.\n\n\nExcept akam.net and cloudflare.com, only 62 NS servers can correctly return the A records. In other words, **70% of the non-authorized NS servers are returning the wrong IPs**.\n\nIn terms of incorrectly resolved IPs, 730 incorrect IPs (5 IPs were correctly resolved) were aggregated to 153 CIDR/24 segments, with top10 segments accounting for 75.9% of the total incorrectly resolved volume. We analyzed in detail the CIDR/24 segments of the Top10 incorrectly resolved, and found that they are mainly registered by domain name registrars/resolvers, and the final resolution destination IPs are used for domain name parking, redirection and domain name sale purposes. The specific results are shown in the following chart: \n<img src = \"/content/images/2021/12/mozilla_detail_analysis-1.jpg\" width=\"860px\" />\n     \nWe can see from the above two cases that these non-authorized resolution service is mainly from domain name registration/resolution provider registration, and the final resolution destination IP is used to generate profits such as domain name parking, redirection and domain name sales.\n\n## Security challenge \nWhen a malicious actor can register arbitrary, especially well known DNS domains, it brings real problems, as we disclosed in our previous blog, there are botnets out there using this “feature” to make their C2 look totally legit.\n\nFrom defense perspective, The DNS based security detection needs to be expanded to look at both the domain name and the DNS servers used by the domain name, as well as whether the resolution results are consistent with the real results.\n"}]],"markups":[],"sections":[[10,0],[1,"p",[]]],"ghostVersion":"3.0"}