SQL6-D0-014800 - SQL Server must generate audit records when successful and unsuccessful logons or connection attempts occur.

Information

For completeness of forensic analysis, it is necessary to track who/what (a user or other principal) logs on to SQL Server. It is also necessary to track failed attempts to log on to SQL Server. While positive identification may not be possible in a case of failed authentication, as much information as possible about the incident must be captured.

Satisfies: SRG-APP-000503-DB-000350

Solution

Add both 'SUCCESSFUL_LOGIN_GROUP' and 'FAILED_LOGIN_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 (SUCCESSFUL_LOGIN_GROUP);
GO

ALTER SERVER AUDIT SPECIFICATION STIG_AUDIT_SERVER_SPECIFICATION ADD (FAILED_LOGIN_GROUP);
GO

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

Alternatively, enable 'Both failed and successful logins'.

In SQL Management Studio:
Right-click on the instance.
- Select 'Properties'.
- Select 'Security' on the left-hand side.
- Select 'Both failed and successful logins'.
- Click 'OK'.

See Also

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

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12c., CAT|II, CCI|CCI-000172, Rule-ID|SV-214014r961824_rule, STIG-ID|SQL6-D0-014800, STIG-Legacy|SV-93995, STIG-Legacy|V-79289, Vuln-ID|V-214014

Plugin: MS_SQLDB

Control ID: bf5b1e6a1cca7315da8370d6c37c1992050a78ca86cf95a4112327adeb90e6bb