1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Go to bottomPage: 1
TOPIC: SSH guessing?
#41866
SSH guessing? 11 Months, 4 Weeks ago  
I recently was looking through my /var/log/secure for something completely unrelated and I happen to see an attempt of a ssh connection from the same IP over and over.

From what I can tell someone was trying to guess my username and password through SSH to gain access to my system. I've since blocked that IP address for incomming connections..

Thing I am wondering doesCOS tell you of these attempts at some threshold and I missed it? or does it not have the ability?
Yamanipanuchi
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#41883
Re: SSH guessing? 11 Months, 4 Weeks ago  
Don't leave port 22 open! at the very least if you are change the default port...better still disable root login, and permit only key based connections. Otherwise you leave yourself vulnerable to these kinds of attacks

The IPS does have some brute force type rules but the threshholds are quite high, so it may have gone un-noticed. Make sure the telnet rules are enabled and have a loot at /etc/snort/telnet.rules

Code:

telnet.rules:alert tcp any any -> any 22 ( msg:"SSH potential brute force attack"; flow:to_server; flags:S; threshold:type threshold, track by_src, count 6, seconds 30; classtype:suspicious-login; sid:3000001; rev:5; fwsam:src, 1 day; )

Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#41894
Re: SSH guessing? 11 Months, 4 Weeks ago  
Ya I disabled root login, But I never changed the port. I use SSH all the time so I just redirected it to a different port#
Yamanipanuchi
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#41931
Re: SSH guessing? 11 Months, 3 Weeks ago  
Fail2ban or denyhosts should take care of brute force attempts

If you want I wrote a guide on running two factor auth with ssh on clear a while ago, have not tired on 6x yet
herballizard
Platinum Boarder
Posts: 394
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop