SV-213980r617437_rule
V-213980
SRG-APP-000342-DB-000302
SQL6-D0-010500
CAT II
10
Remove any SQL Agent Proxy accounts and credentials that are not authorized.
DROP CREDENTIAL <Credential Name>
GO
USE [msdb]
EXEC sp_delete_proxy @proxy_name = '<Proxy Name>'
GO
Review the server documentation to obtain a listing of accounts used for executing external processes. Execute the following query to obtain a listing of accounts currently configured for use by external processes.
SELECT C.name AS credential_name, C.credential_identity
FROM sys.credentials C
GO
SELECT P.name AS proxy_name, C.name AS credential_name, C.credential_identity
FROM sys.credentials C
JOIN msdb.dbo.sysproxies P ON C.credential_id = P.credential_id
WHERE P.enabled = 1
GO
If any Credentials or SQL Agent Proxy accounts are returned that are not documented and authorized, this is a finding.
V-213980
False
SQL6-D0-010500
Review the server documentation to obtain a listing of accounts used for executing external processes. Execute the following query to obtain a listing of accounts currently configured for use by external processes.
SELECT C.name AS credential_name, C.credential_identity
FROM sys.credentials C
GO
SELECT P.name AS proxy_name, C.name AS credential_name, C.credential_identity
FROM sys.credentials C
JOIN msdb.dbo.sysproxies P ON C.credential_id = P.credential_id
WHERE P.enabled = 1
GO
If any Credentials or SQL Agent Proxy accounts are returned that are not documented and authorized, this is a finding.
M
3993