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

Auto detect and auto shutout password crack attempts

HI
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?
0
psimation
Asked:
psimation
3 Solutions
 
ahoffmannCommented:
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
0
 
wesly_chenCommented:
Hi,

   Password attend limitation is in
/etc/pam.d/system-auth
password    required      /lib/security/pam_cracklib.so retry=5

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

Wesly
0
 
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?
0
 
pjedmondCommented:
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.

HTH:)
0

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