DNSMon: using DNS data to produce threat intelligence (3)
<h2 id="background">Background</h2><p>This article is the third in our series of articles introducing DNSMon in the production of threat intelligence (Domain Name IoC).</p><p>As a basic core protocol of the Internet, DNS protocol is one of the cornerstones for the normal operation of the Internet.</p><p>DNSMon, which was born and raised on the foundation of DNS protocol, naturally has a broad vision and can be involved in security incidents that happen in different industries or different platforms. In our first two blog posts of DNSMon's series, the Skidmap mentioned in <a href="__GHOST_URL__/security-with-dns-data_en/">the first article</a> was infected with cloud hosts on Linux platform; while <a href="__GHOST_URL__/use-dns-data-produce-threat-intelligence-2/">the second article</a> mentioned a set of domain names issued after the Windows platform of an Internet cafe was infected; this article is a case involving Android platform. We believe this is the beauty of using DNS data, no matter what platform the bad guys are using, the knowledge points or rules used by DNSMon do not fundamentally change.</p><h2 id="blocking-the-unknown-threat">Blocking the unknown threat</h2><p>Recently, we noticed that DMSMon has marked a set of structurally similar domains and automatically blocked them starting from 2021-01-10.</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/block_01-1.png" class="kg-image" alt loading="lazy"></figure><p>Going into the system to check the collected information, we see that this is a set of malicious domains related to Android platform.</p><h2 id="expanding-similar-domains">Expanding Similar Domains</h2><p>Using the rdata and other data of the automatically blocked domains, we found that DNSMon actually warned of more than the 5 domains listed above, there are 16 domains in this category in total.</p><!--kg-card-begin: markdown--><pre><code>ereusingl[.]fun
lisersrath[.]fun
predition[.]fun
ningspais[.]top
ssuminat[.]top
erefulpat[.]top
stirlinebea[.]top
utionstro[.]top
lesseased[.]top
thinkdisen[.]top
edcarefe[.]fun
holidano[.]top
ehousan[.]top
swoulder[.]fun
riemanufa[.]top
ntrealing[.]fun
</code></pre>
<!--kg-card-end: markdown--><p>In terms of active time, these 16 domains are put into use sequentially and have a relatively intensive launch period in January 2021.</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/sdanf_02-1.png" class="kg-image" alt loading="lazy"></figure><p>In the course of writing this article, we have seen other new similar domains captured by our system such as antdaugh[.] top, ngslalatfin[.] top, etc., but for the sake of consistency, these new domains will be omitted from this article.</p><h2 id="reasons-for-autoblocking">Reasons for autoblocking</h2><p>In <a href="__GHOST_URL__/security-with-dns-data_en/">the first article</a>, we mentioned that</p><blockquote>The core of DNSMon is to cross-compare the massive DNS data with the security-related data owned by 360 (including whois, web, sandbox, honeypot, certificate, etc.) and analyze it to derive the threat intelligence IOC.</blockquote><p>In the following, we analyze the data features and annotate from the whois and sandbox obtained by the system. Of course, in addition to these data, DNSMon's autoblocking process also relies on other feature data, but we will not list them here.</p><h3 id="1-whois">1. whois</h3><p>The 16 domain names were registered in two batches, one on 2020-11-06 and the other on 2020-12-23; the length of validity of the registration: one year, and the privacy protection was turned on.</p><!--kg-card-begin: markdown--><pre><code>ereusingl.fun   createddate                 2020-11-06 10:10:12
ereusingl.fun   updateddate                 2020-11-06 10:20:27
ereusingl.fun   expiresdate                 2021-11-06 23:59:59
ereusingl.fun   status                      addPeriod | clientTransferProhibited | serverTransferProhibited
lisersrath.fun  createddate                 2020-11-06 10:10:12
lisersrath.fun  updateddate                 2020-11-06 10:20:20
lisersrath.fun  expiresdate                 2021-11-06 23:59:59
lisersrath.fun  status                      addPeriod | clientTransferProhibited | serverTransferProhibited
predition.fun   createddate                 2020-11-06 10:09:51
predition.fun   updateddate                 2020-11-06 10:15:26
predition.fun   expiresdate                 2021-11-06 23:59:59
predition.fun   status                      addPeriod | clientTransferProhibited | serverTransferProhibited
...

ningspais.top   createddate                 2020-12-23 15:57:59
ningspais.top   updateddate                 2021-01-06 10:37:20
ningspais.top   expiresdate                 2021-12-23 15:57:59
ningspais.top   status                      clientTransferProhibited
ssuminat.top    createddate                 2020-12-23 15:58:00
ssuminat.top    updateddate                 2021-01-06 10:37:23
ssuminat.top    expiresdate                 2021-12-23 15:58:00
ssuminat.top    status                      clientTransferProhibited
erefulpat.top   createddate                 2020-12-23 15:58:01
erefulpat.top   updateddate                 2021-01-06 10:37:24
erefulpat.top   expiresdate                 2021-12-23 15:58:01
erefulpat.top   status                      clientTransferProhibited
...
</code></pre>
<!--kg-card-end: markdown--><p>Batch registration + new domain names + short registration validity period + privacy protection, malicious possibility +1.</p><h3 id="2-sandbox">2. Sandbox</h3><p>DNSMon's data on the sandbox focuses on the network behavior of the sample and extracts the relationship between the sample and the domain name visited, and then evaluates the score of the domain name in turn with the help of the sample's score. As can be seen from the correlation chart, the samples visiting the domains have malicious labels in the system (the samples are marked with "black dots" in the upper right corner).</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/corr_03-1.png" class="kg-image" alt loading="lazy"></figure><p>According to the label propagation algorithm, 16 domains were awarded with black possibility plus points.</p><p>In order to clarify the purpose of sample propagation, we conducted a simple reverse analysis of the sample.</p><h2 id="reverse-analysis">Reverse Analysis</h2><p>This article selects a sample named “<strong><em>Your File Is Ready To Download.apk</em></strong>” as the object of analysis, and its basic information is shown below.</p><!--kg-card-begin: markdown--><blockquote>
<p>MD5：230ca35f90c55bf9c46ddfb7980b632d<br>
File type：Android<br>
Magic：Zip archive data, at least v2.0 to extract<br>
File size：543671 bytes</p>
</blockquote>
<!--kg-card-end: markdown--><p>The sample <em><strong>Assets</strong></em> have a dat file that contains Base64 encoded configuration information.</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/ads_asset-1.png" class="kg-image" alt loading="lazy"></figure><p>And the content is </p><!--kg-card-begin: markdown--><pre><code>eyJjaWQiOiIxZGZiZTAzNS1kNzViLTQzYzgtYmMwMy1kYTg5YWU5NzU1ZjYiLCJ1cmxzIjpbImh0dHBzOi8vbGlzZXJzcmF0aC5mdW4iXSwiZm4iOiJZb3VyIEZpbGUgSXMgUmVhZHkgVG8gRG93bmxvYWQiLCJpbmZvIjoiYmxhbmtfIiwicm91dGVzIjp7Ing4NiI6Ii94ODYiLCJhcm02NC12OGEiOiIvYXJtNjQiLCJ4ODZfNjQiOiIveDY0IiwiYXJtZWFiaS12N2EiOiIvYXJtIn0sInVpZCI6Ijg4ODA5ODcwOTM1NTMzMTk3MiIsInNpZDEiOiI4ODgwOTg3MDkzNTUzMzE5NzIiLCJ0aWQiOiI3OTIyOTciLCJzaWQyIjoiIn0
</code></pre>
<!--kg-card-end: markdown--><p>After Base64 decoding, we get the following configuration information in json format, and we can see that the "urls" field contains the domain name we want to characterize.</p><!--kg-card-begin: markdown--><pre><code>{
    &quot;cid&quot;: &quot;1dfbe035-d75b-43c8-bc03-da89ae9755f6&quot;,
    &quot;urls&quot;: [
        &quot;https[:]//lisersrath.fun&quot;
    ],
    &quot;fn&quot;: &quot;Your File Is Ready To Download&quot;,
    &quot;info&quot;: &quot;blank_&quot;,
    &quot;routes&quot;: {
        &quot;x86&quot;: &quot;/x86&quot;,
        &quot;arm64-v8a&quot;: &quot;/arm64&quot;,
        &quot;x86_64&quot;: &quot;/x64&quot;,
        &quot;armeabi-v7a&quot;: &quot;/arm&quot;
    },
    &quot;uid&quot;: &quot;888098709355331972&quot;,
    &quot;sid1&quot;: &quot;888098709355331972&quot;,
    &quot;tid&quot;: &quot;792297&quot;,
    &quot;sid2&quot;: &quot;&quot;
}
</code></pre>
<!--kg-card-end: markdown--><p>Download data from the domain stored in "urls" via the following code snippet.</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/ads_download-2.png" class="kg-image" alt loading="lazy"></figure><p>This process can generate the following URL.</p><!--kg-card-begin: markdown--><pre><code>lisersrath[.]fun/x86?v=0.0&amp;l=6.9&amp;p=Y29tLmludGVuc2l2ZS5zb3VuZA==
lisersrath[.]fun/x64?v=0.0&amp;l=6.9&amp;p=Y29tLmludGVuc2l2ZS5zb3VuZA==
lisersrath[.]fun/arm?v=0.0&amp;l=6.9&amp;p=Y29tLmludGVuc2l2ZS5zb3VuZA==
</code></pre>
<!--kg-card-end: markdown--><p>So what exactly is the download? Taking the x86 parameters as an example, the download gets a json file (f7e8f0aec32ceb27d5e202d4b2b50812), which has an apk field pointing to a new APK file (12098a59b35bcabb16bfeab887eb7f9f).</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/ads_json-1.png" class="kg-image" alt loading="lazy"></figure><p>After analysis, the new APK file belongs to the <strong><em>FakeAdsBlocker</em></strong> family, a covert adware program, which has a low detection rate of 4/64 in VT at the time of this writing.</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/ads_vt-1.png" class="kg-image" alt loading="lazy"></figure><p>In addition, we also found another URL.</p><!--kg-card-begin: markdown--><pre><code>lisersrath[.]fun:80/?cid=c423cdff-6c1b-4052-859f-11223c65f1ad&amp;tid=827722&amp;sid1=3182549073271873173&amp;sid2=1868&amp;fn=synapse_x_key&amp;uid=3182549073271873173&amp;lp=blank&amp;tit=UGxlYXNlIHdhaXQgYSBmZXcgbWludXRlcyB3aGlsZSB5b3VyIGZpbGUgaXMgYmVpbmcgZG93bmxvYWRlZC4uLgo=
</code></pre>
<!--kg-card-end: markdown--><p>Accessing the above domain, for example, will download an APK named "synapse_x_key" (a384b97afd0f9432a71b27fa0ccd9667), which is homologous to the sample analyzed above.</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/ads_syna-1.png" class="kg-image" alt loading="lazy"></figure><p>The main function is to download and execute FakeAdsBlocker.</p><p>So far, the purpose of the dissemination of this batch of domain names is very clear, they are used to spread FakeAdsBlocker Downloader and FakeAdsBlocker.</p><h2 id="new-features">New features</h2><p>In the process of manually checking the URLs, we noticed a patternthat we had not seen before, that is, a string of identical URLs with randomly downloaded samples at different times, with different MD5 values for each sample file.</p><p>For example.</p><!--kg-card-begin: markdown--><pre><code>https[:]//lisersrath.fun/?cid=f0e87e37-1bc6-4073-af71-efcc4a3eca22&amp;tid=792297&amp;sid1=7253754382927895919&amp;sid2=&amp;fn=Your%20File%20Is%20Ready%20To%20Download&amp;uid=7253754382927895919&amp;lp=steps
</code></pre>
<!--kg-card-end: markdown--><p>Randomly downloaded 3 times, the file name is "Your File Is Ready To Download.apk", but the MD5 values are.</p><!--kg-card-begin: markdown--><pre><code>ab2f4fde57fdcb56bce5ffa48c4d9069
21c99e0a12a7ce9dc0d91df9e29af4ad 
1e55fde5540147fbfac1c8060c449c58
</code></pre>
<!--kg-card-end: markdown--><p>Again, the author randomly picked another domain to test, same pattern</p><!--kg-card-begin: markdown--><pre><code>https[:]//holidano.top/?cid=a53fd199-f207-49dc-b5d7-aea0de14eee3&amp;tid=899546&amp;sid1=4009887093421271163&amp;sid2=122_15319606&amp;fn=MobileVPN&amp;uid=4009887093421271163&amp;lp=blank&amp;tit=UGxlYXNlIHdhaXQgYSBmZXcgbWludXRlcyB3aGlsZSB5b3VyIGZpbGUgaXMgYmVpbmcgZG93bmxvYWRlZC4uLgo=
</code></pre>
<!--kg-card-end: markdown--><p>The file name "MobileVPN.apk", MD5 values are different.</p><!--kg-card-begin: markdown--><pre><code>a3ad2ba6caf05275545d65cb2e8990d4
f4316d300116fa9de72f6f0ed3d29c28
56396eae0bbafd82701399d717ff3708
</code></pre>
<!--kg-card-end: markdown--><p>Inspired by this, we extracted a new feature and searched the database with the new feature to find the data with the same feature in the history, such as the URL in the following figure.</p><figure class="kg-card kg-image-card"><img src="__GHOST_URL__/content/images/2021/02/06_url_md5-1.png" class="kg-image" alt loading="lazy"></figure><p>Subsequently, all eligible historical data are manually statistically analyzed to determine the size of the contribution value of the new features to the judgment of the black action, and finally decide whether to merge them into the DNSMon system. It can be said that the accumulation of features is extremely important for a massive data analysis and mining system like DNSMon. It is the system that has precipitated a lot of rules in more than 6 years since 2014 that makes it possible to extract threat intelligence (domain name IOC) from the daily hundreds of billions of DNS traffic and provide security defense to end users.</p><h2 id="conclusion">Conclusion</h2><p>Thanks to the fundamental nature of DNS, DNSMon has a broad view and can see security events occurring on Linux, Windows and Android platforms without discrimination. The main reason for this capability is that the system has accumulated a large number of security-related feature rules.</p><p>Readers should note that they should not easily imitate the process of judging the malicous in the article by themselves. Industrial IoC production includes not only the basic determination process, but also the complex processes of filtering, false alarm prevention, feedback correction, fail-safe, and automation. This article is written to facilitate the reader's understanding of the general principles of how DNSMon works, but the complexity of the various devilish details of the industrialized process is far beyond what can be described in the lines.</p><h2 id="ioc"><strong>IoC</strong></h2><!--kg-card-begin: markdown--><pre><code>ereusingl[.]fun
lisersrath[.]fun
predition[.]fun
ningspais[.]top
ssuminat[.]top
erefulpat[.]top
stirlinebea[.]top
utionstro[.]top
lesseased[.]top
thinkdisen[.]top
edcarefe[.]fun
holidano[.]top
ehousan[.]top
swoulder[.]fun
riemanufa[.]top
ntrealing[.]fun
</code></pre>
<!--kg-card-end: markdown-->
Background

