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

Information

Changes in the database objects (tables, views, procedures, functions) that record and control permissions, privileges, and roles granted to users and roles must be tracked. Without an audit trail, unauthorized changes to the security subsystem could go undetected. The database could be severely compromised or rendered inoperative.

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

Satisfies: SRG-APP-000496-DB-000334

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 supplemental script 'SQL 2016 Audit.sql'.

See Also

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

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12c., CAT|II, CCI|CCI-000172, Rule-ID|SV-214004r961803_rule, STIG-ID|SQL6-D0-013800, STIG-Legacy|SV-93975, STIG-Legacy|V-79269, Vuln-ID|V-214004

Plugin: MS_SQLDB

Control ID: a6f8cc95a609e0560abb71adcfaa971ea1b6318e383aedea14cbea8c4ec5bffd