SV-213902r508025_rule
V-213902
SRG-APP-000080-DB-000063
SQL6-D0-000400
CAT I
10
Remove all users that were returned in the check SQL Statement:
SELECT name
FROM sys.database_principals
WHERE type in ('U','G')
AND name LIKE '%$'
To remove users:
Run the following command for each user:
DROP USER [ IF EXISTS ] <user_name>;
Execute the following query:
SELECT name
FROM sys.database_principals
WHERE type in ('U','G')
AND name LIKE '%$'
If no users are returned, this is not a finding.
If users are returned, determine whether each user is a computer account.
Launch PowerShell.
Execute the following code:
Note: <name> represents the username portion of the user. For example; if the user is "CONTOSO\user1$", the username is "user1".
([ADSISearcher]"(&(ObjectCategory=Computer)(Name=<name>))").FindAll()
If no account information is returned, this is not a finding.
If account information is returned, this is a finding.
V-213902
False
SQL6-D0-000400
Execute the following query:
SELECT name
FROM sys.database_principals
WHERE type in ('U','G')
AND name LIKE '%$'
If no users are returned, this is not a finding.
If users are returned, determine whether each user is a computer account.
Launch PowerShell.
Execute the following code:
Note: <name> represents the username portion of the user. For example; if the user is "CONTOSO\user1$", the username is "user1".
([ADSISearcher]"(&(ObjectCategory=Computer)(Name=<name>))").FindAll()
If no account information is returned, this is not a finding.
If account information is returned, this is a finding.
M
3992