First, let's understand some basic terminology.
Basic Terminology
- Brute-force attack: A method where every possible combination of characters or values is systematically tried to gain unauthorized access to a system, application, or data.
- Brute-force lock: Brute-force lock is a type of account lock made to prevent a bruteforce attack.
- Brute-force lockout: Brute-force lockout is a security mechanism that blocks access after a certain number of failed authentication attempts to prevent unauthorized access through repeated trial and error.
- CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart): CAPTCHA is a method used to determine whether a user is human by presenting a challenge that is easy for humans to solve but difficult for bots.
- Multi-Factor Authentication (MFA): MFA is a security method that requires multiple forms of identification to grant access, typically combining something the user knows, has, and is.
In LoginRadius, you can implement brute-force lockout using APIs.
To implement brute-force lockout, please register in the LoginRadius Admin Console.
Let's go through the API implementation of brute-force lockout and user unlock.
API Implementation for Brute-force Lockout
Creating a Basic Application
- To implement brute-force lockout using API, create a simple app with login and registration features.
- This can be done by using Admin Console.
- Navigate through Deployment > Identity Experience Framework.
- You can design the required application using theme, customization, preview, and implement options.
- You can also customize the predefined templates if needed.
You can view the created app using the link https://
<app-name>
.hub.loginradius.com/auth.aspx in the implement section of the Identity Experience Framework or from the preview section.
Brute-force Lockout
Enabling
In LoginRadius, the brute-force lockout feature can be enabled from the Admin Console.
Testing
- Register with a new user and log in with the correct email and password. It is observed that the user is redirected to the profile page after authentication.
- Now, log out and try to log in with incorrect credentials.
- If the password is incorrect successively till the lockout threshold, the account gets locked.
- Therefore, brute-force lockout is achieved.
In the Admin Console, you can set the brute-force lockout threshold, lockout type, and suspend effective period.
Lockout Types in LoginRadius
LoginRadius supports the following lockout types:
- Suspend: Suspends further login attempts after multiple failed tries for a certain amount of time, deterring automated attacks and enhancing system security by limiting access from suspicious sources.
-
CAPTCHA:
- A security measure used to unlock a locked account on entering valid credentials by presenting a challenge to solve.
- This challenge is often easy for humans to solve but difficult for the bots.
Refer CAPTCHA in miscellaneous section to learn more.
- Security Questions: A personalized query set up by the user to verify identity to unlock a locked account with valid credentials.
- Block: Restricts login attempts from a specific source (email ID or username) after multiple failed tries, enhancing security against unauthorized access.
Unlocking an Account Locked through Brute-force Lockout
You can unlock the locked user account in two ways, using:
- Account Update API from the LoginRadius Account API collection.
- Auth Unlock Account by Access Token from the LoginRadius Authentication API collection.
For more understanding on Auth Unlock Account, refer Auth Security Configuration
Account Update API from the LoginRadius Account API Collection
Calling the Account Update API with the provided endpoint, using the given method, providing the apisecret and apikey, and formatting the given body will unlock the account.
- Endpoint: https://api.loginradius.com/identity/v2/manage/account/{uid}
- Method: PUT
- Parameters: apisecret, apikey
- Body:
{
...
"FirstName": "Test",
"MiddleName": null,
...
}
- Response:
{
...
"LoginLockedType": "None",
"Email": [
{
"Type": "Primary",
"Value": "[email protected]"
}
],
...
}
Conclusion
- Unlocking user accounts previously locked due to brute force lockout using LoginRadius APIs demonstrates the platform's account management and security enhancement efficiency.
- Moving forward, leveraging LoginRadius's robust security features ensures uninterrupted user access while fortifying your system against unauthorized access attempts.
Miscellaneous
CAPTCHA
LoginRadius supports the following types of CAPTCHAs:
- reCAPTCHA V2: Users solve challenges like clicking on images or entering text to prove they're human.
- reCAPTCHA V3: Operates in the background, assessing user behavior to assign a risk score without user interaction.
- hCAPTCHA: Like reCAPTCHA, it offers bot protection with a privacy focus.
- QQ Tencent CAPTCHA: A CAPTCHA service by Tencent commonly used in China to verify human users.
Multi-Factor Authentication (MFA):
- LoginRadius offers multiple security features, including Multi-Factor Authentication.
- This feature can be enabled from the Admin Console to add an additional layer of security.
- LoginRadius provides predefined MFA types, which can be enabled further.
To understand more about LoginRadius APIs, refer to the API docs.