Viewing a blocking rule

In order to view the Modsecurity rule that caused the transaction to be blocked, you need to open the transaction details, go to the “Anomalies” tab, find the anomaly from the ModsecurityAnalyzer module and click on {…} to open additional information (see Figure 186).

image309

Figure 186 - ModSecurity Anomaly

In the block that opens with additional information there will be an “id” field (see Figure 187), which indicates the Modsecurity signature number.

image310

Figure 187 – Additional information

To find a rule by identifier, you need to go to the “Module Configurations” tab of the window

“Settings”, where all ModSecurity signatures are located in a grouped form. For ease of searching, after the group name, the numbers of signatures falling under them are indicated in parentheses, where “X” is any number (see Figure 188).

image311

Figure 188 – Grouped ModSecurity rules

In this list, we need to find the group that our signature falls into, expand it by left-clicking on the name, and find the signature we are interested in by its id (for convenience, you can use the search via “Ctrl+F”). The signature from the example is shown in Figure 189.

image312

Figure 189 – ModSecurity signature