SV-82343r1_rule
V-67853
SRG-APP-000141-DB-000092
SQL4-00-017100
CAT II
10
Modify the enabled flag of SQL Server's [sa] (system administrator) account by running the following script. If the account name has been changed per SQL4-00-010200, replace the letters "sa" in the query with the new name.
USE master;
GO
ALTER LOGIN [sa] DISABLE;
GO
Check SQL Server settings to determine if the [sa] (system administrator) account has been disabled by executing the following query:
USE master;
GO
SELECT name, is_disabled
FROM sys.sql_logins
WHERE principal_id = 1;
GO
Verify that the "name" column contains the current name of the [sa] database server account (see note).
If the "is_disabled" column is not set to 1, this is a finding.
Note: If the [sa] account name has been changed per SQL4-00-010200, its new name should appear in the query results.
V-67853
False
SQL4-00-017100
Check SQL Server settings to determine if the [sa] (system administrator) account has been disabled by executing the following query:
USE master;
GO
SELECT name, is_disabled
FROM sys.sql_logins
WHERE principal_id = 1;
GO
Verify that the "name" column contains the current name of the [sa] database server account (see note).
If the "is_disabled" column is not set to 1, this is a finding.
Note: If the [sa] account name has been changed per SQL4-00-010200, its new name should appear in the query results.
M
2639