invalid ssh attempts

This is a discussion on invalid ssh attempts within the Linux Security forums, part of the System Security and Security Related category; Is it unusual to get attempted ssh logins almost every day for months? Example: Jul 7 03:40:50 hp1 ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-05-2005
John Sandell
 
Posts: n/a
Default invalid ssh attempts


Is it unusual to get attempted ssh logins almost every day for months?

Example:

Jul 7 03:40:50 hp1 sshd[22604]: Invalid user zulgaftp from
::ffff:212.37.192.44


That day, there were 5667 attempts...

Is this common?

John Sandell
Reply With Quote
  #2 (permalink)  
Old 12-05-2005
Jan Pompe
 
Posts: n/a
Default Re: invalid ssh attempts

John Sandell wrote:
> Is it unusual to get attempted ssh logins almost every day for months?
>
> Example:
>
> Jul 7 03:40:50 hp1 sshd[22604]: Invalid user zulgaftp from
> ::ffff:212.37.192.44
>
>
> That day, there were 5667 attempts...
>
> Is this common?
>
> John Sandell


I have seen some attempts to connect to the port but not quite on that
scale. Others mileage might vary.
Reply With Quote
  #3 (permalink)  
Old 12-05-2005
base60
 
Posts: n/a
Default Re: invalid ssh attempts

John Sandell wrote:
> Is it unusual to get attempted ssh logins almost every day for months?
>
> Example:
>
> Jul 7 03:40:50 hp1 sshd[22604]: Invalid user zulgaftp from
> ::ffff:212.37.192.44
>
>
> That day, there were 5667 attempts...
>
> Is this common?


Well, it's not uncommon.

You might want to give some thought to restricting access via
tcpwrappers etc. to a specific range of IP addresses, if possible.
Reply With Quote
  #4 (permalink)  
Old 12-05-2005
Mandeep Shergill
 
Posts: n/a
Default Re: invalid ssh attempts

Check out fail2ban, it's a python script that blocks IPs that make too many failed ssh login attempts.
Reply With Quote
  #5 (permalink)  
Old 12-05-2005
Mungo
 
Posts: n/a
Default Re: invalid ssh attempts

John Sandell <jsandell@att.net> wrote in
news:oCNkf.224933$zb5.185697@bgtnsc04-news.ops.worldnet.att.net:
>
> Is it unusual to get attempted ssh logins almost every day for months?
>
> Example:
>
> Jul 7 03:40:50 hp1 sshd[22604]: Invalid user zulgaftp from
>::ffff:212.37.192.44
>
> That day, there were 5667 attempts...


About average for a /24 block. Some days more, some days less. Definitely
unusually high for a single address.

If these boxes are all on linux systems you might try the ":recent" feature
of iptables to block offending addresses for a period of time after a few
tries.

I'm still trying to figure out how they came up with a few of the account
names the worm is trying. Not exactly your every day names.

mungo
------------
The backhoe is the natural predator of the fiber optic cable.

Reply With Quote
  #6 (permalink)  
Old 12-05-2005
Unruh
 
Posts: n/a
Default Re: invalid ssh attempts

John Sandell <jsandell@att.net> writes:


>Is it unusual to get attempted ssh logins almost every day for months?


>Example:


>Jul 7 03:40:50 hp1 sshd[22604]: Invalid user zulgaftp from
>::ffff:212.37.192.44



>That day, there were 5667 attempts...


>Is this common?


Yes. The latest game is to throw logon attempts at ssh with weak passwords,
hoping that someone somewhere left a hole in their ssh.
It is usual to get 5000 attempts per day.



>John Sandell

Reply With Quote
  #7 (permalink)  
Old 12-05-2005
Jon Solberg
 
Posts: n/a
Default Re: invalid ssh attempts

John Sandell said the following on 2005-12-05 03:29:
> Is it unusual to get attempted ssh logins almost every day for months?


No.

> Example:
>
> Jul 7 03:40:50 hp1 sshd[22604]: Invalid user zulgaftp from
> ::ffff:212.37.192.44
>
> That day, there were 5667 attempts...
>
> Is this common?


Yes.

--
Jon Solberg (remove "nospam" from email address).
Reply With Quote
  #8 (permalink)  
Old 12-05-2005
Jan Pompe
 
Posts: n/a
Default Re: invalid ssh attempts

Unruh wrote:
> John Sandell <jsandell@att.net> writes:
>
>
>
>>Is it unusual to get attempted ssh logins almost every day for months?

>
>
>>Example:

>
>
>>Jul 7 03:40:50 hp1 sshd[22604]: Invalid user zulgaftp from
>>::ffff:212.37.192.44

>
>
>
>>That day, there were 5667 attempts...

>
>
>>Is this common?

>
>
> Yes. The latest game is to throw logon attempts at ssh with weak passwords,
> hoping that someone somewhere left a hole in their ssh.
> It is usual to get 5000 attempts per day.


So a good idea would be to put a delay between retries from the one site
as someone above suggested?
Reply With Quote
  #9 (permalink)  
Old 12-05-2005
Scott en Aztlán
 
Posts: n/a
Default Re: invalid ssh attempts

On Mon, 05 Dec 2005 06:42:40 GMT, Mungo <reallydontmail@me.com> wrote:

>I'm still trying to figure out how they came up with a few of the account
>names the worm is trying. Not exactly your every day names.


Indeed - either a couple of the script kiddies made EXTREMELY lucky
guesses, or they somehow gained some sort of information regarding the
valid usernames on my system.

BTW, I heartily second the use of the "recent" option in iptables - it
has virtually eliminated the brute-force SSH attacks.

Reply With Quote
  #10 (permalink)  
Old 12-05-2005
Menno Duursma
 
Posts: n/a
Default Re: invalid ssh attempts

On Tue, 06 Dec 2005 02:15:53 +1100, Jan Pompe wrote:
> Unruh wrote:
>> John Sandell <jsandell@att.net> writes:


>>>Is this common?

>>
>> Yes. The latest game is to throw logon attempts at ssh with weak passwords,
>> hoping that someone somewhere left a hole in their ssh.
>> It is usual to get 5000 attempts per day.

>
> So a good idea would be to put a delay between retries from the one site
> as someone above suggested?


I'd think so. If the system supports PAM, maybe also for usernames:
http://www-uxsup.csx.cam.ac.uk/~pjb1...ect/pam_delay/

--
-Menno.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0