This article is the third in our series of articles introducing DNSMon in the production of threat intelligence (Domain Name IoC).

As a basic core protocol of the Internet, DNS protocol is one of the cornerstones for the normal operation of the Internet.

DNSMon, which was born and raised on the foundation of DNS protocol, naturally has a broad vision and can be involved in security incidents that happen in different industries or different platforms. In our first two blog posts of DNSMon's series, the Skidmap mentioned in the first article was infected with cloud hosts on Linux platform; while the second article mentioned a set of domain names issued after the Windows platform of an Internet cafe was infected; this article is a case involving Android platform. We believe this is the beauty of using DNS data, no matter what platform the bad guys are using, the knowledge points or rules used by DNSMon do not fundamentally change.


Blocking the unknown threat

Recently, we noticed that DMSMon has marked a set of structurally similar domains and automatically blocked them starting from 2021-01-10.

Going into the system to check the collected information, we see that this is a set of malicious domains related to Android platform.


Expanding Similar Domains

Using the rdata and other data of the automatically blocked domains, we found that DNSMon actually warned of more than the 5 domains listed above, there are 16 domains in this category in total.

ereusingl[.]fun
lisersrath[.]fun
predition[.]fun
ningspais[.]top
ssuminat[.]top
erefulpat[.]top
stirlinebea[.]top
utionstro[.]top
lesseased[.]top
thinkdisen[.]top
edcarefe[.]fun
holidano[.]top
ehousan[.]top
swoulder[.]fun
riemanufa[.]top
ntrealing[.]fun



