MADB-10-000900 - MariaDB 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 must be in operation for the whole time MariaDB is running.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

If not already exists, create a named filter with the required auditing for the user in question. Example:

MariaDB> INSERT INTO mysql.server_audit_filters (filtername, rule)
VALUES ('session_auditing',
JSON_COMPACT(
'{
'connect_event': [
'CONNECT',
'DISCONNECT'
],
'table_event':[
'WRITE',
'CREATE',
'DROP',
'RENAME',
'ALTER'
]
}'
));

Then assign the named filter to the user. Example:

MariaDB> INSERT INTO mysql.server_audit_users (host, user, filtername) VALUES ('%', 'username', 'session_auditing');

Reload filters.

MariaDB> SET GLOBAL server_audit_reload_filters = ON;

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_MariaDB_Enterprise_10-x_V1R2_STIG.zip

Item Details

References: CAT|II, CCI|CCI-001464, Rule-ID|SV-253674r841547_rule, STIG-ID|MADB-10-000900, Vuln-ID|V-253674

Plugin: MySQLDB

Control ID: f575b072f989b8bc682fa4a8b973ec6e53fb6d64682a87f878bd6336f8edacb9