Content
- Log parsers1
- Attack scenarios1
- WAF configurations1
- WAF rules1
- Contexts1
sudo cscli collections install crowdsecurity/crs-4.31-inbandThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
name: crowdsecurity/crs-4.31-inbandparsers:- crowdsecurity/appsec-logsappsec-configs:- crowdsecurity/crs-4.31-inbandappsec-rules:- crowdsecurity/crs-4.31scenarios:- crowdsecurity/appsec-nativedescription: "WAF: Blocking OWASP Core Rule Set 4.31"labels:label: "WAF - OWASP Core Rule Set 4.31 (Blocking)"contexts:- crowdsecurity/appsec_baseauthor: crowdsecuritytags:- waf- linux- http- appsec- modsecurity- crs
Sign in to see the Security Engines that run this collection, the version they run and whether it was modified locally.
This collection enables BLOCKING OWASP CRS 4.31:
The OWASP CRS is a set of generic attack detection rules for use with ModSecurity or compatible web application firewalls. It aims to protect web applications from a wide range of attacks, including the OWASP Top Ten, with a minimum of false alerts.
This collection is pinned to the CRS 4.31.x release line:
cscli hub upgrade.crowdsecurity/crs-<version>), as they can contain breaking changes (for example a different format for variables you may override, such as tx.allowed_methods). You only get them by installing them.Only load one CRS version per mode: this collection loads CRS in-band, so do not also load another in-band CRS appsec-config (such as crowdsecurity/crs-inband or another crs-<version>) in your WAF acquisition. All CRS versions share the same rule IDs, and the WAF fails to start with a duplicated rule id error. Combining the in-band and out-of-band collections is possible, but CRS then evaluates each request twice.
To move to this version from another CRS collection, read the CRS release notes, adapt your customizations, then:
1cscli collections install crowdsecurity/crs-4.31-inband2cscli collections remove <previous CRS collection>
and replace the previous appsec-config by crowdsecurity/crs-4.31-inband in your WAF acquisition.
Add the crowdsecurity/crs-4.31-inband appsec-config to your WAF acquisition:
1appsec_configs:2 - ...3 - crowdsecurity/crs-4.31-inband4labels:5 type: appsec6listen_addr: 127.0.0.1:74227source: appsec