I am trying to reproduce the total number of rules in CRS as given on this page, but have not found any success till now.
I am running the following command to get all the occurrences of the word Sec
in the CRS rules directory. I am using CRS v3.1.0 for this testing.
grep -c "Sec" *.conf | cut -d':' -f2 | awk '{total = total + $ 1}END{print total}'
The result will include all the words, including SecRule
, SecMarker
, SecComponentSignature
, SecAction
. Still, the result is 847
, which is nowhere near to the number of rules mentioned in the above page (1634). I am not able to identify my mistake here.