Security Incidents mailing list archives
re: SSH scans...
From: Kerry Thompson <kerry () crypt gen nz>
Date: Wed, 22 Dec 2004 21:35:45 +1300
On Wed, 2004-12-22 at 08:14, brian () ethernet org wrote:
i dont know how relevant this is, but-- i've been getting a lot of these too, but what's been annoying me is that they took bandwidth and space in my logs which i both need as the brute force attempts were mainly to my development machines.
I've developed a version of Logsurfer which does something very similar and can be used to detect similar attacks against other services. With Logsurfer+ ( see http://www.crypt.gen.nz/logsurfer ) the rule would be # # detect ssh brute force # ' ([^ ]+) sshd\[[0-9]*\]: Invalid user .* from ([^ ]+)' - - - 0 open "$2 sshd\\[[0-9]*\\]: .* from $3" - 200 1800 600 10 report "/bin/mailx -s \"Server $2 SSH Login attempts from $2\" admin () example com" "$2 sshd\\[[0-9]*\\]: .* from $3" Its a little cryptic, but here 1800 is the absolute timeout from the time of the first message occurring, 600 is the relative timeout after the last message and 10 is the minimum number of lines which are needed to trigger the action ( mailx in this case ). This has the advantage that it can watch the syslog server which collects logs from any number of hosts, and the thresholds can be tuned to your needs. -- Kerry Thompson CCNA CISSP IT Security Consultant kerry () crypt gen nz http://www.crypt.gen.nz
Current thread:
- Re: SSH scans..., (continued)
- Re: SSH scans... Peter Willis (Dec 20)
- Re: SSH scans... skippy1 (Dec 21)
- Re: SSH scans... Peter Willis (Dec 20)
- Re: SSH scans... Raymond Lillard (Dec 20)
- Re: SSH scans... Ben Nelson (Dec 20)
- Re: SSH scans... Steve Kemp (Dec 20)
- RE: SSH scans... KEM Hosting (Dec 21)
- Re: SSH scans... Michael H. Warfield (Dec 21)
- Re: SSH scans... nixsec (Dec 22)
- Re: SSH scans... Dejan Markovic (Dec 22)
- re: SSH scans... brian () ethernet org (Dec 21)
- re: SSH scans... Kerry Thompson (Dec 22)
