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

CAT II (Medium)

The MySQL Database Server 9.x must generate audit records for concurrent logons/connections by the same user from different workstations.

Rule ID

SV-289283r1319417_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 who logs on to the database management system (DBMS). Concurrent connections by the same user from multiple workstations may be valid use of the system; or such connections may be due to improper circumvention of the requirement to use the common access card (CAC) for authentication; or they may indicate unauthorized account sharing; or they may be because an account has been compromised. (If the fact of multiple, concurrent logons by a given user can be reliably reconstructed from the log entries for other events [logons/connections; voluntary and involuntary disconnections], then it is not mandatory to create additional log entries specifically for this).

Check Content

Review the system documentation to determine if MySQL Server is required to audit the concurrent logons/connections by the same user from different workstations.

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.

Review audit filters and associated users by running the following queries:
SELECT `audit_log_filter`.`NAME`,
   `audit_log_filter`.`FILTER`
FROM `mysql`.`audit_log_filter`;

SELECT `audit_log_user`.`USER`,
   `audit_log_user`.`HOST`,
   `audit_log_user`.`FILTERNAME`
FROM `mysql`.`audit_log_user`;

All currently defined audits for the MySQL Server instance will be listed. If no audits are returned, this is a finding.

To check if the audit filters that are in place are generating records when multiple connections occur, run multiple connections from the same user without logging out and from different IP addresses.

Review the audit log:
sudo cat  <directory where audit log files are located>/audit.log | egrep <username>

For example, if the values returned by the configured "audit_log.file" and "datadir" values are  "/usr/local/mysql/data/" and "audit.log", and the user is "fewconnects", run:
sudo cat  /usr/local/mysql/data/audit.log |egrep fewconnects

 { "connection_type": "ssl", "status": 0, "db": "", "connection_attributes": { "_pid": "9132", "_os": "macos10.14", "_platform": "x86_64", "_client_version": "8.0.20", "_client_name": "libmysql", "program_name": "mysqlsh" } } },
{ "timestamp": "2020-08-31 18:03:41", "id": 0, "class": "connection", "event": "connect", "connection_id": 28, "account": { "user": "fewconnects", "host": "localhost" }, "login": { "user": "fewconnects", "os": "", "ip": "", "proxy": "" }, "connection_data": { "connection_type": "ssl", "status": 0, "db": "", "connection_attributes": { "_pid": "9132", "_os": "macos10.14", "_platform": "x86_64", "_client_version": "8.0.20", "_client_name": "libmysql", "program_name": "mysqlsh" } } }
{ "timestamp": "2020-08-31 18:11:05", "id": 12, "class": "connection", "event": "connect", "connection_id": 38, "account": { "user": "fewconnects", "host": "localhost" }, "login": { "user": "fewconnects", "os": "", "ip": "93.122.141.147", "proxy": "" }, "connection_data": { "connection_type": "ssl", "status": 0, "db": "", "connection_attributes": { "_pid": "903", "_os": "macos10.15", "_platform": "x86_64", "_client_version": "8.0.20", "_client_name": "libmysql", "program_name": "MySQLWorkbench" } } },

Note that each connection has a different connection_id indicating distinctly auditing multiple connections. Here there are connections from mysqlsh and MySQLWorkbench; the event type is "event": "connect" and the "user": "fewconnects", "os": "", "ip": "127.0.0.1" and "login": { "user": "fewconnects", "os": "", "ip": "93.122.141.147" - that is with different IPs from the different workstations.

If the audit events are not present, this is a finding.

If currently required, configure the MySQL Database Server to produce audit records when connections occur.

Refer to the following link for more information: https://dev.mysql.com/doc/refman/9.7/en/audit-log-component.html.

Fix Text

If currently required, configure the MySQL Database Server to produce audit records when connections occur.

Refer to the following link for more information: https://dev.mysql.com/doc/refman/9.7/en/audit-log-component.html.