gotroot modsecurity Rules for Apache – Anti-spam and Security

Use Netsparker


To follow on from Whitetrash which I posted about previously, here is another tool to secure your web site or web application. Essentially it’s a very comprehensive set of rules for mod_security.

ModSecurity is an open source intrusion detection and prevention engine for web applications (or a web application firewall). Operating as an Apache Web server module or standalone, the purpose of ModSecurity is to increase web application security, protecting web applications from known and unknown attacks.

For ModSecurity to be effective it needs a rule set just like any IDS or Anti-virus solution, gotroot currently provides the largest selection of rules to secure your site.

This is only an option if you are using Apache 1.x or Apache 2.x if you are using IIS or another web server you are out of luck.

If you run any kind of web application, you need a web application firewall. Simply put, a web application firewall analyzes the connections to your web application to make sure they don’t contain attacks, viruses, worms or violate certain rules about normal or acceptable behavior for your web application(s).

The gotroot rules protect against all of that, and more, such as SQL injection protection, URI formating protection, meta and null character filtering, path recursion attack protection, buffer and heap overflow defenses, remote file inclusion attack prevention and many many others. This helps to protect your web server, applications, database or anything else your web application(s) have potential access to from attack.

This is to protect the application level – firewalls only examine packets on the network level, IDS can do a little on the application side but not as much as ModSecurity and a good set of rules.

You can find the gotroot rules here:

gotroot mod_security rules

Including instructions on how to download/update them automatically.

Posted in: Countermeasures, Security Software, Web Hacking

, , , ,


Latest Posts:


snallygaster - Scan For Secret Files On HTTP Servers snallygaster – Scan For Secret Files On HTTP Servers
snallygaster is a Python-based tool that can help you to scan for secret files on HTTP servers, files that are accessible that shouldn't be public and can pose a s
Portspoof - Spoof All Ports Open & Emulate Valid Services Portspoof – Spoof All Ports Open & Emulate Valid Services
The primary goal of the Portspoof program is to enhance your system security through a set of new camouflage techniques which spoof all ports open and also emulate valid services on every port.
Cambridge Analytica Facebook Data Scandal Cambridge Analytica Facebook Data Scandal
One of the biggest stories of the year so far has been the scandal surrounding Cambridge Analytica that came out after a Channel 4 expose that demonstrated the depths they are willing to go to profile voters, manipulate elections and much more.
GetAltName - Discover Sub-Domains From SSL Certificates GetAltName – Discover Sub-Domains From SSL Certificates
GetAltName it's a little script to discover sub-domains that can extract Subject Alt Names for SSL Certificates directly from HTTPS websites which can provide you with DNS names or virtual servers.
Memcrashed - Memcached DDoS Exploit Tool Memcrashed – Memcached DDoS Exploit Tool
Memcrashed is a Memcached DDoS exploit tool written in Python that allows you to send forged UDP packets to a list of Memcached servers obtained from Shodan.
QualysGuard - Vulnerability Management Tool QualysGuard – Vulnerability Management Tool
QualysGuard is a web-based vulnerability management tool provided by Qualys, Inc, which was the first company to deliver vulnerability management services as a SaaS-based web-service.


10 Responses to gotroot modsecurity Rules for Apache – Anti-spam and Security

  1. goodpeople January 3, 2008 at 11:01 am #

    Oh wow! am I going to have fun with this one…

  2. Sir Henry January 3, 2008 at 12:52 pm #

    I just built a server for my director that will serve his website from home. Although Apache is installed, I cautioned him about doing so when being an absolute neophyte in the ways of Linux and Apache. This will be awesome for him and hopefully get him learned on a thing or two about Apache and security. Thanks for posting this.

  3. fak3r January 3, 2008 at 4:06 pm #

    I’ve posted here about mod_security before, it’s a great tool, but it if you pile on all of these rules it will slow page loads significantly. Best is to use mod_sec core rules, and pepper in some got root rules that look useful.

    Oh, and patch PHP with sudokin first.

  4. kaneda January 4, 2008 at 10:18 am #

    Argh – download links are broken on the gotroot website, do you guys have a mirror instead?

  5. Pantagruel January 4, 2008 at 10:56 am #

    fak3r has a good point. An extensive rule set will definitely slow down the response (especially on a overloaded server or less powerful server). To my opinion this is a small price you pay for some added security (and a nice excuse to upgrade hardware, making this hardware junkie even happier ;) )

    hardening your Linux server is a good thing, hardening apache (try Google millions of howto’s) is a must.

    @fak3r, do you have a good link to sudokin, Google only burps out some blog messages (and no real usable stuff). Up to now I’ve been using http://www.hardened-php.net/suhosin/index.html , tutorial(s) on http://www.howtoforge.com and it’s always a good thing to have another added layer of protection.

  6. Sir Henry January 4, 2008 at 3:36 pm #

    @Pantagruel

    Yet another illustration of how it is so difficult to balance security and usability.

  7. eM3rC January 6, 2008 at 9:31 pm #

    Wow great post. Can really use this.

  8. linuxamp January 7, 2008 at 6:57 am #

    I ran mod_security for a while but noticed that some portions of my webapp (drupal+gallery2) broke. I don’t recall exactly what broke since it was a while ago but it was significant enough for me finally decide to disable mod_security.

  9. goodpeople January 7, 2008 at 2:56 pm #

    @Linuxamp

    It would be nice if you could dig up what was going on. I am planning to play with this sometime later this week.

  10. Sir Henry January 8, 2008 at 4:55 pm #

    @linuxamp:

    I, too, am intrigued to find out what was the root cause of the issues you experienced. Should you have the time, please post them here.