Pure Rust ModSecurity (SecLang) rule engine that runs the OWASP Core Rule Set. No C dependency, no unsafe; CRS compatibility measured in CI.
https://docs.rs/zentinel-modsec β// momentum
// why it's here
- Active: last commit today
- Health 93/100 with only 19 stars
- 6 releases in the last 90 days
- 11 forks for 19 stars: people build on it
// how to help
// readme
zentinel-modsec parses ModSecurity .conf rule files and evaluates them
against requests and responses, with no C or C++ dependency and no FFI
(#![deny(unsafe_code)]). SQL injection and XSS detection (@detectSQLi,
@detectXSS) are a pure Rust port of libinjection v4.0.2, the version
ModSecurity v3 uses, with the same verdicts. CRS compatibility is
reported as a number, not asserted: CI runs the CRS regression corpus on every
push and fails if the pass count changes (see CRS conformance).
It is the engine behind Zentinelβs ZentinelSec agent. The ModSecurity agent is a different thing: it wraps the C++ libmodsecurity.
Quick start
[dependencies]
zentinel-modsec = "0.11"