Re: ssh attempts
- From: Robert Bauer <rbauer@xxxxxxxxxxxxxxxxx>
- Date: Mon, 09 Jan 2006 09:29:19 -0500
Limiting SSH to a particular IP (or set of IP's) isn't always practical.
As for how & where to do the blocking, besides TCPWrappers, don't forget
the excellent iptables firewall you probably already have on your system.
Also, consider changing the port SSH listens on. This will stop nearly
all of the scripted attacks. Another valuable technique is to have your
system detect these attacks and dynamically block the source IP
addresses. Scripts for doing this are pretty easy to find on the net.
Robert Bauer
Snow Enterprises
(336) 623-7772 ext. 307
Leif Ericksen wrote:
> Lock down your box a little more... Enable TCPWrappers in the very
> least. IF they are able to hit your system like that via SSH it is
> obvious that you are not blocking. This is common. My firewall logs
> show and have shown attempts to ssh (This is for a personal system)
> they get stopped at the firewall because they are not coming from the
> correct IP address(es) Incidentally the ones I see hitting my firewall
> cam from China, Korea, and Taiwan for the most part, least wise that is
> what the IP indicated as long as it was not spoofed.
>
> Before I locked down my firewall to IP I would see the rejects because
> of Wrappers.
>
> If the system is on the net LOCK IT DOWN.
>
> --
> Leif Ericksen
> On Wed, 2006-01-04 at 11:35 +0100, Emilio Casbas wrote:
>
>> I´ve noticed that several Linux Machines I have running are getting
>> scanned via ssh for
>> multiple accounts such as "guest webmaster mysql info shell apache
>> test..." and many others,
>> the log show:
>>
>> Jan 3 01:31:08 machine sshd2[22087]: WARNING: DNS lookup failed for
>> "X.X.X.233".
>> Jan 3 01:31:10 machine sshd2[22087]: password authentication failed.
>> Login to account webmaster not allowed or account non-existent.
>> Jan 3 01:31:13 machine sshd2[21757]: LoginGraceTime exceeded.
>>
>> as well there are attempts to connect with root login, with the log
>> message show as:
>>
>> WARNING: DNS lookup failed for "X.X.X.233".
>> Jan 3 01:17:53 machine sshd2[21651]: root login denied for user 'root'.
>>
>> Obviously, We don´t have accounts with that name on our systems, and the
>> root account
>> is disabled for ssh, but I would like to know which software can do this
>> scan type, because
>> while it's running, the machine proccesses grow too much.
>>
>> Thanks.
>> Emilio C.
>>
>>
>> ---------------------------------------------------------------------------
>> EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE
>> The Norwich University program offers unparalleled Infosec management
>> education and the case study affords you unmatched consulting experience.
>> Tailor your education to your own professional goals with degree
>> customizations including Emergency Management, Business Continuity Planning,
>> Computer Emergency Response Teams, and Digital Investigations.
>>
>> http://www.msia.norwich.edu/secfocus
>> ----------------------------------------------------------------------------
>>
>>
---------------------------------------------------------------------------
EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE
The Norwich University program offers unparalleled Infosec management
education and the case study affords you unmatched consulting experience.
Tailor your education to your own professional goals with degree
customizations including Emergency Management, Business Continuity Planning,
Computer Emergency Response Teams, and Digital Investigations.
http://www.msia.norwich.edu/secfocus
----------------------------------------------------------------------------
- Follow-Ups:
- Re: ssh attempts
- From: Matt Alexander
- Re: ssh attempts
- References:
- ssh attempts
- From: Emilio Casbas
- Re: ssh attempts
- From: Leif Ericksen
- ssh attempts
- Prev by Date: Re: Hardware Security Module - Best Practices
- Next by Date: Enterasys D.I.R Vs. Cisco
- Previous by thread: Re: ssh attempts
- Next by thread: Re: ssh attempts
- Index(es):
Relevant Pages
|
|