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 MariaDB Enterprise Server Security Technical Implementation Guide

V-286175

CAT II (Medium)

MariaDB must provide audit record generation capability for DoW-defined auditable events within all DBMS/database components.

Rule ID

SV-286175r1292135_rule

STIG

MariaDB Enterprise Server Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-000169CCI-000172CCI-001464

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 MariaDB (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 can generate audit records. DoW has defined the list of events for which MariaDB 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-000092-DB-000208, SRG-APP-000492-DB-000332, SRG-APP-000492-DB-000333, SRG-APP-000494-DB-000344, SRG-APP-000494-DB-000345, SRG-APP-000495-DB-000326, SRG-APP-000495-DB-000327, SRG-APP-000495-DB-000328, SRG-APP-000495-DB-000329, SRG-APP-000496-DB-000334, SRG-APP-000496-DB-000335, SRG-APP-000498-DB-000346, SRG-APP-000498-DB-000347, SRG-APP-000499-DB-000330, SRG-APP-000499-DB-000331, SRG-APP-000501-DB-000336, SRG-APP-000501-DB-000337, SRG-APP-000502-DB-000348, SRG-APP-000502-DB-000349, SRG-APP-000503-DB-000350, SRG-APP-000504-DB-000355, SRG-APP-000504-DB-000354, SRG-APP-000505-DB-000352, SRG-APP-000503-DB-000351, SRG-APP-000506-DB-000353, SRG-APP-000507-DB-000356, SRG-APP-000507-DB-000357, SRG-APP-000508-DB-000358

Check Content

Verify the MariaDB Enterprise audit plugin is installed and active:

SHOW PLUGINS;

Verify the "SERVER_AUDIT" plugin is installed and the status is "ACTIVE".

If the plugin is not installed and the status is not "ACTIVE", this is a finding.

Verify auditing is enabled:

SHOW GLOBAL VARIABLES LIKE 'server_audit_logging';

Verify the "server_audit_logging" status is "ON". 

If the status is not "ON", this is a finding.

Verify audit logging is active:

SHOW GLOBAL STATUS LIKE 'Server_audit_active';

Verify the value is "ON". If the value is not "ON", this is a finding.

Verify the system can audit required event types:

SHOW GLOBAL VARIABLES LIKE 'server_audit_events';

Verify that auditable event types required by DoW policy (at a minimum, CONNECT, QUERY, TABLE, etc.) are configured. 

If required event types are not configured, this is a finding.

Fix Text

Configure MariaDB Enterprise Server 11.8 or higher to generate audit records containing the required audit event information.

Install the MariaDB Enterprise audit plugin if it is not already installed. Log in to the database (mariadb -u root -p) and run:

INSTALL PLUGIN server_audit SONAME 'server_audit';

Edit the "mariadb-enterprise.cnf" configuration file located in "/etc/my.cnf.d/".

Under [mariadb], add/edit the following: 

[mariadb]
plugin-load-add=server_audit
server_audit_logging=ON
server_audit_output_type=file
server_audit_file_path=/var/log/mariadb/server_audit.log
server_audit_events=CONNECT,QUERY,TABLE,QUERY_DDL

Restart MariaDB if required for configuration changes to take effect:

systemctl restart mariadb