Skip to content

Brute Force Protection

A brute force attack is one of the attack types not detected by Wallarm out-of-the-box, its detection should be appropriately configured as this guide describes.

Regular brute force attacks include password brute forcing, session identifier brute forcing, and 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. Use rate limiting to slow the incoming traffic and brute force protection to completely block the attacker.

  • Besides brute force protection, you can configure protection against forced browsing similarly.


Consider the example below to learn how to configure brute force protection.

Let us say you want to prevent malicious actors from trying various passwords to gain authorized access to your rent-car application via its authentication endpoints (brute force attack). To provide this protection, for your authentication endpoints, you can limit number of requests per time interval, and set to block IPs exceeding this limit:

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

  2. Select the Brute force condition.

  3. Set the threshold of 30 requests from the same IP per 30 seconds.

    Note that these are the example values - when configuring trigger for your own traffic, you should define a threshold considering a legitimate usage statistics.

  4. Set the Application filter to rent-car (the application should be registered in Wallarm).

  5. Set the URI filter as displayed on the screenshot, including:

    • ** wildcard in the path meaning "any number of components"
    • .*login* regular expression in the request part meaning "endpoint contains login"

      Combined, they cover, for example:
      (note that for entire trigger to work, domains should be linked to selected application)

      Brute force trigger example

    • Besides configuring the pattern we need in this example, you can enter specific URIs or set trigger to work at any endpoint by not specifying any URI.

    • If using nested URIs, consider trigger processing priorities.
  6. Do not use the IP filter in this case, but be aware that you can use it to set triggers only to react to specific IPs originating requests.

  7. Select the Denylist IP address - Block for 1 hour trigger reaction. Wallarm will put origin IP to the denylist after the threshold is exceeded and block all further requests from it.

  8. Select the Mark as brute force trigger reaction. Requests received after exceeding the threshold will be marked as the brute force attack and displayed in the Attacks section of Wallarm Console. In some cases, you can use this reaction alone to have information about the attack, but not to block anything.

  9. 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.


Testing in your environment

To test the Brute force trigger in your environment, in the trigger and the requests below, replace the domain with any public one (e.g. Set your own application and link the domain to it.

To test the trigger described in the Configuring section:

  1. Ensure that the domain is identified as part of the rent-car application registered in Wallarm.

  2. Send the number of requests that exceeds the configured threshold to the protected endpoint of this domain. For example, 50 requests to

    for (( i=0 ; $i<51 ; i++ )) ; do curl ; done
  3. Open Wallarm Console → IP listsDenylist and check that source IP address is blocked.

  4. Open the Attacks section 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 exceeding the trigger threshold (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.

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.