UCF STIG Viewer Logo

Database Master Key passwords must not be stored in credentials within the database.


Overview

Finding ID Version Rule ID IA Controls Severity
V-67383 SQL4-00-024200 SV-81873r1_rule Medium
Description
Storage of the Database Master Key password in a database credential allows decryption of sensitive data by privileged users who may not have a need-to-know requirement to access the data.
STIG Date
MS SQL Server 2014 Database Security Technical Implementation Guide 2017-12-01

Details

Check Text ( C-67961r1_chk )
From the query prompt:
SELECT COUNT(credential_id)
FROM [master].sys.master_key_passwords

If count is not 0, this is a finding.
Fix Text (F-73495r1_fix)
Use the stored procedure sp_control_dbmasterkey_password to remove any credentials that
store Database Master Key passwords.
From the query prompt:
EXEC SP_CONTROL_DBMASTERKEY_PASSWORD @db_name = '', @action
= N'drop'