• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Auto detect and auto shutout password crack attempts

Is it at all possible to have a system that auto-detects password crack attempts and then auto-lock any further access from that IP for a period of time (configurable, so you can say that 5 failed attempts within a period of 1 minute = a crack attempt, then lock/ban that IP for 30 minute etc?)  It would obviously help to have something "sentralized" that can handle any applications' password checking, SSH, FTP, SMTP etc etc. so that all services are protected by this "time-dealy" lock?
3 Solutions
you either need to tell this delay each of your services (ssh, ftp, etc.), or you can use iptables with the --limit (and some other) options to detect connect requests within a given time intervall

   Password attend limitation is in
password    required      /lib/security/pam_cracklib.so retry=5

   I'm not sure PAM can check the IP and ban it for 30 minutes.

psimationAuthor Commented:
My system already has the retry=3 set, yet I still see more than 3000 attempts on root account from one source. What is the "supposed" action when retry reaches 3?
I believe that after 3 attempts, even if you get the right password, it is ignores and treated as incorrect. Logging continues in order to help anyone trying to examine what happened at a later date.

The reason for this is that ideally a good authentication system should never change the reaction that the attacker sees.  If the attacker starts getting any form of feedback, he knows that he has done something and can reallocaet the resources that he is using, or improve his attacking process.


Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now