SV-213907r508025_rule
V-213907
SRG-APP-000133-DB-000179
SQL6-D0-001200
CAT II
10
Transfer ownership of database schemas to authorized database principals.
ALTER AUTHORIZATION ON SCHEMA::[<Schema Name>] TO [<Principal Name>]
Obtain a listing of schema ownership from the server documentation.
Execute the following query to obtain a current listing of schema ownership.
SELECT S.name AS schema_name, P.name AS owning_principal
FROM sys.schemas S
JOIN sys.database_principals P ON S.principal_id = P.principal_id
ORDER BY schema_name
If any schema is owned by an unauthorized database principal, this is a finding.
V-213907
False
SQL6-D0-001200
Obtain a listing of schema ownership from the server documentation.
Execute the following query to obtain a current listing of schema ownership.
SELECT S.name AS schema_name, P.name AS owning_principal
FROM sys.schemas S
JOIN sys.database_principals P ON S.principal_id = P.principal_id
ORDER BY schema_name
If any schema is owned by an unauthorized database principal, this is a finding.
M
3992