Home > Apache, Linux, Security > Using iptables to reject w00tw00t.at.ISC.SANS.DFind scanners

Using iptables to reject w00tw00t.at.ISC.SANS.DFind scanners

Hello people,

I found recently in my apache log thousands of “w00tw00t.at.ISC.SANS.DFind” requests coming from all parts of the world.

I’ve been searching for solutions to remove their hits because they consume resources on my servers and they doesn’t help when computing my visitors stats…

1) Apache mod_security

There are many different way to remove those hits, 1st manner that I found was to use “mod_security” with apache and create specific rules on it.

The only problem, it force apache to filter every request and it doesn’t look like (to me) a fast processing for my web server…

(If you have additional benchmark info on it, I’m interested)

2) Fail2Ban

Fail2Ban is a tool that watch your log periodically and create iptables rules to deny evil users connecting to your site.

The only problem with it, it bans the ip AFTER the woot.woot request was make.

3) Iptables

Iptables is a linux netfilter module that helps administrator creating software firewall.

It’s probably the most advanced firewall module of all times!

I found recently a parameter that allow filtering requests by checking / reading the packet’s content.

In our “w00tw00t.at.ISC.SANS.DFind” case, we want to make sure those request never succeed on our apache webserver.

Here is the command that I use to disallow them:

root@server:~# iptables -I INPUT -p tcp --dport 80 -m string --to 70 --algo bm --string 'GET /w00tw00t.at.ISC.SANS.' -j DROP

Basically, it will get 70 bytes of the packet and check that it doesn’t contain the HTTP request “GET /w00tw00t.at.ISC.SANS.”

The following command will display statistic on our iptables rules, so you can check that they are working properly.

root@server:~# iptables -L INPUT -nvx
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts      bytes target     prot opt in     out     source               destination
 82     8249 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp dpt:80 STRING match "GET /w00tw00t.at.ISC.SANS." ALGO name bm TO 70

Enjoy !

Categories: Apache, Linux, Security Tags: , , ,
  1. Minocula
    December 31st, 2010 at 01:10 | #1

    Hi there…very good description! You’r the first on Google…that mean something…had the same problem like you….but question: where do you thin this “w00tw00t.at.ISC.SANS.DFind” is comming? there is no ip etc. in my log… :(

    Kind regards from switzerland…

  2. January 11th, 2011 at 18:03 | #2

    Hi,

    Actually, those request can come from anywhere on the world.
    They are made by security scanner who seek for apache versions / configurations to know if there are bug to exploit in it

  3. chrisw
    March 3rd, 2011 at 14:17 | #3

    Thanks Pierre – nice neat solution.

  1. No trackbacks yet.
*