Community discussions

MikroTik App
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

Hacked DVR's

Fri Oct 21, 2016 8:33 pm

Maybe this is old news but I found it fascinating. One of my firewall rules grabs hack attempts on my routers and throws them into an address list for a week. At that point all traffic from that IP is dropped. Over the years the number of IP's in this list has grown and grown to the point that I currently have over 117,000 entries listed from the last week alone. I decided to investigate a few random IP's to see where they were coming from and what they were. Out of the handful I looked at several of them had port 80 open and turned out to be DVRs called PCBOX which I found alarming. So it made me wonder, are the vast majority of these attempts coming from the same model device or does every compromised computer just happen to have one of these things? Obviously I am not going to look at 100k IP's, but if the first few came from the same type of device it must be pretty wide spread.

Best I can tell, these are the guys attacking me.
http://www.pcboxargentina.com.ar/productos/?id=82


Just thought I'd share. If you're using a DVR secure that thing! :)
 
User avatar
rcourtney
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed May 22, 2013 10:55 pm

Re: Hacked DVR's

Fri Oct 21, 2016 8:45 pm

Interesting. These devices usually are running a low end linux OS. It is not hard to insert code into ram and then execute it.
Being a part of a security system that allows strangers to get access to cameras is also disturbing.
 
User avatar
acruhl
Member
Member
Posts: 371
Joined: Fri Jul 03, 2015 7:22 pm

Re: Hacked DVR's

Sat Oct 22, 2016 5:40 am

Define "hack attempt" please. This is interesting.
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

Re: Hacked DVR's

Sat Oct 22, 2016 6:00 pm

Its a pretty simple rule that says if connections are made on the input chain of the router to common ports like ssh, telnet, http, etc then put the incoming ip into an address list for a period of time and drop all traffic from those ips.

I just read on cbs that the big ddos attack on the us yesterday included dvr systems. As i saide earlier lately my list of hacker ips has grown a lot.
 
andlil
just joined
Posts: 13
Joined: Sat Oct 08, 2016 7:38 pm
Location: Sweden

Re: Hacked DVR's

Sat Oct 22, 2016 7:26 pm

Its a pretty simple rule that says if connections are made on the input chain of the router to common ports like ssh, telnet, http, etc then put the incoming ip into an address list for a period of time and drop all traffic from those ips.
As a beginner I would really like to see that rule, kind of fail2ban i guess?

//A
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

Re: Hacked DVR's

Mon Oct 24, 2016 6:18 pm

The best way to secure your router is to create accept rules for things you want and drop everything else, but I like to have a bit of visibility to see what people are trying to do before dropping them. So the idea is to identify IP's that are making malicious attempts and then drop everything they try to do. Once they are in the list I drop them from the input chain and the forward chain to get rid of them everywhere. I figure if they are trying to poke around with my main router I don't want them poking around at anything beyond the router either. Prior to these rules I have other rules that accept traffic on my input chain from specific IP's that I control. Don't add these rules without that first or you might lock yourself out of your router. One of my rules works like this:

Rule 1
;;; Drop all Traffic from Hackers on Input Chain for 7 Days
chain=input action=drop src-address-list=Hackers log=no log-prefix=""

Rule2
;;; Drop all Traffic from Hackers on Forward Chain
chain=forward action=drop src-address-list=Hackers log=no log-prefix=""

Rule 3
;;; Add Router Hack attempts to Address List for 7 Days
chain=input action=add-src-to-address-list address-list=Hackers address-list-timeout=1w
dst-port=21,22,23,80,443,8291 log=no log-prefix=""
 
mag2020
Trainer
Trainer
Posts: 79
Joined: Sat Nov 30, 2013 8:49 am

Re: Hacked DVR's

Mon Oct 24, 2016 7:55 pm

Best I can tell, these are the guys attacking me.
http://www.pcboxargentina.com.ar/productos/?id=82
These guys may not be the ones attacking your system. They, too may just be victims like you. Their hardware are high-jacked by the bad boys.
 
User avatar
blajah
Member Candidate
Member Candidate
Posts: 222
Joined: Fri Jun 12, 2015 8:58 pm
Location: Belgrade, Serbia
Contact:

Re: Hacked DVR's

Mon Oct 24, 2016 10:23 pm

Confirming. Currently i have 1096 IP's on ACL, but my timeout is 1d. I have checked random 15 addresses and 13 were DVRs.
 
R1CH
Forum Guru
Forum Guru
Posts: 1108
Joined: Sun Oct 01, 2006 11:44 pm

Re: Hacked DVR's

Mon Oct 24, 2016 11:48 pm

This is the Mirai botnet (and variants) scanning for new devices to infect. Welcome to the Internet of Terrible Things.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 3139
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Hacked DVR's

Tue Oct 25, 2016 7:46 am

Confirming. Currently i have 1096 IP's on ACL, but my timeout is 1d. I have checked random 15 addresses and 13 were DVRs.

in my case i filter everything except my country ips.

daily my mikrotik blacklist 50-100 ip addresses all from my country (im in a small country)
 
andlil
just joined
Posts: 13
Joined: Sat Oct 08, 2016 7:38 pm
Location: Sweden

Re: Hacked DVR's

Tue Oct 25, 2016 7:59 am

Thanks jmay, I added "your" rules with just ports 21,22,23,1194 and I got 8 IP:s poking around in just 8 minutes...

Scary indeed!
 
nikc
Member Candidate
Member Candidate
Posts: 208
Joined: Wed Jul 13, 2016 6:05 pm

Re: Hacked DVR's

Tue Oct 25, 2016 11:41 am

Rule 1
;;; Drop all Traffic from Hackers on Input Chain for 7 Days
chain=input action=drop src-address-list=Hackers log=no log-prefix=""

Rule2
;;; Drop all Traffic from Hackers on Forward Chain
chain=forward action=drop src-address-list=Hackers log=no log-prefix=""

Rule 3
;;; Add Router Hack attempts to Address List for 7 Days
chain=input action=add-src-to-address-list address-list=Hackers address-list-timeout=1w
dst-port=21,22,23,80,443,8291 log=no log-prefix=""
Do these need to be right at the top of the rules list ?
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

Re: Hacked DVR's

Tue Oct 25, 2016 5:23 pm

I should add that you should have some accept rules at the top. Accept traffic to ports from IP's that you control. For example, if you only use winbox to talk to your router and you always do it from the same IP address then accept that port from that IP. Then you can post rules like mine with a drop everything rule at the bottom. This way you are dropping all traffic to the router, but still seeing a bit of what's happening.

Who is online

Users browsing this forum: No registered users and 36 guests