Actions Tab

image127

Figure 56 – “Actions” tab

This tab contains fine-tuning settings for the following modules:

  • Business actions – this tab is needed to create, edit and delete actions (Section 3.5.5.1).

  • Static resources – a tab with creating and deleting settings for filtering requests to static resources (Section 3.5.5.2).

  • Automatic analysis – a tab with setting up tasks for self-learning of some WAF modules (Section 3.5.5.3).

  • Action chains – a tab for creating, editing and deleting action chains (Section 3.5.5.4).

  • Brute force attack detector – the tab contains two brute force attack detection modules (Action\Source and Action\Source\Target) Section 3.5.5.5.

    1. Business Actions Tab

When you go to the Actions tab, the Business Actions tab opens by default (see Figure 57). This tab is used to create and edit a positive Business Logic model. The model consists of individual actions and their parameters, which make it possible to describe user actions in web applications at a logical level. For example, authentication, registration, search, payment for purchases, form submission, etc.

Actions are the mapping of HTTP requests to the logic of the web application. When creating an action, you can use conditions not only on the request URL, but also on any other request parameters.

The Business Logic Model can be used to detect and block requests that do not conform to this model. In addition, the created actions can be used for targeted suppression of false positives as a parameter in a rule for fine-tuning the brute force attack detector, as elements of the Sequence of Actions model, as parameters when setting up the session model, as well as other related modules.

image128

Figure 57 – “Business Actions” tab

To create an action, you need to go to the “Business actions” tab and click on the “Add action” field (see Figure 58).

image129

Figure 58 – Creating an action

When you click on this field, the “Action Model” window opens (see Figure 59)

image130

Figure 59 – “Action Model” window

  1. Action name – field for entering the name of the action.

  2. Name – field for entering an action parameter. As an action parameter, you can select one or more parse tree elements that are critical within this action.

  3. Mandatory – a binary field that can take the values “Yes” or “No” (“image131”, “image132” respectively). This field is responsible for the mandatory presence of a parameter for the action.

  4. An array is a binary field that can take the values “Yes” or “No” (“image133”, “image134” respectively). This field is responsible for characterizing the parameter as an array of data.

  5. Model – when you click the highlighted icon, the “Editing parameter model” window opens

  6. In the selected area there is an icon, when clicked, another line for entering a model parameter is added.

  7. Add success condition – the button opens the “Edit success condition” window.

  8. Save the action to the database if it is found in the transaction – a binary field that can take the values “Yes” or “No” (“image135”, “image136” respectively). This field is responsible for saving the action to the database if it is found in the transaction.

  9. Requires parsing of responses - a binary field that can take the values “Yes” or “No” (“image137”, “image138” respectively). If the action uses a success condition, this field must be included.

  10. Save – button saves the changes made.

  11. Cancel – the button cancels the changes made. Working with actions is discussed in the section section 15.

    1. Static Resources Tab

When a page of a protected web application is loaded, a number of requests occur to download files, such as icons, scripts and style sheets. These types of requests are also displayed on WAF, which interferes with correct traffic analysis.

Filtering requests to static resources must be configured in order to reduce the load on WAF analyzers and remove uninformative traffic, since by default each transaction falls into a common pool and is analyzed (a parse tree is built, signatures are checked, etc.). In order not to analyze transactions to static resources, the “Static Resources” module was developed (see Figure 60).

image139

Figure 60 – “Static resources” tab

  1. The drop-down list with the “OK” button allows you to switch between versions of added statistical resources.

  2. Buttons allow you to delete or edit the created statistical resource.

  3. When you click on the “Add…” icon, a window for adding a template opens, in which you can add both the path to the entire file and specify its last part using a regular expression. To add the path to the entire file, in the window that appears, you must enter the path to the file, then click the “Add…” icon, and then click the “Save” button.

  4. After adding the template, you need to save the changes to the page by clicking the button

“Save”.

Creating settings for filtering requests to static resources is discussed in section section 8.

  1. Automatic analysis tab

WAF has the ability to automatically train some modules. The tab contains data about periodic tasks. The view is divided into two parts: in the upper part of the view there is a schedule of periodic tasks, in the lower part there is data on completed tasks (see Figure 61).

image140

Figure 61 – “Automatic analysis” tab

In the view, you can create a new one-time task; to do this, you need to click “New one-time task” in the upper left corner of the application, in the window that appears (see Figure 62), select one of eight types of tasks (see Table 3), and then fill out the task parameters. The periodic job schedule displays the job type, execution frequency, and the result of the last execution. On the right edge of each row of the table of periodic tasks there is a button image141, which allows you to edit the task parameters. In the completed tasks block, you can view all completed, periodic and one-time tasks. All completed tasks are sorted by completion time from new to old. Each task is highlighted in green or red depending on the result: completed successfully - green, task failed - red. In the “Parameters” column there is an icon image142, clicking on which opens the task parameters. In the “Result” column there is a “+” icon, clicking on which expands the results of the task.

