Parse the mod_security ruleset and export into other formats.
- Check out the module and update the owasp-crs submodule.
git submodule initgit submodule update- Run the parser.py script against a file
python parser.py owasp/base_rules/modsecurity_crs_20_protocol_violations.conf
This doesn't really do much of anything right now besides parse the rules and identify which ones we could conceivably translate to AWS WAF.
See sample-output.txt for the results of:
find owasp/*_rules/ -name '*.conf' -exec python parser.py \{\} \; &> sample-output.txt