File dba-apache2-mod_security-crs-225.spec of Package dba-apache2-mod_security-crs-225

%define version	2.2.5
%define vers	225
%define real_name modsecurity-crs
%define prefix	/DBA/apache/modsecurity-crs/%{version}

# Name:           dba-apache2-%{real_name}-%{vers}
Name:           dba-apache2-mod_security-crs-%{vers}
Summary:        OWASP ModSecurity Core Rule Set Project
Version:        %{version}
Release:        1
License:        GPL
Group:          Productivity/Networking/Web/Servers
BuildArch:	noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%if 0%{?suse_version} >= 1110
BuildRequires:  -post-build-checks

# Requires:	perl(Acme::Comment) perl(Data::Types) perl(Data::Validate::URI) perl(XML::Smart)

ModSecurity. is a web application firewall engine that provides very little protection on its own. In order to become useful, ModSecurity. must be configured with rules. In order to enable users to take full advantage of ModSecurity. out of the box, Trustwave's SpiderLabs is providing a free certified rule set for ModSecurity. 2.x. Unlike intrusion detection and prevention systems, which rely on signatures specific to known vulnerabilities, the Core Rules provide generic protection from unknown vulnerabilities often found in web applications, which are in most cases custom coded. The Core Rules are heavily commented to allow it to be used as a step-by-step deployment guide for ModSecurity..

Core Rules Content

In order to provide generic web applications protection, the Core Rules use the following techniques:

    HTTP Protection - detecting violations of the HTTP protocol and a locally defined usage policy.
    Real-time Blacklist Lookups - utilizes 3rd Party IP Reputation
    Web-based Malware Detection - identifies malicious web content by check against the Google Safe Browsing API.
    HTTP Denial of Service Protections - defense against HTTP Flooding and Slow HTTP DoS Attacks.
    Common Web Attacks Protection - detecting common web application security attack.
    Automation Detection - Detecting bots, crawlers, scanners and other surface malicious activity.
    Integration with AV Scanning for File Uploads - detects malicious files uploaded through the web application.
    Tracking Sensitive Data - Tracks Credit Card usage and blocks leakages.
    Trojan Protection - Detecting access to Trojans horses.
    Identification of Application Defects - alerts on application misconfigurations.
    Error Detection and Hiding - Disguising error messages sent by the server. 

%package util
Summary:        Utility scripts to manage rules
Group:          Productivity/Networking/Web/Servers
Requires:       %{name} = %{version}

%description util
Utility scripts to manage rules

%setup -q -n %{real_name}_%{version}


%{__mkdir_p} %{buildroot}%{prefix}

### Fix dependency on /opt/local/bin/perl
%{__perl} -pi.orig -e 's|/opt/local/bin/perl|/usr/bin/perl|g' util/*.pl
%{__perl} -pi.orig -e 's|/opt/local/bin/perl|/usr/bin/perl|g' util/regression_tests/*.pl
find . -type f -name "*.orig" -exec rm -f {} \;

%{__cp} -av modsecurity_crs_10_setup.conf.example activated_rules base_rules experimental_rules optional_rules slr_rules util %{buildroot}%{prefix}/
%{__rm} -rf %{buildroot}%{prefix}/util/runAV 
# %{__rm} -rf %{buildroot}%{prefix}/util/runAV %{buildroot}%{prefix}/util/ util/ util/regression_tests

cd %{prefix}/..
%{__rm} -f 2.2.latest
%{__ln_s} -f %{version} 2.2.latest

%{__rm} -rf %{buildroot};

%files util
%dir %{prefix}/util 

%dir %{prefix}
%exclude %{prefix}/util

* Mon Oct  8 2012 Holger Manthey <>
- separate utils package
* Thu Jun 28 2012 Holger Manthey <>
- initial build