image143

Figure 62 - Automatic tasks

Table 3 – Automatic tasks

Task

Description

Marking application actions by clustering

Creates actions for an application by clustering

App Action Markup

Creates actions for the application

Training Models for Action Parameters

Configures the application action model

Deepening the parse tree

Automatically deepens the parse tree model for a given application

Detection of false positive signatures

Automatically suppresses false positive signatures based on specified parameters

Clarification of protocol validation rules

Updates the list of allowed request headers in protocol validation for the selected application

Updating Static Resource Templates

Updates the settings for filtering templates for requests to static resources for the selected application

Identifying static resource addresses

Adds paths to static resources

Identification of chains of actions

Creates action chains for a given application

Calculate current bucket size limits

Based on the traffic, it calculates the optimal values of the bucket with markers for the brute-force attack detector

Classification of attack vectors for deviations from parameter models

Defines vectors

  1. Tab “Action Chains”

Action chains – allows you to create simple scenario chains for tracking (see Figure 63). When you click on the “Add a new chain” button, the “Action Chain” window appears, containing the fields “Critical action”, “Prerequisite action” and “Window for actions in the trace”. For each created action, editing, deleting and viewing information is available, while editing allows you to change only two parameters of the chain: “Action-prerequisite” and “Window for actions in the trace” (more information about creating action chains is written in the section section 18.3). Tracking of chains of actions occurs in the “Automatic analysis” view of the “Actions” tab through a task of the type “Identification of patterns in sequences of actions”.

image144

Figure 63 – “Action chains” tab

  1. Tab “Brute force attack detector”

Brute force attack detector - capable of detecting brute force attacks - too frequent calls to individual actions of a web application. To do this, the Brute Force Attack Detector implements a mock bucket algorithm, thus ensuring a limit on the permissible number of requests to a web application per unit of time (rate limiting). The subjects for whom restrictions on the number of requests per unit of time are introduced are sources. The “Brute force attack detector” tab is shown in Figure 64.

image145

Figure 64 – “Brute force attack detector” tab

A detailed description of the settings for brute force attack detectors is in the section 16 section.

  1. Bot Detector tab

A bot detector is capable of detecting bot activity based on the latency of a web application’s response to a request. The “bot detector” window is presented in two sections: “General settings” and

“Traffic settings” (see Figure 65).

The “General Settings” section represents the settings of the analyzer itself in terms of storing information about the current observed traffic.

Section “Traffic Settings” - represents the settings of the thresholds for the bot detection algorithm for traffic to individual actions of the web application and all traffic from one IP address to the web application as a whole.

image146

Figure 65 – Bot detector

  1. Time window for taking into account the characteristics of the observed traffic - the characteristics of the current observed traffic for the bot detection algorithm are calculated within the specified

time window. In other words, for current traffic we only look at transactions in the last N seconds. Transactions older than the specified age are not taken into account when calculating the characteristics of current traffic.

  1. Maximum number of saved measurements - for the current monitored traffic (from one IP address to one web application action), time measurements are stored for a limited, specified number of transactions. This limitation is necessary to reasonably limit the amount of stored information about the observed traffic in the case of a large time window and high volumes of traffic to the web application.

  2. Monitored traffic record lifetime—how long records about the characteristics of the current monitored traffic are kept. Each pair has its own IP address, web application action, and the characteristics of the observed traffic are stored in separate records; if there are no requests from a certain IP address for a certain web application action within a specified time, the corresponding entry will be deleted to save memory.

  3. Add detector settings – when you click the button, the detector settings window opens (see Figure 66).

image147

Figure 66 – Setting up the bot detector

  1. You must select the action by which the detector will check for bots. For the selected action, the “Median” and “Upper Quantile” values are automatically calculated (see Figure 67).

image148

Figure 67 – Action values

  1. Threshold multiplier – determines how many times the normal value (previously calculated based on historical data on normal web application traffic) must be exceeded to detect an anomaly.

  2. Minimum – the bot detection algorithm for a single IP address will begin to be applied to the observed traffic only after the minimum required number of measurements of traffic characteristics has been accumulated. In other words, the IP address must make at least N requests to a specific action of the web application (and requests to the web application as a whole) during the specified time window before it becomes possible to calculate reliable statistics based on these transactions and compare them with the characteristics of normal traffic to detect anomalies.

  1. Allows you to edit traffic settings for each action.