MYS8-00-007800 - The MySQL Database Server 8.0 must initiate session auditing upon startup

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Session auditing is for use when a user's activities are under investigation. To be sure of capturing all activity during those periods when session auditing is in use, it needs to be in operation for the whole time the Database Management System (DBMS) is running.

Solution

Configure the MySQL Audit to automatically start during system startup.
Add to the my.cnf:

[mysqld]
plugin-load-add=audit_log.so
audit-log=FORCE_PLUS_PERMANENT
audit-log-format=JSON

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_MySQL_8-0_V1R4_STIG.zip

Item Details

References: CAT|II, CCI|CCI-001464, Rule-ID|SV-235159r879562_rule, STIG-ID|MYS8-00-007800, Vuln-ID|V-235159

Plugin: Unix

Control ID: 6e6c1a8f882c7ca7ded06f7eeb26d7f4ff345bbad3f0eefffaf3b90196bbe1f2