Deny List?

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
LifeOfBrian
504 Command not implemented
Posts: 6
Joined: 2018-01-18 09:24
First name: Brian

Deny List?

#1 Post by LifeOfBrian » 2018-01-18 09:42

Our tiny FTP site has been the subject of a constant brute force attack (botnet) for a few years, I started blocking network ranges to see if I could spot some pattern, I found (or at least assume) there are some control nodes in normally trusted locations like EU, US etc. that once the FTP is checked online then trigger attacks from compromised accounts in China, India etc.
Long story short I have millions of IP's blocked in FileZilla server and add new each week, I'd like to see what IP's are still actively trying and can't seem to understand if that is presented anywhwere?

In an ideal world I'd like some "Deny List" separate log so I can look for stale entries or spot the geographic location of new botnet deployments.

Oh and in case anyone asks how I know it is a botnet the connections follow a sequence, so connections come in turn, one attempt from each single IP address.
IP 1.1.1.1 - user/user2017
IP 1.1.1.2 - user/user2016
IP 1.1.1.3 - user/user2015
If I block enough IP's enventually it resets and tries combintations it has tried earlier, Oh and the biggest chunk of IP ranges blocked is from the far east.

Bri

User avatar
botg
Site Admin
Posts: 35565
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Deny List?

#2 Post by botg » 2018-01-18 18:57

The trick is to use long passwords, then you can just ignore brute force attempts.

LifeOfBrian
504 Command not implemented
Posts: 6
Joined: 2018-01-18 09:24
First name: Brian

Re: Deny List?

#3 Post by LifeOfBrian » 2018-01-19 09:51

I do use long passwords but the logs get full of junk if I allow all connections, some are raw commands that fill a log screen.
I have very few legitimate users but they might be anywhere in the world so what I try to do is keep and eye on the service but is much harder if it's just scrolling chaff.

The software is useful to me so I give thanks for that and will continue to try and filter the connections (and resulting logs) as best I can.

Example of chaff that obscures the interesting entries (this ia after 25907221 IP addresses, mostly in /16 masks blocked).

(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> Connected on port 21, sending welcome message...
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 4
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> (
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> ÿU
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> MSSQLServer
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> d!
(000316)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000317)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> Connected on port 21, sending welcome message...
(000317)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> CONNECT xui.ptlogin2.qq.com:443 HTTP/1.1
(000317)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000317)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> HOST: xui.ptlogin2.qq.com:443
(000317)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> Connected on port 21, sending welcome message...
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> Connected on port 21, sending welcome message...
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> à
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> œ
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> +<M
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000318)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> M
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)>
(000319)18/01/2018 10:06:07 - (not logged in) (113.96.223.207)> 500 Syntax error, command unrecognized.
(000316)18/01/2018 10:06:08 - (not logged in) (113.96.223.207)> disconnected.
(000317)18/01/2018 10:06:08 - (not logged in) (113.96.223.207)> disconnected.

User avatar
botg
Site Admin
Posts: 35565
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Deny List?

#4 Post by botg » 2018-01-19 10:47

Have you considered a whitelist approach? Block everything by default and only allow known-good IP ranges.

LifeOfBrian
504 Command not implemented
Posts: 6
Joined: 2018-01-18 09:24
First name: Brian

Re: Deny List?

#5 Post by LifeOfBrian » 2018-01-19 13:11

Yes I have considered (more than a few times) it but it would slow down the support system, we often don't know where the customers will connect from, some use corporate satellite links and others temporary engineering bases in global locations, few if any will be able to quickly provide their possible IP ranges.
It's working OK currently, I was really trying to avoid having to be clever about the future "bad" subnets when the range is close to real customers.
So far I have not blocked any legitimate connections but eventually if people don't properly lock down up their cPanel/Webmin type authentications (a common bot source) I could end up permanently dropping 65k of addresses that are otherwise benign and not having any way to know if those addresses are still being used for the bots.

My hope is that the customers move on from 70's protocols before I block "everyone" from spite :roll:

User avatar
boco
Contributor
Posts: 26938
Joined: 2006-05-01 03:28
Location: Germany

Re: Deny List?

#6 Post by boco » 2018-01-19 18:47

Using a custom port other than 21* already prevents a large part of random drops. Port scanners are often configured to only scan default service ports.


*Port must be above 1024 as those first 1024 are reserved.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

LifeOfBrian
504 Command not implemented
Posts: 6
Joined: 2018-01-18 09:24
First name: Brian

Re: Deny List?

#7 Post by LifeOfBrian » 2018-01-26 10:16

The only reason we run an FTP server is that customers, some on boats (via satellite links) have very restricted range of services, software for clients and ports, we have to be on standard port no.s and fixed IP address so their IT guys can open up the access.
If one customer can't do non-standard ports it makes it hard, most can't do non-standard ports.

I'm sounding like the "tried that didn't work!" guy, sorry :lol: .

Post Reply