Threat Intel | Meeting Mr. Black
My honeypots haven't been getting much action lately....poor guys. But, I got lucky, and had some individuals log on to them this morning, so I figured I'd do another blog post about their activity.
So, I'm starting to use Splunk to manage my honeypot data (More on this to come later, awesome news to share!), which makes this a ton easier to search and parse out. With that being said, let's dive into it...
First, I ran a search to check out all the honeypot sessions where there were commands entered, as opposed to just sessions started and then the attacker bailed. That search looked like this:
index=kippo cmd=* | rex field=cmd "wget\s(?<url>.*)" | search url=* | table url, src_ip, _time, host, session_id
Once that search finished, I was left with all the commands that contained URL's in there, so I could see what malware was being downloaded. I know that regex sucks, but, it worked for my scenario. I was left with these results:
So, we can see 2 attackers, I'm assuming they are possibly related, however, no guarantees yet. The first attacker, 126.96.36.199 was seen downloading a file from http://188.8.131.52:7070, that HTTP File Server wasn't serving up much, so I started checking out the other server and attacker.
The next attacker was 184.108.40.206 and downloaded a bunch of malware of varying architectures from http://220.127.116.11:65326.
18.104.22.168 is an IP in CHINANET Jiangsu Province Network (shocker, I know....). The malware hosting IP, 22.214.171.124, is registered to Aliyun Computing Co., LTD located in....China. Again, shocker I know.
inetnum: 126.96.36.199 - 188.8.131.52
descr: Aliyun Computing Co., LTD
descr: 5F, Builing D, the West Lake International Plaza of S&T
descr: No.391 Wen'er Road, Hangzhou, Zhejiang, China, 310099
status: ALLOCATED PORTABLE
changed: email@example.com 20140730
This guy is plenty active according to multiple IP reputation services. Thanks to threatrecon.co for some good indicator searching, here's a few results, but there were plenty more:
Here's a screenshot of the HTTP File Server and all the malware it's serving:
Moving onto the malware, I started looking at ss64, which is an ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, stripped.
I uploaded this to VirusTotal and malwr.com, however, neither provided to be that fruitful. I submitted the 32-bit version of ss to the same sites, and it popped up about 4 times as MrBlack Trojan, which I'm not too familiar with, seeing as how I'm pretty new to the whole malware analysis scene. So, since the dynamic malware analysis tools I would use didn't seem to be that helpful, I gave a shot at just seeing what I could find. I ran the file on a spun-up Kali instance and it would just hang here forever.
Since that's all that was happening, I decided to check out the behind-the-scenes comms, hoping to identify the server.
Int Server... connect to server...
Looking at 184.108.40.206, it appears to be an IP out of a California based hosting company:
NetRange: 220.127.116.11 - 18.104.22.168
Parent: NET192 (NET-192-0-0-0-0)
NetType: Direct Allocation
OriginAS: AS29761, AS8100
Organization: QuadraNet, Inc (QUADR-20)
Doing some recon on that box, I noticed it was running various services, to include IIS, which identified it as a Chinese user possibly, due to the language present on the running services.
I started running a tcpdump to try and see what type of communication was happening.
kali> tcpdump -i eth0 -nnvvXS dst 22.214.171.124 -w /tmp/black.pcap
The above screenshot was the only thing distinct about the communication so far, which was my OS, kali, and another thing of interest, Mr.Black, which just reinforces the results from VirusTotal. I'm currently running tcpdump to see if anything else ever happens besides what appear to be keep-alive messages or beacons. Ninja Edit I let it run overnight, and there was nothing of interest, so, I'm not sure how often C2 comms get sent, or if I'm missing something. So, if anyone knows more about Mr.Black, please let me know.
Lastly, here's a little sketch made of the communications and systems involved. I'm more a visual learner and enjoy when things are visually depicted as well as spelled out, so I wanted to include something like this.