ModSecurity vs OWASP Coraza WAF
ModSecurity
modsecurity.orgOWASP Coraza WAF
coraza.ioSide by side
| Figure | ModSecurity | OWASP Coraza WAF |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | — |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | — | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Website Security Software | 7.6 (#10) | 7.6 (#11) |
| Spec score · Web Application Firewall Software | 7.5 (#15) | 7.5 (#16) |
| Deployment | The FAQ says ModSecurity runs inside a web server rather than as a standalone appliance or proxy. | The product page says Coraza can run as a sidecar, proxy, or library in Go, C++, and WebAssembly. |
| Purpose | ModSecurity is an open-source, rule-based web application firewall that analyzes incoming traffic and helps block malicious requests before they reach an application. | Coraza is an open-source Web Application Firewall for APIs and web applications. |
Plans
In their own words
ModSecurity
ModSecurity is an open-source web application firewall that examines incoming HTTP(S) traffic and can block malicious requests before they reach an application. It runs inside Apache, Nginx or IIS as a module, not as a separate appliance or proxy. The project provides traffic visibility, a rules language and an API for implementing protections. ModSecurity can run alone or with the OWASP Core Rule Set, which the FAQ says provides broad coverage against common web attacks. Listed uses include real-time security monitoring and access control, HTTP traffic logging, passive security assessment and web application hardening. It supports Linux, Unix-like systems, Windows and macOS when paired with a compatible web server. Installation guidance recommends starting in detection-only mode, reviewing and tuning events, then enabling blocking. Inspecting every request can have a small performance impact, and tuning rules can help manage it. OWASP maintains the project with community contributors, with Slack and GitHub listed for community activity. The plan costs nothing; managed rule sets are not included.
OWASP Coraza WAF
OWASP Coraza WAF is a free, open-source Web Application Firewall for APIs and web applications. It supports ModSecurity SecLang rulesets and is fully compatible with the OWASP Core Rule Set. That ruleset covers threats including SQL injection, cross-site scripting, code injection, HTTPoxy, Shellshock and scanner or bot activity. Coraza can run as a sidecar, proxy or library in Go, C++ and WebAssembly. Official connectors are listed for NGINX, Envoy, Caddy, Apache APISIX, proxy-wasm, HAProxy, Traefik and libcoraza. Documentation describes extension points for audit loggers, persistence engines, operators, actions and plugins, with examples for GeoIP and a package containing the Core Rule Set and recommended configuration. The Quick Start requires Go 1.24 or later. Platforms listed are API, Linux, macOS and self-hosted. Coraza offers managed rule sets, API protection and bot management. The v3 internals documentation says persistent collections such as IP, SESSION and RESOURCE are not currently supported. Coraza Playground provides a sandbox web interface for testing rules. The Open source plan is listed at free.