SV-283667r1192917_rule
V-283667
SRG-APP-000080-DB-000063
SQLD-22-004250
CAT II
10
Ensure all logins are uniquely identifiable and authenticate all users who log on to the system. This likely would be done using a combination of Active Directory with unique accounts and the SQL Server by ensuring mapping to individual accounts. Verify server documentation to ensure accounts are documented and unique.
Remove any undocumented accounts or shared accounts that cannot be individually authenticated.
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 and 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-283667
False
SQLD-22-004250
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 and 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
5676