Skip to content

Brute Force Protection

Brute‑force attack is one of the attack types that is not detected by Wallarm out-of-the-box, its detection should be properly configured as this guide describes.

Regular brute‑force attacks include password brute‑forcing, session identifier brute‑forcing, credential stuffing. These attacks are characterized by a large number of requests with different forced parameter values sent to a typical URI for a limited timeframe.

Note that:

  • Brute-force protection described in this article is one of the ways for the load control provided by Wallarm - alternatively, you can apply rate limiting.

  • Besides brute force protection, in a similar way, you can configure protection against forced browsing.


To configure brute-force protection:

  1. Open Wallarm Console → Triggers and open the window for trigger creation.

  2. Select the Brute force condition.

  3. Set the threshold for the number of requests originated from the same IP address for a period of time.

  4. To activate the trigger only for requests sent to certain endpoints, specify the URI filter:

    • Besides entering specific URIs, you can configure patterns using wildcards and regular expressions.

      Brute force trigger example

    • If you configure password brute‑forcing protection, then specify the URI used for authentication.

    • If using nested URIs, consider trigger processing priorities.
    • If the URI is not specified, the trigger will be activated at any endpoint with the request number exceeding the threshold.
  5. If required, set other trigger filters:

    • Application the requests are addressed to.
    • One or more IP the requests are sent from.
  6. Select trigger reactions:

    • Mark as brute force. Requests received after the threshold exceedance will be marked as the brute‑force attack and displayed in the Attacks section of Wallarm Console.
    • Denylist IP address and the period for IP address blocking to add IP addresses of malicious request sources to the denylist. The Wallarm node will block all requests originated from the denylisted IP after the threshold was exceeded.
    • Graylist IP address and the period to graylist IP addresses of malicious request sources. The Wallarm node will block requests originated from the graylisted IPs only if requests contain input validation, the vpatch or custom attack signs. Brute‑force attacks originated from graylisted IPs are not blocked.
  7. Save the trigger and wait for the Cloud and node synchronization completion (usually it takes 2-4 minutes).

You can configure several triggers for brute-force protection.


  1. Send the number of requests that exceeds the configured threshold to the protected URI. For example, 50 requests to

    for (( i=0 ; $i<51 ; i++ )) ; do curl ; done
  2. If the trigger reaction is Denylist IP address, open Wallarm Console → IP listsDenylist and check that source IP address is blocked.

    If the trigger reaction is Graylist IP address, check the section IP listsGraylist of Wallarm Console.

  3. Open the section Attacks and check that requests are displayed in the list as a brute‑force attack.

    Brute-force attack in the interface

    The number of displayed requests corresponds to the number of requests sent after the trigger threshold was exceeded (more details on detecting behavioral attacks). If this number is higher than 5, request sampling is applied and request details are displayed only for the first 5 hits (more details on requests sampling).

    To search for brute-force attacks, you can use the brute filter. All filters are described in the instructions on search use.

Trigger processing priorities

When there are several triggers with identical conditions and some of them have nesting level URI, requests to lower nesting level URI will be counted only in the trigger with the filter by the lower nesting level URI.

Trigger's condition

Trigger's condition defines a situation when a trigger should be applied. For example: Brute force, Forced browsing, BOLA. It is selected at the fist step of a new trigger creation.

Triggers without URI filter are considered to be the higher nesting level.


  • The first trigger with some condition has no filter by the URI (requests to any application or its part are counted by this trigger).

  • The second trigger with the same condition has the filter by the URI

Requests to are counted only by the second trigger with the filter by

Requirements and restrictions


To protect resources from brute force attacks, real clients' IP addresses are required. If the filtering node is deployed behind a proxy server or load balancer, configure displaying real clients' IP addresses.


When searching for brute‑force attack signs, Wallarm nodes analyze only HTTP requests that do not contain signs of other attack types.