Anomaly scores for each severity level are set by default under rule ID 900100
in crs-setup.conf
. If you want to modify these values you can un-comment and edit it.
Example:
SecAction \
"id:900100,\
phase:1,\
nolog,\
pass,\
t:none,\
setvar:tx.critical_anomaly_score=100,\
setvar:tx.error_anomaly_score=75,\
setvar:tx.warning_anomaly_score=50,\
setvar:tx.notice_anomaly_score=25"
You can also play around with the threshold at which requests/responses get denied by modifying rule ID 900110
, also in crs-setup.conf
.
Example:
SecAction \
"id:900110,\
phase:1,\
nolog,\
pass,\
t:none,\
setvar:tx.inbound_anomaly_score_threshold=200,\
setvar:tx.outbound_anomaly_score_threshold=300"