Version Affected: All
Overview
This article explains how to mitigate a password spray against RADIUS realms: the SecureAuth Identity Provider (IdP) realms that the SecureAuth RADIUS server sends virtual private network (VPN) logins to. In a password spray, an attacker tries a few passwords against a long list of usernames.
Two signs point to a spray through RADIUS. First, every attempt reaches the IdP from one of your own addresses, the one your RADIUS server's requests come from, not from the attacker's. Second, most of the usernames tried do not exist in your directory. If the attacker tries real usernames often enough, your directory's lockout policy can also lock those accounts.
There are three ways to mitigate a spray, and they can be combined. Each method listed below says what it involves.
In this article
-
Method 1: Use SAML Between the VPN and the IdP (Recommended)
If your VPN supports Security Assertion Markup Language (SAML), sign users in through an IdP realm instead of through RADIUS, so the IdP sees their real addresses.
-
Method 2: Restrict Access to the RADIUS Client
Stop the attempts before they reach the RADIUS server, on your VPN or at your firewall.
-
Method 3: Pass the End User's IP Address to the IdP
Let the realm see each attempt's real source address, so Adaptive Authentication rules and Dynamic IP Blocking can block the attacker.
Method 1: Use SAML Between the VPN and the IdP (Recommended)
If your VPN supports SAML sign-in, it can send users to an IdP realm to sign in, instead of passing their usernames and passwords to the RADIUS server. The IdP then sees each user's real address, so Adaptive Authentication and the IdP's other protections can act on it.
- Set up a realm on the IdP for the VPN, with the VPN as its SAML service provider.
- Configure the VPN for SAML sign-in against that realm, following your VPN vendor's SAML instructions.
- Test a VPN login through SAML before you turn off RADIUS sign-in on the VPN.
Method 2: Restrict Access to the RADIUS Client
The RADIUS client is the device that sends logins to the SecureAuth RADIUS server, usually your VPN gateway, for example a NetScaler. Blocking the attack there stops it before it reaches the RADIUS server or the IdP.
- On the RADIUS client, restrict who can reach the login, for example with a policy that allows only expected source addresses or countries, or by requiring a client certificate.
- Block the attacking addresses at your firewall. The RADIUS client's or the firewall's own logs show them; the IdP does not see them until Method 1 or Method 3 is in place.
- If your VPN or firewall can block an address automatically after repeated failed logins, turn that on.
Method 3: Pass the End User's IP Address to the IdP
Without this, every RADIUS login reaches the IdP from your own RADIUS server, so the IdP cannot tell the attacker's address from a genuine user's, and blocking that one address would block everyone. With it, the RADIUS server passes each user's own address to the realm, which receives it as ip_address in the Adaptive Authentication request, and IP-based rules can act on it.
- On the SecureAuth RADIUS server, open the RADIUS admin console and go to the RADIUS Clients tab.
- Edit the RADIUS client for your VPN, and select Enable Adaptive Authentication.
- In RADIUS End User IP, enter the RADIUS attribute your RADIUS client sends the end user's address in. The default, Calling-Station-Id, is the one most RADIUS clients use, but check your RADIUS client's documentation in case it uses another. The screenshot below shows both settings on a RADIUS client.
- Save your changes.
- On each RADIUS realm, add a rule that blocks the attacking address ranges, and turn on Dynamic IP Blocking, as described in How To: Enable Dynamic IP Blocking.
- Add the addresses your RADIUS traffic comes from, such as your RADIUS servers and VPN gateways, to Dynamic IP Blocking's exception list, so they are never blocked themselves.
Special Considerations
Once the IdP sees users' real addresses (Methods 1 and 3), every rule that uses the address applies to it, including country and geo-velocity rules. A user who signs in from an unexpected country or location can then be challenged or blocked by those rules, where before your own address hid it. Review those rules before you turn either method on.
SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.
Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.
Comments
0 comments
Please sign in to leave a comment.