Brute force attack detector “Action\Source”

This brute force attack detector works as follows: all requests for different “source - web application action” pairs are processed by the Brute Force Attack Detector separately from each other. In other words, for each individual request source and each individual web application action there is its own bucket with markers, the state of which monitors the frequency of requests from a specific source to a specific web application action. In this way, it is possible to configure, for example, the maximum number of requests per unit of time from each individual IP address, or to introduce for each individual user restrictions on the number of attempts to log into a web application. Brute Force Attack Detector tab lists the actions configured on the Actions tab in the Business Actions view (see Figure 163).

image277

Figure 163 – “Brute force attack detector” tab

The status of the brute force attack detector for an action can take three values:

  • “image278” - the brute force attack detector for the action is enabled, and the detector parameter settings are set by default for the module and are available for viewing in the “BruteforceDetector” section of the analyzer module configuration;

  • “ image279” - the detector is turned on, an individual token bucket with set parameters is created for the “Source – Action” pair;

  • “image280” - the detector is turned off.

  • To change the state of the detector, you need to click on the corresponding cell (see Figure 164).

image281

Figure 164 – Opening the parameters of the brute force attack detector Action\Source

As a result, a window will open for fine-tuning the parameters of the brute force attack detector (see Figure 165).

image282

Figure 165 – Brute force attack detector parameters

Setting up the brute force attack detector for “Action\Source” pairs contains the following fields:

  1. Enable – checkbox to enable the brute force attack detector.

  2. Interpretation of the source - there are two options for interpreting the source:

    • Essence – for each new source value a new basket is created;

    • Value Set—Creates one bucket for all source values.

  3. Use individual settings – checkbox to enable individual settings.

  4. Current token bucket size—how many tokens the bucket can hold. At the next request, if more markers have accumulated in the bucket than the specified number, an anomaly will be generated.

  5. Collect statistics for the filling values of the current bucket - if the “Calculate current bucket size limits” task is enabled, then the threshold values of the scramblers will be selected based on the collected statistics and the specified task settings based on the scavengers with an active checkbox.

  6. The rate of token flow out of the bucket is how many tokens flow out of the bucket every second. The characteristic determines the time it takes for a full bucket to be empty.

  7. Number of tokens added to bucket per request - Each request first adds this number of tokens to the bucket. After this, it is checked whether the bucket is overfilled. Depending on this, either an anomaly is created or the request passes successfully.

  8. Enable timer blocking mode - if this option is enabled, then when the bucket overflows, all subsequent requests from this source will generate anomalies for some specified time, regardless of the state of the bucket. After this timeout expires, the bucket is forcibly emptied.

  9. Request blocking time in timer blocking mode - controls the timeout that the previous option enables.

  10. New requests reset the timer - if enabled, subsequent requests in timer blocking mode reset the timer. Otherwise, the timeout is not reset.

  11. The number of tokens added to the bucket in case of a 404 response - The request is processed based on the current state of the bucket. When a web application response is received, the response code is analyzed. If it is 404, then the specified number of tokens will be added to the bucket. This option is useful if you want to detect attempts forceful browsing of a web application to guess direct URL instead of following links.

  12. Number of tokens added to the bucket for unsuccessful actions - The request is processed based on the current state of the bucket. When a response from the web application is received, the success of the action is analyzed. If the action is not successful, the specified number of markers will be added to the bucket. The usefulness of using this option will be illustrated below.