How to Configure Microsoft SQL Server Brute-Force Protection with RdpGuard
RdpGuard
Intrusion prevention system for your Windows Server
 

MS SQL Server Brute-Force Protection

Protection overview

RdpGuard protects Microsoft SQL Server from password-guessing attacks by monitoring the Windows Application log. It blocks an IP address when the number of detected failed login or scan attempts reaches the configured limit.

Run RdpGuard on the Windows computer hosting SQL Server. Enable SQL Server login auditing, then choose which events RdpGuard should monitor: 18456, 17832 and 17836.

Enable SQL Server login auditing

  1. Open SQL Server Management Studio and connect to your SQL Server instance.

  2. In Object Explorer, right-click the server and select Properties.

    SQL Server Management Studio server context menu with Properties selected
    Right-click the server and select Properties.
  3. Select Security. Under Login auditing, choose Failed logins only or Both failed and successful logins.

    Security page in SQL Server Properties showing Login auditing options
    Choose an auditing option that includes failed logins.
  4. Click OK, then restart the SQL Server instance to apply the changed audit setting.

    Choose a suitable time: restarting SQL Server disconnects active database sessions.

For more details, see Microsoft's login auditing instructions.

Configure MS SQL Server protection

  1. Open RdpGuard Dashboard and click MS-SQL under Monitored protocols.

    MS-SQL button in the Monitored protocols section of RdpGuard Dashboard
    Click MS-SQL to open its protection settings.
  2. Select Enable MS-SQL protection, choose the events to monitor and click Save.

    MS-SQL Settings with protection enabled and events 18456, 17832 and 17836 selected
    Enable protection, choose events and click Save.

Events to monitor

All three events are enabled by default:

  • 18456 - Failed login. Keep this enabled to detect repeated login failures. A failed login can also come from a mistyped password or a misconfigured application.
  • 17832 - Invalid login packet. SQL Server could not process the client's login packet. This can indicate a probe, but can also result from client or server configuration problems.
  • 17836 - Packet length mismatch. The packet's declared length does not match the data received. RdpGuard counts these events as scan attempts.

Exclusions for Event ID 18456

Use exclusions to ignore known, legitimate failures recorded as event 18456. Copy a distinctive text fragment from the event's Reason field.

  1. In MS-SQL Settings, click Exclusions... next to Event ID 18456.

    Exclusions link next to Event ID 18456 in MS-SQL Settings
    Click Exclusions next to Event ID 18456.
  2. Enter one text pattern per line, then click OK.

    MS-SQL Exclusions dialog with an example text pattern for a database access failure
    Use text from the events you want to exclude.
  3. Click Save in MS-SQL Settings to apply the exclusions.

Matching is case-sensitive. Patterns are literal text; * and ? are not wildcards. An event is skipped if any pattern occurs within one of its event-data values.

Patterns can also match fields other than Reason, so avoid short or generic text. These exclusions apply only to event 18456, not to 17832 or 17836.

RdpGuard 10.4.5 Free Trial

RdpGuard protects:

Our customers say

"This sotware is really great. It's a relief. Because my server is constantly under attack. Thanks RdpGuard" - Joaquim De Sousa Marques

"Nice product. I used to implement something similiar in a low-tech and cumbersome manner via a script called TSBlock (not mine). This makes it much easier and is well worth the pricetag for SMB's." - J. Johnson

"Absolutely amazed at your product. We are a church in the North Dallas area, and I discovered this morning multiple failed logon attempts via our Remote Access Server. A friend suggested your product, so I immediately downloaded the trial. It had a list of about five blocked IP addresses in minutes, and that was enough to lead me to push the BUY button. Over the past 10-15 minutes the list is now about thirty with at least a third being international attempts to break into our system. Thanks for a great product. You may have just saved us much grief." - John Hallford

"Love the software. RDP on our Windows servers is just ridiculous. We would block it in the router but we have lots of old-time customers that would have issues." - Scott Hirsch

"Love the software! Makes it easier than tailoring VB Scripts!!" - Nick Brennan

"It's a great product - really stopping those RDP attackers :-)" - Dave, UK

"First of all: Your application is very (!!!) useful and I like it very much securing my 2012 R2 server. RdpGuard is the best solution, I found on the market and after 10 minutes of testing it I ordered the fully-featured version. :-)" - Carsten Baltes

Our Other Products
Copyright © 2012-2026 Netsdk Software FZE. All rights reserved.  Terms of Use.  Privacy Policy.  Refund Policy.