Anomaly suppression

To suppress anomalies, you need to go to the “Settings” -> “Anomaly Suppression” section.

image316

Figure 193 – Anomaly Suppression Tab

In this section, you can analyze suppressed anomalies on the installation, and also filter them by the following parameters:

  1. By application.

  2. By action (becomes active only after selecting the target application).

  3. According to the analysis module.

  4. By location name.

  5. According to the value of additional data written to the database in the event of Modsecurity being triggered, or entered when the anomaly was suppressed in the field of the “Additional parameters” item.

Also in this menu you can:

  1. Edit already suppressed anomalies by clicking on the edit button on the right.

  2. Delete anomaly suppressions by clicking on the delete button. In this case, it is possible to select several anomalies for group deletion.

  3. Create a new suppression by clicking on the add suppression button and selecting the appropriate options for the suppression.

  4. It is also possible to navigate through pages with suppressed anomalies in the desired direction.

More information about control buttons can be found in section section 23.

When you click on the buttons marked 6 and 8, the “Suppression” window opens (see Figure 194), in which you can configure the suppression of anomalies.

image317

Figure 194 – “Suppression” window

This window can also be seen by clicking on the “Anomaly Suppression” button in the “Transaction Details” window on the “Anomalies” tab (see Figure 194).

image318

Figure 195 – “Transaction Details” window, “Anomalies” tab

This window contains the following fields, presented in Table 37.

Table 37 – Fields of the “Anomaly Suppression” window

Field

Description

Application

Selecting an application on the WAF for which you want to suppress triggering

Action

Selecting an action on the WAF for which you want to suppress the trigger

Analysis module

Selecting the analysis module for which triggers need to be suppressed

Types of anomaly

Specifying a group of triggers (tags) for which suppression should be applied

Type of anomaly location

Specifying a more precise path for which to apply anomaly suppression

Specify the name of the anomaly location

A checkbox responsible for enabling analysis of the anomaly location name specified below, or a more precise path along which the anomaly is located. Possible options for location types with their descriptions are given in the table Figure 38

Set the location name using a regular expression

A checkbox responsible for enabling analysis of the anomaly location name as a regular expression. The regular expression must not contain groups (indicated by parentheses) and must describe the entire location name, not just part of it

More precise location

A parameter responsible for choosing where exactly along the path indicated above the anomaly is located: in the meaning of the header or only in its name

Additional options (checking the explanation field)

A JSON structure in which some important information can be written if necessary. When the Modsecurity signature analyzer is triggered, the identifier of the triggered anomaly is indicated there

Standard types of anomalies:

  • PROTOCOL_VIOLATION;

  • PROTOCOL_VIOLATION;

  • XSS;

  • PHP_INJECTION;

  • SQL_INJECTION;

  • FILE_INJECTION;

  • COMMAND_INJECTION;

  • DIR_TRAVERSAL;

  • SESSION_FIXATION;

  • RFI;

  • ERRORS_IIS;

  • ERRORS_PHP;

  • ERRORS_SQL;

  • ERRORS_JAVA;

  • INFO_DIRECTORY_LISTING;

  • SOURCE_CODE_JAVA;

  • SOURCE_CODE_PHP;

  • ENCODING_NOT_ALLOWED;

  • PROTOCOL_NOT_ALLOWED;

  • INVALID_HREQ;

  • HEADER_RESTRICTED;

  • MISSING_HEADER_HOST;

  • METHOD_NOT_ALLOWED;

  • REQUEST_SMUGGLING;

  • EXT_RESTRICTED;

  • SIZE_LIMIT;

  • IP_HOST;

  • CRAWLER;

  • SCRIPTING;

  • EVASION;

  • SECURITY_SCANNER.

Possible options for types of anomaly locations with descriptions are presented in Table 38.

Table 38 – Location of anomalies

Location type

Description

Don’t check

Do not check the location of the anomaly

HTTP message as a whole

The anomaly can be anywhere in the message

First line of the HTTP message as a whole

The anomaly may be in the first line of the message

Heading

The anomaly may be in the title

Body as a whole

The abnormality may be throughout the body before decompression and unpacking

Parameter in the request body

The anomaly may be in the entire undisassembled body after decompression and unpacking

URL in general

The anomaly may be somewhere in the URL without being tied to a specific parameter

URL parameter

The anomaly may be somewhere in the URL request part, but not in any specific parameter

Cookie

The anomaly may be in a cookie with the name specified by the id, if one is specified

Parse tree element

Specifying the path to a specific target parameter with an anomaly

Session data

Specifying session data to suppress (usually not used)

Source

Specifying a specific source to suppress (usually not used)

Web Application Target/Object

Specifying a specific target to suppress (not usually used)