Community discussions

MikroTik App
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

MT Router honeypot.

Mon Jun 11, 2018 7:56 am

Ive decided to play with all these bad things floating around like VPNFilter. I have setup a 2011 router on old firmware from last year and removed all firewall protection and opened up all the ports and exposed it directly to the internet..

I want to hopefully get infected with VPNFilter and I want to play with it.

I wont put anything on the LAN side. I do have a Deepfreeze frozen PC that I could just reimage if need be...

It just sounds interesting and fun. I want to see how to eradicate it and just watch and see what it tries to do. I want to see it do MIM and other things.. It sounds really interesting. Its apparently a state sponsored malware..
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Mon Jun 11, 2018 8:34 am

Tik.jpg
So I am using 6.32.3 from 2105.. I dont have a admin user and the user im using has a good password..

ALL services are exposed to the net. Accept on input/output/forward

In 30 mins ive already seen tons of SSH attempts with Admin/Root..

This is going to be great fun. How long before 6.32.3 get owned ?

But how do I know its been owned ? >System > Packages > Check Installation ? My Disk space changes ? CPU Use changes ? Memory changes ?

This is going to be very interesting.. I will learn a lot.. Once its been compromised I will then attempt clean up..

I dont care that the IP is exposed in the above image. If you wanted to have a go at it, go right ahead :)
You do not have the required permissions to view the files attached to this post.
 
ivicask
Member
Member
Posts: 425
Joined: Tue Jul 07, 2015 2:40 pm
Location: Croatia, Zagreb

Re: MT Router honeypot.

Mon Jun 11, 2018 10:39 am

I wonder if Mikrotik has honeypot routers, pretty sure they dont or they would already capture all the previous exploits before it would spread like they did.

Any official statement regarding this from mikrotik?
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Mon Jun 11, 2018 11:06 am

Oh, oops. I did not mean to cause MT any headache :( Im just doing it for fun and education. I would think MT does do this.

So far ive got a few hours of direct exposure to the wild internet with all my ports open using a OS from 2015 and it still seems to be ok. Im getting tons of SSH brute force attempts that are interesting to watch. Bots try out like 20 user/passwords then give up. So far nothing very interesting.

I am assuming if it gets compromised by VPNFilter it will scan or check the LAN side. So I have a PC on that side running Winpcap & Wireshark looking for anything from the LAN.

So right now nothing can brute force the user password. This means the only way to compromise it is with a real exploit. I will let this run a few days and if nothing gets in I will create the default MT admin user with no password and then see what happens.

Im just really interested in what a compromised router is like. How to detect the issue. What to look for. Then I want to see how to fix it. VPNFilter is VERY interesting and im very interested in what that does and how that works.
 
User avatar
karlisi
Member
Member
Posts: 439
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: MT Router honeypot.

Mon Jun 11, 2018 1:20 pm

This can be fun :) I suggest to forward the log to some syslog server, for some analysis later.
 
User avatar
WirtelPL
newbie
Posts: 34
Joined: Sat Nov 11, 2017 11:22 am
Location: Poland

Re: MT Router honeypot.

Mon Jun 11, 2018 1:37 pm

Create an "admin" user with read-only access and a strong password and observe brute force attacks :-)
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: MT Router honeypot.

Tue Jun 12, 2018 2:24 am

This can be fun :) I suggest to forward the log to some syslog server, for some analysis later.

Yes, and also stream packet sniffer to wireshark device for wan port
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Tue Jun 12, 2018 9:04 am

Well yes, there are a bunch of ways to be serious about what im doing :) But im also busy and doing a lot of real work. So, I cant set that all up yet. I need to really make a FreeBSD ( my fav ) image and use that on the LAN side to really look at whats happening and to real pcapture.

So im just doing it for fun.. Right now im just trying to get infected.. Its just sorta casual fun..

It does not *appear* to be compromised yet and iver got 24 hrs on it now. ZILLIONS of SSH bruteforce attacks by obviously different bot nets tho. I have not left any user name defaults open yet.

There is something a bit suspicions. The "Check System" now goes 1%, never advances to more then 1% and comes back immd and says its ok. Thats kinda weird as normally it takes a few seconds and you see it progress in %. CPU is spiking a bit higher at 4-5% where before it was always 0-1%. Im also lost some available RAM.. So MAYBE its been compromised. Not sure yet, and tonight I cant go check...

I will keep things posted here. Im going to be really busy and at times out of town in the next 2 weeks. But rest assured its still sitting there and im still letting it collect malware..

So far im impressed. Maybe VPNfilter requires a default username/password. Nothing so far seems to have had a effect.
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Tue Jun 12, 2018 9:30 am

OK why not.... I setup a Admin user with no password... That should do it...
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: MT Router honeypot.

Tue Jun 12, 2018 9:56 am

The honeypot should be normally secured otherwise you catch nothing.
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Wed Jun 13, 2018 5:16 am

I do agree... But .. I want some fun to occur.. What happens when you just leave a MT router completly defensless ? As I mentioned, this is more of a fun pursuit rather then a serious thing... BUT.. I will do the serious stuff in a week or so once I have more time...

In the meantime... I Believe the router is now infected with something. Its CPU is not 50-85% and im getting 2000 IPs in 4 hours hitting it.. I have not done much work to figure out whats going on yet. It does pass the "check packages" test..

