When working with a web application, it is assumed that users should have stable patterns of actions, primarily determined by the web interface of the application.
A classic example: a legitimate user cannot submit a form without first downloading it. Consequently, the WAF will first see a GET request for loading the authorization form, and after that there should be a POST request for sending data. Very often, bot systems ignore the action of loading the form and immediately send POST requests with authorization data, thereby disrupting the normal sequence of work with the web application.
It is on these differences that the work of the “Sequences of Actions” module is based. It is important to understand that action chains work on top of the session model.
To configure the chain of actions, you need to go to the “Applications” -> “Actions” -> tab
“Action chains” and click on the “Add new action chain” button (see Figure 168).

Figure 168 – Chains of actions
The “Action Chain” window will open, in which you can create a new action chain (see Figure 169).

Figure 169 – “Chain of Actions” window
The Action Chain window contains the following elements:
Selection of a chain of actions - selection of a chain that will be considered either anomalous (negative model) or expected (positive model).
Critical action – selecting actions from those running on the application as the action that should end the chain of actions.
Action-prerequisite – selecting an action from those set up on the application as the action with which the chain of actions should begin. It is possible to select several prerequisite actions.
Confidence – a fractional value from 0 to 1. The degree of confidence of the chain. The more often the actions within the chain occur simultaneously and in the same order relative to each other, the higher the confidence value for the chain will be when it is generated by machine learning tools. This parameter is used for the session anomaly detection module when chains are broken. Since when creating chains manually, we reliably know what predicate action should be before the critical action, this value is set to 1.
Action window is an integer greater than 0. When a transaction with a critical action appears, a trace is formed consisting of the last n transactions, where n is the action window for the chain with this critical action. That is, the action window is n-transactions up to the critical action, among which there must be a predicate action.
Time window – an integer greater than 0. Value in minutes. Within the time window, the action window is considered, that is, the trace is formed from n-transactions (where n is the value of the action window) that were made in the last m-minutes (where m is the value of the time window) before the critical action. Transactions outside the time window are not counted.
For the module to work correctly, it must be configured in the analyzer (see section 17.10).