6.5 Ensure the Audit Plugin Can't be Unloaded

Information

Set server_audit to FORCE_PLUS_PERMANENT

Rationale:

This disables unloading on the plugin.

Impact:

If someone can unload the plugin it would be possible to perform actions on the database without audit events being logged to the audit log. If the audit log plugin can be unloaded the audit log can be temporarily or permanently disabled.

Solution

To remediate this setting, follow these steps:

Open the MariaDB configuration file (mariadb.cnf)

Ensure the following line is found in the mariadbd section

server_audit=FORCE_PLUS_PERMANENT

See Also

https://workbench.cisecurity.org/benchmarks/16527

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-2, 800-53|AU-7, 800-53|AU-12, CSCv7|6.2

Plugin: MySQLDB

Control ID: 510bb72acb62a0e3230591bbec0fe5ba3511dd0447deb8350a74ba154eed2854