If the detected anomaly is a false positive, then depending on what type of module the detector that detected this anomaly belongs to, the false positive is suppressed or the model is adjusted:
1. Signature analysis.
This module has several features when suppressing anomalies:
due to the fact that this module independently parses queries, when suppressing it, regular expressions for the path can be used;
Suppression of individual signatures of a given module occurs through “Additional parameters” in the “Suppression” window (if you leave the “Additional parameters” field empty, the module will be suppressed completely).
Anomalies in Cookie.
When working with anomalies from a signature detector, anomalies in cookies are often encountered (see Figure 197). It is more correct to suppress such anomalies for the entire application. In some cases, it is possible to suppress not a specific signature, but the entire module.
Figure 197 – Anomaly in Cookie
Anomalies in standard application\browser headers.
Suppression of anomalies in standard request headers (see Figure 198), which may appear in transactions for any application action, should be applied to the application as a whole.
Figure 198 – Anomaly on the header “sec-ch-ua”
Open redirect anomaly.
Among the response rules of this detector there is a signature with number 931130, which works to search for an open redirect (see Figure 199). Despite the fact that there is a separate module for detecting this kind of anomaly, this signature is not disabled due to the fact that it works in the request, unlike the “Open Redirect Detection” module, which works in the response.
When working with a signature, there is an additional limitation: the inability to add exceptions, so this anomaly is also often suppressed for the entire application.
Figure 199 – Open redirect anomaly
Anomaly when accessing an application via IP
Anomalies occur periodically when accessing an application over IP (see Figure 200). Depending on the application, this may be normal behavior or legitimate blocking of non-standard traffic. If access via IP is the norm for a resource, this anomaly must be suppressed for the entire application.
Figure 200 – Anomaly on the IP address in the “Host” header
User password anomaly
In requests for authorization and\or password change, there are often false positives from the signature detector in the field in which the password is transmitted. In this case, the possibility of an attack through this field should be analyzed. Depending on the results of the analysis, it is possible to suppress both a particular signature and the entire module. In the case of a password, it would be more correct to make a model of the action parameter in which the password is passed.
Figure 201 – User password anomaly
Anomaly due to incorrect request preparation
Often when accessing a web application, you encounter requests that do not follow the normal pattern. For example, in the case of GET requests, there may be transactions with the header “content-type” and\or
“transfer-encoding”, which is considered incorrect (see Figure 202). In the case of a small number of such transactions, this may indicate an attempt to use automation tools when generating requests, and in this case, this anomaly should not be suppressed. In the case of API protection, this behavior is considered normal; the trigger data should be suppressed for the entire application.
Mirror examples of this behavior occur with POST requests. Header “content-type” and\or
“transfer-encoding” may be missing. In this case, you should analyze the behavior of the application, but requests that do not have a “content-type” header are extremely rarely legitimate.
Figure 202 – “transfer-encoding” header in a GET request
2. Injection detection
The anomaly suppression of this module has the following features:
when anomalies are suppressed, the entire module is suppressed;
When suppressing anomalies, regular expressions for the path do not work. An example of an anomaly is shown in Figure 203.
Figure 203 – Anomaly from the “Injection detection” module
3. Checking the syntax of action parameters
Anomalies from this module should not be pushed through; it is better to edit the model of the action in which this anomaly occurred.
An example of an anomaly is shown in Figure 204.
Figure 204 – Anomaly in the “Syntactic Model Validation” module
In this case, the anomaly occurs on the parameter, which is located along the path “url -> query -> id”. As can be seen from the description of the anomaly, along this path there is a parameter with a value of “45”, which is greater than the maximum allowed “5”.
In order to correctly handle this anomaly, you must complete the following steps.
Go to the “Action” tab of this transaction and remember or copy the name of the action that matches (compares) this transaction (see Figure 205).
Figure 205 – “Action” tab
Close transaction viewing, go to the “Actions” section, find the corresponding action and click on the edit action model icon (see Figure 206).
Figure 206 – Editing an action
In the dialog box that appears, edit the corresponding parameter model (see Figure 207).
Figure 207 – Action parameter model
4. Highlighting business activities
It is not advisable to suppress anomalies from this module. The occurrence of this anomaly in a transaction indicates that this transaction does not match the action in the context of WAF (it has not been created or does not fall under the conditions of already created actions). In order for this anomaly to disappear from the transaction, it is necessary to create an action corresponding to this transaction (more information about creating actions is described in the section section 15). In extremely rare cases, if events according to the “Unknown action” rule greatly overwhelm the database, it will be more productive to disable this rule than to suppress the anomaly from this module.
Note
This rule is also used to counteract dirbusting (searching through a directory and files). After a complete description of all possible actions on the application, this rule is included in the blocking and cuts all traffic to unknown URLs.
An example of an anomaly is shown in Figure 208.
Figure 208 – Anomaly in the module “Identification of business actions”
The peculiarity of this anomaly is that it is one of the few anomalies that triggers the entire transaction, as evidenced by the absence of a specific location of the anomaly.
5. Open Redirect Detection
Anomaly suppression from this module has the following features:
the anomaly occurs not in the request, but in the response;
It is better not to suppress these anomalies, but to edit allowed domains in the application settings (for more details, see section section 19). Suppressing this anomaly will lead to disabling the module in the context of the selected parameters (applications and\or actions).
An example of an anomaly is shown in Figure 209.
Figure 209 - Anomaly from the “Open Redirect Detection” module
As mentioned above, anomalies from the Open Redirect Detection module should be looked for not in the request, but in the response. The presence of such an anomaly is indicated first of all by the decision
“Rewrite”, also transactions of this kind are marked not in red, but in yellow. It is also worth noting that transactions with the “Rewrite” solution reach the backend; it is not the request that is blocked, but the response from the server.
6. Protocol validation
It is not advisable to suppress anomalies from this module; it is more correct to change the protocol validation settings in the context of this application (for more details, see section section 9). Suppressing this module will disable part of it in terms of the selected parameters (applications and\or actions).
Header names do not match the regular expression (HEADER_INVALID_CHARACTER).
An anomaly occurs when a transaction contains a header or parameter with a name that does not match the regular expression specified in the protocol (see Figure 210).
Figure 210 – Header name anomaly
To prevent this anomaly from occurring again, you need to make a change to the “Header Regular Expression” on the “Application” - “Protocol” tab. A detailed description of the Protocol tab can be found in section 3.5.3.
Forbidden MIME type anomaly (FORBIDDEN_MEDIA_TYPE).
An anomaly occurs when the content-type parameter contains a MIME type that is not specified in the protocol.
MIME types are defined according to the RFC 6838 specification (see Figure 211).
Figure 211 – Illegal MIME type anomaly
- To prevent this anomaly from occurring again, you must add the MIME type to the list of allowed types on the “Application” - “Protocol” tab. A detailed description of the “Protocol” tab can be found in the section
3.5.3.
Invalid parameter names in the “Content-type” header (CONTENT_TYPE).
Valid parameter names – input field for valid names for the “Content-type” header parameters. An anomaly occurs when the “Content-type” parameter names do not match the protocol (see Figure 212).
Figure 212 – Anomaly of invalid values of the “Content-Type” parameter
- To prevent this anomaly from occurring again, you must add the MIME type to the list of allowed types on the “Application” - “Protocol” tab. A detailed description of the “Protocol” tab can be found in the section
3.5.3.
Invalid parameter names in the “Content-type” header (CONTENT_TYPE).
Valid parameter names – input field for valid names for the “Content-type” header parameters. An anomaly occurs when the “Content-type” parameter names do not match the protocol (see Figure 213).
Figure 213 – Anomaly of invalid “Content-Type” parameter names
- To prevent this anomaly from occurring again, you must add the MIME type to the list of allowed types on the “Application” - “Protocol” tab. A detailed description of the “Protocol” tab can be found in the section
3.5.3.
Invalid encodings (MEDIA_TYPE_FORBIDDEN_ENCODING).
An anomaly occurs if an encoding not specified in the protocol is passed in the Content-type parameters (see Figure 214).
Figure 214 – Invalid encoding anomaly
- To prevent this anomaly from occurring again, you must add the MIME type to the list of allowed types on the “Application” - “Protocol” tab. A detailed description of the “Protocol” tab can be found in the section
3.5.3.
Incorrect validation of the “Content-Length” header (PROTOCOL_VIOLATION).
An anomaly occurs when the size of the request body does not match the value specified in the header
“Content-Lenght” (see Figure 215).
Figure 215 – “Content-Length” header validation anomaly
On the “Application” - “Protocol” tab, you can disable validation of the “Content-Length” header. A detailed description of the Protocol tab can be found in section 3.5.3.
Hostname validator error (VALUE_INVALID_CHARACTER).
An anomaly occurs when the value of the “Host” header does not match the regular value in the protocol header (see Figure 216).
Figure 216 – Hostname validation anomaly
To prevent this anomaly from occurring again, you need to make a change to the regular expression to check valid names, on the “Application” - “Protocol” tab. Detailed description of the tab
The “protocol” can be found in section 3.5.3.
Exceeding the number of Range header intervals (INTERVAL_RANGE_EXCEEDED).
An anomaly occurs when the permissible number of intervals in the “Range” header is exceeded (see Figure 217). The number of allowed intervals is set in the protocol.
Figure 217 – Anomaly in the number of intervals of the “Range” header
To prevent this anomaly from occurring again, you need to make a change in the maximum number of intervals field in the Range header on the “Application” - “Protocol” tab. A detailed description of the Protocol tab can be found in section 3.5.3.
The maximum header length (HEADER_VALUE_TOO_LONG) has been exceeded.
This anomaly occurs when the permissible length of the header header is exceeded (see Figure 218).
The allowed maximum header length is specified in the protocol.
Figure 218 – Header length anomaly
To prevent this anomaly from occurring again, you need to make changes to the parameter values
“Maximum header length” on the “Application” - “Protocol” tab. Detailed description of the tab
The “protocol” can be found in section 3.5.3.
Illegal characters in the URL path (VALUE_INVALID_CHARACTER).
An anomaly occurs when there are characters in the URL path that differ from those specified in the protocol (see Figure 219).
Figure 219 – Incorrect URL anomaly
To prevent this anomaly from occurring again, you need to adjust the “Characters allowed in the URL path, in addition to the standard set (A-Za-z0-9-._/):” field on the tab
“Appendix” - “Protocol”. A detailed description of the Protocol tab can be found in section 3.5.3.
Invalid method (FORBIDDEN_METHOD).
The anomaly occurs when the HTTP request method is invalid (see Figure 220).
Figure 220 – Invalid method anomaly
To prevent this anomaly from occurring again, you need to adjust the “Allowed methods” field on the “Application” - “Protocol” tab. A detailed description of the Protocol tab can be found in section 3.5.3.
Invalid Url path length.
An anomaly occurs if the length of the Url path exceeds the maximum allowed value (see Figure 221). The maximum path length is determined by the protocol.
Figure 221 – Invalid URL path length anomaly
To prevent this anomaly from occurring again, you need to change the value of the “Maximum path length” field on the “Application” - “Protocol” tab. A detailed description of the Protocol tab can be found in section 3.5.3.
There is an error in the name of the URL parameters (INVALID_QUERY).
An anomaly occurs when the URL parameter names do not match the protocol (see Figure 222).
Figure 222 – Incorrect URL parameter name anomaly
To prevent this anomaly from occurring again, you need to change the value of the “Characters allowed in URL parameters, in addition to the standard set (A-Za-z0-9-._/):” field on the tab
“Appendix” - “Protocol”. A detailed description of the Protocol tab can be found in section 3.5.3.
Forbidden header (FORBIDDEN_HEADER).
An anomaly occurs when a header is not in the list of allowed headers (see Figure 223).
Allowed headers are specified in the protocol.
Figure 223 – Forbidden header anomaly
To prevent this anomaly from occurring again, you need to change the value of the Allowed Headers field or add a regular expression to the Allowed Header Patterns field on the tab
“Appendix” - “Protocol”. A detailed description of the Protocol tab can be found in section 3.5.3.
Duplicating headers (DUPLICATE_HEADER).
An anomaly occurs when there are two or more identical headers in a transaction (see Figure 224).
However, the headings are not included in the list of duplicates in the protocol.
Figure 224 – Duplicate header anomaly
To prevent this anomaly from occurring again, you need to change the value of the “Allow duplicate headers” field on the “Application” - “Protocol” tab. Detailed description of the tab
The “protocol” can be found in section 3.5.3.
Header values error (VALUE_INVALID_CHARACTER).
An anomaly occurs when the header values do not match the regular expression of the protocol headers (see Figure 225).
Figure 225 – Incorrect header value anomaly
To prevent this anomaly from occurring again, you need to change the value of the “Regular expression for checking header values” field on the “Application” - “Protocol” tab. A detailed description of the Protocol tab can be found in section 3.5.3.
Exceeding the number of allowed headers (TOO_MANY_HEADERS).
An anomaly occurs when the allowed number of headers defined by the protocol is exceeded (see Figure 226).
Figure 226 – Invalid number of headers anomaly
To prevent this anomaly from occurring again, you need to change the value of the “Maximum number of headers” field on the “Application” - “Protocol” tab. Detailed description of the tab
The “protocol” can be found in section 3.5.3.
7. Parsing queries.
It is not advisable to suppress anomalies from this module; it is more correct to change the settings for parsing the request in the context of this application (for more details, see section section 10). Suppressing this module will disable part of it in terms of the selected parameters (applications and\or actions).
Due to the fact that this module checks both the presence of a parsed header, if you set truth conditions above the parsing block, and the correctness of the parsed data, anomalies from this module can be divided into two types:
The absence of a path specified in the truth condition.
This anomaly appears if WAF cannot find data to parse due to its absence.
In the example from Figure 227, you can observe the error of missing the required (based on the settings) Authorization header. In this case, if you dive into the logic of the application, the Authorization header does not appear for unauthorized users, and accordingly, the setting in which this header is required is incorrect. You should set a condition that will parse the header only if it is present (you can read more about how to do this in the section 10 section).
Figure 227 – Error parsing the request
Error parsing data.
When forming a parse tree, WAF checks the validity of the parsed data. There are several reasons why WAF cannot parse the header content correctly:
The request contains invalid data. For example, Figure 228 shows a JSON validation error in the “body” header. If this header uses a specific JSON structure that does not pass validation, then this anomaly should be suppressed.
Error parsing data in the “body” header, caused by trimming the request body (usually this is done to reduce the volume of logs). Before analyzer version 2.15, this anomaly was accompanied by the following anomaly from the “Protocol Validation” module. In such cases, there are two options:
suppress the anomaly if you are satisfied with the optimization of the stored data;
increase the maximum request body size if application security is a priority.
Figure 228 – Data parsing error
8. Parsing answers.
It is not advisable to suppress anomalies from this module; it is more correct to change the settings for parsing the response in the context of this application. Suppressing this module will disable part of it in terms of the selected parameters (applications and\or actions).
Anomalies from the “Response Parsing” module are identical to anomalies from the module
“Parsing queries.” The difference between these modules is only in the scope. As the name suggests, the first one works to parse requests, and the second one works to parse responses.
9. CSRF attack detector.
It is better not to suppress anomalies from this module, but to edit allowed domains in the application settings (for more details, see section section 3.6). Suppressing this anomaly will disable the module in terms of the selected parameters (applications and\or actions).
Since the essence of this detector is to check the “Origin” and “Referer” headers of the request, anomalies of this detector are tied to these headers and their states.
The domain in the “Referer” header does not match the domain in the “Host” header.
The fact that this anomaly is caused by a mismatch between the domain in the “Referer” header and the domain in the “Host” header is indicated by the location of the anomaly, which points to the path in the parse tree to the “Referer” header (see Figure 229).
This often happens when authorization takes place on another application. In such cases, you need to add the domain to the allowed ones. You can read more about adding a domain in the section 20 section.
Figure 229 – Domain in the “Referer” header does not match the domain in the “Host” header
The domain in the “Origin” header does not match the domain in the “Host” header.
The fact that this anomaly is caused by a mismatch between the domain in the “Origin” header and the domain in the “Host” header is indicated by the location of the anomaly, which points to the path in the parse tree to the “Origin” header (see Figure 230).
As in the case of a mismatch in the domain value in the “Referer” and “Host” headers, this often happens when authorization takes place in another application. In such cases, you need to add the domain to the allowed ones. You can read more about adding a domain in the section 20 section.
Figure 230 – Domain in the “Origin” header does not match the domain in the “Host” header
No “Referer” header in the request.
The fact that this anomaly is caused precisely by the absence of the “Referer” header is indicated by the location of the anomaly, which indicates the path in the parse tree to the “Referer” header and additional information (see Figure 231).
This anomaly is typical if the protected application is an API. In such cases, you should disable the “Protection against Cross-Site Request Forgery” module for this application, and it would be more correct to do this through an exception in the “CSRF attack” rule. More information about adding exceptions to rules can be found in the section 21 section.
Figure 231 – Missing “Referer” header in the request
10. Detection of brute force attacks.
Anomalies from this module should not be suppressed; it is necessary to edit the parameters of configured brute-force attack detectors (for more details, see section section 16). Suppressing this anomaly will lead to the module being disabled at the source\target level by application and\or action.
This module has two types of anomalies, according to the number of types of brute force attack detectors.
Brute force attack detector anomaly Action/Source.
This type of anomaly is characterized by the location of the anomaly at the source, which is used as part of setting up the brute force attack detector (see Figure 232). This type of attack should not be suppressed; it is more correct to change the settings of the brute force attack detector.
Figure 232 – Brute force attack detector anomaly Action/Source
Brute force attack detector anomaly Action/Source/Target.
This type of anomaly is characterized by the location of the anomaly on the target, which is used as part of setting up the brute force attack detector (see Figure 233).
Figure 233 – Brute force attack detector anomaly Action/Source/Target
11. Simplified/lightweight session tracking.
Anomalies from this module should not be suppressed; the corresponding settings must be edited.
An anomaly of using a cookie without first setting it in the response.
This anomaly occurs if a request to an application uses cookies that were not sent to the user in the response for a given session, or the session lifetime for a WAF has expired (see Figure 234). This anomaly should not be suppressed; it would be more correct to use one of the following options:
increase session time in terms of WAF;
disable verification of cookie issuance by the server.
Figure 234 – Anomaly of using Cookies without first setting them in the response
12. Detection of anomalies in the sequence of actions.
Anomalies from this module should not be suppressed; the corresponding settings must be edited.
This module has two types of anomalies:
An anomaly of violation of the chain of action with expected behavior.
This anomaly occurs when a chain of actions that is defined on the WAF as a chain with expected behavior is violated. This anomaly should not be suppressed; it would be more correct to edit the criteria that this chain does not meet (for more details, see section section 18.3), or delete this chain of actions.
Figure 235 – Action chain violation anomaly with expected behavior
Action chain detection anomaly with anomalous behavior.
The type of this anomaly is identical to the anomaly of violation of an action chain with expected behavior, but occurs in the case of violation of an action chain that is set on the WAF as a chain with anomalous behavior. This anomaly should not be suppressed; it would be more correct to edit the criteria that this chain does not meet (for more details, see section section 18.3), or delete this chain of actions.
13. Integration with signature analysis on the ICAP server.
Anomalies from this module should not be suppressed; it is necessary to edit the response settings on the ICAP server side. Suppressing this anomaly will result in the module being disabled for the application and\or action.
14. Reverse proxy module.
Suppression of this module, in case of a false-positive response, must be carried out for the entire application.
Figure 236 – Reverse proxy module
15. Internal analyzer error.
An internal analyzer error can occur for the following reasons:
one of the modules that participate in request analysis is disabled;
the path to the database is incorrectly specified;
signatures are written incorrectly.
It will not be possible to suppress these anomalies. It is necessary to adjust the settings on the “Analyzer Settings” tab (for more details, see section section 17).
Example of anomaly No. 1.
This type of anomaly indicates that one of the modules is operating incorrectly. In this case, the anomaly indicates the incorrect operation of the “Brute force login” rule, which, as the name implies, works thanks to the “Brute force attack detection” module. This anomaly arose due to incorrect settings of this module in the analyzer, namely an error in the path to the database (in this case it was written “redis://redis.127.0.0.1:1234”, when the correct one is “redis://127.0.0.1:1234”).
Figure 237 – Internal error anomaly of analyzer No. 1
Example of anomaly No. 2.
Another example of an internal analyzer error. This error indicates that the ASN and GeoIP list is not loaded or is not working correctly.
Figure 238 – Internal error anomaly of analyzer No. 2
16. Detection of bots by time characteristics of traffic.
Anomalies from this module should not be suppressed; it is necessary to edit the response settings of this module (for more details, see section section 17). Suppressing this anomaly will result in the module being disabled for the application and\or action.
This module has only two types of anomalies, which differ in the location of the trigger.
Detection of bots in the context of the selected action.
This anomaly occurs when the bot detector is configured for a specific action. Additional information will indicate that this anomaly is effective.
Figure 239 – Bot detection anomaly for the selected action
Bot detection across the entire application.
This anomaly occurs when the bot detector is configured for the entire application. Additional information will indicate that this anomaly affects the entire application.
Figure 240 – Bot detection anomaly for the entire application











































