SQL6-D0-014400 - SQL Server must generate audit records when successful and unsuccessful attempts to delete security objects occur.

Information

The removal of security objects from the database/DBMS would seriously degrade a system's information assurance posture. If such an action is attempted, it must be logged.

To aid in diagnosis, it is necessary to keep track of failed attempts in addition to the successful ones.

Satisfies: SRG-APP-000501-DB-000336

Solution

Add the 'SCHEMA_OBJECT_CHANGE_GROUP' to the server audit specification
USE [master];
GO

ALTER SERVER AUDIT SPECIFICATION STIG_AUDIT_SERVER_SPECIFICATION WITH (STATE = OFF);
GO

ALTER SERVER AUDIT SPECIFICATION STIG_AUDIT_SERVER_SPECIFICATION ADD (SCHEMA_OBJECT_CHANGE_GROUP);
GO

ALTER SERVER AUDIT SPECIFICATION STIG_AUDIT_SERVER_SPECIFICATION WITH (STATE = ON);
GO

See the supplemental script 'SQL 2016 Audit.sql' for complete script.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_MS_SQL_Server_2016_Y24M07_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12c., CAT|II, CCI|CCI-000172, Rule-ID|SV-214010r961818_rule, STIG-ID|SQL6-D0-014400, STIG-Legacy|SV-93987, STIG-Legacy|V-79281, Vuln-ID|V-214010

Plugin: MS_SQLDB

Control ID: 6502816882634df41389b2a4d5a9e9e3bb08ab4c22d305ad8b936cac95ec0466