Forum Moderators: phranque

Message Too Old, No Replies

Worms, Viruses, how do I get ride of them?

Worms, Viruses

         

firefly2442

3:12 am on Nov 20, 2002 (gmt 0)

10+ Year Member



I'm running apache and I've been looking at the access log and there are tons of hits trying to access "cmd.exe" "default.ida" and "root.exe" through different levels. Is there a way to stop this? It's taking up a lot of bandwidth and continues to get worse.

-Thank you for the help.

jdMorgan

5:11 am on Nov 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



firefly2442,

The only way to totally stop it is to block the offending IP addresses at the host's firewall. Your hosting service may or may not be willing to do this for you.

On the remote chance that some variants might be smart enough to handle a 403-forbidden code, you can add the following to your top-level .htaccess file, or modify it slightly to work in httpd.conf if you have configuration file priveleges:


# Add options, Enable mod_rewrite
Options +FollowSymlinks
RewriteEngine On
#
# Block MS IIS server security exploits
RewriteRule \.ida$ - [F]
RewriteRule /cmd\.exe$ - [F]
RewriteRule /root\.exe$ - [F]
RewriteRule /shell\.exe$ - [F]
RewriteRule \_vti\_ - [F]
RewriteRule ^NULL - [NC,F]
#
# Block various attacks
RewriteRule ^a\.asp/ - [F]
RewriteRule ^.*\.\./ - [F]
RewriteRule formm?ail - [NC,F]

Another thing you can do is to look up the offending IP addresses using ARIN, APNIC, and RIPE, and report them to their ISPs. Sometimes this works, sometimes it doesn't.

HTH,
Jim