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-289273

CAT II (Medium)

The MySQL Database Server 9.x must be configured to provide audit record generation capability for DoW-defined auditable events within all database components.

Rule ID

SV-289273r1319164_rule

STIG

Oracle MySQL 9.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-000169CCI-000172

Discussion

Without the capability to generate audit records, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one. Audit records can be generated from various components within the database management system (DBMS) (e.g., process, module). Certain specific application functionalities may be audited as well. The list of audited events is the set of events for which audits are to be generated. This set of events is typically a subset of the list of all events for which the system is capable of generating audit records. DoW has defined the list of events for which the DBMS will provide an audit record generation capability as the following: (i) Successful and unsuccessful attempts to access, modify, or delete privileges, security objects, security levels, or categories of information (e.g., classification levels); (ii) Access actions, such as successful and unsuccessful logon attempts, privileged activities, or other system-level access, starting and ending time for user access to the system, concurrent logons from different workstations, successful and unsuccessful accesses to objects, all program initiations, and all direct access to the information system; and (iii) All account creation, modification, disabling, and termination actions. Organizations may define additional events requiring continuous or ad hoc auditing. Satisfies: SRG-APP-000089-DB-000064, SRG-APP-000091-DB-000066, SRG-APP-000091-DB-000325, SRG-APP-000492-DB-000332, SRG-APP-000492-DB-000333, SRG-APP-000496-DB-000334, SRG-APP-000496-DB-000335, SRG-APP-000499-DB-000330, SRG-APP-000499-DB-000331, SRG-APP-000501-DB-000336, SRG-APP-000501-DB-000337

Check Content

Check MySQL Enterprise Audit to determine whether organization-defined auditable events are configured to be audited by the system.

Verify the MySQL Enterprise Audit component is installed:
SELECT *
FROM mysql.component
WHERE component_urn = 'file://component_audit_log';

If no row is returned, this is a finding.

Verify audit logging has not been disabled:
SHOW GLOBAL VARIABLES LIKE 'audit_log.disable';

If "audit_log.disable" is "ON", this is a finding.

Determine whether audit log encryption is configured as required:
SHOW GLOBAL VARIABLES LIKE 'audit_log.encryption';

If organizational policy requires encrypted audit logs and "audit_log.encryption" is not the Advanced Encryption Standard (AES), this is a finding.

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

SELECT USER, HOST, FILTERNAME
FROM mysql.audit_log_user;

If the configured filters do not provide audit record generation for the DoW-defined auditable events, this is a finding.

Fix Text

Deploy and configure MySQL Database Server 9.x with the MySQL Enterprise Audit component to generate audit records for at least the DoW minimum set of auditable events.

Install MySQL Enterprise Audit using the component installation script:
audit_log_component_filter_install.sql

Verify installation:
SELECT *
FROM mysql.component
WHERE component_urn = 'file://component_audit_log';

To require the component to remain loaded and to fail startup if it cannot initialize, configure:
[mysqld]
audit-log=FORCE_PLUS_PERMANENT

If encrypted audit logs are required, configure the component after the required keyring is active:
[mysqld]
audit-log.encryption=AES

Configure audit filters for the required events. For example, to log all auditable events and use that filter as the default:
SELECT audit_log_filter_set_filter('log_all', '{ "filter": { "log": true } }');
SELECT audit_log_filter_set_user('%', 'log_all');

Do not replace an existing organization-approved filter that captures additional required events; incorporate the required events into the existing audit policy as appropriate.

Refer to the following:
https://dev.mysql.com/doc/refman/9.7/en/audit-log-component-installation.html
https://dev.mysql.com/doc/refman/9.7/en/audit-log-component-filtering.html