SV-271267r1108417_rule
V-271267
SRG-APP-000080-DB-000063
SQLI-22-004200
CAT II
10
Remove all logins that were returned in the check content.
Execute the following:
SELECT name
FROM sys.server_principals
WHERE type in ('U','G')
AND name LIKE '%$'
If no logins are returned, this is not a finding.
If logins are returned, determine whether each login is a computer account.
Launch PowerShell and execute the following code:
Note: <name> represents the username portion of the login. For example, if the login 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-271267
False
SQLI-22-004200
Execute the following:
SELECT name
FROM sys.server_principals
WHERE type in ('U','G')
AND name LIKE '%$'
If no logins are returned, this is not a finding.
If logins are returned, determine whether each login is a computer account.
Launch PowerShell and execute the following code:
Note: <name> represents the username portion of the login. For example, if the login 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
5677