In terms of active time, these 16 domains are put into use sequentially and have a relatively intensive launch period in January 2021.

In the course of writing this article, we have seen other new similar domains captured by our system such as antdaugh[.] top, ngslalatfin[.] top, etc., but for the sake of consistency, these new domains will be omitted from this article.


Reasons for autoblocking

In the first article, we mentioned that

The core of DNSMon is to cross-compare the massive DNS data with the security-related data owned by 360 (including whois, web, sandbox, honeypot, certificate, etc.) and analyze it to derive the threat intelligence IOC.

In the following, we analyze the data features and annotate from the whois and sandbox obtained by the system. Of course, in addition to these data, DNSMon's autoblocking process also relies on other feature data, but we will not list them here.


1. whois

The 16 domain names were registered in two batches, one on 2020-11-06 and the other on 2020-12-23; the length of validity of the registration: one year, and the privacy protection was turned on.

ereusingl.fun   createddate                 2020-11-06 10:10:12
ereusingl.fun   updateddate                 2020-11-06 10:20:27
ereusingl.fun   expiresdate                 2021-11-06 23:59:59
ereusingl.fun   status                      addPeriod | clientTransferProhibited | serverTransferProhibited
lisersrath.fun  createddate                 2020-11-06 10:10:12
lisersrath.fun  updateddate                 2020-11-06 10:20:20
lisersrath.fun  expiresdate                 2021-11-06 23:59:59
lisersrath.fun  status                      addPeriod | clientTransferProhibited | serverTransferProhibited
predition.fun   createddate                 2020-11-06 10:09:51
predition.fun   updateddate                 2020-11-06 10:15:26
predition.fun   expiresdate                 2021-11-06 23:59:59
predition.fun   status                      addPeriod | clientTransferProhibited | serverTransferProhibited
...

ningspais.top   createddate                 2020-12-23 15:57:59
ningspais.top   updateddate                 2021-01-06 10:37:20
ningspais.top   expiresdate                 2021-12-23 15:57:59
ningspais.top   status                      clientTransferProhibited
ssuminat.top    createddate                 2020-12-23 15:58:00
ssuminat.top    updateddate                 2021-01-06 10:37:23
ssuminat.top    expiresdate                 2021-12-23 15:58:00
ssuminat.top    status                      clientTransferProhibited
erefulpat.top   createddate                 2020-12-23 15:58:01
erefulpat.top   updateddate                 2021-01-06 10:37:24
erefulpat.top   expiresdate                 2021-12-23 15:58:01
erefulpat.top   status                      clientTransferProhibited
...



Batch registration + new domain names + short registration validity period + privacy protection, malicious possibility +1.


2. Sandbox

DNSMon's data on the sandbox focuses on the network behavior of the sample and extracts the relationship between the sample and the domain name visited, and then evaluates the score of the domain name in turn with the help of the sample's score. As can be seen from the correlation chart, the samples visiting the domains have malicious labels in the system (the samples are marked with "black dots" in the upper right corner).

According to the label propagation algorithm, 16 domains were awarded with black possibility plus points.

In order to clarify the purpose of sample propagation, we conducted a simple reverse analysis of the sample.


Reverse Analysis

This article selects a sample named “Your File Is Ready To Download.apk” as the object of analysis, and its basic information is shown below.




MD5：230ca35f90c55bf9c46ddfb7980b632d

File type：Android

Magic：Zip archive data, at least v2.0 to extract

File size：543671 bytes



The sample Assets have a dat file that contains Base64 encoded configuration information.

And the content is

eyJjaWQiOiIxZGZiZTAzNS1kNzViLTQzYzgtYmMwMy1kYTg5YWU5NzU1ZjYiLCJ1cmxzIjpbImh0dHBzOi8vbGlzZXJzcmF0aC5mdW4iXSwiZm4iOiJZb3VyIEZpbGUgSXMgUmVhZHkgVG8gRG93bmxvYWQiLCJpbmZvIjoiYmxhbmtfIiwicm91dGVzIjp7Ing4NiI6Ii94ODYiLCJhcm02NC12OGEiOiIvYXJtNjQiLCJ4ODZfNjQiOiIveDY0IiwiYXJtZWFiaS12N2EiOiIvYXJtIn0sInVpZCI6Ijg4ODA5ODcwOTM1NTMzMTk3MiIsInNpZDEiOiI4ODgwOTg3MDkzNTUzMzE5NzIiLCJ0aWQiOiI3OTIyOTciLCJzaWQyIjoiIn0



