<snip>
: Sep 11 17:17:01 sandbox sshd[17125]: error: accept: Software caused
: connection abort
:
: There was 1000s of such lines. The offenders have been banned now but
: I'm posting this message to warn other users if they haven't come
: across this type of attack before and also to remind myself to make a
: decoder and matching rule in the morning so that Ossec picks this up
: in the future.
:
: Chris
You can do a number of things on the box (aside from OSSEC) to help with this:
- Edit sshd_config and use the 'AllowUsers' option to limit which users can SSH in.
- Configure your firewall to only allow incoming connections to tcp/22 from trusted hosts.
- Block countries you're sure don't have any legitimate reason for connecting (i.e. China, Korea, etc.)
There were a lot of discussions about this in the past few days across various lists, since it seems there was a spike on this. Google should be caught up now with the threads...
hth
-Kevin
This message may contain confidential or proprietary information and is intended solely for the individual(s) to whom it is addressed. If you are not a named addressee you should not disseminate, distribute or copy this e-mail or act upon the information contained herein. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.
I don't think it was necessary to modify the decoder since the current
decoder decodes that log line fine. Were you having issues with the
decoder?
Your custom rule should be all you need to alert on this kind of attack.
Cheers,
cnk
*** Making os_maild ***
gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" -DCLIENT
-DUSE_OPENSSL -DDarwin -DHIGHFIRST -DARGV0=\"ossec-maild\"
-DXML_VAR=\"var\" -DOSSECHIDS maild.c config.c os_maild_client.c
sendmail.c mail_list.c ../config/*.c ../shared/lib_shared.a
../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a -o ossec-maild
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld:
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib unknown
flags (type) of section 6 (__TEXT,__literal16) in load command 0
collect2: ld returned 1 exit status
make[1]: *** [maild] Error 1
Error Making os_maild
make: *** [all] Error 1
Error 0x5.
Building error. Unable to finish the installation.
Does anyone have any suggestions or instruction about how to build the
software on Leopard?
Thanks in advance
Jimi