SQL Server Security Checklist You Can Run by Hand
Most weak spots in SQL Server are settings, not exploits: a feature left on, a shared login, a permission nobody reviewed. This checklist follows the areas Microsoft's own security guidance covers, so you can review an instance by hand and keep a record of what you found.
Reduce what is exposed
Microsoft's guidance starts with attack surface: enable only the SQL Server features your environment needs. The xp_cmdshell option is a good example. It is disabled by default on new installations, newly developed code should not use it, and if a legacy application requires it, Microsoft recommends enabling it only for the duration of the task that needs it. The Windows process it starts runs with the rights of the SQL Server service account.
Microsoft's wider advice is defense in depth: use several security capabilities aimed at different scopes, so one missed setting does not leave everything open. It also suggests keeping tools and Windows features that the server does not need off the machine, which shrinks the surface further.
- List the optional features turned on for each instance and ask who needs each one
- Check whether xp_cmdshell is enabled, and if it is, find out why and for how long
- Write down any feature you leave on and the reason
Review logins and authentication
Microsoft recommends Windows authentication whenever possible, because it adds password policy enforcement, account lockout support and password expiration. If you run mixed mode for older applications, set strong passwords on every SQL Server account.
The sa account is well known and often targeted. Microsoft says not to enable it unless an application requires it, and never to give it a blank or weak password.
For any SQL Server login that remains, Microsoft's guidance is to require complex passwords that cannot be easily guessed and are not reused for other accounts, and to update them regularly. A login with a password that matches its own name is the kind of thing a manual review should look for.
- Which authentication mode does each instance use, and why?
- Is sa disabled? If it is enabled, is its password strong?
- Which SQL Server logins exist, and does each still belong to a live application?
- Are people given access through Windows groups rather than one login each, so a leaver is removed in one place?
Review permissions
Grant the lowest level of privilege each person or service needs, and review it regularly. Microsoft also advises against granting sysadmin rights to every DBA. It suggests the CONTROL SERVER permission where possible, because it respects DENY permissions and allows finer control.
- List the members of the sysadmin role and confirm each one by name
- List who holds CONTROL SERVER
- Check that each application login has only the permissions its application needs
- Remove accounts of people who have left or changed roles
Check the network, the host and your backups
Microsoft's infrastructure advice includes using firewalls and locking down ports, applying the latest operating system and application security updates, and using group managed service accounts for services. For ransomware risk it points first at remote access such as RDP and SSH, and it recommends a regular full backup that is secured separately from a common administrator account, so that account cannot delete the copies.
- Which ports are open to the instance, and are they limited to what is needed?
- Are the operating system and SQL Server up to date?
- Do the SQL Server services run under group managed service accounts where possible?
- Is there a recent full backup that your everyday administrator account cannot delete?
Write it down and repeat it
A review is only useful if you can compare it with the last one. For each instance record the date, what you checked, what you found, what you fixed, and what you decided to accept and why. Repeat the review after any significant change to a server and on a schedule. Quarterly is a sensible default for a small environment.
Keeping that record by hand across several instances is the part that gets skipped, which is why it is worth making a template once and reusing it.
- Columns: instance, date, check, result, action, owner, date fixed
- Mark accepted risks with the reason and a date to look at them again
- Keep each review next to the previous one so changes between reviews are easy to spot
Where SQLBulwark fits
SQLBulwark is coming soon. It is built to run this kind of review for you on a schedule: 42 read-only checks across your instances, a score, fix text for each finding, and tracking of what changed since an approved baseline. It only reads and never changes a server. It is a checker, not a certification or a guarantee of security. We have not set a launch date.
Sources
- Microsoft Learn: Secure your SQL Server
- Microsoft Learn: SQL Server security best practices
- Microsoft Learn: Choose an authentication mode
- Microsoft Learn: Server configuration: xp_cmdshell
Coming soon: SQLBulwark
Scan your SQL Servers for weak security settings. SQLBulwark is a Windows app that scans your SQL Server instances with 42 read-only checks, scores each one and shows the exact fix for every finding. It tracks what changed since an approved baseline and writes an evidence PDF, with no Azure account needed. It is for DBAs and IT teams that run their own SQL Servers, and it never changes a server.
Get SQLBulwark first
Join the list and get 25% off your first purchase when it goes on sale. We email you a discount code on launch day. One code per person, for new customers.
One email when it launches (plus the discount code). No other mail, and you can say stop at any time. See our privacy policy.