After Base64 decoding, we get the following configuration information in json format, and we can see that the "urls" field contains the domain name we want to characterize.

{
    "cid": "1dfbe035-d75b-43c8-bc03-da89ae9755f6",
    "urls": [
        "https[:]//lisersrath.fun"
    ],
    "fn": "Your File Is Ready To Download",
    "info": "blank_",
    "routes": {
        "x86": "/x86",
        "arm64-v8a": "/arm64",
        "x86_64": "/x64",
        "armeabi-v7a": "/arm"
    },
    "uid": "888098709355331972",
    "sid1": "888098709355331972",
    "tid": "792297",
    "sid2": ""
}



Download data from the domain stored in "urls" via the following code snippet.

This process can generate the following URL.

lisersrath[.]fun/x86?v=0.0&l=6.9&p=Y29tLmludGVuc2l2ZS5zb3VuZA==
lisersrath[.]fun/x64?v=0.0&l=6.9&p=Y29tLmludGVuc2l2ZS5zb3VuZA==
lisersrath[.]fun/arm?v=0.0&l=6.9&p=Y29tLmludGVuc2l2ZS5zb3VuZA==



So what exactly is the download? Taking the x86 parameters as an example, the download gets a json file (f7e8f0aec32ceb27d5e202d4b2b50812), which has an apk field pointing to a new APK file (12098a59b35bcabb16bfeab887eb7f9f).

After analysis, the new APK file belongs to the FakeAdsBlocker family, a covert adware program, which has a low detection rate of 4/64 in VT at the time of this writing.

In addition, we also found another URL.

lisersrath[.]fun:80/?cid=c423cdff-6c1b-4052-859f-11223c65f1ad&tid=827722&sid1=3182549073271873173&sid2=1868&fn=synapse_x_key&uid=3182549073271873173&lp=blank&tit=UGxlYXNlIHdhaXQgYSBmZXcgbWludXRlcyB3aGlsZSB5b3VyIGZpbGUgaXMgYmVpbmcgZG93bmxvYWRlZC4uLgo=



Accessing the above domain, for example, will download an APK named "synapse_x_key" (a384b97afd0f9432a71b27fa0ccd9667), which is homologous to the sample analyzed above.

The main function is to download and execute FakeAdsBlocker.

So far, the purpose of the dissemination of this batch of domain names is very clear, they are used to spread FakeAdsBlocker Downloader and FakeAdsBlocker.


New features

In the process of manually checking the URLs, we noticed a patternthat we had not seen before, that is, a string of identical URLs with randomly downloaded samples at different times, with different MD5 values for each sample file.

For example.

https[:]//lisersrath.fun/?cid=f0e87e37-1bc6-4073-af71-efcc4a3eca22&tid=792297&sid1=7253754382927895919&sid2=&fn=Your%20File%20Is%20Ready%20To%20Download&uid=7253754382927895919&lp=steps



Randomly downloaded 3 times, the file name is "Your File Is Ready To Download.apk", but the MD5 values are.

ab2f4fde57fdcb56bce5ffa48c4d9069
21c99e0a12a7ce9dc0d91df9e29af4ad 
1e55fde5540147fbfac1c8060c449c58



Again, the author randomly picked another domain to test, same pattern

https[:]//holidano.top/?cid=a53fd199-f207-49dc-b5d7-aea0de14eee3&tid=899546&sid1=4009887093421271163&sid2=122_15319606&fn=MobileVPN&uid=4009887093421271163&lp=blank&tit=UGxlYXNlIHdhaXQgYSBmZXcgbWludXRlcyB3aGlsZSB5b3VyIGZpbGUgaXMgYmVpbmcgZG93bmxvYWRlZC4uLgo=



The file name "MobileVPN.apk", MD5 values are different.

a3ad2ba6caf05275545d65cb2e8990d4
f4316d300116fa9de72f6f0ed3d29c28
56396eae0bbafd82701399d717ff3708



Inspired by this, we extracted a new feature and searched the database with the new feature to find the data with the same feature in the history, such as the URL in the following figure.

Subsequently, all eligible historical data are manually statistically analyzed to determine the size of the contribution value of the new features to the judgment of the black action, and finally decide whether to merge them into the DNSMon system. It can be said that the accumulation of features is extremely important for a massive data analysis and mining system like DNSMon. It is the system that has precipitated a lot of rules in more than 6 years since 2014 that makes it possible to extract threat intelligence (domain name IOC) from the daily hundreds of billions of DNS traffic and provide security defense to end users.


Conclusion

Thanks to the fundamental nature of DNS, DNSMon has a broad view and can see security events occurring on Linux, Windows and Android platforms without discrimination. The main reason for this capability is that the system has accumulated a large number of security-related feature rules.

Readers should note that they should not easily imitate the process of judging the malicous in the article by themselves. Industrial IoC production includes not only the basic determination process, but also the complex processes of filtering, false alarm prevention, feedback correction, fail-safe, and automation. This article is written to facilitate the reader's understanding of the general principles of how DNSMon works, but the complexity of the various devilish details of the industrialized process is far beyond what can be described in the lines.


IoC