I will analyze some flow and see what its doing.. It might be participating in a bot net as its outbound traffic has really increased...

HmmMMmMm.... This might be illegal.. It might be against my ISP ToS too.... Hmmmm......
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: MT Router honeypot.

Wed Jun 13, 2018 6:46 am

In the meantime... I Believe the router is now infected with something. Its CPU is not 50-85% and im getting 2000 IPs in 4 hours hitting it.. I have not done much work to figure out whats going on yet. It does pass the "check packages" test..
Open DNS resolver most likely. Did you leave “Allow Remote Request” checked?
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Wed Jun 13, 2018 7:14 am

Its almost continously doing traffic on ports 22 and 443 now.. Its clearly doing something.. No DNS traffic at all, DNS cache has 9 items in it.

Using the packet sniffer its producing a weird result... Im confuzed by the top line, no protocol and no port. What does this mean ? See screen shot..

CPU is coming in bursts. It varies from a normal level to periods of minutes where its 50-90%

Its got something.. Also its having regular log-ins on admin. So most likely its becoming more infested :)
odd.gif
You do not have the required permissions to view the files attached to this post.
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Wed Jun 13, 2018 7:18 am

Cool the top IPs are all TOR IPs... Its churning away doing something on TOR... Nice... Its got something...
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Wed Jun 13, 2018 7:22 am

Here, you guys can come look and play with it if you want to... You can make changes if you want, poke at it if you want. Just post what you did and what you found.

98.165.132.62
user mt
pass mtmtmt
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Wed Jun 13, 2018 7:28 am

Cool the top IPs are all TOR IPs... Its churning away doing something on TOR... Nice... Its got something...
Oh. Just totals... NVM...
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Wed Jun 13, 2018 5:39 pm

HAHAHAHA... "Hes dead Jim"..... So the 2011 only had its power light on this morning. hahahaha... A power cycle brought it back to life tho... I dont have time right now to explore it further right now.. I will look later..

Its back online at the above IP if anyone wanted to poke at it tho :)

This poor router..

I do think tho that it would have been pretty good with reasonable user/passwords.. Leaving admin open to the world is what has killed it..
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1497
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: MT Router honeypot.

Wed Jun 13, 2018 8:19 pm

I see your firewall rule adds any IP to the bad list. So I am now on your bad list - ha ha ha
Entertaining...
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Thu Jun 14, 2018 2:55 am

You BAD person ! hahahahaha... Well your among 3900 IPs.. So your IP is obscured.. hahahaha..

Well.. Its alive right now.. Its spitting out 2Mbps- 10mbps for no apparent reason.. hahaha..

Its corrupted.. Now to try and see what its got... Hmmm.... I have done a support.rif for you MT guys, maybe you can tell me what its got ? and i did a export

Both attached..

This was not a real test as i just left open all ports, disabled all firewalls, left open all services and set up user acct with no password and took a old version of the OS.. So its important for anyone reading this to understand that no normal Mikrotik install would EVER end up like this. Well hopefully not at least..
You do not have the required permissions to view the files attached to this post.
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Thu Jun 14, 2018 4:20 am

I could not figure out what it had... The issue seemed to clear and not come back on power cycle. I had lost a bunch of discspace and could not up or downgrade.

So I NAND formatted, netinstalled 6.42.3, created a second partition to make later recovery easier and have set it up again on the same IP above with the same user/pass if you want to poke at it and look at logs or ANYTHING..

So this will be a more interesting test. This is the current RouterOS exposed big time to the net directly. I would think this might survive this unless something changes actual router settings. There should be no exploits I know of that effect the current version ?

Well its up and running.. We shall see..

The last thing I will try in this series of tests will be to use a secure password but everything wide open.
 
User avatar
Xymox
Member
Member
Topic Author
Posts: 416
Joined: Thu Jan 21, 2010 5:04 pm
Location: Phoenix, Arizona US
Contact:

Re: MT Router honeypot.

Thu Jun 14, 2018 6:27 pm

Oops... Well this proves the router was compromised.. My ISP got angry !

My router attacked Sony !!! Wow,,, the router became part of a botnet and was attacking people. That was the 2-10Mbps I describe above.. I dont know what malware compromized it tho.

I pulled the router for now, I will put in place firewall rules to block outgoing connections and then continue my playing tonight.

I do want to be clear that this was with 2 year old firmware.. The current firmware is patched. Interesting tho that a router can become a botnet member
_________________________
Dear Subscriber,

We have received data or complaints showing a possible attack, probe or trojan-generated spam activity originating from your Cox.net IP address. Details of this activity are included below.

If you are unaware of how this occurred, we suggest that you speak with any other persons whom you may share your Cox Internet Service with. If you are operating a wireless network, we recommend enabling encryption to prevent unauthorized parties from using your service. You should also update your anti-virus software and run a full scan on your systems.

Approximate Time Range (UTC), IP Address, Reason
2018-06-13 07:48 ~ 2018-06-13 08:18 (UTC), 98.165.132.62, Account Takeover Attempts

It is most likely the attack traffic is directed at one of the following endpoints:

account.sonyentertainmentnetwork.com
auth.api.sonyentertainmentnetwork.com

The destination port will be TCP 443.
____________
Last edited by Xymox on Thu Jun 14, 2018 7:24 pm, edited 2 times in total.

Who is online

Users browsing this forum: Bing [Bot], jamesperks and 100 guests