SV-213965r617437_rule
V-213965
SRG-APP-000164-DB-000401
SQL6-D0-008000
CAT II
10
Configure the SQL Server contained databases to have users originating from Windows principals. Remove any users not created from Windows principals.
Execute the following query to determine if Contained Databases are used:
SELECT * FROM sys.databases WHERE containment = 1
If any records are returned. Check the server documentation for a list of authorized contained database users. Ensure contained database users are not using SQL Authentication.
EXEC sp_MSforeachdb 'USE [?]; SELECT DB_NAME() AS DatabaseName, * FROM sys.database_principals WHERE authentication_type = 2'
If any records are returned, this is a finding.
V-213965
False
SQL6-D0-008000
Execute the following query to determine if Contained Databases are used:
SELECT * FROM sys.databases WHERE containment = 1
If any records are returned. Check the server documentation for a list of authorized contained database users. Ensure contained database users are not using SQL Authentication.
EXEC sp_MSforeachdb 'USE [?]; SELECT DB_NAME() AS DatabaseName, * FROM sys.database_principals WHERE authentication_type = 2'
If any records are returned, this is a finding.
M
3993