ereusingl[.]fun
lisersrath[.]fun
predition[.]fun
ningspais[.]top
ssuminat[.]top
erefulpat[.]top
stirlinebea[.]top
utionstro[.]top
lesseased[.]top
thinkdisen[.]top
edcarefe[.]fun
holidano[.]top
ehousan[.]top
swoulder[.]fun
riemanufa[.]top
ntrealing[.]fun


{"version":"0.3.1","atoms":[],"cards":[["image",{"src":"__GHOST_URL__/content/images/2021/02/block_01-1.png"}],["markdown",{"markdown":"```\nereusingl[.]fun\nlisersrath[.]fun\npredition[.]fun\nningspais[.]top\nssuminat[.]top\nerefulpat[.]top\nstirlinebea[.]top\nutionstro[.]top\nlesseased[.]top\nthinkdisen[.]top\nedcarefe[.]fun\nholidano[.]top\nehousan[.]top\nswoulder[.]fun\nriemanufa[.]top\nntrealing[.]fun\n```"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/sdanf_02-1.png"}],["markdown",{"markdown":"```\nereusingl.fun   createddate                 2020-11-06 10:10:12\nereusingl.fun   updateddate                 2020-11-06 10:20:27\nereusingl.fun   expiresdate                 2021-11-06 23:59:59\nereusingl.fun   status                      addPeriod | clientTransferProhibited | serverTransferProhibited\nlisersrath.fun  createddate                 2020-11-06 10:10:12\nlisersrath.fun  updateddate                 2020-11-06 10:20:20\nlisersrath.fun  expiresdate                 2021-11-06 23:59:59\nlisersrath.fun  status                      addPeriod | clientTransferProhibited | serverTransferProhibited\npredition.fun   createddate                 2020-11-06 10:09:51\npredition.fun   updateddate                 2020-11-06 10:15:26\npredition.fun   expiresdate                 2021-11-06 23:59:59\npredition.fun   status                      addPeriod | clientTransferProhibited | serverTransferProhibited\n...\n\nningspais.top   createddate                 2020-12-23 15:57:59\nningspais.top   updateddate                 2021-01-06 10:37:20\nningspais.top   expiresdate                 2021-12-23 15:57:59\nningspais.top   status                      clientTransferProhibited\nssuminat.top    createddate                 2020-12-23 15:58:00\nssuminat.top    updateddate                 2021-01-06 10:37:23\nssuminat.top    expiresdate                 2021-12-23 15:58:00\nssuminat.top    status                      clientTransferProhibited\nerefulpat.top   createddate                 2020-12-23 15:58:01\nerefulpat.top   updateddate                 2021-01-06 10:37:24\nerefulpat.top   expiresdate                 2021-12-23 15:58:01\nerefulpat.top   status                      clientTransferProhibited\n...\n```"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/corr_03-1.png"}],["markdown",{"markdown":"> MD5：230ca35f90c55bf9c46ddfb7980b632d\n> File type：Android\n> Magic：Zip archive data, at least v2.0 to extract\n> File size：543671 bytes"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/ads_asset-1.png"}],["markdown",{"markdown":"```\neyJjaWQiOiIxZGZiZTAzNS1kNzViLTQzYzgtYmMwMy1kYTg5YWU5NzU1ZjYiLCJ1cmxzIjpbImh0dHBzOi8vbGlzZXJzcmF0aC5mdW4iXSwiZm4iOiJZb3VyIEZpbGUgSXMgUmVhZHkgVG8gRG93bmxvYWQiLCJpbmZvIjoiYmxhbmtfIiwicm91dGVzIjp7Ing4NiI6Ii94ODYiLCJhcm02NC12OGEiOiIvYXJtNjQiLCJ4ODZfNjQiOiIveDY0IiwiYXJtZWFiaS12N2EiOiIvYXJtIn0sInVpZCI6Ijg4ODA5ODcwOTM1NTMzMTk3MiIsInNpZDEiOiI4ODgwOTg3MDkzNTUzMzE5NzIiLCJ0aWQiOiI3OTIyOTciLCJzaWQyIjoiIn0\n```"}],["markdown",{"markdown":"```\n{\n    \"cid\": \"1dfbe035-d75b-43c8-bc03-da89ae9755f6\",\n    \"urls\": [\n        \"https[:]//lisersrath.fun\"\n    ],\n    \"fn\": \"Your File Is Ready To Download\",\n    \"info\": \"blank_\",\n    \"routes\": {\n        \"x86\": \"/x86\",\n        \"arm64-v8a\": \"/arm64\",\n        \"x86_64\": \"/x64\",\n        \"armeabi-v7a\": \"/arm\"\n    },\n    \"uid\": \"888098709355331972\",\n    \"sid1\": \"888098709355331972\",\n    \"tid\": \"792297\",\n    \"sid2\": \"\"\n}\n```"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/ads_download-2.png"}],["markdown",{"markdown":"```\nlisersrath[.]fun/x86?v=0.0&l=6.9&p=Y29tLmludGVuc2l2ZS5zb3VuZA==\nlisersrath[.]fun/x64?v=0.0&l=6.9&p=Y29tLmludGVuc2l2ZS5zb3VuZA==\nlisersrath[.]fun/arm?v=0.0&l=6.9&p=Y29tLmludGVuc2l2ZS5zb3VuZA==\n```"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/ads_json-1.png"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/ads_vt-1.png"}],["markdown",{"markdown":"```\nlisersrath[.]fun:80/?cid=c423cdff-6c1b-4052-859f-11223c65f1ad&tid=827722&sid1=3182549073271873173&sid2=1868&fn=synapse_x_key&uid=3182549073271873173&lp=blank&tit=UGxlYXNlIHdhaXQgYSBmZXcgbWludXRlcyB3aGlsZSB5b3VyIGZpbGUgaXMgYmVpbmcgZG93bmxvYWRlZC4uLgo=\n```"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/ads_syna-1.png"}],["markdown",{"markdown":"```\nhttps[:]//lisersrath.fun/?cid=f0e87e37-1bc6-4073-af71-efcc4a3eca22&tid=792297&sid1=7253754382927895919&sid2=&fn=Your%20File%20Is%20Ready%20To%20Download&uid=7253754382927895919&lp=steps\n```"}],["markdown",{"markdown":"```\nab2f4fde57fdcb56bce5ffa48c4d9069\n21c99e0a12a7ce9dc0d91df9e29af4ad \n1e55fde5540147fbfac1c8060c449c58\n```"}],["markdown",{"markdown":"```\nhttps[:]//holidano.top/?cid=a53fd199-f207-49dc-b5d7-aea0de14eee3&tid=899546&sid1=4009887093421271163&sid2=122_15319606&fn=MobileVPN&uid=4009887093421271163&lp=blank&tit=UGxlYXNlIHdhaXQgYSBmZXcgbWludXRlcyB3aGlsZSB5b3VyIGZpbGUgaXMgYmVpbmcgZG93bmxvYWRlZC4uLgo=\n```"}],["markdown",{"markdown":"```\na3ad2ba6caf05275545d65cb2e8990d4\nf4316d300116fa9de72f6f0ed3d29c28\n56396eae0bbafd82701399d717ff3708\n```"}],["image",{"src":"__GHOST_URL__/content/images/2021/02/06_url_md5-1.png"}],["markdown",{"markdown":"```\nereusingl[.]fun\nlisersrath[.]fun\npredition[.]fun\nningspais[.]top\nssuminat[.]top\nerefulpat[.]top\nstirlinebea[.]top\nutionstro[.]top\nlesseased[.]top\nthinkdisen[.]top\nedcarefe[.]fun\nholidano[.]top\nehousan[.]top\nswoulder[.]fun\nriemanufa[.]top\nntrealing[.]fun\n```"}]],"markups":[["a",["href","__GHOST_URL__/security-with-dns-data_en/"]],["a",["href","__GHOST_URL__/use-dns-data-produce-threat-intelligence-2/"]],["strong"],["em"]],"sections":[[1,"h2",[[0,[],0,"Background"]]],[1,"p",[[0,[],0,"This article is the third in our series of articles introducing DNSMon in the production of threat intelligence (Domain Name IoC)."]]],[1,"p",[[0,[],0,"As a basic core protocol of the Internet, DNS protocol is one of the cornerstones for the normal operation of the Internet."]]],[1,"p",[[0,[],0,"DNSMon, which was born and raised on the foundation of DNS protocol, naturally has a broad vision and can be involved in security incidents that happen in different industries or different platforms. In our first two blog posts of DNSMon's series, the Skidmap mentioned in "],[0,[0],1,"the first article"],[0,[],0," was infected with cloud hosts on Linux platform; while "],[0,[1],1,"the second article"],[0,[],0," mentioned a set of domain names issued after the Windows platform of an Internet cafe was infected; this article is a case involving Android platform. We believe this is the beauty of using DNS data, no matter what platform the bad guys are using, the knowledge points or rules used by DNSMon do not fundamentally change."]]],[1,"h2",[[0,[],0,"Blocking the unknown threat"]]],[1,"p",[[0,[],0,"Recently, we noticed that DMSMon has marked a set of structurally similar domains and automatically blocked them starting from 2021-01-10."]]],[10,0],[1,"p",[[0,[],0,"Going into the system to check the collected information, we see that this is a set of malicious domains related to Android platform."]]],[1,"h2",[[0,[],0,"Expanding Similar Domains"]]],[1,"p",[[0,[],0,"Using the rdata and other data of the automatically blocked domains, we found that DNSMon actually warned of more than the 5 domains listed above, there are 16 domains in this category in total."]]],[10,1],[1,"p",[[0,[],0,"In terms of active time, these 16 domains are put into use sequentially and have a relatively intensive launch period in January 2021."]]],[10,2],[1,"p",[[0,[],0,"In the course of writing this article, we have seen other new similar domains captured by our system such as antdaugh[.] top, ngslalatfin[.] top, etc., but for the sake of consistency, these new domains will be omitted from this article."]]],[1,"h2",[[0,[],0,"Reasons for autoblocking"]]],[1,"p",[[0,[],0,"In "],[0,[0],1,"the first article"],[0,[],0,", we mentioned that"]]],[1,"blockquote",[[0,[],0,"The core of DNSMon is to cross-compare the massive DNS data with the security-related data owned by 360 (including whois, web, sandbox, honeypot, certificate, etc.) and analyze it to derive the threat intelligence IOC."]]],[1,"p",[[0,[],0,"In the following, we analyze the data features and annotate from the whois and sandbox obtained by the system. Of course, in addition to these data, DNSMon's autoblocking process also relies on other feature data, but we will not list them here."]]],[1,"h3",[[0,[],0,"1. whois"]]],[1,"p",[[0,[],0,"The 16 domain names were registered in two batches, one on 2020-11-06 and the other on 2020-12-23; the length of validity of the registration: one year, and the privacy protection was turned on."]]],[10,3],[1,"p",[[0,[],0,"Batch registration + new domain names + short registration validity period + privacy protection, malicious possibility +1."]]],[1,"h3",[[0,[],0,"2. Sandbox"]]],[1,"p",[[0,[],0,"DNSMon's data on the sandbox focuses on the network behavior of the sample and extracts the relationship between the sample and the domain name visited, and then evaluates the score of the domain name in turn with the help of the sample's score. As can be seen from the correlation chart, the samples visiting the domains have malicious labels in the system (the samples are marked with \"black dots\" in the upper right corner)."]]],[10,4],[1,"p",[[0,[],0,"According to the label propagation algorithm, 16 domains were awarded with black possibility plus points."]]],[1,"p",[[0,[],0,"In order to clarify the purpose of sample propagation, we conducted a simple reverse analysis of the sample."]]],[1,"h2",[[0,[],0,"Reverse Analysis"]]],[1,"p",[[0,[],0,"This article selects a sample named “"],[0,[2,3],2,"Your File Is Ready To Download.apk"],[0,[],0,"” as the object of analysis, and its basic information is shown below."]]],[10,5],[1,"p",[[0,[],0,"The sample "],[0,[3,2],2,"Assets"],[0,[],0," have a dat file that contains Base64 encoded configuration information."]]],[10,6],[1,"p",[[0,[],0,"And the content is "]]],[10,7],[1,"p",[[0,[],0,"After Base64 decoding, we get the following configuration information in json format, and we can see that the \"urls\" field contains the domain name we want to characterize."]]],[10,8],[1,"p",[[0,[],0,"Download data from the domain stored in \"urls\" via the following code snippet."]]],[10,9],[1,"p",[[0,[],0,"This process can generate the following URL."]]],[10,10],[1,"p",[[0,[],0,"So what exactly is the download? Taking the x86 parameters as an example, the download gets a json file (f7e8f0aec32ceb27d5e202d4b2b50812), which has an apk field pointing to a new APK file (12098a59b35bcabb16bfeab887eb7f9f)."]]],[10,11],[1,"p",[[0,[],0,"After analysis, the new APK file belongs to the "],[0,[2,3],2,"FakeAdsBlocker"],[0,[],0," family, a covert adware program, which has a low detection rate of 4/64 in VT at the time of this writing."]]],[10,12],[1,"p",[[0,[],0,"In addition, we also found another URL."]]],[10,13],[1,"p",[[0,[],0,"Accessing the above domain, for example, will download an APK named \"synapse_x_key\" (a384b97afd0f9432a71b27fa0ccd9667), which is homologous to the sample analyzed above."]]],[10,14],[1,"p",[[0,[],0,"The main function is to download and execute FakeAdsBlocker."]]],[1,"p",[[0,[],0,"So far, the purpose of the dissemination of this batch of domain names is very clear, they are used to spread FakeAdsBlocker Downloader and FakeAdsBlocker."]]],[1,"h2",[[0,[],0,"New features"]]],[1,"p",[[0,[],0,"In the process of manually checking the URLs, we noticed a patternthat we had not seen before, that is, a string of identical URLs with randomly downloaded samples at different times, with different MD5 values for each sample file."]]],[1,"p",[[0,[],0,"For example."]]],[10,15],[1,"p",[[0,[],0,"Randomly downloaded 3 times, the file name is \"Your File Is Ready To Download.apk\", but the MD5 values are."]]],[10,16],[1,"p",[[0,[],0,"Again, the author randomly picked another domain to test, same pattern"]]],[10,17],[1,"p",[[0,[],0,"The file name \"MobileVPN.apk\", MD5 values are different."]]],[10,18],[1,"p",[[0,[],0,"Inspired by this, we extracted a new feature and searched the database with the new feature to find the data with the same feature in the history, such as the URL in the following figure."]]],[10,19],[1,"p",[[0,[],0,"Subsequently, all eligible historical data are manually statistically analyzed to determine the size of the contribution value of the new features to the judgment of the black action, and finally decide whether to merge them into the DNSMon system. It can be said that the accumulation of features is extremely important for a massive data analysis and mining system like DNSMon. It is the system that has precipitated a lot of rules in more than 6 years since 2014 that makes it possible to extract threat intelligence (domain name IOC) from the daily hundreds of billions of DNS traffic and provide security defense to end users."]]],[1,"h2",[[0,[],0,"Conclusion"]]],[1,"p",[[0,[],0,"Thanks to the fundamental nature of DNS, DNSMon has a broad view and can see security events occurring on Linux, Windows and Android platforms without discrimination. The main reason for this capability is that the system has accumulated a large number of security-related feature rules."]]],[1,"p",[[0,[],0,"Readers should note that they should not easily imitate the process of judging the malicous in the article by themselves. Industrial IoC production includes not only the basic determination process, but also the complex processes of filtering, false alarm prevention, feedback correction, fail-safe, and automation. This article is written to facilitate the reader's understanding of the general principles of how DNSMon works, but the complexity of the various devilish details of the industrialized process is far beyond what can be described in the lines."]]],[1,"h2",[[0,[2],1,"IoC"]]],[10,20],[1,"p",[]]],"ghostVersion":"3.0"}