STIGhubSTIGhub
STIGhub— A free STIG search and compliance tool·STIGs updated 1 hour ago
Powered by Pylon·Privacy·Terms·Feedback·© 2026 Beacon Cloud Solutions, Inc.
← Back to Oracle MySQL 9.x Security Technical Implementation Guide

V-289279

CAT II (Medium)

The MySQL Database Server 9.x must generate audit records when unsuccessful logons or connection attempts occur.

Rule ID

SV-289279r1319180_rule

STIG

Oracle MySQL 9.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-000172

Discussion

For completeness of forensic analysis, it is necessary to track failed attempts to log on to the database management system (DBMS). While positive identification may not be possible in a case of failed authentication, as much information as possible about the incident must be captured.

Check Content

Review the DBMS product documentation to determine whether MySQL Server is required to generate audit records when unsuccessful logons or connection attempts occur.

Verify MySQL Enterprise Audit is installed and configured.

Review the configured audit filters and associated users:
SELECT NAME, FILTER
FROM mysql.audit_log_filter;

SELECT USER, HOST, FILTERNAME
FROM mysql.audit_log_user;

Verify the applicable audit filter records connection class events, including the connect event, and that the filter is assigned to the applicable users or configured as the default filter.

Perform a controlled unsuccessful connection attempt using the MySQL command-line client. For example:
mysql -u notauser -p -h localhost

Supply an invalid password when prompted.

Verify the connection is rejected.

Review the MySQL audit log and verify that a corresponding audit record exists with:
- Class equal to connection.
- Event equal to connect.
- A nonzero status.

For an authentication failure resulting in access denied, the status will normally be "1045".

If an unsuccessful logon or connection attempt does not generate the required audit record, this is a finding.

Fix Text

Configure MySQL Enterprise Audit to record unsuccessful logons and connection attempts.

Configure the applicable audit filter to record connection class events, including connect events, and assign the filter to the required user accounts or as the default filter, as appropriate.

After configuring the audit policy, perform a controlled unsuccessful connection attempt and verify that the corresponding connection/connect audit record is generated with a nonzero status.

Refer to the MySQL Reference Manual for MySQL Enterprise Audit component filtering:
https://dev.mysql.com/doc/refman/9.7/en/audit-log-component-filtering.html