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.
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:
Open Wallarm Console → Triggers and open the window for trigger creation.
Select the Brute force condition.
Set the threshold for the number of requests originated from the same IP address for a period of time.
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.
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.
If required, set other trigger filters:
- Application the requests are addressed to.
- One or more IP the requests are sent from.
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
vpatchor custom attack signs. Brute‑force attacks originated from graylisted IPs are not blocked.
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.
Send the number of requests that exceeds the configured threshold to the protected URI. For example, 50 requests to
If the trigger reaction is Denylist IP address, open Wallarm Console → IP lists → Denylist and check that source IP address is blocked.
If the trigger reaction is Graylist IP address, check the section IP lists → Graylist of Wallarm Console.
Open the section Attacks and check that requests are displayed in the list as a brute‑force attack.
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
brutefilter. 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 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
example.com/api 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.