ModSecurity VS coraza-waf

Compare ModSecurity vs coraza-waf and see what are their differences.

ModSecurity

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence. (by SpiderLabs)

coraza-waf

Coraza WAF is a golang modsecurity compatible web application firewall library (by jptosso)
Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
ModSecurity coraza-waf
7 4
4,949 254
1.5% -
6.3 8.7
9 days ago 7 days ago
C++ Go
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ModSecurity

Posts with mentions or reviews of ModSecurity. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-19.
  • An actual secure selfhosted Reverse Proxy with cool stats?
    3 projects | reddit.com/r/selfhosted | 19 Nov 2021
    By Web Firewall did you mean smth like this ?
  • Modsecurity IIS
    1 project | reddit.com/r/sysadmin | 12 Nov 2021
    Modsecurity has been extended to work with IIS and they even include an MSI installer in their releases. https://github.com/SpiderLabs/ModSecurity
  • Bulletproof at home hosting?
    2 projects | reddit.com/r/TOR | 15 Aug 2021
    When it comes to your application: I don't know how tech-savvy you are, and I'm not sure if you're worried about someone breaking into your webapp, but you could look into setting up security extentions like snuffleupagus (PHP) and SpiderLab's ModSecurity WAF for Apache and nginx for which OWASP has a great, free ruleset
  • How to implement WAF on Kong Ingress controller? (like ModSecurity v3)
    3 projects | reddit.com/r/kubernetes | 4 May 2021
    ModSecurity (v3/master): https://github.com/SpiderLabs/ModSecurity
  • Best free security plugin for WP website?
    2 projects | reddit.com/r/Wordpress | 12 Mar 2021
    I would recommend mod security which can be installed as a module for most web services like nginx and apache (and is open source). You can use the OWASP ruleset with some additional wordpress specific rulesets.
  • AWS SQL Injection (?)
    1 project | reddit.com/r/netsecstudents | 9 Mar 2021
    Looks like the webserver has a Web application firewall installed (WAF). My would guess this https://github.com/SpiderLabs/ModSecurity. Has nothing to do with AWS database per se, the WAF is running on the server along Apache, as a module. Log entry was triggered because an SQL injection attempt was detected and stopped. As it looks now the website is potentially under attack.
  • XSS: What it is, how it works, and how to prevent it
    1 project | dev.to | 18 Jan 2021
    It may seem like overkill, but there are web application firewalls designed to specifically prevent common web attacks such as XSS and SQL Injection. Using a web application firewall (WAF) is not necessary for most applications, but for applications that require strong security, they can be a great resource. One such WAF is ModSecurity, which is available for Apache, Nginx, and IIS. Check out their wiki for more information.

coraza-waf

Posts with mentions or reviews of coraza-waf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-02.
  • Go: Yaml DB
    3 projects | reddit.com/r/golang | 2 Sep 2021
    Interesting work, I was going to implement https://github.com/antchfx/jsonquery for github.com/jptosso/coraza-waf but your idea seems quite useful. I would remove logrus, as logs should be created by the implementation, not the library (or at least that's what a think)
  • Protect your web applications with Coraza library
    3 projects | reddit.com/r/golang | 31 Aug 2021
    Coraza WAF is a golang web application firewall library that has reached a stable point (v1 is releasing tomorow). https://github.com/jptosso/coraza-waf
  • Golang Web Application Firewall
    2 projects | reddit.com/r/golang | 22 Jul 2021
    You have a point there, maybe releasing a v1.0 is not that crazy at all, it's much easier to type import "github.com/jptosso/coraza-waf/v1" indeed
    2 projects | reddit.com/r/golang | 22 Jul 2021

What are some alternatives?

When comparing ModSecurity and coraza-waf you can also consider the following projects:

lua-resty-waf - High-performance WAF built on the OpenResty stack

ModSecurity-nginx - ModSecurity v3 Nginx Connector

wpscan - WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites.

coraza-caddy

coraza-gin - Coraza WAF Gin-gonic middleware

snuffleupagus - Security module for php7 and php8 - Killing bugclasses and virtual-patching the rest!

dby - Simple Yaml DB

sqstorage - A easy to use and quick way to organize your inventory, storages and storage areas