Failed SSHD Login Attempts (15,000 per day) - Is that a lot compared to your server?


 
Thread Tools Search this Thread
Special Forums Cybersecurity Failed SSHD Login Attempts (15,000 per day) - Is that a lot compared to your server?
# 8  
Old 09-27-2019
Quote:
Originally Posted by stomp
@Neo: Thanks for rephrasing and clarifying your request!

Here's a script which calculates the FLAPM value:
THANKS!

Yes, my first post was vague and not clear, so I started over and tried to be more clear.

That's what happens when I am multi-tasking many tasks at once and just do a "quick post" without putting my full thoughts down in the post. My bad and sorry for the earlier confusion.

Your script is really great and a strong contribution.

Perhaps in the future we should add a flag each server can be identified if fail2ban is turned on?

What do you think? Is that an important metric to add, do you think?
# 9  
Old 09-27-2019
Quote:
That's what happens when I am multi-tasking many tasks at once and just do a "quick post" without putting my full thoughts down in the post.
Same from receiving side. I also only just had a very quick read on your post.

Instead of one car crashing into a wall two cars crashing frontal into each other with the same speed do square damage instead of just double. So square amount of misunderstanding here ;-)

More maybe later.

Last edited by stomp; 09-27-2019 at 01:54 PM..
This User Gave Thanks to stomp For This Post:
# 10  
Old 09-27-2019
Quote:
fail2ban ... What do you think? Is that an important metric to add, do you think?
It maybe fail2ban is configured properly, up and running. That will definitely explain a rate below average. But f2b can be running without being configured to do blocking at all or not correctly adapted to the system. It may be a weak variable.

What regards the ssh port. From my experience it will make a huge difference if it's running on default port 22 or a custom port. Most attackers are just using the easiest methods because there's still enough to harvest.

Regarding my server list:

I did a quick check and removed the results which might not be plausible(flapm <= 0). There might be a pool of servers not shown because flapm rounded down to zero.

Last edited by stomp; 09-27-2019 at 02:10 PM..
This User Gave Thanks to stomp For This Post:
# 11  
Old 09-28-2019
FYI.

Normally, I do not run automatic banning systems, but after reviewing fail2ban again, I see the ban is configured out-of-the-box to only ban for a short period.

So, am testing fail2ban on all my Linux servers.

However, I agree with you stomp, that changing the sshd port from 22 to another value is one of the best deterrents agains these bots.

The same is also true for web software, for example Word Press. The best way to stop bot registrations, bot logins and spam posts is to change the URL of the registration, log in or posting scripts.

Also, having said that, I was hoping not to quickly get into remediation and risk management; but to get more people to post their FLAPM stats; using our simple method, so we could gather more stats.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris logs - Tracking failed attempts from my host

Hey all I'm having a big problem here. Someone is attempting an SSH to a destination host on which an account resides and locking the account. I'm trying to determine who is performing the SSH attempts from my host. For instance they're logged in as their standard account but then (I'm assuming)... (13 Replies)
Discussion started by: MaindotC
13 Replies

2. UNIX for Dummies Questions & Answers

TCP failed connection attempts from netstat -s

Dear experts, I am seeing a lot of TCP failed connection attempts from "netstat -s" on one of our servers. How can I pin point what connection failed and what are the ports involved? Any tools/commands I can dig in deeper to diag. what went wrong on these "failed connection attempts"? ... (2 Replies)
Discussion started by: cache51
2 Replies

3. Shell Programming and Scripting

Shell script in tracking both the passed and failed login in a unix server

Can you help me in providing the following output or a quite similar to this from a shell script ? *** Logins Summary Information ***** ---------------------------------- Failed Login Attempts for Invalid Accounts Date Time IP-ADD Account ... (0 Replies)
Discussion started by: linuxgeek
0 Replies

4. AIX

Invalid login attempts

How can I see the number of invalid login attempts of a user? Thanks, (9 Replies)
Discussion started by: agasamapetilon
9 Replies

5. Solaris

Number of login attempts on solaris 10

Hi, I want to sent number of login attempts ,so that after that much attempts user account should be locked on solaris 10 (2 Replies)
Discussion started by: manoj.solaris
2 Replies

6. AIX

ftp check for failed attempts

Hi, I have created the below ftp script to put files over to our capacity server, the check at the end works if ftp fails to run however if the script cannot login or the transfer itself failed there is no warnings. Does anyone know the syntax to trap the erorr codes or to put a check within... (3 Replies)
Discussion started by: chlawren
3 Replies

7. AIX

Denying IPaddress for Multiple Failed Login Attempts

Hi. I would like to be able to deny IP address for too many failed login attemps (either from ssh, sftp, ftp, etc). The system I wish this to work on is an AIX 5.1 system. I'm new to AIX but I'm a linux user. There is a program for linux called fail2ban which reads from the log files and see if... (1 Reply)
Discussion started by: metzgerh
1 Replies

8. Solaris

invalid login attempts...

I am wondering if solaris captures id's associated w/invalid login attempts? when I try to login as "test1" several (3-5) times, I do not find any userID info under "/var/adm" files: utmpx wtmpx messages lastlog Is there another location/log I should be checking? Is it necessary for... (6 Replies)
Discussion started by: mr_manny
6 Replies

9. UNIX for Advanced & Expert Users

Maximum 3 login attempts

Hi, I notice in my Sun Solaris 8 sparc workstation, if I failed my login in the 5th time, I will be closed the connection from the host. I want to make 3 times. That is, if user fails to login with 3 attempts, he will be closed the connection. How to do it? Of course I am the admin of the... (2 Replies)
Discussion started by: champion
2 Replies
Login or Register to Ask a Question